element-tiptap-vue3-niyuta
Version:
Rich-text editor build by baidu api and tiptap
389 lines • 1.31 MB
JavaScript
(function(ke,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(ke=typeof globalThis!="undefined"?globalThis:ke||self,i(ke.ElementTiptapVue3Fixed={},ke.vue))})(this,function(ke,i){"use strict";function Jt(t){this.content=t}Jt.prototype={constructor:Jt,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),s=r.content.slice();return o==-1?s.push(n||t,e):(s[o+1]=e,n&&(s[o]=n)),new Jt(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Jt(n)},addToStart:function(t,e){return new Jt([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Jt(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),s=r.find(t);return o.splice(s==-1?o.length:s,0,e,n),new Jt(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Jt.from(t),t.size?new Jt(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Jt.from(t),t.size?new Jt(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Jt.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Jt.from=function(t){if(t instanceof Jt)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Jt(e)};function h1(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),s=e.child(r);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let a=0;o.text[a]==s.text[a];a++)n++;return n}if(o.content.size||s.content.size){let a=h1(o.content,s.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function m1(t,e,n,r){for(let o=t.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:r};let a=t.child(--o),l=e.child(--s),c=a.nodeSize;if(a==l){n-=c,r-=c;continue}if(!a.sameMarkup(l))return{a:n,b:r};if(a.isText&&a.text!=l.text){let u=0,d=Math.min(a.text.length,l.text.length);for(;u<d&&a.text[a.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(a.content.size||l.content.size){let u=m1(a.content,l.content,n-1,r-1);if(u)return u}n-=c,r-=c}}class Y{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,s){for(let a=0,l=0;l<n;a++){let c=this.content[a],u=l+c.nodeSize;if(u>e&&r(c,o+l,s||null,a)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),r,o+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let s="",a=!0;return this.nodesBetween(e,n,(l,c)=>{l.isText?(s+=l.text.slice(Math.max(e,c)-c,n-c),a=!r):l.isLeaf?(o?s+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(s+=l.type.spec.leafText(l)),a=!r):!a&&l.isBlock&&(s+=r,a=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)o.push(e.content[s]);return new Y(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;c>e&&((a<e||c>n)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,n-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,n-a-1))),r.push(l),o+=l.nodeSize),a=c}return new Y(r,o)}cutByIndex(e,n){return e==n?Y.empty:e==0&&n==this.content.length?this:new Y(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new Y(o,s)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return h1(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return m1(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Kl(0,e);if(e==this.size)return Kl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),a=o+s.nodeSize;if(a>=e)return a==e||n>0?Kl(r+1,a):Kl(r,o);o=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Y.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let n,r=0;for(let o=0;o<e.length;o++){let s=e[o];r+=s.nodeSize,o&&s.isText&&e[o-1].sameMarkup(s)?(n||(n=e.slice(0,o)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new Y(n||e,r)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const r0={index:0,offset:0};function Kl(t,e){return r0.index=t,r0.offset=e,r0}function Gl(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Gl(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Gl(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class nt{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let s=e[o];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,o));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Gl(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return nt.none;if(e instanceof nt)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}}nt.none=[];class Jl extends Error{}class ue{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=b1(this.content,e+this.openStart,n);return r&&new ue(r,this.openStart,this.openEnd)}removeBetween(e,n){return new ue(g1(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return ue.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ue(Y.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new ue(e,r,o)}}ue.empty=new ue(Y.empty,0,0);function g1(t,e,n){let{index:r,offset:o}=t.findIndex(e),s=t.maybeChild(r),{index:a,offset:l}=t.findIndex(n);if(o==e||s.isText){if(l!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(g1(s.content,e-o-1,n-o-1)))}function b1(t,e,n,r){let{index:o,offset:s}=t.findIndex(e),a=t.maybeChild(o);if(s==e||a.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=b1(a.content,e-s-1,n);return l&&t.replaceChild(o,a.copy(l))}function Mv(t,e,n){if(n.openStart>t.depth)throw new Jl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Jl("Inconsistent open depths");return y1(t,e,n,0)}function y1(t,e,n,r){let o=t.index(r),s=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let a=y1(t,e,n,r+1);return s.copy(s.content.replaceChild(o,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let a=t.parent,l=a.content;return Ti(a,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=Nv(n,t);return Ti(s,v1(t,a,l,e,r))}else return Ti(s,Xl(t,e,r))}function w1(t,e){if(!e.type.compatibleContent(t.type))throw new Jl("Cannot join "+e.type.name+" onto "+t.type.name)}function o0(t,e,n){let r=t.node(n);return w1(r,e.node(n)),r}function xi(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ca(t,e,n,r){let o=(e||t).node(n),s=0,a=e?e.index(n):o.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(xi(t.nodeAfter,r),s++));for(let l=s;l<a;l++)xi(o.child(l),r);e&&e.depth==n&&e.textOffset&&xi(e.nodeBefore,r)}function Ti(t,e){return t.type.checkContent(e),t.copy(e)}function v1(t,e,n,r,o){let s=t.depth>o&&o0(t,e,o+1),a=r.depth>o&&o0(n,r,o+1),l=[];return Ca(null,t,o,l),s&&a&&e.index(o)==n.index(o)?(w1(s,a),xi(Ti(s,v1(t,e,n,r,o+1)),l)):(s&&xi(Ti(s,Xl(t,e,o+1)),l),Ca(e,n,o,l),a&&xi(Ti(a,Xl(n,r,o+1)),l)),Ca(r,null,o,l),new Y(l)}function Xl(t,e,n){let r=[];if(Ca(null,t,n,r),t.depth>n){let o=o0(t,e,n+1);xi(Ti(o,Xl(t,e,n+1)),r)}return Ca(e,null,n,r),new Y(r)}function Nv(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)o=e.node(s).copy(Y.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class ka{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(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[e*3-1]}after(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[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)o+=r.child(s).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return nt.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let l=r;r=o,o=l}let s=r.marks;for(var a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!o||!s[a].isInSet(o.marks))&&(s=s[a--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!o||!r[s].isInSet(o.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Yl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,s=n;for(let a=e;;){let{index:l,offset:c}=a.content.findIndex(s),u=s-c;if(r.push(a,l,o+c),!u||(a=a.child(l),a.isText))break;s=u-1,o+=c+1}return new ka(n,r,s)}static resolveCached(e,n){for(let o=0;o<i0.length;o++){let s=i0[o];if(s.pos==n&&s.doc==e)return s}let r=i0[s0]=ka.resolve(e,n);return s0=(s0+1)%Bv,r}}let i0=[],s0=0,Bv=12;class Yl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Ov=Object.create(null);class Nr{constructor(e,n,r,o=nt.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Gl(this.attrs,n||e.defaultAttrs||Ov)&&nt.sameSet(this.marks,r||nt.none)}copy(e=null){return e==this.content?this:new Nr(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Nr(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return ue.empty;let o=this.resolve(e),s=this.resolve(n),a=r?0:o.sharedDepth(n),l=o.start(a),u=o.node(a).content.cut(o.pos-l,s.pos-l);return new ue(u,o.depth-a,s.depth-a)}replace(e,n,r){return Mv(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return ka.resolveCached(this,e)}resolveNoCache(e){return ka.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),C1(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=Y.empty,o=0,s=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,o,s),l=a&&a.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let c=o;c<s;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let s=this.contentMatchAt(e).matchType(r),a=s&&s.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=nt.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!nt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n 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(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=Y.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}}Nr.prototype.text=void 0;class Zl extends Nr{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):C1(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Zl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Zl(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function C1(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ai{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Iv(e,n);if(r.next==null)return Ai.empty;let o=k1(r);r.next&&r.err("Unexpected trailing text");let s=Vv($v(o));return Hv(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let s=n;o&&s<r;s++)o=o.matchType(e.child(s).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function s(a,l){let c=a.matchFragment(e,r);if(c&&(!n||c.validEnd))return Y.from(l.map(u=>u.createAndFill()));for(let u=0;u<a.next.length;u++){let{type:d,next:f}=a.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let p=s(f,l.concat(d));if(p)return p}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),s=o.match;if(s.matchType(e)){let a=[];for(let l=o;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<s.next.length;a++){let{type:l,next:c}=s.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||c.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let s=o+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)s+=(a?", ":"")+r.next[a].type.name+"->"+e.indexOf(r.next[a].next);return s}).join(`
`)}}Ai.empty=new Ai(!0);class Iv{constructor(e,n){this.string=e,this.nodeTypes=n,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()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function k1(t){let e=[];do e.push(Pv(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Pv(t){let e=[];do e.push(Lv(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Lv(t){let e=Fv(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Rv(t,e);else break;return e}function S1(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Rv(t,e){let n=S1(t),r=n;return t.eat(",")&&(t.next!="}"?r=S1(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function zv(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let s in n){let a=n[s];a.groups.indexOf(e)>-1&&o.push(a)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function Fv(t){if(t.eat("(")){let e=k1(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=zv(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function $v(t){let e=[[]];return o(s(t,0),n()),e;function n(){return e.push([])-1}function r(a,l,c){let u={term:c,to:l};return e[a].push(u),u}function o(a,l){a.forEach(c=>c.to=l)}function s(a,l){if(a.type=="choice")return a.exprs.reduce((c,u)=>c.concat(s(u,l)),[]);if(a.type=="seq")for(let c=0;;c++){let u=s(a.exprs[c],l);if(c==a.exprs.length-1)return u;o(u,l=n())}else if(a.type=="star"){let c=n();return r(l,c),o(s(a.expr,c),c),[r(c)]}else if(a.type=="plus"){let c=n();return o(s(a.expr,l),c),o(s(a.expr,c),c),[r(c)]}else{if(a.type=="opt")return[r(l)].concat(s(a.expr,l));if(a.type=="range"){let c=l;for(let u=0;u<a.min;u++){let d=n();o(s(a.expr,c),d),c=d}if(a.max==-1)o(s(a.expr,c),c);else for(let u=a.min;u<a.max;u++){let d=n();r(c,d),o(s(a.expr,c),d),c=d}return[r(c)]}else{if(a.type=="name")return[r(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function E1(t,e){return e-t}function x1(t,e){let n=[];return r(e),n.sort(E1);function r(o){let s=t[o];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(o);for(let a=0;a<s.length;a++){let{term:l,to:c}=s[a];!l&&n.indexOf(c)==-1&&r(c)}}}function Vv(t){let e=Object.create(null);return n(x1(t,0));function n(r){let o=[];r.forEach(a=>{t[a].forEach(({term:l,to:c})=>{if(!l)return;let u;for(let d=0;d<o.length;d++)o[d][0]==l&&(u=o[d][1]);x1(t,c).forEach(d=>{u||o.push([l,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let s=e[r.join(",")]=new Ai(r.indexOf(t.length-1)>-1);for(let a=0;a<o.length;a++){let l=o[a][1].sort(E1);s.next.push({type:o[a][0],next:e[l.join(",")]||n(l)})}return s}}function Hv(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],s=!o.validEnd,a=[];for(let l=0;l<o.next.length;l++){let{type:c,next:u}=o.next[l];a.push(c.name),s&&!(c.isText||c.hasRequiredAttrs())&&(s=!1),r.indexOf(u)==-1&&r.push(u)}s&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function T1(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function A1(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let s=t[r];if(s.hasDefault)o=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function _1(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new jv(t[n]);return e}class Ql{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_1(r.attrs),this.defaultAttrs=T1(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ai.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:A1(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Nr(this,this.computeAttrs(e),Y.from(n),nt.setFrom(r))}createChecked(e=null,n,r){return n=Y.from(n),this.checkContent(n),new Nr(this,this.computeAttrs(e),n,nt.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=Y.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(Y.empty,!0);return s?new Nr(this,e,n.append(s),nt.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:nt.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,a)=>r[s]=new Ql(s,n,a));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}}class jv{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ec{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=_1(o.attrs),this.excluded=null;let s=T1(this.attrs);this.instance=s?new nt(this,s):null}create(e=null){return!e&&this.instance?this.instance:new nt(this,A1(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((s,a)=>r[s]=new ec(s,o++,n,a)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class Uv{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Jt.from(e.nodes),n.marks=Jt.from(e.marks||{}),this.nodes=Ql.compile(this.spec.nodes,this),this.marks=ec.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],a=s.spec.content||"",l=s.spec.marks;s.contentMatch=r[a]||(r[a]=Ai.parse(a,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.markSet=l=="_"?null:l?D1(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],a=s.spec.excludes;s.excluded=a==null?[s]:a==""?[]:D1(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ql){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Zl(r,r.defaultAttrs,e,nt.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Nr.fromJSON(this,e)}markFromJSON(e){return nt.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function D1(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],s=t.marks[o],a=s;if(s)n.push(s);else for(let l in t.marks){let c=t.marks[l];(o=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class ps{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new O1(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new O1(this,n,!0);return r.addAll(e,n.from,n.to),ue.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let s=this.tags[o];if(Kv(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let a=s.getAttrs(e);if(a===!1)continue;s.attrs=a||void 0}return s}}}matchStyle(e,n,r,o){for(let s=o?this.styles.indexOf(o)+1:0;s<this.styles.length;s++){let a=this.styles[s],l=a.style;if(!(l.indexOf(e)!=0||a.context&&!r.matchesContext(a.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(a.getAttrs){let c=a.getAttrs(n);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(e){let n=[];function r(o){let s=o.priority==null?50:o.priority,a=0;for(;a<n.length;a++){let l=n[a];if((l.priority==null?50:l.priority)<s)break}n.splice(a,0,o)}for(let o in e.marks){let s=e.marks[o].spec.parseDOM;s&&s.forEach(a=>{r(a=I1(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in e.nodes){let s=e.nodes[o].spec.parseDOM;s&&s.forEach(a=>{r(a=I1(a)),a.node||a.ignore||a.mark||(a.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ps(e,ps.schemaRules(e)))}}const M1={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},qv={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},N1={ol:!0,ul:!0},tc=1,nc=2,Sa=4;function B1(t,e,n){return e!=null?(e?tc:0)|(e==="full"?nc:0):t&&t.whitespace=="pre"?tc|nc:n&~Sa}class rc{constructor(e,n,r,o,s,a,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=s,this.options=l,this.content=[],this.activeMarks=nt.none,this.stashMarks=[],this.match=a||(l&Sa?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Y.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&tc)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=Y.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):Jv(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!M1.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class O1{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,s,a=B1(null,n.preserveWhitespace,0)|(r?Sa:0);o?s=new rc(o.type,o.attrs,nt.none,nt.none,!0,n.topMatch||o.type.contentMatch,a):r?s=new rc(null,null,nt.none,nt.none,!0,null,a):s=new rc(e.schema.topNodeType,null,nt.none,nt.none,!0,null,a),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(Gv(r));if(!o)return;let[s,a]=o,l=this.top;for(let c=0;c<a.length;c++)this.removePendingMark(a[c],l);for(let c=0;c<s.length;c++)this.addPendingMark(s[c]);n();for(let c=0;c<s.length;c++)this.removePendingMark(s[c],l);for(let c=0;c<a.length;c++)this.addPendingMark(a[c])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&nc||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&tc)r.options&nc?n=n.replace(/\r\n?/g,`
`):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],s=e.previousSibling;(!o||s&&s.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;N1.hasOwnProperty(r)&&this.parser.normalizeLists&&Wv(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(s?s.ignore:qv.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let a,l=this.top,c=this.needsBlock;if(M1.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),a=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}s&&s.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),a&&this.sync(l),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=nt.none,r=nt.none;for(let o=0;o<e.length;o+=2)for(let s=void 0;;){let a=this.parser.matchStyle(e[o],e[o+1],this,s);if(!a)break;if(a.ignore)return null;if(a.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{a.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(n),a.consuming===!1)s=a;else break}return[n,r]}addElementByRule(e,n,r){let o,s,a;n.node?(s=this.parser.schema.nodes[n.node],s.isLeaf?this.insertNode(s.create(n.attrs))||this.leafFallback(e):o=this.enter(s,n.attrs||null,n.preserveWhitespace)):(a=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(a));let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof n.contentElement=="string"?c=e.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(e):n.contentElement&&(c=n.contentElement),this.findAround(e,c,!0),this.addAll(c)}o&&this.sync(l)&&this.open--,a&&this.removePendingMark(a,l)}addAll(e,n,r){let o=n||0;for(let s=n?e.childNodes[n]:e.firstChild,a=r==null?null:e.childNodes[r];s!=a;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let s=this.nodes[o],a=s.findWrapping(e);if(a&&(!n||n.length>a.length)&&(n=a,r=s,!a.length)||s.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let s=this.top;s.applyPending(e),s.match=s.match&&s.match.matchType(e);let a=B1(e,o,s.options);s.options&Sa&&s.content.length==0&&(a|=Sa),this.nodes.push(new rc(e,n,s.activeMarks,s.pendingMarks,r,null,a)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(o?0:1),a=(l,c)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;c>=s;c--)if(a(l-1,c))return!0;return!1}else{let d=c>0||c==0&&o?this.nodes[c].type:r&&c>=s?r.node(c-s).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=Xv(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let a=o.popFromStashMark(e);a&&o.type&&o.type.allowsMarkType(a.type)&&(o.activeMarks=a.addToSet(o.activeMarks))}if(o==n)break}}}function Wv(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&N1.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Kv(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Gv(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function I1(t){let e={};for(let n in t)e[n]=t[n];return e}function Jv(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let s=[],a=l=>{s.push(l);for(let c=0;c<l.edgeCount;c++){let{type:u,next:d}=l.edge(c);if(u==e||s.indexOf(d)<0&&a(d))return!0}};if(a(o.contentMatch))return!0}}function Xv(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class Br{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=a0(n).createDocumentFragment());let o=r,s=[];return e.forEach(a=>{if(s.length||a.marks.length){let l=0,c=0;for(;l<s.length&&c<a.marks.length;){let u=a.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(s[l][0])||u.type.spec.spanning===!1)break;l++,c++}for(;l<s.length;)o=s.pop()[1];for(;c<a.marks.length;){let u=a.marks[c++],d=this.serializeMark(u,a.isInline,n);d&&(s.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(a,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=Br.renderSpec(a0(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let s=this.serializeMark(e.marks[o],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Br.renderSpec(a0(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],s=o.indexOf(" ");s>0&&(r=o.slice(0,s),o=o.slice(s+1));let a,l=r?e.createElementNS(r,o):e.createElement(o),c=n[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<n.length;d++){let f=n[d];if(f===0){if(d<n.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=Br.renderSpec(e,f,r);if(l.appendChild(p),h){if(a)throw new RangeError("Multiple content holes");a=h}}}return{dom:l,contentDOM:a}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Br(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=P1(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return P1(e.marks)}}function P1(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function a0(t){return t.document||window.document}const L1=65535,R1=Math.pow(2,16);function Yv(t,e){return t+e*R1}function z1(t){return t&L1}function Zv(t){return(t-(t&L1))/R1}const F1=1,$1=2,oc=4,V1=8;class l0{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&V1)>0}get deletedBefore(){return(this.delInfo&(F1|oc))>0}get deletedAfter(){return(this.delInfo&($1|oc))>0}get deletedAcross(){return(this.delInfo&oc)>0}}class Wn{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Wn.empty)return Wn.empty}recover(e){let n=0,r=z1(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+Zv(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,s=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?o:0);if(c>e)break;let u=this.ranges[l+s],d=this.ranges[l+a],f=c+u;if(e<=f){let p=u?e==c?-1:e==f?1:n:n,h=c+o+(p<0?0:d);if(r)return h;let m=e==(n<0?c:f)?null:Yv(l/3,e-c),g=e==c?$1:e==f?F1:oc;return(n<0?e!=c:e!=f)&&(g|=V1),new l0(h,g,m)}o+=d-u}return r?e+o:new l0(e+o,0,null)}touches(e,n){let r=0,o=z1(n),s=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[l+s],d=c+u;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+a]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,s=0;o<this.ranges.length;o+=3){let a=this.ranges[o],l=a-(this.inverted?s:0),c=a+(this.inverted?0:s),u=this.ranges[o+n],d=this.ranges[o+r];e(l,l+u,c,c+d),s+=d-u}}invert(){return new Wn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Wn.empty:new Wn(e<0?[0,-e,0]:[0,0,e])}}Wn.empty=new Wn([]);class hs{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new hs(this.maps,this.mirror,e,n)}copy(){return new hs(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new hs;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let s=this.from;s<this.to;s++){let a=this.maps[s],l=a.mapResult(e,n);if(l.recover!=null){let c=this.getMirror(s);if(c!=null&&c>s&&c<this.to){s=c,e=this.maps[c].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new l0(e,o,null)}}const c0=Object.create(null);class wn{getMap(){return Wn.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=c0[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in c0)throw new RangeError("Duplicate use of step JSON ID "+e);return c0[e]=n,n.prototype.jsonID=e,n}}class Vt{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Vt(e,null)}static fail(e){return new Vt(null,e)}static fromReplace(e,n,r,o){try{return Vt.ok(e.replace(n,r,o))}catch(s){if(s instanceof Jl)return Vt.fail(s.message);throw s}}}function u0(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let s=t.child(o);s.content.size&&(s=s.copy(u0(s.content,e,s))),s.isInline&&(s=e(s,n,o)),r.push(s)}return Y.fromArray(r)}class No extends wn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),s=new ue(u0(n.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),n.openStart,n.openEnd);return Vt.fromReplace(e,this.from,this.to,s)}invert(){return new Or(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new No(n.pos,r.pos,this.mark)}merge(e){return e instanceof No&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new No(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new No(n.from,n.to,e.markFromJSON(n.mark))}}wn.jsonID("addMark",No);class Or extends wn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new ue(u0(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return Vt.fromReplace(e,this.from,this.to,r)}invert(){return new No(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Or(n.pos,r.pos,this.mark)}merge(e){return e instanceof Or&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Or(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Or(n.from,n.to,e.markFromJSON(n.mark))}}wn.jsonID("removeMark",Or);class Bo extends wn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Vt.fromReplace(e,this.pos,this.pos+1,new ue(Y.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Bo(this.pos,n.marks[o]);return new Bo(this.pos,this.mark)}}return new ms(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Bo(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Bo(n.pos,e.markFromJSON(n.mark))}}wn.jsonID("addNodeMark",Bo);class ms extends wn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Vt.fromReplace(e,this.pos,this.pos+1,new ue(Y.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Bo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ms(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ms(n.pos,e.markFromJSON(n.mark))}}wn.jsonID("removeNodeMark",ms);class Xt extends wn{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&d0(e,this.from,this.to)?Vt.fail("Structure replace would overwrite content"):Vt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Wn([this.from,this.to-this.from,this.slice.size])}invert(e){return new Xt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new Xt(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof Xt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?ue.empty:new ue(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Xt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?ue.empty:new ue(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Xt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Xt(n.from,n.to,ue.fromJSON(e,n.slice),!!n.structure)}}wn.jsonID("replace",Xt);class qt extends wn{constructor(e,n,r,o,s,a,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=s,this.insert=a,this.structure=l}apply(e){if(this.structure&&(d0(e,this.from,this.gapFrom)||d0(e,this.gapTo,this.to)))return Vt.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Vt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Vt.fromReplace(e,this.from,this.to,r):Vt.fail("Content does not fit in gap")}getMap(){return new Wn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new qt(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)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),s=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||s>r.pos?null:new qt(n.pos,r.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let 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}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new qt(n.from,n.to,n.gapFrom,n.gapTo,ue.fromJSON(e,n.slice),n.insert,!!n.structure)}}wn.jsonID("replaceAround",qt);function d0(t,e,n){let r=t.resolve(e),o=n-e,s=r.depth;for(;o>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,o--;if(o>0){let a=r.node(s).maybeChild(r.indexAfter(s));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function Qv(t,e,n,r){let o=[],s=[],a,l;t.doc.nodesBetween(e,n,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let p=Math.max(u,e),h=Math.min(u+c.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(a&&a.to==p&&a.mark.eq(f[g])?a.to=h:o.push(a=new Or(p,h,f[g])));l&&l.to==p?l.to=h:s.push(l=new No(p,h,r))}}),o.forEach(c=>t.step(c)),s.forEach(c=>t.step(c))}function eC(t,e,n,r){let o=[],s=0;t.doc.nodesBetween(e,n,(a,l)=>{if(!a.isInline)return;s++;let c=null;if(r instanceof ec){let u=a.marks,d;for(;d=r.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(a.marks)&&(c=[r]):c=a.marks;if(c&&c.length){let u=Math.min(l+a.nodeSize,n);for(let d=0;d<c.length;d++){let f=c[d],p;for(let h=0;h<o.length;h++){let m=o[h];m.step==s-1&&f.eq(o[h].style)&&(p=m)}p?(p.to=u,p.step=s):o.push({style:f,from:Math.max(l,e),to:u,step:s})}}}),o.forEach(a=>t.step(new Or(a.from,a.to,a.style)))}function tC(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)s.push(new Xt(a,u,ue.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new Or(a,u,c.marks[f]));if(c.isText&&!n.spec.code){let f,p=/\r?\n|\r/g,h;for(;f=p.exec(c.text);)h||(h=new ue(Y.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Xt(a+f.index,a+f.index+f[0].length,h))}}a=u}if(!r.validEnd){let l=r.fillBefore(Y.empty,!0);t.replace(a,a,new ue(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function nC(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function gs(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),s=t.$from.index(r),a=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(s,a,n))return r;if(r==0||o.type.spec.isolating||!nC(o,s,a))break}return null}function rC(t,e,n){let{$from:r,$to:o,depth:s}=e,a=r.before(s+1),l=o.after(s+1),c=a,u=l,d=Y.empty,f=0;for(let m=s,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=Y.from(r.node(m).copy(d)),f++):c--;let p=Y.empty,h=0;for(let m=s,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,p=Y.from(o.node(m).copy(p)),h++):u++;t.step(new qt(c,u,a,l,new ue(d.append(p),f,h),d.size-f,!0))}function f0(t,e,n=null,r=t){let o=oC(t,e),s=o&&iC(r,e);return s?o.map(H1).concat({type:e,attrs:n}).concat(s.map(H1)):null}function H1(t){return{type:t,attrs:null}}function oC(t,e){let{parent:n,startIndex:r,endIndex:o}=t,s=n.contentMatchAt(r).findWrapping(e);if(!s)return null;let a=s.length?s[0]:e;return n.canReplaceWith(r,o,a)?s:null}function iC(t,e){let{parent:n,startIndex:r,endIndex:o}=t,s=n.child(r),a=e.contentMatch.findWrapping(s.type);if(!a)return null;let c=(a.length?a[a.length-1]:e).contentMatch;for(let u=r;c&&u<o;u++)c=c.matchType(n.child(u).type);return!c||!c.validEnd?null:a}function sC(t,e,n){let r=Y.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let l=n[a].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Y.from(n[a].type.create(n[a].attrs,r))}let o=e.start,s=e.end;t.step(new qt(o,s,o,s,new ue(r,0,0),n.length,!0))}function aC(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(a,l)=>{if(a.isTextblock&&!a.hasMarkup(r,o)&&lC(t.doc,t.mapping.slice(s).map(l),r)){t.clearIncompatible(t.mapping.slice(s).map(l,1),r);let c=t.mapping.slice(s),u=c.map(l,1),d=c.map(l+a.nodeSize,1);return t.step(new qt(u,d,u+1,d-1,new ue(Y.from(r.create(o,null,a.marks)),0,0),1,!0)),!1}})}function lC(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function cC(t,e,n,r,o){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(r,null,o||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new qt(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new ue(Y.from(a),0,0),1,!0))}function bs(t,e,n=1,r){let o=t.resolve(e),s=o.depth-n,a=r&&r[r.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,d=n-2;u>s;u--,d--){let f=o.node(u),p=o.index(u);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(p,f.childCount),m=r&&r[d+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[d]||f;if(!f.canReplace(p+1,f.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(s),c=r&&r[0];return o.node(s).canReplaceWith(l,l,c?c.type:o.node(s+1).type)}function uC(t,e,n=1,r){let o=t.doc.resolve(e),s=Y.empty,a=Y.empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){s=Y.from(o.node(l).copy(s));let d=r&&r[u];a=Y.from(d?d.type.create(d.attrs,a):o.node(l).copy(a))}t.step(new Xt(e,e,new ue(s.append(a),n,n),!0))}function Oo(t,e){let n=t.resolve(e),r=n.index();return j1(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function j1(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function U1(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let s,a,l=r.index(o);if(o==r.depth?(s=r.nodeBefore,a=r.nodeAfter):n>0?(s=r.node(o+1),l++,a=r.node(o).maybeChild(l)):(s=r.node(o).maybeChild(l-1),a=r.node(o+1)),s&&!s.isTextblock&&j1(s,a)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function dC(t,e,n){let r=new Xt(e-n,e+n,ue.empty,!0);t.step(r)}function fC(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let s=r.index(o);if(r.node(o).canReplaceWith(s,s,n))return r.before(o+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,n))return r.after(o+1);if(s<r.node(o).childCount)return null}return null}function q1(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let s=0;s<n.openStart;s++)o=o.firstChild.content;for(let s=1;s<=(n.openStart==0&&n.size?2:1);s++)for(let a=r.depth;a>=0;a--){let l=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,c=r.index(a)+(l>0?1:0),u=r.node(a),d=!1;if(s==1)d=u.canReplace(c,c,o);else{let f=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return l==0?r.pos:l<0?r.before(a+1):r.after(a+1)}return null}function p0(t,e,n=e,r=ue.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),s=t.resolve(n);return W1(o,s,r)?new Xt(e,n,r):new pC(o,s,r).fit()}function W1(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class pC{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Y.empty;for(let o=0;o<=e.depth;o++){let s=e.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=Y.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let s=this.placed,a=r.depth,l=o.depth;for(;a&&l&&s.childCount==1;)s=s.firstChild.content,a--,l--;let c=new ue(s,a,l);return e>-1?new qt(r.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new Xt(r.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let s=n.firstChild;if(n.childCount>1&&(o=0),s.type.spec.isolating&&o<=r){e=r;break}n=s.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,s=null;r?(s=h0(this.unplaced.content,r-1).firstChild,o=s.content):o=this.unplaced.content;let a=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:u}=this.frontier[l],d,f=null;if(n==1&&(a?u.matchType(a.type)||(f=u.fillBefore(Y.from(a),!1)):s&&c.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:l,parent:s,inject:f};if(n==2&&a&&(d=u.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:l,parent:s,wrap:d};if(s&&u.matchType(s.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=h0(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ue(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=h0(e,n);if(o.childCount<=1&&n>0){let s=e.size-n<=n+o.size;this.unplaced=new ue(Ea(e,n-1,1),n-1,s?n-1:r)}else this.unplaced=new ue(Ea(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let g=0;g<s.length;g++)this.openFrontierNode(s[g]);let a=this.unplaced,l=r?r.content:a.content,c=a.openStart-e,u=0,d=[],{match:f,type:p}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)d.push(o.child(g));f=f.matchFragment(o)}let h=l.size+e-(a.content.size-a.openEnd);for(;u<l.childCount;){let g=l.child(u),b=f.matchType(g.type);if(!b)break;u++,(u>1||c==0||g.content.size)&&(f=b,d.push(K1(g.mark(p.allowedMarks(g.marks)),u==1?c:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=xa(this.placed,n,Y.from(d)),this.frontier[n].match=f,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,b=l;g<h;g++){let y=b.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),b=y.content}this.unplaced=m?e==0?ue.empty:new ue(Ea(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new ue(Ea(a.content,e,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!m0(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],s=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),a=m0(e,n,o,r,s);if(!!a){for(let l=n-1;l>=0;l--){let{match:c,type:u}=this.frontier[l],d=m0(e,l,u,c,!0);if(!d||d.childCount)continue e}return{depth:n,fit:a,move:s?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=xa(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),s=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,s)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=xa(this.placed,this.depth,Y.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Y.empty,!0);n.childCount&&(this.placed=xa(this.placed,this.frontier.length,n))}}function Ea(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ea(t.firstChild.content,e-1,n)))}function xa(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(xa(t.lastChild.content,e-1,n)))}function h0(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function K1(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,K1(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(Y.empty,!0)))),t.copy(r)}function m0(t,e,n,r,o){let s=t.node(e),a=o?t.indexAfter(e):t.index(e);if(a==s.childCount&&!n.compatibleContent(s.type))return null;let l=r.fillBefore(s.content,!0,a);return l&&!hC(n,s.content,a)?l:null}function hC(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function mC(t){return t.spec.defining||t.spec.definingForContent}function gC(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),s=t.doc.resolve(n);if(W1(o,s,r))return t.step(new Xt(e,n,r));let a=J1(o,t.doc.resolve(n));a[a.length-1]==0&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let p=o.depth,h=o.pos-1;p>0;p--,h--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?l=p:o.before(p)==h&&a.splice(1,0,-p)}let c=a.indexOf(l),u=[],d=r.openStart;for(let p=r.content,h=0;;h++){let m=p.firstChild;if(u.push(m),h==r.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let h=u[p].type,m=mC(h);if(m&&o.node(c).type!=h)d=p;else if(m||!h.isTextblock)break}for(let p=r.openStart;p>=0;p--){let h=(p+d+1)%(r.openStart+1),m=u[h];if(!!m)for(let g=0;g<a.length;g++){let b=a[(g+c)%a.length],y=!0;b<0&&(y=!1,b=-b);let S=o.node(b-1),k=o.index(b-1);if(S.canReplaceWith(k,k,m.type,m.marks))return t.replace(o.before(b),y?s.after(b):n,new ue(G1(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let p=a.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>f));p--){let h=a[p];h<0||(e=o.before(h),n=s.after(h))}}function G1(t,e,n,r,o){if(e<n){let s=t.firstChild;t=t.replaceChild(0,s.copy(G1(s.content,e+1,n,r,s)))}if(e>r){let s=o.contentMatchAt(0),a=s.fillBefore(t).append(t);t=a.append(s.matchFragment(a).fillBefore(Y.empty,!0))}return t}function bC(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=fC(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new ue(Y.from(r),0,0))}function yC(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),s=J1(r,o);for(let a=0;a<s.length;a++){let l=s[a],c=a==s.length-1;if(c&&l==0||r.node(l).type.contentMatch.validEnd)return t.delete(r.start(l),o.end(l));if(l>0&&(c||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let a=1;a<=r.depth&&a<=o.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&o.end(a)-n!=o.depth-a)return t.delete(r.before(a),n);t.delete(e,n)}function J1(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let s=t.start(o);if(s<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(s==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==s-1)&&n.push(o)}return n}class ys extends wn{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Vt.fail("No node at attribute step's position");let r=Object.create(null);for(let s in n.attrs)r[s]=n.attrs[s];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return Vt.fromReplace(e,this.pos,this.pos+1,new ue(Y.from(o),0,n.isLeaf?0:1))}getMap(){return Wn.empty}invert(e){return new ys(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ys(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ys(n.pos,n.attr,n.value)}}wn.jsonID("attr",ys);let ws=class extends Error{};ws=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ws.prototype=Object.create(Error.prototype),ws.prototype.constructor=ws,ws.prototype.name="TransformError";class g0{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new hs}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ws(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=ue.empty){let o=p0(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new ue(Y.from(r),0,0))}delete(e,n){return this.replace(e,n,ue.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return gC(this,e,n,r),this}replaceRangeWith(e,n,r){return bC(this,e,n,r),this}deleteRange(e,n){return yC(this,e,n),this}lift(e,n){return rC(this,e,n),this}join(e,n=1){return dC(this,e,n),this}wrap(e,n){return sC(this,e,n),this}setBlockType(e,n=e,r,o=null){return aC(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return cC(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new ys(e,n,r)),this}addNodeMark(e,n){return this.step(new Bo(e,n)),this}removeNodeMark(e,n){if(!(n instanceof nt)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ms(e,n)),this}split(e,n=1,r){return uC(this,e,n,r),this}addMark(e,n,r){return Qv(this,e,n,r),this}removeMark(e,n,r){return eC(this,e,n,r),this}clearIncompatible(e,n,r){return tC(this,e,n,r),this}}const b0=Object.create(null);class Ie{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new X1(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=ue.empty){let r=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=r,r=r.lastChild;let s=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:c,$to:u}=a[l],d=e.mapping.slice(s);e.replaceRange(d.map(c.pos),d.map(u.pos),l?ue.empty:n),l==0&&Q1(e,s,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:a,$to:l}=o[s],c=e.mapping.slice(r),u=c.map(a.pos),d=c.map(l.pos);s?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),Q1(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Be(e):vs(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let s=e.depth-1;s>=0;s--){let a=n<0?vs(e.node(0),e.node(s),e.before(s+1),e.index(s),n,r):vs(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new vn(e.node(0))}static atStart(e){return vs(e,e,0,0,1)||new vn(e)}static atEnd(e){return vs(e,e,e.content.size,e.childCount,-1)||new vn(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=b0[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in b0)throw new RangeError("Duplicate use of selection JSON ID "+e);return b0[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Be.between(this.$anchor,this.$head).getBookmark()}}Ie.prototype.visible=!0;class X1{constructor(e,n){this.$from=e,this.$to=n}}let Y1=!1;function Z1(t){!Y1&&!t.parent.inlineContent&&(Y1=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Be extends Ie{constructor(e,n=e){Z1(e),Z1(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Ie.near(r);let o=e.resolve(n.map(this.anchor));return new Be(o.parent.inlineContent?o:r,r)}replace(e,n=ue.empty){if(super.replace(e,n),n==ue.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Be&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ic(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Be(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let s=Ie.findFrom(n,r,!0)||Ie.findFrom(n,-r,!0);if(s)n=s.$head;else return Ie.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Ie.findFrom(e,-r,!0)||Ie.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Be(e,n)}}Ie.jsonID("text",Be);class ic{constructor(e,n){this.anchor=e,this.head=n}map(e){return new ic(e.map(this.anchor),e.map(this.head))}resolve(e){return Be.between(e.resolve(this.anchor),e.resolve(this.head))}}class _e extends Ie{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),s=e.resolve(o);return r?Ie.near(s):new _e(s)}content(){return new ue(Y.from(this.node),0,0)}eq(e){return e instanceof _e&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new y0(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new _e(e.resolve(n.anchor))}static create(e,n){return new _e(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}_e.prototype.visible=!1,Ie.jsonID("node",_e);class y0{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new ic(r,r):new y0(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&_e.isSelectable(r)?new _e(n):Ie.near(n)}}class vn extends Ie{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=ue.empty){if(n==ue.empty){e.delete(0,e.doc.content.size);let r=Ie.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new vn(e)}map(e){return new vn(e)}eq(e){return e instanceof vn}getBookmark(){return wC}}Ie.jsonID("all",vn);const wC={map(){return this},resolve(t){return new vn(t)}};function vs(t,e,n,r,o,s=!1){if(e.inlineContent)return Be.create(t,n);for(let a=r-(o>0?0:1);o>0?a<e.childCount:a>=0;a+=o){let l=e.child(a);if(l.isAtom){if(!s&&_e.isSelectable(l))return _e.create(t,n-(o<0?l.nodeSize:0))}else{let c=vs(t,l,n+o,o<0?l.childCount:0,o,s);if(c)return c}n+=l.nodeSize*o}return null}function Q1(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof Xt||o instanceof qt))return;let s=t.mapping.maps[r],a;s.forEach((l,c,u,d)=>{a==null&&(a=d)}),t.setSelection(Ie.near(t.doc.resolve(a),n))}const eg=1,sc=2,tg=4;class vC extends g0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){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}setSelection(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|eg)&~sc,this.storedMarks=null,this}get selectionSet(){return(this.updated&eg)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=sc,this}ensureMarks(e){return nt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&sc)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~sc,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||nt.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r==null?n:r,!e)return this.deleteRange(n,r);let s=this.storedMarks;if(!s){let a=this.doc.resolve(n);s=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,s)),this.selection.empty||this.setSelection(Ie.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=tg,this}get scrolledIntoView(){return(this.updated&tg)>0}}function ng(t,e){return!e||!t?t:t.bind(e)}class Ta{constructor(e,n,r){this.name=e,this.init=ng(n.init,r),this.apply=ng(n.apply,r)}}const CC=[new Ta("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ta("selection",{init(t,e){return t.selection||Ie.atStart(e.doc)},apply(t){return t.selection}}),new Ta("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ta("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class w0{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=CC.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ta(r.key,r.spec.state,r))})}}class Cs{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=null;for(;;){let s=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let c=o?o[a].n:0,u=o?o[a].state:this,d=c<n.length&&l.spec.appendTransaction.call(l,c?n.slice(c):n,u,r);if(d&&r.filterTransaction(d,a)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<a?{state:r,n:n.length}:{state:this,n:0})}n.push(d),r=r.applyInner(d),s=!0}o&&(o[a]={state:r,n:n.length})}}if(!s)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Cs(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let s=r[o];n[s.name]=s.apply(e,this[s.name],this,n)}return n}get tr(){return new vC(this)}static create(e){let n=new w0(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Cs(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new w0(this.schema,e.plugins),r=n.fields,o=new Cs(n);for(let s=0;s<r.length;s++){let a=r[s].name;o[a]=this.hasOwnProperty(a)?this[a]:r[s].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],s=o.spec.state;s&&s.toJSON&&(n[r]=s.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new w0(e.schema,e.plugins),s=new Cs(o);return o.fields.forEach(a=>{if(a.name=="doc")s.doc=Nr.fromJSON(e.schema,n.doc);else if(a.name=="selection")s.selection=Ie.fromJSON(s.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let c=r[l],u=c.spec.state;if(c.key==a.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[a.name]=u.fromJSON.call(c,e,n[l],s);return}}s[a.name]=a.init(e,s)}}),s}}function rg(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=rg(o,e,{})),n[r]=o}return n}class wt{constructor(e){this.spec=e,this.props={},e.props&&rg(e.props,this,this.props),this.key=e.key?e.key.key:og("plugin")}getState(e){return e[this.key]}}const v0=Object.create(null);function og(t){return t in v0?t+"$"+ ++v0[t]:(v0[t]=0,t+"$")}class Ot{constructor(e="key"){this.key=og(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const dn=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Aa=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let ig=null;const io=function(t,e,n){let r=ig||(ig=document.createRange());return r.setEnd(t,n==null?t.nodeValue.length:n),r.setStart(t,e||0),r},_i=function(t,e,n,r){return n&&(sg(t,e,n,r,-1)||sg(t,e,n,r,1))},kC=/^(img|br|input|textarea|hr)$/i;function sg(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:Ir(t))){let s=t.parentNode;if(!s||s.nodeType!=1||C0(t)||kC.test(t.nodeName)||t.contentEditable=="false")return!1;e=dn(t)+(o<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?Ir(t):0}else return!1}}function Ir(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function SC(t,e,n){for(let r=e==0,o=e==Ir(t);r||o;){if(t==n)return!0;let s=dn(t);if(t=t.parentNode,!t)return!1;r=r&&s==0,o=o&&s==Ir(t)}}function C0(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const ac=function(t){return t.focusNode&&_i(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Di(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function EC(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function xC(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Pr=typeof navigator!="undefined"?navigator:null,ag=typeof document!="undefined"?document:null,Io=Pr&&Pr.userAgent||"",k0=/Edge\/(\d+)/.exec(Io),lg=/MSIE \d/.exec(Io),S0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Io),Cn=!!(lg||S0||k0),Po=lg?document.documentMode:S0?+S0[1]:k0?+k0[1]:0,fr=!Cn&&/gecko\/(\d+)/i.test(Io);fr&&+(/Firefox\/(\d+)/.exec(Io)||[0,0])[1];const E0=!Cn&&/Chrome\/(\d+)/.exec(Io),sn=!!E0,TC=E0?+E0[1]:0,fn=!Cn&&!!Pr&&/Apple Computer/.test(Pr.vendor),ks=fn&&(/Mobile\/\w+/.test(Io)||!!Pr&&Pr.maxTouchPoints>2),Kn=ks||(Pr?/Mac/.test(Pr.platform):!1),AC=Pr?/Win/.test(Pr.platform):!1,pr=/Android \d/.test(Io),lc=!!ag&&"webkitFontSmoothing"in ag.documentElement.style,_C=lc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function DC(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function so(t,e){return typeof t=="number"?t:t[e]}function MC(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function cg(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,s=t.dom.ownerDocument;for(let a=n||t.dom;a;a=Aa(a)){if(a.nodeType!=1)continue;let l=a,c=l==s.body,u=c?DC(s):MC(l),d=0,f=0;if(e.top<u.top+so(r,"top")?f=-(u.top-e.top+so(o,"top")):e.bottom>u.bottom-so(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+so(o,"top")-u.top:e.bottom-u.bottom+so(o,"bottom")),e.left<u.left+so(r,"left")?d=-(u.left-e.left+so(o,"left")):e.right>u.right-so(r,"right")&&(d=e.right-u.right+so(o,"right")),d||f)if(c)s.defaultView.scrollBy(d,f);else{let p=l.scrollLeft,h=l.scrollTop;f&&(l.scrollTop+=f),d&&(l.scrollLeft+=d);let m=l.scrollLeft-p,g=l.scrollTop-h;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function NC(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let s=(e.left+e.right)/2,a=n+1;a<Math.min(innerHeight,e.bottom);a+=5){let l=t.root.elementFromPoint(s,a);if(!l||l==t.dom||!t.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=n-20){r=l,o=c.top;break}}return{refDOM:r,refTop:o,stack:ug(t.dom)}}function ug(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Aa(r));return e}function BC({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;dg(n,r==0?0:r-e)}function dg(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:s}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=s&&(r.scrollLeft=s)}}let Ss=null;function OC(t){if(t.setActive)return t.setActive();if(Ss)return t.focus(Ss);let e=ug(t);t.focus(Ss==null?{get preventScroll(){return Ss={preventScroll:!0},!0}}:void 0),Ss||(Ss=!1,dg(e,0))}function fg(t,e){let n,r=2e8,o,s=0,a=e.top,l=e.top,c,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let p;if(d.nodeType==1)p=d.getClientRects();else if(d.nodeType==3)p=io(d).getClientRects();else continue;for(let h=0;h<p.length;h++){let m=p[h];if(m.top<=a&&m.bottom>=l){a=Math.max(m.bottom,a),l=Math.min(m.top,l);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){n=d,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&g&&(s=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!c&&m.left<=e.left&&m.right>=e.left&&(c=d,u={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(s=f+1)}}return!n&&c&&(n=c,o=u,r=0),n&&n.nodeType==3?IC(n,o):!n||r&&n.nodeType==1?{node:t,offset:s}:fg(n,o)}function IC(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let s=Lo(r,1);if(s.top!=s.bottom&&x0(e,s))return{node:t,offset:o+(e.left>=(s.left+s.right)/2?1:0)}}return{node:t,offset:0}}function x0(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function PC(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function LC(t,e,n){let{node:r,offset:o}=fg(e,n),s=-1;if(r.nodeType==1&&!r.firstChild){let a=r.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,o,s)}function RC(t,e,n,r){let o=-1;for(let s=e,a=!1;s!=t.dom;){let l=t.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!a||!l.contentDOM)){let c=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!a&&(a=!0,c.left>r.left||c.top>r.top?o=l.posBefore:(c.right<r.left||c.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?l.posBefore:l.posAfter}s=l.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function pg(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),s=o;;){let a=t.childNodes[s];if(a.nodeType==1){let l=a.getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(x0(e,u))return pg(a,e,u)}}if((s=(s+1)%r)==o)break}return t}function zC(t,e){let n=t.dom.ownerDocument,r,o=0,s=xC(n,e.left,e.top);s&&({node:r,offset:o}=s);let a=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),l;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let u=t.dom.getBoundingClientRect();if(!x0(e,u)||(a=pg(t.dom,e,u),!a))return null}if(fn)for(let u=a;r&&u;u=Aa(u))u.draggable&&(r=void 0);if(a=PC(a,e),r){if(fr&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&o++}r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=RC(t,r,o,e))}l==null&&(l=LC(t,a,e));let c=t.docView.nearestDesc(a,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function hg(t){return t.top<t.bottom||t.left<t.right}function Lo(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(hg(r))return r}return Array.prototype.find.call(n,hg)||t.getBoundingClientRect()}const FC=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function mg(t,e,n){let{node:r,offset:o,atom:s}=t.docView.domFromPos(e,n<0?-1:1),a=lc||fr;if(r.nodeType==3)if(a&&(FC.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let c=Lo(io(r,o,o),n);if(fr&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let u=Lo(io(r,o-1,o-1),-1);if(u.top==c.top){let d=Lo(io(r,o,o+1),-1);if(d.top!=c.top)return _a(d,d.left<u.left)}}return c}else{let c=o,u=o,d=n<0?1:-1;return n<0&&!o?(u++,d=-1):n>=0&&o==r.nodeValue.length?(c--,d=1):n<0?c--:u++,_a(Lo(io(r,c,u),d),d<0)}if(!t.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&o&&(n<0||o==Ir(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return T0(c.getBoundingClientRect(),!1)}if(s==null&&o<Ir(r)){let c=r.childNodes[o];if(c.nodeType==1)return T0(c.getBoundingClientRect(),!0)}return T0(r.getBoundingClientRect(),n>=0)}if(s==null&&o&&(n<0||o==Ir(r))){let c=r.childNodes[o-1],u=c.nodeType==3?io(c,Ir(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return _a(Lo(u,1),!1)}if(s==null&&o<Ir(r)){let c=r.childNodes[o];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?io(c,0,a?0:1):c.nodeType==1?c:null:null;if(u)return _a(Lo(u,-1),!0)}return _a(Lo(r.nodeType==3?io(r):r,-n),n>=0)}function _a(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function T0(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function gg(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function $C(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return gg(t,e,()=>{let{node:s}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let a=mg(t,o.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=io(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(n=="up"?a.top-d.top>(d.bottom-a.top)*2:d.bottom-a.bottom>(a.bottom-d.top)*2))return!1}}return!0})}const VC=/[\u0590-\u08ac]/;function HC(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,s=!o,a=o==r.parent.content.size,l=t.domSelection();return!VC.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?s:a:gg(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=t.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:g}=t.domSelectionRange(),b=m&&!h.contains(m.nodeType==1?m:m.parentNode)||c==m&&u==g;try{l.collapse(d,f),c&&(c!=d||u!=f)&&l.extend&&l.extend(c,u)}catch{}return p!=null&&(l.caretBidiLevel=p),b})}let bg=null,yg=null,wg=!1;function jC(t,e,n){return bg==e&&yg==n?wg:(bg=e,yg=n,wg=n=="up"||n=="down"?$C(t,e,n):HC(t,e,n))}const Gn=0,vg=1,Mi=2,Lr=3;class Da{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=Gn,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let s,a;if(e==this.contentDOM)s=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.previousSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(a)+a.size:this.posAtStart}else{let s,a;if(e==this.contentDOM)s=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.nextSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(a):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>dn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!1;break}if(s.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!0;break}if(s.nextSibling)break}}return(o==null?r>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let s=this.getDesc(o),a;if(s&&(!n||s.node))if(r&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return s}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let s=this.getDesc(o);if(s)return s.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],s=r+o.size;if(r==e&&s!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<s)return o.descAt(e-r-o.border);r=s}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let s=0;r<this.children.length;r++){let a=this.children[r],l=s+a.size;if(l>e||a instanceof Sg){o=e-s;break}s=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof Cg&&s.side>=0;r--);if(n<=0){let s,a=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?dn(s.dom)+1:0}}else{let s,a=!0;for(;s=r<this.children.length?this.children[r]:null,!(!s||s.dom.parentNode==this.contentDOM);r++,a=!1);return s&&a&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?dn(s.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,s=-1;for(let a=r,l=0;;l++){let c=this.children[l],u=a+c.size;if(o==-1&&e<=u){let d=a+c.border;if(e>=d&&n<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,n,d);e=a;for(let f=l;f>0;f--){let p=this.children[f-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=dn(p.dom)+1;break}e-=p.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let d=l+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){s=dn(f.dom);break}n+=f.size}s==-1&&(s=this.contentDOM.childNodes.length);break}a=u}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:s}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let s=Math.min(e,n),a=Math.max(e,n);for(let p=0,h=0;p<this.children.length;p++){let m=this.children[p],g=h+m.size;if(s>h&&a<g)return m.setSelection(e-h-m.border,n-h-m.border,r,o);h=g}let l=this.domFromPos(e,e?-1:1),c=n==e?l:this.domFromPos(n,n?-1:1),u=r.getSelection(),d=!1;if((fr||fn)&&e==n){let{node:p,offset:h}=l;if(p.nodeType==3){if(d=!!(h&&p.nodeValue[h-1]==`
`),d&&h==p.nodeValue.length)for(let m=p,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(l=c={node:g.parentNode,offset:dn(g)+1});break}let b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let m=p.childNodes[h-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(fr&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(o=!0)}if(!(o||d&&fn)&&_i(l.node,l.offset,u.anchorNode,u.anchorOffset)&&_i(c.node,c.offset,u.focusNode,u.focusOffset))return;let f=!1;if((u.extend||e==n)&&!d){u.collapse(l.node,l.offset);try{e!=n&&u.extend(c.node,c.offset),f=!0}catch{}}if(!f){if(e>n){let h=l;l=c,c=h}let p=document.createRange();p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let s=this.children[o],a=r+s.size;if(r==a?e<=a&&n>=r:e<a&&n>r){let l=r+s.border,c=a-s.border;if(e>=l&&n<=c){this.dirty=e==r||n==a?Mi:vg,e==l&&n==c&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Lr:s.markDirty(e-l,n-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Mi:Lr}r=a}this.dirty=Mi}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Mi:vg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Cg extends Da{constructor(e,n,r,o){let s,a=n.type.toDOM;if(typeof a=="function"&&(a=a(r,()=>{if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(e){return this.dirty==Gn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class UC extends Da{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Ni extends Da{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let s=o.nodeViews[n.type.name],a=s&&s(n,o,r);return(!a||!a.dom)&&(a=Br.renderSpec(document,n.type.spec.toDOM(n,r))),new Ni(e,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&Lr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Lr&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Gn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Gn}}slice(e,n,r){let o=Ni.create(this.parent,this.mark,!0,r),s=this.children,a=this.size;n<a&&(s=D0(s,n,a,r)),e>0&&(s=D0(s,0,e,r));for(let l=0;l<s.length;l++)s[l].parent=o;return o.children=s,o}}class Ro extends Da{constructor(e,n,r,o,s,a,l,c,u){super(e,[],s,a),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,s,a){let l=s.nodeViews[n.type.name],c,u=l&&l(n,s,()=>{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},r,o),d=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=Br.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let p=d;return d=Tg(d,r,n),u?c=new qC(e,n,r,o,d,f||null,p,u,s,a+1):n.isText?new cc(e,n,r,o,d,p,s):new Ro(e,n,r,o,d,f||null,p,s,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y.empty)}return e}matchesNode(e,n,r){return this.dirty==Gn&&e.eq(this.node)&&_0(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,s=e.composing?this.localCompositionInfo(e,n):null,a=s&&s.pos>-1?s:null,l=s&&s.pos<0,c=new KC(this,a&&a.node,e);XC(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?c.syncToMarks(u.spec.marks,r,e):u.type.side>=0&&!f&&c.syncToMarks(d==this.node.childCount?nt.none:this.node.child(d).marks,r,e),c.placeWidget(u,e,o)},(u,d,f,p)=>{c.syncToMarks(u.marks,r,e);let h;c.findNodeMatch(u,d,f,p)||l&&e.state.selection.from>o&&e.state.selection.to<o+u.nodeSize&&(h=c.findIndexWithChild(s.node))>-1&&c.updateNodeAt(u,d,f,h,e)||c.updateNextNode(u,d,f,e,p,o)||c.addNode(u,d,f,e,o),o+=u.nodeSize}),c.syncToMarks([],r,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Mi)&&(a&&this.protectLocalComposition(e,a),Eg(this.contentDOM,this.children,e),ks&&YC(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Be)||r<n||o>n+this.node.content.size)return null;let s=e.domSelectionRange(),a=ZC(s.focusNode,s.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let l=a.nodeValue,c=QC(this.node.content,l,r-n,o-n);return c<0?null:{node:a,pos:c,text:l}}else return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new UC(this,s,n,o);e.input.compositionNodes.push(a),this.children=D0(this.children,r,r+o.length,e,a)}update(e,n,r,o){return this.dirty==Lr||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Gn}updateOuterDeco(e){if(_0(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=xg(this.dom,this.nodeDOM,A0(this.outerDeco,this.node,n),A0(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function kg(t,e,n,r,o){Tg(r,e,t);let s=new Ro(void 0,t,e,n,r,r,r,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class cc extends Ro{constructor(e,n,r,o,s,a,l){super(e,n,r,o,s,null,a,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Lr||this.dirty!=Gn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Gn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=Gn,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),s=document.createTextNode(o.text);return new cc(this.parent,o,this.outerDeco,this.innerDeco,s,s,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Lr)}get domAtom(){return!1}}class Sg extends Da{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Gn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class qC extends Ro{constructor(e,n,r,o,s,a,l,c,u,d){super(e,n,r,o,s,a,l,u,d),this.spec=c}update(e,n,r,o){if(this.dirty==Lr)return!1;if(this.spec.update){let s=this.spec.update(e,n,r);return s&&this.updateInner(e,n,r,o),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Eg(t,e,n){let r=t.firstChild,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=a.dom;if(l.parentNode==t){for(;l!=r;)r=Ag(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(a instanceof Ni){let c=r?r.previousSibling:t.lastChild;Eg(a.contentDOM,a.children,n),r=c?c.nextSibling:t.firstChild}}for(;r;)r=Ag(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Ma=function(t){t&&(this.nodeName=t)};Ma.prototype=Object.create(null);const Bi=[new Ma];function A0(t,e,n){if(t.length==0)return Bi;let r=n?Bi[0]:new Ma,o=[r];for(let s=0;s<t.length;s++){let a=t[s].type.attrs;if(!!a){a.nodeName&&o.push(r=new Ma(a.nodeName));for(let l in a){let c=a[l];c!=null&&(n&&o.length==1&&o.push(r=new Ma(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+c:l=="style"?r.style=(r.style?r.style+";":"")+c:l!="nodeName"&&(r[l]=c))}}}return o}function xg(t,e,n,r){if(n==Bi&&r==Bi)return e;let o=e;for(let s=0;s<r.length;s++){let a=r[s],l=n[s];if(s){let c;l&&l.nodeName==a.nodeName&&o!=t&&(c=o.parentNode)&&c.nodeName.toLowerCase()==a.nodeName||(c=document.createElement(a.nodeName),c.pmIsDeco=!0,c.appendChild(o),l=Bi[0]),o=c}WC(o,l||Bi[0],a)}return o}function WC(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<r.length;s++)o.indexOf(r[s])==-1&&t.classList.remove(r[s]);for(let s=0;s<o.length;s++)r.indexOf(o[s])==-1&&t.classList.add(o[s]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function Tg(t,e,n){return xg(t,t,Bi,A0(e,n,t.nodeType!=1))}function _0(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Ag(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class KC{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=GC(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,s=this.stack.length>>1,a=Math.min(s,e.length);for(;o<a&&(o==s-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<s;)this.destroyRest(),this.top.dirty=Gn,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[s])&&!this.isLocked(u.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=Ni.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,o){let s=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,r))s=this.top.children.indexOf(a,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let u=this.top.children[l];if(u.matchesNode(e,n,r)&&!this.preMatch.matched.has(u)){s=l;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(e,n,r,o,s){let a=this.top.children[o];return a.dirty==Lr&&a.dom==a.contentDOM&&(a.dirty=Mi),a.update(e,n,r,s)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,s,a){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof Ro){let u=this.preMatch.matched.get(c);if(u!=null&&u!=s)return!1;let d=c.dom,f,p=this.isLocked(d)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=Lr&&_0(n,c.outerDeco));if(!p&&c.update(e,n,r,o))return this.destroyBetween(this.index,l),c.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(f=this.recreateWrapper(c,e,n,r,o,a)))return this.top.children[this.index]=f,f.dirty=Mi,f.updateChildren(o,a+1),f.dirty=Gn,this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,s,a){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let l=Ro.create(this.top,n,r,o,s,a);if(!l.contentDOM)return null;l.children=e.children,e.children=[],e.destroy();for(let c of l.children)c.parent=l;return l}addNode(e,n,r,o,s){let a=Ro.create(this.top,e,n,r,o,s);a.contentDOM&&a.updateChildren(o,s+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let s=new Cg(this.top,e,n,r);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Ni;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof cc)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((fn||sn)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new Sg(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function GC(t,e){let n=e,r=n.children.length,o=t.childCount,s=new Map,a=[];e:for(;o>0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof Ni)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=l.node;if(!!c){if(c!=t.child(o-1))break;--o,s.set(l,o),a.push(l)}}return{index:o,matched:s,matches:a.reverse()}}function JC(t,e){return t.type.side-e.type.side}function XC(t,e,n,r){let o=e.locals(t),s=0;if(o.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);r(d,o,e.forChild(s,d),u),s+=d.nodeSize}return}let a=0,l=[],c=null;for(let u=0;;){if(a<o.length&&o[a].to==s){let m=o[a++],g;for(;a<o.length&&o[a].to==s;)(g||(g=[m])).push(o[a++]);if(g){g.sort(JC);for(let b=0;b<g.length;b++)n(g[b],u,!!c)}else n(m,u,!!c)}let d,f;if(c)f=-1,d=c,c=null;else if(u<t.childCount)f=u,d=t.child(u++);else break;for(let m=0;m<l.length;m++)l[m].to<=s&&l.splice(m--,1);for(;a<o.length&&o[a].from<=s&&o[a].to>s;)l.push(o[a++]);let p=s+d.nodeSize;if(d.isText){let m=p;a<o.length&&o[a].from<m&&(m=o[a].from);for(let g=0;g<l.length;g++)l[g].to<m&&(m=l[g].to);m<p&&(c=d.cut(m-s),d=d.cut(0,m-s),p=m,f=-1)}let h=d.isInline&&!d.isLeaf?l.filter(m=>!m.inline):l.slice();r(d,h,e.forChild(s,d),f),s=p}}function YC(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function ZC(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Ir(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function QC(t,e,n,r){for(let o=0,s=0;o<t.childCount&&s<=r;){let a=t.child(o++),l=s;if(s+=a.nodeSize,!a.isText)continue;let c=a.text;for(;o<t.childCount;){let u=t.child(o++);if(s+=u.nodeSize,!u.isText)break;c+=u.text}if(s>=n){let u=l<r?c.lastIndexOf(e,r-l-1):-1;if(u>=0&&u+e.length+l>=n)return l+u;if(n==r&&c.length>=r+e.length-l&&c.slice(r-l,r-l+e.length)==e)return r}}return-1}function D0(t,e,n,r,o){let s=[];for(let a=0,l=0;a<t.length;a++){let c=t[a],u=l,d=l+=c.size;u>=n||d<=e?s.push(c):(u<e&&s.push(c.slice(0,e-u,r)),o&&(s.push(o),o=void 0),d>n&&s.push(c.slice(n-u,c.size,r)))}return s}function M0(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),s=o&&o.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let l=r.resolve(a),c,u;if(ac(n)){for(c=l;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&_e.isSelectable(d)&&o.parent&&!(d.isInline&&SC(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;u=new _e(a==f?l:r.resolve(f))}}else{let d=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null;c=r.resolve(d)}if(!u){let d=e=="pointer"||t.state.selection.head<l.pos&&!s?1:-1;u=B0(t,c,l,d)}return u}function _g(t){return t.editable?t.hasFocus():Pg(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function ao(t,e=!1){let n=t.state.selection;if(Bg(t,n),!!_g(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&sn){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&_i(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)t9(t);else{let{anchor:r,head:o}=n,s,a;Dg&&!(n instanceof Be)&&(n.$from.parent.inlineContent||(s=Mg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=Mg(t,n.to))),t.docView.setSelection(r,o,t.root,e),Dg&&(s&&Ng(s),a&&Ng(a)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&e9(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Dg=fn||sn&&TC<63;function Mg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,s=r?n.childNodes[r-1]:null;if(fn&&o&&o.contentEditable=="false")return N0(o);if((!o||o.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(o)return N0(o);if(s)return N0(s)}}function N0(t){return t.contentEditable="true",fn&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Ng(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function e9(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!_g(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function t9(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,dn(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Cn&&Po<=11&&(r.disabled=!0,r.disabled=!1)}function Bg(t,e){if(e instanceof _e){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Og(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Og(t)}function Og(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function B0(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Be.between(e,n,r)}function Ig(t){return t.editable&&!t.hasFocus()?!1:Pg(t)}function Pg(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function n9(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return _i(e.node,e.offset,n.anchorNode,n.anchorOffset)}function O0(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),s=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return s&&Ie.findFrom(s,e)}function Oi(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Lg(t,e,n){let r=t.state.selection;if(r instanceof Be){if(!r.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let o=O0(t.state,e);return o&&o instanceof _e?Oi(t,o):!1}else if(!(Kn&&n.indexOf("m")>-1)){let o=r.$head,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,a;if(!s||s.isText)return!1;let l=e<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(a=t.docView.descAt(l))&&!a.contentDOM?_e.isSelectable(s)?Oi(t,new _e(e<0?t.state.doc.resolve(o.pos-s.nodeSize):o)):lc?Oi(t,new Be(t.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else{if(r instanceof _e&&r.node.isInline)return Oi(t,new Be(e>0?r.$to:r.$from));{let o=O0(t.state,e);return o?Oi(t,o):!1}}}function uc(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Na(t){if(t.contentEditable=="false")return!0;let e=t.pmViewDesc;return e&&e.size==0&&(t.nextSibling||t.nodeName!="BR")}function Ba(t,e){return e<0?r9(t):Rg(t)}function r9(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,s,a=!1;for(fr&&n.nodeType==1&&r<uc(n)&&Na(n.childNodes[r])&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Na(l))o=n,s=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(zg(n))break;{let l=n.previousSibling;for(;l&&Na(l);)o=n.parentNode,s=dn(l),l=l.previousSibling;if(l)n=l,r=uc(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}a?I0(t,n,r):o&&I0(t,o,s)}function Rg(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=uc(n),s,a;for(;;)if(r<o){if(n.nodeType!=1)break;let l=n.childNodes[r];if(Na(l))s=n,a=++r;else break}else{if(zg(n))break;{let l=n.nextSibling;for(;l&&Na(l);)s=l.parentNode,a=dn(l)+1,l=l.nextSibling;if(l)n=l,r=0,o=uc(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}s&&I0(t,s,a)}function zg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function o9(t,e){for(;t&&e==t.childNodes.length&&!C0(t);)e=dn(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){if(t=t.childNodes[e],t.nodeType==3)return t;e=0}}function i9(t,e){for(;t&&!e&&!C0(t);)e=dn(t),t=t.parentNode;for(;t&&e;){if(t=t.childNodes[e-1],t.nodeType==3)return t;e=t.childNodes.length}}function I0(t,e,n){if(e.nodeType!=3){let s,a;(a=o9(e,n))?(e=a,n=0):(s=i9(e,n))&&(e=s,n=s.nodeValue.length)}let r=t.domSelection();if(ac(r)){let s=document.createRange();s.setEnd(e,n),s.setStart(e,n),r.removeAllRanges(),r.addRange(s)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&ao(t)},50)}function Fg(t,e){let n=t.state.doc.resolve(e);if(!(sn||AC)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let s=t.coordsAtPos(e-1),a=(s.top+s.bottom)/2;if(a>o.top&&a<o.bottom&&Math.abs(s.left-o.left)>1)return s.left<o.left?"ltr":"rtl"}if(e<n.end()){let s=t.coordsAtPos(e+1),a=(s.top+s.bottom)/2;if(a>o.top&&a<o.bottom&&Math.abs(s.left-o.left)>1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function $g(t,e,n){let r=t.state.selection;if(r instanceof Be&&!r.empty||n.indexOf("s")>-1||Kn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=O0(t.state,e);if(a&&a instanceof _e)return Oi(t,a)}if(!o.parent.inlineContent){let a=e<0?o:s,l=r instanceof vn?Ie.near(a,e):Ie.findFrom(a,e);return l?Oi(t,l):!1}return!1}function Vg(t,e){if(!(t.state.selection instanceof Be))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=t.state.tr;return e<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),t.dispatch(a),!0}return!1}function Hg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function s9(t){if(!fn||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Hg(t,r,"true"),setTimeout(()=>Hg(t,r,"false"),20)}return!1}function a9(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function l9(t,e){let n=e.keyCode,r=a9(e);if(n==8||Kn&&n==72&&r=="c")return Vg(t,-1)||Ba(t,-1);if(n==46&&!e.shiftKey||Kn&&n==68&&r=="c")return Vg(t,1)||Ba(t,1);if(n==13||n==27)return!0;if(n==37||Kn&&n==66&&r=="c"){let o=n==37?Fg(t,t.state.selection.from)=="ltr"?-1:1:-1;return Lg(t,o,r)||Ba(t,o)}else if(n==39||Kn&&n==70&&r=="c"){let o=n==39?Fg(t,t.state.selection.from)=="ltr"?1:-1:1;return Lg(t,o,r)||Ba(t,o)}else{if(n==38||Kn&&n==80&&r=="c")return $g(t,-1,r)||Ba(t,-1);if(n==40||Kn&&n==78&&r=="c")return s9(t)||$g(t,1,r)||Rg(t);if(r==(Kn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function jg(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:o,openEnd:s}=e;for(;o>1&&s>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,s--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=t.someProp("clipboardSerializer")||Br.fromSchema(t.state.schema),l=Yg(),c=l.createElement("div");c.appendChild(a.serializeFragment(r,{document:l}));let u=c.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=Jg[u.nodeName.toLowerCase()]);){for(let h=d.length-1;h>=0;h--){let m=l.createElement(d[h]);for(;c.firstChild;)m.appendChild(c.firstChild);c.appendChild(m),f++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${s}${f?` -${f}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
`);return{dom:c,text:p}}function Ug(t,e,n,r,o){let s=o.parent.type.spec.code,a,l;if(!n&&!e)return null;let c=e&&(r||s||!n);if(c){if(t.someProp("transformPastedText",p=>{e=p(e,s||r,t)}),s)return e?new ue(Y.from(t.state.schema.text(e.replace(/\r\n?/g,`
`))),0,0):ue.empty;let f=t.someProp("clipboardTextParser",p=>p(e,o,r,t));if(f)l=f;else{let p=o.marks(),{schema:h}=t.state,m=Br.fromSchema(h);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let b=a.appendChild(document.createElement("p"));g&&b.appendChild(m.serializeNode(h.text(g,p)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),a=d9(n),lc&&f9(a);let u=a&&a.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||ps.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||d),context:o,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!c9.test(p.parentNode.nodeName)?{ignore:!0}:null}})),d)l=p9(Gg(l,+d[1],+d[2]),d[4]);else if(l=ue.maxOpen(u9(l.content,o),!0),l.openStart||l.openEnd){let f=0,p=0;for(let h=l.content.firstChild;f<l.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=l.content.lastChild;p<l.openEnd&&!h.type.spec.isolating;p++,h=h.lastChild);l=Gg(l,f,p)}return t.someProp("transformPasted",f=>{l=f(l,t)}),l}const c9=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function u9(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),s,a=[];if(t.forEach(l=>{if(!a)return;let c=o.findWrapping(l.type),u;if(!c)return a=null;if(u=a.length&&s.length&&Wg(c,s,l,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=Kg(a[a.length-1],s.length));let d=qg(l,c);a.push(d),o=o.matchType(d.type),s=c}}),a)return Y.from(a)}return t}function qg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,Y.from(t));return t}function Wg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let s=Wg(t,e,n,r.lastChild,o+1);if(s)return r.copy(r.content.replaceChild(r.childCount-1,s));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(Y.from(qg(n,t,o+1))))}}function Kg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Kg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(n.append(r))}function P0(t,e,n,r,o,s){let a=e<0?t.firstChild:t.lastChild,l=a.content;return t.childCount>1&&(s=0),o<r-1&&(l=P0(l,e,n,r,o+1,s)),o>=n&&(l=e<0?a.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(Y.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(l))}function Gg(t,e,n){return e<t.openStart&&(t=new ue(P0(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new ue(P0(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Jg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Xg=null;function Yg(){return Xg||(Xg=document.implementation.createHTMLDocument("title"))}function d9(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Yg().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Jg[r[1].toLowerCase()])&&(t=o.map(s=>"<"+s+">").join("")+t+o.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=t,o)for(let s=0;s<o.length;s++)n=n.querySelector(o[s])||n;return n}function f9(t){let e=t.querySelectorAll(sn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function p9(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:s,openEnd:a}=t;for(let l=r.length-2;l>=0;l-=2){let c=n.nodes[r[l]];if(!c||c.hasRequiredAttrs())break;o=Y.from(c.create(r[l+1],o)),s++,a++}return new ue(o,s,a)}const pn={},hn={},h9={touchstart:!0,touchmove:!0};class m9{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function g9(t){for(let e in pn){let n=pn[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{y9(t,r)&&!R0(t,r)&&(t.editable||!(r.type in hn))&&n(t,r)},h9[e]?{passive:!0}:void 0)}fn&&t.dom.addEventListener("input",()=>null),L0(t)}function zo(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function b9(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function L0(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>R0(t,r))})}function R0(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function y9(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function w9(t,e){!R0(t,e)&&pn[e.type]&&(t.editable||!(e.type in hn))&&pn[e.type](t,e)}hn.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Qg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(pr&&sn&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ks&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,Di(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||l9(t,n)?n.preventDefault():zo(t,"key")},hn.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},hn.keypress=(t,e)=>{let n=e;if(Qg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Kn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Be)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function dc(t){return{left:t.clientX,top:t.clientY}}function v9(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function z0(t,e,n,r,o){if(r==-1)return!1;let s=t.state.doc.resolve(r);for(let a=s.depth+1;a>0;a--)if(t.someProp(e,l=>a>s.depth?l(t,n,s.nodeAfter,s.before(a),o,!0):l(t,n,s.node(a),s.before(a),o,!1)))return!0;return!1}function Es(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function C9(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&_e.isSelectable(r)?(Es(t,new _e(n),"pointer"),!0):!1}function k9(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof _e&&(r=n.node);let s=t.state.doc.resolve(e);for(let a=s.depth+1;a>0;a--){let l=a>s.depth?s.nodeAfter:s.node(a);if(_e.isSelectable(l)){r&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?o=s.before(n.$from.depth):o=s.before(a);break}}return o!=null?(Es(t,_e.create(t.state.doc,o),"pointer"),!0):!1}function S9(t,e,n,r,o){return z0(t,"handleClickOn",e,n,r)||t.someProp("handleClick",s=>s(t,e,r))||(o?k9(t,n):C9(t,n))}function E9(t,e,n,r){return z0(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function x9(t,e,n,r){return z0(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||T9(t,n,r)}function T9(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Es(t,Be.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(a.inlineContent)Es(t,Be.create(r,l+1,l+1+a.content.size),"pointer");else if(_e.isSelectable(a))Es(t,_e.create(r,l),"pointer");else continue;return!0}}function F0(t){return fc(t)}const Zg=Kn?"metaKey":"ctrlKey";pn.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=F0(t),o=Date.now(),s="singleClick";o-t.input.lastClick.time<500&&v9(n,t.input.lastClick)&&!n[Zg]&&(t.input.lastClick.type=="singleClick"?s="doubleClick":t.input.lastClick.type=="doubleClick"&&(s="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:s};let a=t.posAtCoords(dc(n));!a||(s=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new A9(t,a,n,!!r)):(s=="doubleClick"?E9:x9)(t,a.pos,a.inside,n)?n.preventDefault():zo(t,"pointer"))};class A9{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Zg],this.allowDefault=r.shiftKey;let s,a;if(n.inside>-1)s=e.state.doc.nodeAt(n.inside),a=n.inside;else{let d=e.state.doc.resolve(n.pos);s=d.parent,a=d.depth?d.before():0}const l=o?null:r.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null;let{selection:u}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||u instanceof _e&&u.from<=a&&u.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&fr&&!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(()=>{this.view.input.mouseDown==this&&this.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)),zo(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ao(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(dc(e))),this.updateAllowDefault(e),this.allowDefault||!n?zo(this.view,"pointer"):S9(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||fn&&this.mightDrag&&!this.mightDrag.node.isAtom||sn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Es(this.view,Ie.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):zo(this.view,"pointer")}move(e){this.updateAllowDefault(e),zo(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}pn.touchstart=t=>{t.input.lastTouch=Date.now(),F0(t),zo(t,"pointer")},pn.touchmove=t=>{t.input.lastTouch=Date.now(),zo(t,"pointer")},pn.contextmenu=t=>F0(t);function Qg(t,e){return t.composing?!0:fn&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const _9=pr?5e3:-1;hn.compositionstart=hn.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),fc(t,!0),t.markCursor=null;else if(fc(t),fr&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,s=r.focusOffset;o&&o.nodeType==1&&s!=0;){let a=s<0?o.lastChild:o.childNodes[s-1];if(!a)break;if(a.nodeType==3){t.domSelection().collapse(a,a.nodeValue.length);break}else o=a,s=-1}}t.input.composing=!0}e4(t,_9)},hn.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,e4(t,20))};function e4(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>fc(t),e))}function t4(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=D9());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function D9(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function fc(t,e=!1){if(!(pr&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),t4(t),e||t.docView&&t.docView.dirty){let n=M0(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function M9(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const xs=Cn&&Po<15||ks&&_C<604;pn.copy=hn.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let s=xs?null:n.clipboardData,a=r.content(),{dom:l,text:c}=jg(t,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",c)):M9(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function N9(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function B9(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Oa(t,r.value,null,o,e):Oa(t,r.textContent,r.innerHTML,o,e)},50)}function Oa(t,e,n,r,o){let s=Ug(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,o,s||ue.empty)))return!0;if(!s)return!1;let a=N9(s),l=a?t.state.tr.replaceSelectionWith(a,r):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}hn.paste=(t,e)=>{let n=e;if(t.composing&&!pr)return;let r=xs?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Oa(t,r.getData("text/plain"),r.getData("text/html"),o,n)?n.preventDefault():B9(t,n)};class O9{constructor(e,n){this.slice=e,this.move=n}}const n4=Kn?"altKey":"ctrlKey";pn.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,s=o.empty?null:t.posAtCoords(dc(n));if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof _e?o.to-1:o.to))){if(r&&r.mightDrag)t.dispatch(t.state.tr.setSelection(_e.create(t.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&t.dispatch(t.state.tr.setSelection(_e.create(t.state.doc,u.posBefore)))}}let a=t.state.selection.content(),{dom:l,text:c}=jg(t,a);n.dataTransfer.clearData(),n.dataTransfer.setData(xs?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",xs||n.dataTransfer.setData("text/plain",c),t.dragging=new O9(a,!n[n4])},pn.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},hn.dragover=hn.dragenter=(t,e)=>e.preventDefault(),hn.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(dc(n));if(!o)return;let s=t.state.doc.resolve(o.pos),a=r&&r.slice;a?t.someProp("transformPasted",m=>{a=m(a,t)}):a=Ug(t,n.dataTransfer.getData(xs?"Text":"text/plain"),xs?null:n.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!n[n4]);if(t.someProp("handleDrop",m=>m(t,n,a||ue.empty,l))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?q1(t.state.doc,s.pos,a):s.pos;c==null&&(c=s.pos);let u=t.state.tr;l&&u.deleteSelection();let d=u.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=u.doc;if(f?u.replaceRangeWith(d,d,a.content.firstChild):u.replaceRange(d,d,a),u.doc.eq(p))return;let h=u.doc.resolve(d);if(f&&_e.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new _e(h));else{let m=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((g,b,y,S)=>m=S),u.setSelection(B0(t,h,u.doc.resolve(m)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},pn.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&ao(t)},20))},pn.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},pn.beforeinput=(t,e)=>{if(sn&&pr&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",s=>s(t,Di(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in hn)pn[t]=hn[t];function Ia(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class $0{constructor(e,n){this.toDOM=e,this.spec=n||Ii,this.side=this.spec.side||0}map(e,n,r,o){let{pos:s,deleted:a}=e.mapResult(n.from+o,this.side<0?-1:1);return a?null:new Yt(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof $0&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ia(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Fo{constructor(e,n){this.attrs=e,this.spec=n||Ii}map(e,n,r,o){let s=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return s>=a?null:new Yt(s,a,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Fo&&Ia(this.attrs,e.attrs)&&Ia(this.spec,e.spec)}static is(e){return e.type instanceof Fo}destroy(){}}class V0{constructor(e,n){this.attrs=e,this.spec=n||Ii}map(e,n,r,o){let s=e.mapResult(n.from+o,1);if(s.deleted)return null;let a=e.mapResult(n.to+o,-1);return a.deleted||a.pos<=s.pos?null:new Yt(s.pos-r,a.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),s;return o==n.from&&!(s=e.child(r)).isText&&o+s.nodeSize==n.to}eq(e){return this==e||e instanceof V0&&Ia(this.attrs,e.attrs)&&Ia(this.spec,e.spec)}destroy(){}}class Yt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Yt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Yt(e,e,new $0(n,r))}static inline(e,n,r,o){return new Yt(e,n,new Fo(r,o))}static node(e,n,r,o){return new Yt(e,n,new V0(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Fo}}const Ts=[],Ii={};class mt{constructor(e,n){this.local=e.length?e:Ts,this.children=n.length?n:Ts}static create(e,n){return n.length?pc(n,e,0,Ii):an}find(e,n,r){let o=[];return this.findInner(e==null?0:e,n==null?1e9:n,o,0,r),o}findInner(e,n,r,o,s){for(let a=0;a<this.local.length;a++){let l=this.local[a];l.from<=n&&l.to>=e&&(!s||s(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>e){let l=this.children[a]+1;this.children[a+2].findInner(e-l,n-l,r,o+l,s)}}map(e,n,r){return this==an||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Ii)}mapInner(e,n,r,o,s){let a;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,r,o);c&&c.type.valid(n,c)?(a||(a=[])).push(c):s.onRemove&&s.onRemove(this.local[l].spec)}return this.children.length?I9(this.children,a||[],e,n,r,o,s):a?new mt(a.sort(Pi),Ts):an}add(e,n){return n.length?this==an?mt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,s=0;e.forEach((l,c)=>{let u=c+r,d;if(!!(d=o4(n,l,u))){for(o||(o=this.children.slice());s<o.length&&o[s]<c;)s+=3;o[s]==c?o[s+2]=o[s+2].addInner(l,d,u+1):o.splice(s,0,c,c+l.nodeSize,pc(d,l,u+1,Ii)),s+=3}});let a=r4(s?i4(n):n,-r);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||a.splice(l--,1);return new mt(a.length?this.local.concat(a).sort(Pi):this.local,o||this.children)}remove(e){return e.length==0||this==an?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let s=0;s<r.length;s+=3){let a,l=r[s]+n,c=r[s+1]+n;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>l&&f.to<c&&(e[d]=null,(a||(a=[])).push(f));if(!a)continue;r==this.children&&(r=this.children.slice());let u=r[s+2].removeInner(a,l+1);u!=an?r[s+2]=u:(r.splice(s,3),s-=3)}if(o.length){for(let s=0,a;s<e.length;s++)if(a=e[s])for(let l=0;l<o.length;l++)o[l].eq(a,n)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new mt(o,r):an}forChild(e,n){if(this==an)return this;if(n.isLeaf)return mt.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let s=e+1,a=s+n.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<a&&c.to>s&&c.type instanceof Fo){let u=Math.max(s,c.from)-s,d=Math.min(a,c.to)-s;u<d&&(o||(o=[])).push(c.copy(u,d))}}if(o){let l=new mt(o.sort(Pi),Ts);return r?new $o([l,r]):l}return r||an}eq(e){if(this==e)return!0;if(!(e instanceof mt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let 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}locals(e){return H0(this.localsInner(e))}localsInner(e){if(this==an)return Ts;if(e.inlineContent||!this.local.some(Fo.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Fo||n.push(this.local[r]);return n}}mt.empty=new mt([],[]),mt.removeOverlap=H0;const an=mt.empty;class $o{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,Ii));return $o.from(r)}forChild(e,n){if(n.isLeaf)return mt.empty;let r=[];for(let o=0;o<this.members.length;o++){let s=this.members[o].forChild(e,n);s!=an&&(s instanceof $o?r=r.concat(s.members):r.push(s))}return $o.from(r)}eq(e){if(!(e instanceof $o)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let s=this.members[o].localsInner(e);if(!!s.length)if(!n)n=s;else{r&&(n=n.slice(),r=!1);for(let a=0;a<s.length;a++)n.push(s[a])}}return n?H0(r?n:n.sort(Pi)):Ts}static from(e){switch(e.length){case 0:return an;case 1:return e[0];default:return new $o(e.every(n=>n instanceof mt)?e:e.reduce((n,r)=>n.concat(r instanceof mt?r:r.members),[]))}}}function I9(t,e,n,r,o,s,a){let l=t.slice();for(let u=0,d=s;u<n.maps.length;u++){let f=0;n.maps[u].forEach((p,h,m,g)=>{let b=g-m-(h-p);for(let y=0;y<l.length;y+=3){let S=l[y+1];if(S<0||p>S+d-f)continue;let k=l[y]+d-f;h>=k?l[y+1]=p<=k?-2:-1:m>=o&&b&&(l[y]+=b,l[y+1]+=b)}f+=b}),d=n.maps[u].map(d,-1)}let c=!1;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){c=!0,l[u+1]=-1;continue}let d=n.map(t[u]+s),f=d-o;if(f<0||f>=r.content.size){c=!0;continue}let p=n.map(t[u+1]+s,-1),h=p-o,{index:m,offset:g}=r.content.findIndex(f),b=r.maybeChild(m);if(b&&g==f&&g+b.nodeSize==h){let y=l[u+2].mapInner(n,b,d+1,t[u]+s+1,a);y!=an?(l[u]=f,l[u+1]=h,l[u+2]=y):(l[u+1]=-2,c=!0)}else c=!0}if(c){let u=P9(l,t,e,n,o,s,a),d=pc(u,r,0,a);e=d.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,p=0;f<d.children.length;f+=3){let h=d.children[f];for(;p<l.length&&l[p]<h;)p+=3;l.splice(p,0,d.children[f],d.children[f+1],d.children[f+2])}}return new mt(e.sort(Pi),l)}function r4(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new Yt(o.from+e,o.to+e,o.type))}return n}function P9(t,e,n,r,o,s,a){function l(c,u){for(let d=0;d<c.local.length;d++){let f=c.local[d].map(r,o,u);f?n.push(f):a.onRemove&&a.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)l(c.children[d+2],c.children[d]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&l(t[c+2],e[c]+s+1);return n}function o4(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let s=0,a;s<t.length;s++)(a=t[s])&&a.from>n&&a.to<r&&((o||(o=[])).push(a),t[s]=null);return o}function i4(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function pc(t,e,n,r){let o=[],s=!1;e.forEach((l,c)=>{let u=o4(t,l,c+n);if(u){s=!0;let d=pc(u,l,n+c+1,r);d!=an&&o.push(c,c+l.nodeSize,d)}});let a=r4(s?i4(t):t,-n).sort(Pi);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||(r.onRemove&&r.onRemove(a[l].spec),a.splice(l--,1));return a.length||o.length?new mt(a,o):an}function Pi(t,e){return t.from-e.from||t.to-e.to}function H0(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let s=e[o];if(s.from==r.from){s.to!=r.to&&(e==t&&(e=t.slice()),e[o]=s.copy(s.from,r.to),s4(e,o+1,s.copy(r.to,s.to)));continue}else{s.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,s.from),s4(e,o,r.copy(s.from,r.to)));break}}}return e}function s4(t,e,n){for(;e<t.length&&Pi(n,t[e])>0;)e++;t.splice(e,0,n)}function j0(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=an&&e.push(r)}),t.cursorWrapper&&e.push(mt.create(t.state.doc,[t.cursorWrapper.deco])),$o.from(e)}const L9={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},R9=Cn&&Po<=11;class z9{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class F9{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new z9,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Cn&&Po<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),R9&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,L9)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(!!Ig(this.view)){if(this.suppressingSelectionUpdates)return ao(this.view);if(Cn&&Po<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&_i(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let s=e.focusNode;s;s=Aa(s))n.add(s);for(let s=e.anchorNode;s;s=Aa(s))if(n.has(s)){r=s;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Ig(e)&&!this.ignoreSelectionChange(r),s=-1,a=-1,l=!1,c=[];if(e.editable)for(let d=0;d<n.length;d++){let f=this.registerMutation(n[d],c);f&&(s=s<0?f.from:Math.min(f.from,s),a=a<0?f.to:Math.max(f.to,a),f.typeOver&&(l=!0))}if(fr&&c.length>1){let d=c.filter(f=>f.nodeName=="BR");if(d.length==2){let f=d[0],p=d[1];f.parentNode&&f.parentNode.parentNode==p.parentNode?p.remove():f.remove()}}let u=null;s<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ac(r)&&(u=M0(e))&&u.eq(Ie.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ao(e),this.currentSelection.set(r),e.scrollToSelection()):(s>-1||o)&&(s>-1&&(e.docView.markDirty(s,a),$9(e)),this.handleDOMChange(s,a,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||ao(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++)n.push(e.addedNodes[d]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,s=e.nextSibling;if(Cn&&Po<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:p}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(s=p)}let a=o&&o.parentNode==e.target?dn(o)+1:0,l=r.localPosFromDOM(e.target,a,-1),c=s&&s.parentNode==e.target?dn(s):e.target.childNodes.length,u=r.localPosFromDOM(e.target,c,1);return{from:l,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let a4=new WeakMap,l4=!1;function $9(t){if(!a4.has(t)&&(a4.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=fr,l4)return;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."),l4=!0}}function V9(t){let e;function n(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,s=e.endContainer,a=e.endOffset,l=t.domAtPos(t.state.selection.anchor);return _i(l.node,l.offset,s,a)&&([r,o,s,a]=[s,a,r,o]),{anchorNode:r,anchorOffset:o,focusNode:s,focusOffset:a}}function H9(t,e,n){let{node:r,fromOffset:o,toOffset:s,from:a,to:l}=t.docView.parseRange(e,n),c=t.domSelectionRange(),u,d=c.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],ac(c)||u.push({node:c.focusNode,offset:c.focusOffset})),sn&&t.input.lastKeyCode===8)for(let b=s;b>o;b--){let y=r.childNodes[b-1],S=y.pmViewDesc;if(y.nodeName=="BR"&&!S){s=b;break}if(!S||S.size)break}let f=t.state.doc,p=t.someProp("domParser")||ps.fromSchema(t.state.schema),h=f.resolve(a),m=null,g=p.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:s,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:j9,context:h});if(u&&u[0].pos!=null){let b=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=b),m={anchor:b+a,head:y+a}}return{doc:g,sel:m,from:a,to:l}}function j9(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(fn&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||fn&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const U9=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function q9(t,e,n,r,o){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,L=M0(t,D);if(L&&!t.state.selection.eq(L)){if(sn&&pr&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",V=>V(t,Di(13,"Enter"))))return;let $=t.state.tr.setSelection(L);D=="pointer"?$.setMeta("pointer",!0):D=="key"&&$.scrollIntoView(),s&&$.setMeta("composition",s),t.dispatch($)}return}let a=t.state.doc.resolve(e),l=a.sharedDepth(n);e=a.before(l+1),n=t.state.doc.resolve(n).after(l+1);let c=t.state.selection,u=H9(t,e,n),d=t.state.doc,f=d.slice(u.from,u.to),p,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,h="end"):(p=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let m=G9(f.content,u.doc.content,u.from,p,h);if((ks&&t.input.lastIOSEnter>Date.now()-225||pr)&&o.some(D=>D.nodeType==1&&!U9.test(D.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",D=>D(t,Di(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof Be&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=c4(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let L=t.state.tr.setSelection(D);s&&L.setMeta("composition",s),t.dispatch(L)}}return}if(sn&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let D=m.endB-m.start;u.sel={anchor:u.sel.anchor+D,head:u.sel.anchor+D}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Be&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Cn&&Po<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>u.from&&u.doc.textBetween(m.start-u.from-1,m.start-u.from+1)==" \xA0"&&(m.start--,m.endA--,m.endB--);let g=u.doc.resolveNoCache(m.start-u.from),b=u.doc.resolveNoCache(m.endB-u.from),y=d.resolve(m.start),S=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=m.endA,k;if((ks&&t.input.lastIOSEnter>Date.now()-225&&(!S||o.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!S&&g.pos<u.doc.content.size&&!g.sameParent(b)&&(k=Ie.findFrom(u.doc.resolve(g.pos+1),1,!0))&&k.head==b.pos)&&t.someProp("handleKeyDown",D=>D(t,Di(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&K9(d,m.start,m.endA,g,b)&&t.someProp("handleKeyDown",D=>D(t,Di(8,"Backspace")))){pr&&sn&&t.domObserver.suppressSelectionUpdates();return}sn&&pr&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),pr&&!S&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==m.endA&&(m.endB-=2,b=u.doc.resolveNoCache(m.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,Di(13,"Enter"))})},20));let C=m.start,_=m.endA,E,T,M;if(S){if(g.pos==b.pos)Cn&&Po<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>ao(t),20)),E=t.state.tr.delete(C,_),T=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(M=W9(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start()))))E=t.state.tr,M.type=="add"?E.addMark(C,_,M.mark):E.removeMark(C,_,M.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let D=g.parent.textBetween(g.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",L=>L(t,C,_,D)))return;E=t.state.tr.insertText(D,C,_)}}if(E||(E=t.state.tr.replace(C,_,u.doc.slice(m.start-u.from,m.endB-u.from))),u.sel){let D=c4(t,E.doc,u.sel);D&&!(sn&&pr&&t.composing&&D.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==C||D.head==E.mapping.map(_)-1)||Cn&&D.empty&&D.head==C)&&E.setSelection(D)}T&&E.ensureMarks(T),s&&E.setMeta("composition",s),t.dispatch(E.scrollIntoView())}function c4(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:B0(t,e.resolve(n.anchor),e.resolve(n.head))}function W9(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,s=r,a,l,c;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)s=n[d].removeFromSet(s);if(o.length==1&&s.length==0)l=o[0],a="add",c=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&s.length==1)l=s[0],a="remove",c=d=>d.mark(l.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(c(e.child(d)));if(Y.from(u).eq(t))return{mark:l,type:a}}function K9(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||U0(r,!0,!1)<o.pos)return!1;let s=t.resolve(e);if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let a=t.resolve(U0(s,!0,!0));return!a.parent.isTextblock||a.pos>n||U0(a,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function U0(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let s=t.node(r).maybeChild(t.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function G9(t,e,n,r,o){let s=t.findDiffStart(e,n);if(s==null)return null;let{a,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let c=Math.max(0,s-Math.min(a,l));r-=a+c-s}return a<s&&t.size<e.size?(s-=r<=s&&r>=a?s-r:0,l=s+(l-a),a=s):l<s&&(s-=r<=s&&r>=l?s-r:0,a=s+(a-l),l=s),{start:s,endA:a,endB:l}}class J9{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new m9,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(h4),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=f4(this),d4(this),this.nodeViews=p4(this),this.docView=kg(this.state.doc,u4(this),j0(this),this.dom,this),this.domObserver=new F9(this,(r,o,s,a)=>q9(this,r,o,s,a)),this.domObserver.start(),g9(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&L0(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(h4),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){let r=this.state,o=!1,s=!1;e.storedMarks&&this.composing&&(t4(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=p4(this);Y9(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&L0(this),this.editable=f4(this),d4(this);let l=j0(this),c=u4(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(s=!0);let f=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&NC(this);if(s){this.domObserver.stop();let p=d&&(Cn||sn)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&X9(r.selection,e.selection);if(d){let h=sn?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=kg(e.doc,c,l,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&n9(this))?ao(this,p):(Bg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&BC(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof _e){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&cg(this,n.getBoundingClientRect(),e)}else cg(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;a<this.directPlugins.length;a++){let l=this.directPlugins[a].props[e];if(l!=null&&(o=n?n(l):l))return o}let s=this.state.plugins;if(s)for(let a=0;a<s.length;a++){let l=s[a].props[e];if(l!=null&&(o=n?n(l):l))return o}}hasFocus(){if(Cn){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&OC(this.dom),ao(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}posAtCoords(e){return zC(this,e)}coordsAtPos(e,n=1){return mg(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return jC(this,n||this.state,e)}pasteHTML(e,n){return Oa(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Oa(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){!this.docView||(b9(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],j0(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return w9(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return fn&&this.root.nodeType===11&&EC(this.dom.ownerDocument)==this.dom?V9(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function u4(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Yt.node(0,t.state.doc.content.size,e)]}function d4(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Yt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function f4(t){return!t.someProp("editable",e=>e(t.state)===!1)}function X9(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function p4(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Y9(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function h4(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Vo={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:"'"},hc={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Z9=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),Q9=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Zt=0;Zt<10;Zt++)Vo[48+Zt]=Vo[96+Zt]=String(Zt);for(var Zt=1;Zt<=24;Zt++)Vo[Zt+111]="F"+Zt;for(var Zt=65;Zt<=90;Zt++)Vo[Zt]=String.fromCharCode(Zt+32),hc[Zt]=String.fromCharCode(Zt);for(var q0 in Vo)hc.hasOwnProperty(q0)||(hc[q0]=Vo[q0]);function ek(t){var e=Z9&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Q9&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?hc:Vo)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const tk=typeof navigator!="undefined"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function nk(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,s,a;for(let l=0;l<e.length-1;l++){let c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))s=!0;else if(/^mod$/i.test(c))tk?a=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function rk(t){let e=Object.create(null);for(let n in t)e[nk(n)]=t[n];return e}function W0(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function ok(t){return new wt({props:{handleKeyDown:K0(t)}})}function K0(t){let e=rk(t);return function(n,r){let o=ek(r),s,a=e[W0(o,r)];if(a&&a(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[W0(o,r,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(s=Vo[r.keyCode])&&s!=o){let l=e[W0(s,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const ik=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function sk(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const ak=(t,e,n)=>{let r=sk(t,n);if(!r)return!1;let o=m4(r);if(!o){let a=r.blockRange(),l=a&&gs(a);return l==null?!1:(e&&e(t.tr.lift(a,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(!s.type.spec.isolating&&y4(t,o,e))return!0;if(r.parent.content.size==0&&(As(s,"end")||_e.isSelectable(s))){let a=p0(t.doc,r.before(),r.after(),ue.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(As(s,"end")?Ie.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):_e.create(l.doc,o.pos-s.nodeSize)),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1};function As(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const lk=(t,e,n)=>{let{$head:r,empty:o}=t.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;s=m4(r)}let a=s&&s.nodeBefore;return!a||!_e.isSelectable(a)?!1:(e&&e(t.tr.setSelection(_e.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function m4(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function ck(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const uk=(t,e,n)=>{let r=ck(t,n);if(!r)return!1;let o=g4(r);if(!o)return!1;let s=o.nodeAfter;if(y4(t,o,e))return!0;if(r.parent.content.size==0&&(As(s,"start")||_e.isSelectable(s))){let a=p0(t.doc,r.before(),r.after(),ue.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(As(s,"start")?Ie.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):_e.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+s.nodeSize).scrollIntoView()),!0):!1},dk=(t,e,n)=>{let{$head:r,empty:o}=t.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;s=g4(r)}let a=s&&s.nodeAfter;return!a||!_e.isSelectable(a)?!1:(e&&e(t.tr.setSelection(_e.create(t.doc,s.pos)).scrollIntoView()),!0)};function g4(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const fk=(t,e)=>{let n=t.selection,r=n instanceof _e,o;if(r){if(n.node.isTextblock||!Oo(t.doc,n.from))return!1;o=n.from}else if(o=U1(t.doc,n.from,-1),o==null)return!1;if(e){let s=t.tr.join(o);r&&s.setSelection(_e.create(s.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},pk=(t,e)=>{let n=t.selection,r;if(n instanceof _e){if(n.node.isTextblock||!Oo(t.doc,n.to))return!1;r=n.to}else if(r=U1(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},hk=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),s=o&&gs(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)},mk=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
`).scrollIntoView()),!0)};function b4(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const gk=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),s=n.indexAfter(-1),a=b4(o.contentMatchAt(s));if(!a||!o.canReplaceWith(s,s,a))return!1;if(e){let l=n.after(),c=t.tr.replaceWith(l,l,a.createAndFill());c.setSelection(Ie.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},bk=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof vn||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=b4(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let a=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(a,s.createAndFill());l.setSelection(Be.create(l.doc,a+1)),e(l.scrollIntoView())}return!0},yk=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(bs(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let r=n.blockRange(),o=r&&gs(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},wk=(t,e)=>{let{$from:n,to:r}=t.selection,o,s=n.sharedDepth(r);return s==0?!1:(o=n.before(s),e&&e(t.tr.setSelection(_e.create(t.doc,o))),!0)};function vk(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,s=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(o.isTextblock||Oo(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function y4(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,s,a;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(vk(t,e,n))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&a.matchType(s[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,p=Y.empty;for(let g=s.length-1;g>=0;g--)p=Y.from(s[g].create(null,p));p=Y.from(r.copy(p));let h=t.tr.step(new qt(e.pos-1,f,e.pos,f,new ue(p,1,0),s.length,!0)),m=f+2*s.length;Oo(h.doc,m)&&h.join(m),n(h.scrollIntoView())}return!0}let c=Ie.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),d=u&&gs(u);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(u,d).scrollIntoView()),!0;if(l&&As(o,"start",!0)&&As(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let h=o,m=1;for(;!h.isTextblock;h=h.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,h.content)){if(n){let g=Y.empty;for(let y=p.length-1;y>=0;y--)g=Y.from(p[y].copy(g));let b=t.tr.step(new qt(e.pos-p.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new ue(g,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function w4(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(n&&n(e.tr.setSelection(Be.create(e.doc,t<0?o.start(s):o.end(s)))),!0):!1}}const Ck=w4(-1),kk=w4(1);function Sk(t,e=null){return function(n,r){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=a&&f0(a,t,e);return l?(r&&r(n.tr.wrap(a,l).scrollIntoView()),!0):!1}}function v4(t,e=null){return function(n,r){let o=!1;for(let s=0;s<n.selection.ranges.length&&!o;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];n.doc.nodesBetween(a,l,(c,u)=>{if(o)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)o=!0;else{let d=n.doc.resolve(u),f=d.index();o=d.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let s=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:l},$to:{pos:c}}=n.selection.ranges[a];s.setBlockType(l,c,t,e)}r(s.scrollIntoView())}return!0}}typeof navigator!="undefined"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os!="undefined"&&os.platform&&os.platform()=="darwin";function Ek(t,e=null){return function(n,r){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(t)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let d=n.doc.resolve(a.start-2);c=new Yl(d,d,a.depth),a.endIndex<a.parent.childCount&&(a=new Yl(o,n.doc.resolve(s.end(a.depth)),a.depth)),l=!0}let u=f0(c,t,e,a);return u?(r&&r(xk(n.tr,a,u,l,t).scrollIntoView()),!0):!1}}function xk(t,e,n,r,o){let s=Y.empty;for(let d=n.length-1;d>=0;d--)s=Y.from(n[d].type.create(n[d].attrs,s));t.step(new qt(e.start-(r?2:0),e.end,e.start,e.end,new ue(s,0,0),n.length,!0));let a=0;for(let d=0;d<n.length;d++)n[d].type==o&&(a=d+1);let l=n.length-a,c=e.start+n.length-(r?2:0),u=e.parent;for(let d=e.startIndex,f=e.endIndex,p=!0;d<f;d++,p=!1)!p&&bs(t.doc,c,l)&&(t.split(c,l),c+=2*l),c+=u.child(d).nodeSize;return t}function Tk(t){return function(e,n){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==t);return s?n?r.node(s.depth-1).type==t?Ak(e,n,t,s):_k(e,n,s):!0:!1}}function Ak(t,e,n,r){let o=t.tr,s=r.end,a=r.$to.end(r.depth);s<a&&(o.step(new qt(s-1,a,s,a,new ue(Y.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Yl(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));const l=gs(r);if(l==null)return!1;o.lift(r,l);let c=o.mapping.map(s,-1)-1;return Oo(o.doc,c)&&o.join(c),e(o.scrollIntoView()),!0}function _k(t,e,n){let r=t.tr,o=n.parent;for(let h=n.end,m=n.endIndex-1,g=n.startIndex;m>g;m--)h-=o.child(m).nodeSize,r.delete(h-1,h+1);let s=r.doc.resolve(n.start),a=s.nodeAfter;if(r.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,c=n.endIndex==o.childCount,u=s.node(-1),d=s.index(-1);if(!u.canReplace(d+(l?0:1),d+1,a.content.append(c?Y.empty:Y.from(o))))return!1;let f=s.pos,p=f+a.nodeSize;return r.step(new qt(f-(l?1:0),p+(c?1:0),f+1,p-1,new ue((l?Y.empty:Y.from(o.copy(Y.empty))).append(c?Y.empty:Y.from(o.copy(Y.empty))),l?0:1,c?0:1),l?0:1)),e(r.scrollIntoView()),!0}function Dk(t){return function(e,n){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,u=>u.childCount>0&&u.firstChild.type==t);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let l=s.parent,c=l.child(a-1);if(c.type!=t)return!1;if(n){let u=c.lastChild&&c.lastChild.type==l.type,d=Y.from(u?t.create():null),f=new ue(Y.from(t.create(null,Y.from(l.type.create(null,d)))),u?3:1,0),p=s.start,h=s.end;n(e.tr.step(new qt(p-(u?3:1),h,p,h,f,1,!0)).scrollIntoView())}return!0}}function mc(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:s}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,s=n.storedMarks,n}}}class gc{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:s}=r,a=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...d)=>{const f=c(...d)(a);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(s),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:s}=this,{view:a}=o,l=[],c=!!e,u=e||s.tr,d=()=>(!c&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),l.every(p=>p===!0)),f={...Object.fromEntries(Object.entries(r).map(([p,h])=>[p,(...g)=>{const b=this.buildProps(u,n),y=h(...g)(b);return l.push(y),f}])),run:d};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,s=e||r.tr,a=this.buildProps(s,o);return{...Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)({...a,dispatch:void 0})])),chain:()=>this.createChain(s,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:s}=this,{view:a}=o;s.storedMarks&&e.setStoredMarks(s.storedMarks);const l={tr:e,editor:o,view:a,state:mc({state:s,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([c,u])=>[c,(...d)=>u(...d)(l)]))}};return l}}class Mk{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ce(t,e,n){return t.config[e]===void 0&&t.parent?Ce(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Ce(t.parent,e,n):null}):t.config[e]}function bc(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function C4(t){const e=[],{nodeExtensions:n,markExtensions:r}=bc(t),o=[...n,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},c=Ce(a,"addGlobalAttributes",l);if(!c)return;c().forEach(d=>{d.types.forEach(f=>{Object.entries(d.attributes).forEach(([p,h])=>{e.push({type:f,name:p,attribute:{...s,...h}})})})})}),o.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},c=Ce(a,"addAttributes",l);if(!c)return;const u=c();Object.entries(u).forEach(([d,f])=>{const p={...s,...f};typeof(p==null?void 0:p.default)=="function"&&(p.default=p.default()),(p==null?void 0:p.isRequired)&&(p==null?void 0:p.default)===void 0&&delete p.default,e.push({type:a.name,name:d,attribute:p})})}),e}function Wt(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Ye(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,s])=>{if(!r[o]){r[o]=s;return}o==="class"?r[o]=[r[o],s].join(" "):o==="style"?r[o]=[r[o],s].join("; "):r[o]=s}),r},{})}function G0(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Ye(n,r),{})}function k4(t){return typeof t=="function"}function He(t,e=void 0,...n){return k4(t)?e?t.bind(e)(...n):t(...n):t}function Nk(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Bk(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function S4(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((s,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(n):Bk(n.getAttribute(a.name));return l==null?s:{...s,[a.name]:l}},{});return{...r,...o}}}}function E4(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Nk(n)?!1:n!=null))}function Ok(t,e){var n;const r=C4(t),{nodeExtensions:o,markExtensions:s}=bc(t),a=(n=o.find(u=>Ce(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(o.map(u=>{const d=r.filter(y=>y.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((y,S)=>{const k=Ce(S,"extendNodeSchema",f);return{...y,...k?k(u):{}}},{}),h=E4({...p,content:He(Ce(u,"content",f)),marks:He(Ce(u,"marks",f)),group:He(Ce(u,"group",f)),inline:He(Ce(u,"inline",f)),atom:He(Ce(u,"atom",f)),selectable:He(Ce(u,"selectable",f)),draggable:He(Ce(u,"draggable",f)),code:He(Ce(u,"code",f)),defining:He(Ce(u,"defining",f)),isolating:He(Ce(u,"isolating",f)),attrs:Object.fromEntries(d.map(y=>{var S;return[y.name,{default:(S=y==null?void 0:y.attribute)===null||S===void 0?void 0:S.default}]}))}),m=He(Ce(u,"parseHTML",f));m&&(h.parseDOM=m.map(y=>S4(y,d)));const g=Ce(u,"renderHTML",f);g&&(h.toDOM=y=>g({node:y,HTMLAttributes:G0(y,d)}));const b=Ce(u,"renderText",f);return b&&(h.toText=b),[u.name,h]})),c=Object.fromEntries(s.map(u=>{const d=r.filter(b=>b.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((b,y)=>{const S=Ce(y,"extendMarkSchema",f);return{...b,...S?S(u):{}}},{}),h=E4({...p,inclusive:He(Ce(u,"inclusive",f)),excludes:He(Ce(u,"excludes",f)),group:He(Ce(u,"group",f)),spanning:He(Ce(u,"spanning",f)),code:He(Ce(u,"code",f)),attrs:Object.fromEntries(d.map(b=>{var y;return[b.name,{default:(y=b==null?void 0:b.attribute)===null||y===void 0?void 0:y.default}]}))}),m=He(Ce(u,"parseHTML",f));m&&(h.parseDOM=m.map(b=>S4(b,d)));const g=Ce(u,"renderHTML",f);return g&&(h.toDOM=b=>g({mark:b,HTMLAttributes:G0(b,d)})),[u.name,h]}));return new Uv({topNode:a,nodes:l,marks:c})}function J0(t,e){return e.nodes[t]||e.marks[t]||null}function x4(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const Ik=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,s,a,l)=>{var c,u;n+=(((u=(c=o.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:o,pos:s,parent:a,index:l}))||o.textContent||"%leaf%").slice(0,Math.max(0,r-s))}),n};function X0(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class yc{constructor(e){this.find=e.find,this.handler=e.handler}}const Pk=(t,e)=>{if(X0(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Y0(t){var e;const{editor:n,from:r,to:o,text:s,rules:a,plugin:l}=t,{view:c}=n;if(c.composing)return!1;const u=c.state.doc.resolve(r);if(u.parent.type.spec.code||!!(!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(p=>p.type.spec.code)))return!1;let d=!1;const f=Ik(u)+s;return a.forEach(p=>{if(d)return;const h=Pk(f,p.find);if(!h)return;const m=c.state.tr,g=mc({state:c.state,transaction:m}),b={from:r-(h[0].length-s.length),to:o},{commands:y,chain:S,can:k}=new gc({editor:n,state:g});p.handler({state:g,range:b,match:h,commands:y,chain:S,can:k})===null||!m.steps.length||(m.setMeta(l,{transform:m,from:r,to:o,text:s}),c.dispatch(m),d=!0)}),d}function Lk(t){const{editor:e,rules:n}=t,r=new wt({state:{init(){return null},apply(o,s){const a=o.getMeta(r);return a||(o.selectionSet||o.docChanged?null:s)}},props:{handleTextInput(o,s,a,l){return Y0({editor:e,from:s,to:a,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Y0({editor:e,from:s.pos,to:s.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,s){if(s.key!=="Enter")return!1;const{$cursor:a}=o.state.selection;return a?Y0({editor:e,from:a.pos,to:a.pos,text:`
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Rk(t){return typeof t=="number"}class zk{constructor(e){this.find=e.find,this.handler=e.handler}}const Fk=(t,e)=>{if(X0(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function $k(t){const{editor:e,state:n,from:r,to:o,rule:s}=t,{commands:a,chain:l,can:c}=new gc({editor:e,state:n}),u=[];return n.doc.nodesBetween(r,o,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const h=Math.max(r,p),m=Math.min(o,p+f.content.size),g=f.textBetween(h-p,m-p,void 0,"\uFFFC");Fk(g,s.find).forEach(y=>{if(y.index===void 0)return;const S=h+y.index+1,k=S+y[0].length,C={from:n.tr.mapping.map(S),to:n.tr.mapping.map(k)},_=s.handler({state:n,range:C,match:y,commands:a,chain:l,can:c});u.push(_)})}),u.every(f=>f!==null)}function Vk(t){const{editor:e,rules:n}=t;let r=null,o=!1,s=!1;return n.map(l=>new wt({view(c){const u=d=>{var f;r=!((f=c.dom.parentElement)===null||f===void 0)&&f.contains(d.target)?c.dom.parentElement:null};return window.addEventListener("dragstart",u),{destroy(){window.removeEventListener("dragstart",u)}}},props:{handleDOMEvents:{drop:c=>(s=r===c.dom.parentElement,!1),paste:(c,u)=>{var d;const f=(d=u.clipboardData)===null||d===void 0?void 0:d.getData("text/html");return o=!!(f!=null&&f.includes("data-pm-slice")),!1}}},appendTransaction:(c,u,d)=>{const f=c[0],p=f.getMeta("uiEvent")==="paste"&&!o,h=f.getMeta("uiEvent")==="drop"&&!s;if(!p&&!h)return;const m=u.doc.content.findDiffStart(d.doc.content),g=u.doc.content.findDiffEnd(d.doc.content);if(!Rk(m)||!g||m===g.b)return;const b=d.tr,y=mc({state:d,transaction:b});if(!(!$k({editor:e,state:y,from:Math.max(m-1,0),to:g.b-1,rule:l})||!b.steps.length))return b}}))}function Hk(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class _s{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=_s.resolve(e),this.schema=Ok(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const s={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:J0(r.name,this.schema)};r.type==="mark"&&((o=He(Ce(r,"keepOnSplit",s)))!==null&&o!==void 0?o:!0)&&this.splittableMarks.push(r.name);const a=Ce(r,"onBeforeCreate",s);a&&this.editor.on("beforeCreate",a);const l=Ce(r,"onCreate",s);l&&this.editor.on("create",l);const c=Ce(r,"onUpdate",s);c&&this.editor.on("update",c);const u=Ce(r,"onSelectionUpdate",s);u&&this.editor.on("selectionUpdate",u);const d=Ce(r,"onTransaction",s);d&&this.editor.on("transaction",d);const f=Ce(r,"onFocus",s);f&&this.editor.on("focus",f);const p=Ce(r,"onBlur",s);p&&this.editor.on("blur",p);const h=Ce(r,"onDestroy",s);h&&this.editor.on("destroy",h)})}static resolve(e){const n=_s.sort(_s.flatten(e)),r=Hk(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Ce(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const s=Ce(r,"priority")||100,a=Ce(o,"priority")||100;return s>a?-1:s<a?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:J0(n.name,this.schema)},o=Ce(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=_s.sort([...this.extensions].reverse()),r=[],o=[],s=n.map(a=>{const l={name:a.name,options:a.options,storage:a.storage,editor:e,type:J0(a.name,this.schema)},c=[],u=Ce(a,"addKeyboardShortcuts",l);let d={};if(a.type==="mark"&&a.config.exitable&&(d.ArrowRight=()=>kn.handleExit({editor:e,mark:a})),u){const g=Object.fromEntries(Object.entries(u()).map(([b,y])=>[b,()=>y({editor:e})]));d={...d,...g}}const f=ok(d);c.push(f);const p=Ce(a,"addInputRules",l);x4(a,e.options.enableInputRules)&&p&&r.push(...p());const h=Ce(a,"addPasteRules",l);x4(a,e.options.enablePasteRules)&&h&&o.push(...h());const m=Ce(a,"addProseMirrorPlugins",l);if(m){const g=m();c.push(...g)}return c}).flat();return[Lk({editor:e,rules:r}),...Vk({editor:e,rules:o}),...s]}get attributes(){return C4(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=bc(this.extensions);return Object.fromEntries(n.filter(r=>!!Ce(r,"addNodeView")).map(r=>{const o=this.attributes.filter(c=>c.type===r.name),s={name:r.name,options:r.options,storage:r.storage,editor:e,type:Wt(r.name,this.schema)},a=Ce(r,"addNodeView",s);if(!a)return[];const l=(c,u,d,f)=>{const p=G0(c,o);return a()({editor:e,node:c,getPos:d,decorations:f,HTMLAttributes:p,extension:r})};return[r.name,l]}))}}function jk(t){return Object.prototype.toString.call(t).slice(8,-1)}function Z0(t){return jk(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function wc(t,e){const n={...t};return Z0(t)&&Z0(e)&&Object.keys(e).forEach(r=>{Z0(e[r])?r in t?n[r]=wc(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class it{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=He(Ce(this,"addOptions",{name:this.name}))),this.storage=He(Ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new it(e)}configure(e={}){const n=this.extend();return n.options=wc(this.options,e),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new it(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=He(Ce(n,"addOptions",{name:n.name})),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}}function T4(t,e,n){const{from:r,to:o}=e,{blockSeparator:s=`
`,textSerializers:a={}}=n||{};let l="",c=!0;return t.nodesBetween(r,o,(u,d,f,p)=>{var h;const m=a==null?void 0:a[u.type.name];m?(u.isBlock&&!c&&(l+=s,c=!0),f&&(l+=m({node:u,pos:d,parent:f,index:p,range:e}))):u.isText?(l+=(h=u==null?void 0:u.text)===null||h===void 0?void 0:h.slice(Math.max(r,d)-d,o-d),c=!1):u.isBlock&&!c&&(l+=s,c=!0)}),l}function A4(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Uk=it.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new wt({key:new Ot("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:s}=o,a=Math.min(...s.map(d=>d.$from.pos)),l=Math.max(...s.map(d=>d.$to.pos)),c=A4(n);return T4(r,{from:a,to:l},{textSerializers:c})}}})]}}),qk=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Wk=(t=!1)=>({commands:e})=>e.setContent("",t),Kk=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:s,$to:a})=>{t.doc.nodesBetween(s.pos,a.pos,(l,c)=>{if(l.type.isText)return;const{doc:u,mapping:d}=e,f=u.resolve(d.map(c)),p=u.resolve(d.map(c+l.nodeSize)),h=f.blockRange(p);if(!h)return;const m=gs(h);if(l.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(h.start,g)}(m||m===0)&&e.lift(h,m)})}),!0},Gk=t=>e=>t(e),Jk=()=>({state:t,dispatch:e})=>bk(t,e),Xk=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r.type){if(e){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},Yk=t=>({tr:e,state:n,dispatch:r})=>{const o=Wt(t,n.schema),s=e.selection.$anchor;for(let a=s.depth;a>0;a-=1)if(s.node(a).type===o){if(r){const c=s.before(a),u=s.after(a);e.delete(c,u).scrollIntoView()}return!0}return!1},Zk=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},Qk=()=>({state:t,dispatch:e})=>ik(t,e),eS=()=>({commands:t})=>t.keyboardShortcut("Enter"),tS=()=>({state:t,dispatch:e})=>gk(t,e);function vc(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:X0(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function Q0(t,e,n={}){return t.find(r=>r.type===e&&vc(r.attrs,n))}function nS(t,e,n={}){return!!Q0(t,e,n)}function Pa(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=Q0([...r.node.marks],e,n);if(!o)return;let s=r.index,a=t.start()+r.offset,l=s+1,c=a+r.node.nodeSize;for(Q0([...r.node.marks],e,n);s>0&&o.isInSet(t.parent.child(s-1).marks);)s-=1,a-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&nS([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function Ho(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const rS=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const s=Ho(t,r.schema),{doc:a,selection:l}=n,{$from:c,from:u,to:d}=l;if(o){const f=Pa(c,s,e);if(f&&f.from<=u&&f.to>=d){const p=Be.create(a,f.from,f.to);n.setSelection(p)}}return!0},oS=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function ef(t){return t instanceof Be}function lo(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function _4(t,e=null){if(!e)return null;const n=Ie.atStart(t),r=Ie.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,s=r.to;return e==="all"?Be.create(t,lo(0,o,s),lo(t.content.size,o,s)):Be.create(t,lo(e,o,s),lo(e,o,s))}function Cc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const iS=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:s})=>{e={scrollIntoView:!0,...e};const a=()=>{Cc()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(s&&t===null&&!ef(n.state.selection))return a(),!0;const l=_4(o.doc,t)||n.state.selection,c=n.state.selection.eq(l);return s&&(c||o.setSelection(l),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},sS=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),aS=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e);function D4(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function kc(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?Y.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),kc("",e,n)}if(typeof t=="string"){const r=ps.fromSchema(e);return n.slice?r.parseSlice(D4(t),n.parseOptions).content:r.parse(D4(t),n.parseOptions)}return kc("",e,n)}function lS(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof Xt||o instanceof qt))return;const s=t.mapping.maps[r];let a=0;s.forEach((l,c,u,d)=>{a===0&&(a=d)}),t.setSelection(Ie.near(t.doc.resolve(a),n))}const cS=t=>t.toString().startsWith("<"),uS=(t,e,n)=>({tr:r,dispatch:o,editor:s})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const a=kc(e,s.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(a.toString()==="<>")return!0;let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:t,u=!0,d=!0;if((cS(a)?a:[a]).forEach(p=>{p.check(),u=u?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),l===c&&d){const{parent:p}=r.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,c+=1)}u?Array.isArray(e)?r.insertText(e.map(p=>p.text||"").join(""),l,c):typeof e=="object"&&!!e&&!!e.text?r.insertText(e.text,l,c):r.insertText(e,l,c):r.replaceWith(l,c,a),n.updateSelection&&lS(r,r.steps.length-1,-1)}return!0},dS=()=>({state:t,dispatch:e})=>fk(t,e),fS=()=>({state:t,dispatch:e})=>pk(t,e),pS=()=>({state:t,dispatch:e})=>ak(t,e),hS=()=>({state:t,dispatch:e})=>uk(t,e);function M4(){return typeof navigator!="undefined"?/Mac/.test(navigator.platform):!1}function mS(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,s,a;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))s=!0;else if(/^mod$/i.test(c))Cc()||M4()?a=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),a&&(n=`Meta-${n}`),s&&(n=`Shift-${n}`),n}const gS=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const s=mS(t).split(/-(?!$)/),a=s.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))});return c==null||c.steps.forEach(u=>{const d=u.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function La(t,e,n={}){const{from:r,to:o,empty:s}=t.selection,a=e?Wt(e,t.schema):null,l=[];t.doc.nodesBetween(r,o,(f,p)=>{if(f.isText)return;const h=Math.max(r,p),m=Math.min(o,p+f.nodeSize);l.push({node:f,from:h,to:m})});const c=o-r,u=l.filter(f=>a?a.name===f.node.type.name:!0).filter(f=>vc(f.node.attrs,n,{strict:!1}));return s?!!u.length:u.reduce((f,p)=>f+p.to-p.from,0)>=c}const bS=(t,e={})=>({state:n,dispatch:r})=>{const o=Wt(t,n.schema);return La(n,o,e)?hk(n,r):!1},yS=()=>({state:t,dispatch:e})=>yk(t,e),wS=t=>({state:e,dispatch:n})=>{const r=Wt(t,e.schema);return Tk(r)(e,n)},vS=()=>({state:t,dispatch:e})=>mk(t,e);function Sc(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function N4(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const CS=(t,e)=>({tr:n,state:r,dispatch:o})=>{let s=null,a=null;const l=Sc(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(s=Wt(t,r.schema)),l==="mark"&&(a=Ho(t,r.schema)),o&&n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{s&&s===u.type&&n.setNodeMarkup(d,void 0,N4(u.attrs,e)),a&&u.marks.length&&u.marks.forEach(f=>{a===f.type&&n.addMark(d,d+u.nodeSize,a.create(N4(f.attrs,e)))})})}),!0):!1},kS=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),SS=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),ES=()=>({state:t,dispatch:e})=>lk(t,e),xS=()=>({state:t,dispatch:e})=>dk(t,e),TS=()=>({state:t,dispatch:e})=>wk(t,e),AS=()=>({state:t,dispatch:e})=>kk(t,e),_S=()=>({state:t,dispatch:e})=>Ck(t,e);function B4(t,e,n={}){return kc(t,e,{slice:!1,parseOptions:n})}const DS=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:s})=>{const{doc:a}=r,l=B4(t,o.schema,n);return s&&r.replaceWith(0,a.content.size,l).setMeta("preventUpdate",!e),!0};function MS(t,e){const n=new g0(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function NS(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function tf(t,e){const n=[];return t.descendants((r,o)=>{e(r)&&n.push({node:r,pos:o})}),n}function BS(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,s)=>{n(o)&&r.push({node:o,pos:s})}),r}function O4(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function nf(t){return e=>O4(e.$from,t)}function OS(t,e){const n=Br.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function IS(t,e){const n={from:0,to:t.content.size};return T4(t,n,e)}function In(t,e){const n=Ho(e,t.schema),{from:r,to:o,empty:s}=t.selection,a=[];s?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,c=>{a.push(...c.marks)});const l=a.find(c=>c.type.name===n.name);return l?{...l.attrs}:{}}function PS(t,e){const n=Wt(e,t.schema),{from:r,to:o}=t.selection,s=[];t.doc.nodesBetween(r,o,l=>{s.push(l)});const a=s.reverse().find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function I4(t,e){const n=Sc(typeof e=="string"?e:e.name,t.schema);return n==="node"?PS(t,e):n==="mark"?In(t,e):{}}function LS(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function RS(t){const e=LS(t);return e.length===1?e:e.filter((n,r)=>!e.filter((s,a)=>a!==r).some(s=>n.oldRange.from>=s.oldRange.from&&n.oldRange.to<=s.oldRange.to&&n.newRange.from>=s.newRange.from&&n.newRange.to<=s.newRange.to))}function zS(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,s)=>{const a=[];if(o.ranges.length)o.forEach((l,c)=>{a.push({from:l,to:c})});else{const{from:l,to:c}=n[s];if(l===void 0||c===void 0)return;a.push({from:l,to:c})}a.forEach(({from:l,to:c})=>{const u=e.slice(s).map(l,-1),d=e.slice(s).map(c),f=e.invert().map(u,-1),p=e.invert().map(d);r.push({oldRange:{from:f,to:p},newRange:{from:u,to:d}})})}),RS(r)}function Ec(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const s=n.resolve(t-1),a=Pa(s,o.type);!a||r.push({mark:o,...a})}):n.nodesBetween(t,e,(o,s)=>{r.push(...o.marks.map(a=>({from:s,to:s+o.nodeSize,mark:a})))}),r}function xc(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(s=>s.type===e&&s.name===r);return o?o.attribute.keepOnSplit:!1}))}function rf(t,e,n={}){const{empty:r,ranges:o}=t.selection,s=e?Ho(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>s?s.name===f.type.name:!0).find(f=>vc(f.attrs,n,{strict:!1}));let a=0;const l=[];if(o.forEach(({$from:f,$to:p})=>{const h=f.pos,m=p.pos;t.doc.nodesBetween(h,m,(g,b)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(h,b),S=Math.min(m,b+g.nodeSize);a+=S-y,l.push(...g.marks.map(C=>({mark:C,from:y,to:S})))})}),a===0)return!1;const c=l.filter(f=>s?s.name===f.mark.type.name:!0).filter(f=>vc(f.mark.attrs,n,{strict:!1})).reduce((f,p)=>f+p.to-p.from,0),u=l.filter(f=>s?f.mark.type!==s&&f.mark.type.excludes(s):!0).reduce((f,p)=>f+p.to-p.from,0);return(c>0?c+u:c)>=a}function FS(t,e,n={}){if(!e)return La(t,null,n)||rf(t,null,n);const r=Sc(e,t.schema);return r==="node"?La(t,e,n):r==="mark"?rf(t,e,n):!1}function of(t,e){const{nodeExtensions:n}=bc(e),r=n.find(a=>a.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},s=He(Ce(r,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function $S(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function VS(t){return t instanceof _e}function P4(t,e,n){const o=t.state.doc.content.size,s=lo(e,0,o),a=lo(n,0,o),l=t.coordsAtPos(s),c=t.coordsAtPos(a,-1),u=Math.min(l.top,c.top),d=Math.max(l.bottom,c.bottom),f=Math.min(l.left,c.left),p=Math.max(l.right,c.right),h=p-f,m=d-u,y={top:u,bottom:d,left:f,right:p,width:h,height:m,x:f,y:u};return{...y,toJSON:()=>y}}function HS(t,e,n){var r;const{selection:o}=e;let s=null;if(ef(o)&&(s=o.$cursor),s){const l=(r=t.storedMarks)!==null&&r!==void 0?r:s.marks();return!!n.isInSet(l)||!l.some(c=>c.type.excludes(n))}const{ranges:a}=o;return a.some(({$from:l,$to:c})=>{let u=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,c.pos,(d,f,p)=>{if(u)return!1;if(d.isInline){const h=!p||p.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(g=>g.type.excludes(n));u=h&&m}return!u}),u})}const jS=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:s}=n,{empty:a,ranges:l}=s,c=Ho(t,r.schema);if(o)if(a){const u=In(r,c);n.addStoredMark(c.create({...u,...e}))}else l.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;r.doc.nodesBetween(d,f,(p,h)=>{const m=Math.max(h,d),g=Math.min(h+p.nodeSize,f);p.marks.find(y=>y.type===c)?p.marks.forEach(y=>{c===y.type&&n.addMark(m,g,c.create({...y.attrs,...e}))}):n.addMark(m,g,c.create(e))})});return HS(r,n,c)},US=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),qS=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const s=Wt(t,n.schema);return s.isTextblock?o().command(({commands:a})=>v4(s,e)(n)?!0:a.clearNodes()).command(({state:a})=>v4(s,e)(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},WS=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=lo(t,0,r.content.size),s=_e.create(r,o);e.setSelection(s)}return!0},KS=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:s}=typeof t=="number"?{from:t,to:t}:t,a=Be.atStart(r).from,l=Be.atEnd(r).to,c=lo(o,a,l),u=lo(s,a,l),d=Be.create(r,c,u);e.setSelection(d)}return!0},GS=t=>({state:e,dispatch:n})=>{const r=Wt(t,e.schema);return Dk(r)(e,n)};function L4(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const JS=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:s,doc:a}=e,{$from:l,$to:c}=s,u=o.extensionManager.attributes,d=xc(u,l.node().type.name,l.node().attrs);if(s instanceof _e&&s.node.isBlock)return!l.parentOffset||!bs(a,l.pos)?!1:(r&&(t&&L4(n,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const f=c.parentOffset===c.parent.content.size;s instanceof Be&&e.deleteSelection();const p=l.depth===0?void 0:NS(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=f&&p?[{type:p,attrs:d}]:void 0,m=bs(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!m&&bs(e.doc,e.mapping.map(l.pos),1,p?[{type:p}]:void 0)&&(m=!0,h=p?[{type:p,attrs:d}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,h),p&&!f&&!l.parentOffset&&l.parent.type!==p)){const g=e.mapping.map(l.before()),b=e.doc.resolve(g);l.node(-1).canReplaceWith(b.index(),b.index()+1,p)&&e.setNodeMarkup(e.mapping.map(l.before()),p)}t&&L4(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},XS=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var s;const a=Wt(t,n.schema),{$from:l,$to:c}=n.selection,u=n.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let b=Y.empty;const y=l.index(-1)?1:l.index(-2)?2:3;for(let T=l.depth-y;T>=l.depth-3;T-=1)b=Y.from(l.node(T).copy(b));const S=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,k=xc(f,l.node().type.name,l.node().attrs),C=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(k))||void 0;b=b.append(Y.from(a.createAndFill(null,C)||void 0));const _=l.before(l.depth-(y-1));e.replace(_,l.after(-S),new ue(b,4-y,0));let E=-1;e.doc.nodesBetween(_,e.doc.content.size,(T,M)=>{if(E>-1)return!1;T.isTextblock&&T.content.size===0&&(E=M+1)}),E>-1&&e.setSelection(Be.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h=xc(f,d.type.name,d.attrs),m=xc(f,l.node().type.name,l.node().attrs);e.delete(l.pos,c.pos);const g=p?[{type:a,attrs:h},{type:p,attrs:m}]:[{type:a,attrs:h}];if(!bs(e.doc,l.pos,2))return!1;if(r){const{selection:b,storedMarks:y}=n,{splittableMarks:S}=o.extensionManager,k=y||b.$to.parentOffset&&b.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!k||!r)return!0;const C=k.filter(_=>S.includes(_.type.name));e.ensureMarks(C)}return!0},sf=(t,e)=>{const n=nf(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Oo(t.doc,n.pos)&&t.join(n.pos),!0},af=(t,e)=>{const n=nf(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Oo(t.doc,r)&&t.join(r),!0};var YS=Object.freeze({__proto__:null,blur:qk,clearContent:Wk,clearNodes:Kk,command:Gk,createParagraphNear:Jk,deleteCurrentNode:Xk,deleteNode:Yk,deleteRange:Zk,deleteSelection:Qk,enter:eS,exitCode:tS,extendMarkRange:rS,first:oS,focus:iS,forEach:sS,insertContent:aS,insertContentAt:uS,joinUp:dS,joinDown:fS,joinBackward:pS,joinForward:hS,keyboardShortcut:gS,lift:bS,liftEmptyBlock:yS,liftListItem:wS,newlineInCode:vS,resetAttributes:CS,scrollIntoView:kS,selectAll:SS,selectNodeBackward:ES,selectNodeForward:xS,selectParentNode:TS,selectTextblockEnd:AS,selectTextblockStart:_S,setContent:DS,setMark:jS,setMeta:US,setNode:qS,setNodeSelection:WS,setTextSelection:KS,sinkListItem:GS,splitBlock:JS,splitListItem:XS,toggleList:(t,e,n,r={})=>({editor:o,tr:s,state:a,dispatch:l,chain:c,commands:u,can:d})=>{const{extensions:f,splittableMarks:p}=o.extensionManager,h=Wt(t,a.schema),m=Wt(e,a.schema),{selection:g,storedMarks:b}=a,{$from:y,$to:S}=g,k=y.blockRange(S),C=b||g.$to.parentOffset&&g.$from.marks();if(!k)return!1;const _=nf(E=>of(E.type.name,f))(g);if(k.depth>=1&&_&&k.depth-_.depth<=1){if(_.node.type===h)return u.liftListItem(m);if(of(_.node.type.name,f)&&h.validContent(_.node.content)&&l)return c().command(()=>(s.setNodeMarkup(_.pos,h),!0)).command(()=>sf(s,h)).command(()=>af(s,h)).run()}return!n||!C||!l?c().command(()=>d().wrapInList(h,r)?!0:u.clearNodes()).wrapInList(h,r).command(()=>sf(s,h)).command(()=>af(s,h)).run():c().command(()=>{const E=d().wrapInList(h,r),T=C.filter(M=>p.includes(M.type.name));return s.ensureMarks(T),E?!0:u.clearNodes()}).wrapInList(h,r).command(()=>sf(s,h)).command(()=>af(s,h)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:s=!1}=n,a=Ho(t,r.schema);return rf(r,a,e)?o.unsetMark(a,{extendEmptyMarkRange:s}):o.setMark(a,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const s=Wt(t,r.schema),a=Wt(e,r.schema);return La(r,s,n)?o.setNode(a):o.setNode(s,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=Wt(t,n.schema);return La(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let s;if(o.spec.isInputRules&&(s=o.getState(t))){if(e){const a=t.tr,l=s.transform;for(let c=l.steps.length-1;c>=0;c-=1)a.step(l.steps[c].invert(l.docs[c]));if(s.text){const c=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,t.schema.text(s.text,c))}else a.delete(s.from,s.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(s=>{t.removeMark(s.$from.pos,s.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var s;const{extendEmptyMarkRange:a=!1}=e,{selection:l}=n,c=Ho(t,r.schema),{$from:u,empty:d,ranges:f}=l;if(!o)return!0;if(d&&a){let{from:p,to:h}=l;const m=(s=u.marks().find(b=>b.type===c))===null||s===void 0?void 0:s.attrs,g=Pa(u,c,m);g&&(p=g.from,h=g.to),n.removeMark(p,h,c)}else f.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,c)});return n.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let s=null,a=null;const l=Sc(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(s=Wt(t,r.schema)),l==="mark"&&(a=Ho(t,r.schema)),o&&n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,p)=>{s&&s===f.type&&n.setNodeMarkup(p,void 0,{...f.attrs,...e}),a&&f.marks.length&&f.marks.forEach(h=>{if(a===h.type){const m=Math.max(p,u),g=Math.min(p+f.nodeSize,d);n.addMark(m,g,a.create({...h.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=Wt(t,n.schema);return Sk(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=Wt(t,n.schema);return Ek(o,e)(n,r)}});const ZS=it.create({name:"commands",addCommands(){return{...YS}}}),QS=it.create({name:"editable",addProseMirrorPlugins(){return[new wt({key:new Ot("editable"),props:{editable:()=>this.editor.options.editable}})]}}),eE=it.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new wt({key:new Ot("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),tE=it.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:l})=>{const{selection:c,doc:u}=l,{empty:d,$anchor:f}=c,{pos:p,parent:h}=f,m=Ie.atStart(u).from===p;return!d||!m||!h.type.isTextblock||h.textContent.length?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},s={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Cc()||M4()?s:o},addProseMirrorPlugins(){return[new wt({key:new Ot("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:s,to:a}=e.selection,l=Ie.atStart(e.doc).from,c=Ie.atEnd(e.doc).to;if(o||!(s===l&&a===c)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,p=mc({state:n,transaction:f}),{commands:h}=new gc({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),nE=it.create({name:"tabindex",addProseMirrorPlugins(){return[new wt({key:new Ot("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var rE=Object.freeze({__proto__:null,ClipboardTextSerializer:Uk,Commands:ZS,Editable:QS,FocusEvents:eE,Keymap:tE,Tabindex:nE});const oE=`.ProseMirror {
position: relative;
}
.ProseMirror {
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}
.ProseMirror [contenteditable="false"] {
white-space: normal;
}
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
white-space: pre-wrap;
}
.ProseMirror pre {
white-space: pre-wrap;
}
img.ProseMirror-separator {
display: inline !important;
border: none !important;
margin: 0 !important;
width: 1px !important;
height: 1px !important;
}
.ProseMirror-gapcursor {
display: none;
pointer-events: none;
position: absolute;
margin: 0;
}
.ProseMirror-gapcursor:after {
content: "";
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}
@keyframes ProseMirror-cursor-blink {
to {
visibility: hidden;
}
}
.ProseMirror-hideselection *::selection {
background: transparent;
}
.ProseMirror-hideselection *::-moz-selection {
background: transparent;
}
.ProseMirror-hideselection * {
caret-color: transparent;
}
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
}
.tippy-box[data-animation=fade][data-state=hidden] {
opacity: 0
}`;function iE(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}class Ra extends Mk{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=iE(oE,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=k4(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const n=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(n))});this.view.updateState(r)}createExtensionManager(){const n=[...this.options.enableCoreExtensions?Object.values(rE):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new _s(n,this)}createCommandManager(){this.commandManager=new gc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=B4(this.options.content,this.schema,this.options.parseOptions),n=_4(e,this.options.autofocus);this.view=new J9(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Cs.create({doc:e,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(a)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),s=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return I4(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return FS(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return OS(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
`,textSerializers:r={}}=e||{};return IS(this.state.doc,{blockSeparator:n,textSerializers:{...A4(this.schema),...r}})}get isEmpty(){return $S(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}}function Li(t){return new yc({find:t.find,handler:({state:e,range:n,match:r})=>{const o=He(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),f=d+a.length;if(Ec(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;f<n.to&&s.delete(f,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(o||{})),s.removeStoredMark(t.type)}}})}function R4(t){return new yc({find:t.find,handler:({state:e,range:n,match:r})=>{const o=He(t.getAttributes,void 0,r)||{},{tr:s}=e,a=n.from;let l=n.to;if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=a+c;u>l?u=l:l=u+r[1].length;const d=r[0][r[0].length-1];s.insertText(d,a+r[0].length-1),s.replaceWith(u,l,t.type.create(o))}else r[0]&&s.replaceWith(a,l,t.type.create(o))}})}function Tc(t){return new yc({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),s=He(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function Ds(t){return new yc({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const s=He(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),c=a.doc.resolve(n.from).blockRange(),u=c&&f0(c,t.type,s);if(!u)return null;if(a.wrap(c,u),t.keepMarks&&t.editor){const{selection:f,storedMarks:p}=e,{splittableMarks:h}=t.editor.extensionManager,m=p||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(b=>h.includes(b.type.name));a.ensureMarks(g)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,s).run()}const d=a.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&Oo(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&a.join(n.from-1)}})}class kn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=He(Ce(this,"addOptions",{name:this.name}))),this.storage=He(Ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new kn(e)}configure(e={}){const n=this.extend();return n.options=wc(this.options,e),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new kn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=He(Ce(n,"addOptions",{name:n.name})),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const a=o.marks();if(!!!a.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const c=a.find(u=>(u==null?void 0:u.type.name)===n.name);return c&&r.removeStoredMark(c),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}class ut{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=He(Ce(this,"addOptions",{name:this.name}))),this.storage=He(Ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ut(e)}configure(e={}){const n=this.extend();return n.options=wc(this.options,e),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new ut(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=He(Ce(n,"addOptions",{name:n.name})),n.storage=He(Ce(n,"addStorage",{name:n.name,options:n.options})),n}}class sE{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,s,a,l,c;const{view:u}=this.editor,d=e.target,f=d.nodeType===3?(n=d.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||((r=this.contentDOM)===null||r===void 0?void 0:r.contains(d))||!f)return;let p=0,h=0;if(this.dom!==f){const b=this.dom.getBoundingClientRect(),y=f.getBoundingClientRect(),S=(o=e.offsetX)!==null&&o!==void 0?o:(s=e.nativeEvent)===null||s===void 0?void 0:s.offsetX,k=(a=e.offsetY)!==null&&a!==void 0?a:(l=e.nativeEvent)===null||l===void 0?void 0:l.offsetY;p=y.x-b.x+S,h=y.y-b.y+k}(c=e.dataTransfer)===null||c===void 0||c.setDragImage(this.dom,p,h);const m=_e.create(u.state.doc,this.getPos()),g=u.state.tr.setSelection(m);u.dispatch(g)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const s=e.type.startsWith("drag"),a=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!a&&!s)return!0;const{isEditable:c}=this.editor,{isDragging:u}=this,d=!!this.node.type.spec.draggable,f=_e.isSelectable(this.node),p=e.type==="copy",h=e.type==="paste",m=e.type==="cut",g=e.type==="mousedown";if(!d&&f&&s&&e.preventDefault(),d&&s&&!u)return e.preventDefault(),!1;if(d&&c&&!u&&g){const b=r.closest("[data-drag-handle]");b&&(this.dom===b||this.dom.contains(b))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(u||a||p||h||m||g&&f)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&Cc()&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos(),n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function jo(t){return new zk({find:t.find,handler:({state:e,range:n,match:r})=>{const o=He(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),f=d+a.length;if(Ec(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;f<n.to&&s.delete(f,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(o||{})),s.removeStoredMark(t.type)}}})}function aE(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Sn="top",Jn="bottom",Xn="right",En="left",lf="auto",za=[Sn,Jn,Xn,En],Ms="start",Fa="end",lE="clippingParents",z4="viewport",$a="popper",cE="reference",F4=za.reduce(function(t,e){return t.concat([e+"-"+Ms,e+"-"+Fa])},[]),$4=[].concat(za,[lf]).reduce(function(t,e){return t.concat([e,e+"-"+Ms,e+"-"+Fa])},[]),uE="beforeRead",dE="read",fE="afterRead",pE="beforeMain",hE="main",mE="afterMain",gE="beforeWrite",bE="write",yE="afterWrite",wE=[uE,dE,fE,pE,hE,mE,gE,bE,yE];function Rr(t){return t?(t.nodeName||"").toLowerCase():null}function Pn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ri(t){var e=Pn(t).Element;return t instanceof e||t instanceof Element}function Yn(t){var e=Pn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cf(t){if(typeof ShadowRoot=="undefined")return!1;var e=Pn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function vE(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},s=e.elements[n];!Yn(s)||!Rr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function CE(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Yn(o)||!Rr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var V4={name:"applyStyles",enabled:!0,phase:"write",fn:vE,effect:CE,requires:["computeStyles"]};function zr(t){return t.split("-")[0]}var zi=Math.max,Ac=Math.min,Ns=Math.round;function uf(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function H4(){return!/^((?!chrome|android).)*safari/i.test(uf())}function Bs(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,s=1;e&&Yn(t)&&(o=t.offsetWidth>0&&Ns(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Ns(r.height)/t.offsetHeight||1);var a=Ri(t)?Pn(t):window,l=a.visualViewport,c=!H4()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,p=r.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function df(t){var e=Bs(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function j4(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cf(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function co(t){return Pn(t).getComputedStyle(t)}function kE(t){return["table","td","th"].indexOf(Rr(t))>=0}function Uo(t){return((Ri(t)?t.ownerDocument:t.document)||window.document).documentElement}function _c(t){return Rr(t)==="html"?t:t.assignedSlot||t.parentNode||(cf(t)?t.host:null)||Uo(t)}function U4(t){return!Yn(t)||co(t).position==="fixed"?null:t.offsetParent}function SE(t){var e=/firefox/i.test(uf()),n=/Trident/i.test(uf());if(n&&Yn(t)){var r=co(t);if(r.position==="fixed")return null}var o=_c(t);for(cf(o)&&(o=o.host);Yn(o)&&["html","body"].indexOf(Rr(o))<0;){var s=co(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Va(t){for(var e=Pn(t),n=U4(t);n&&kE(n)&&co(n).position==="static";)n=U4(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&co(n).position==="static")?e:n||SE(t)||e}function ff(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ha(t,e,n){return zi(t,Ac(e,n))}function EE(t,e,n){var r=Ha(t,e,n);return r>n?n:r}function q4(){return{top:0,right:0,bottom:0,left:0}}function W4(t){return Object.assign({},q4(),t)}function K4(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var xE=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,W4(typeof e!="number"?e:K4(e,za))};function TE(t){var e,n=t.state,r=t.name,o=t.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=zr(n.placement),c=ff(l),u=[En,Xn].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!a)){var f=xE(o.padding,n),p=df(s),h=c==="y"?Sn:En,m=c==="y"?Jn:Xn,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],b=a[c]-n.rects.reference[c],y=Va(s),S=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,k=g/2-b/2,C=f[h],_=S-p[d]-f[m],E=S/2-p[d]/2+k,T=Ha(C,E,_),M=c;n.modifiersData[r]=(e={},e[M]=T,e.centerOffset=T-E,e)}}function AE(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!j4(e.elements.popper,o)||(e.elements.arrow=o))}var _E={name:"arrow",enabled:!0,phase:"main",fn:TE,effect:AE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Os(t){return t.split("-")[1]}var DE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ME(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:Ns(n*o)/o||0,y:Ns(r*o)/o||0}}function G4(t){var e,n=t.popper,r=t.popperRect,o=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),k=En,C=Sn,_=window;if(u){var E=Va(n),T="clientHeight",M="clientWidth";if(E===Pn(n)&&(E=Uo(n),co(E).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),E=E,o===Sn||(o===En||o===Xn)&&s===Fa){C=Jn;var D=f&&E===_&&_.visualViewport?_.visualViewport.height:E[T];g-=D-r.height,g*=c?1:-1}if(o===En||(o===Sn||o===Jn)&&s===Fa){k=Xn;var L=f&&E===_&&_.visualViewport?_.visualViewport.width:E[M];h-=L-r.width,h*=c?1:-1}}var $=Object.assign({position:l},u&&DE),V=d===!0?ME({x:h,y:g},Pn(n)):{x:h,y:g};if(h=V.x,g=V.y,c){var W;return Object.assign({},$,(W={},W[C]=S?"0":"",W[k]=y?"0":"",W.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",W))}return Object.assign({},$,(e={},e[C]=S?g+"px":"",e[k]=y?h+"px":"",e.transform="",e))}function NE(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:zr(e.placement),variation:Os(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,G4(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,G4(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var BE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NE,data:{}},Dc={passive:!0};function OE(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=Pn(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Dc)}),l&&c.addEventListener("resize",n.update,Dc),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Dc)}),l&&c.removeEventListener("resize",n.update,Dc)}}var IE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OE,data:{}},PE={left:"right",right:"left",bottom:"top",top:"bottom"};function Mc(t){return t.replace(/left|right|bottom|top/g,function(e){return PE[e]})}var LE={start:"end",end:"start"};function J4(t){return t.replace(/start|end/g,function(e){return LE[e]})}function pf(t){var e=Pn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hf(t){return Bs(Uo(t)).left+pf(t).scrollLeft}function RE(t,e){var n=Pn(t),r=Uo(t),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var u=H4();(u||!u&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+hf(t),y:c}}function zE(t){var e,n=Uo(t),r=pf(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=zi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=zi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+hf(t),c=-r.scrollTop;return co(o||n).direction==="rtl"&&(l+=zi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function mf(t){var e=co(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function X4(t){return["html","body","#document"].indexOf(Rr(t))>=0?t.ownerDocument.body:Yn(t)&&mf(t)?t:X4(_c(t))}function ja(t,e){var n;e===void 0&&(e=[]);var r=X4(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),s=Pn(r),a=o?[s].concat(s.visualViewport||[],mf(r)?r:[]):r,l=e.concat(a);return o?l:l.concat(ja(_c(a)))}function gf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function FE(t,e){var n=Bs(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Y4(t,e,n){return e===z4?gf(RE(t,n)):Ri(e)?FE(e,n):gf(zE(Uo(t)))}function $E(t){var e=ja(_c(t)),n=["absolute","fixed"].indexOf(co(t).position)>=0,r=n&&Yn(t)?Va(t):t;return Ri(r)?e.filter(function(o){return Ri(o)&&j4(o,r)&&Rr(o)!=="body"}):[]}function VE(t,e,n,r){var o=e==="clippingParents"?$E(t):[].concat(e),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,u){var d=Y4(t,u,r);return c.top=zi(d.top,c.top),c.right=Ac(d.right,c.right),c.bottom=Ac(d.bottom,c.bottom),c.left=zi(d.left,c.left),c},Y4(t,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Z4(t){var e=t.reference,n=t.element,r=t.placement,o=r?zr(r):null,s=r?Os(r):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(o){case Sn:c={x:a,y:e.y-n.height};break;case Jn:c={x:a,y:e.y+e.height};break;case Xn:c={x:e.x+e.width,y:l};break;case En:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=o?ff(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Ms:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fa:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Ua(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?lE:l,u=n.rootBoundary,d=u===void 0?z4:u,f=n.elementContext,p=f===void 0?$a:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,b=g===void 0?0:g,y=W4(typeof b!="number"?b:K4(b,za)),S=p===$a?cE:$a,k=t.rects.popper,C=t.elements[m?S:p],_=VE(Ri(C)?C:C.contextElement||Uo(t.elements.popper),c,d,a),E=Bs(t.elements.reference),T=Z4({reference:E,element:k,strategy:"absolute",placement:o}),M=gf(Object.assign({},k,T)),D=p===$a?M:E,L={top:_.top-D.top+y.top,bottom:D.bottom-_.bottom+y.bottom,left:_.left-D.left+y.left,right:D.right-_.right+y.right},$=t.modifiersData.offset;if(p===$a&&$){var V=$[o];Object.keys(L).forEach(function(W){var ee=[Xn,Jn].indexOf(W)>=0?1:-1,J=[Sn,Jn].indexOf(W)>=0?"y":"x";L[W]+=V[J]*ee})}return L}function HE(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?$4:c,d=Os(r),f=d?l?F4:F4.filter(function(m){return Os(m)===d}):za,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Ua(t,{placement:g,boundary:o,rootBoundary:s,padding:a})[zr(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function jE(t){if(zr(t)===lf)return[];var e=Mc(t);return[J4(t),e,J4(e)]}function UE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,b=e.options.placement,y=zr(b),S=y===b,k=c||(S||!m?[Mc(b)]:jE(b)),C=[b].concat(k).reduce(function(de,fe){return de.concat(zr(fe)===lf?HE(e,{placement:fe,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):fe)},[]),_=e.rects.reference,E=e.rects.popper,T=new Map,M=!0,D=C[0],L=0;L<C.length;L++){var $=C[L],V=zr($),W=Os($)===Ms,ee=[Sn,Jn].indexOf(V)>=0,J=ee?"width":"height",I=Ua(e,{placement:$,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),B=ee?W?Xn:En:W?Jn:Sn;_[J]>E[J]&&(B=Mc(B));var H=Mc(B),K=[];if(s&&K.push(I[V]<=0),l&&K.push(I[B]<=0,I[H]<=0),K.every(function(de){return de})){D=$,M=!1;break}T.set($,K)}if(M)for(var ae=m?3:1,ye=function(fe){var Re=C.find(function(Z){var z=T.get(Z);if(z)return z.slice(0,fe).every(function(ce){return ce})});if(Re)return D=Re,"break"},le=ae;le>0;le--){var re=ye(le);if(re==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}var qE={name:"flip",enabled:!0,phase:"main",fn:UE,requiresIfExists:["offset"],data:{_skip:!1}};function Q4(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function e2(t){return[Sn,Xn,Jn,En].some(function(e){return t[e]>=0})}function WE(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,a=Ua(e,{elementContext:"reference"}),l=Ua(e,{altBoundary:!0}),c=Q4(a,r),u=Q4(l,o,s),d=e2(c),f=e2(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var KE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WE};function GE(t,e,n){var r=zr(t),o=[En,Sn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[En,Xn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function JE(t){var e=t.state,n=t.options,r=t.name,o=n.offset,s=o===void 0?[0,0]:o,a=$4.reduce(function(d,f){return d[f]=GE(f,e.rects,s),d},{}),l=a[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var XE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JE};function YE(t){var e=t.state,n=t.name;e.modifiersData[n]=Z4({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var ZE={name:"popperOffsets",enabled:!0,phase:"read",fn:YE,data:{}};function QE(t){return t==="x"?"y":"x"}function ex(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,b=Ua(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=zr(e.placement),S=Os(e.placement),k=!S,C=ff(y),_=QE(C),E=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,D=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(!!E){if(s){var W,ee=C==="y"?Sn:En,J=C==="y"?Jn:Xn,I=C==="y"?"height":"width",B=E[C],H=B+b[ee],K=B-b[J],ae=h?-M[I]/2:0,ye=S===Ms?T[I]:M[I],le=S===Ms?-M[I]:-T[I],re=e.elements.arrow,de=h&&re?df(re):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:q4(),Re=fe[ee],Z=fe[J],z=Ha(0,T[I],de[I]),ce=k?T[I]/2-ae-z-Re-L.mainAxis:ye-z-Re-L.mainAxis,ve=k?-T[I]/2+ae+z+Z+L.mainAxis:le+z+Z+L.mainAxis,Ae=e.elements.arrow&&Va(e.elements.arrow),qe=Ae?C==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,rt=(W=$==null?void 0:$[C])!=null?W:0,We=B+ce-rt-qe,ot=B+ve-rt,ht=Ha(h?Ac(H,We):H,B,h?zi(K,ot):K);E[C]=ht,V[C]=ht-B}if(l){var pe,kt=C==="x"?Sn:En,Ve=C==="x"?Jn:Xn,Ne=E[_],Xe=_==="y"?"height":"width",st=Ne+b[kt],Ft=Ne-b[Ve],$t=[Sn,En].indexOf(y)!==-1,R=(pe=$==null?void 0:$[_])!=null?pe:0,G=$t?st:Ne-T[Xe]-M[Xe]-R+L.altAxis,me=$t?Ne+T[Xe]+M[Xe]-R-L.altAxis:Ft,ze=h&&$t?EE(G,Ne,me):Ha(h?G:st,Ne,h?me:Ft);E[_]=ze,V[_]=ze-Ne}e.modifiersData[r]=V}}var tx={name:"preventOverflow",enabled:!0,phase:"main",fn:ex,requiresIfExists:["offset"]};function nx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rx(t){return t===Pn(t)||!Yn(t)?pf(t):nx(t)}function ox(t){var e=t.getBoundingClientRect(),n=Ns(e.width)/t.offsetWidth||1,r=Ns(e.height)/t.offsetHeight||1;return n!==1||r!==1}function ix(t,e,n){n===void 0&&(n=!1);var r=Yn(e),o=Yn(e)&&ox(e),s=Uo(e),a=Bs(t,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(e)!=="body"||mf(s))&&(l=rx(e)),Yn(e)?(c=Bs(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=hf(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function sx(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&o(c)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||o(s)}),r}function ax(t){var e=sx(t);return wE.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function lx(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function cx(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var t2={placement:"bottom",modifiers:[],strategy:"absolute"};function n2(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ux(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,s=o===void 0?t2:o;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},t2,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(y){var S=typeof y=="function"?y(d.options):y;g(),d.options=Object.assign({},s,d.options,S),d.scrollParents={reference:Ri(l)?ja(l):l.contextElement?ja(l.contextElement):[],popper:ja(c)};var k=ax(cx([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(C){return C.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var y=d.elements,S=y.reference,k=y.popper;if(!!n2(S,k)){d.rects={reference:ix(S,Va(k),d.options.strategy==="fixed"),popper:df(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var _=d.orderedModifiers[C],E=_.fn,T=_.options,M=T===void 0?{}:T,D=_.name;typeof E=="function"&&(d=E({state:d,options:M,name:D,instance:h})||d)}}}},update:lx(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){g(),p=!0}};if(!n2(l,c))return h;h.setOptions(u).then(function(b){!p&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var y=b.name,S=b.options,k=S===void 0?{}:S,C=b.effect;if(typeof C=="function"){var _=C({state:d,name:y,instance:h,options:k}),E=function(){};f.push(_||E)}})}function g(){f.forEach(function(b){return b()}),f=[]}return h}}var dx=[IE,ZE,BE,V4,XE,qE,tx,_E,KE],fx=ux({defaultModifiers:dx}),px="tippy-box",r2="tippy-content",hx="tippy-backdrop",o2="tippy-arrow",i2="tippy-svg-arrow",Fi={passive:!0,capture:!0},s2=function(){return document.body};function bf(t,e,n){if(Array.isArray(t)){var r=t[e];return r==null?Array.isArray(n)?n[e]:n:r}return t}function yf(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function a2(t,e){return typeof t=="function"?t.apply(void 0,e):t}function l2(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function mx(t){return t.split(/\s+/).filter(Boolean)}function Is(t){return[].concat(t)}function c2(t,e){t.indexOf(e)===-1&&t.push(e)}function gx(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function bx(t){return t.split("-")[0]}function Nc(t){return[].slice.call(t)}function u2(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function qa(){return document.createElement("div")}function Bc(t){return["Element","Fragment"].some(function(e){return yf(t,e)})}function yx(t){return yf(t,"NodeList")}function wx(t){return yf(t,"MouseEvent")}function vx(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Cx(t){return Bc(t)?[t]:yx(t)?Nc(t):Array.isArray(t)?t:Nc(document.querySelectorAll(t))}function wf(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function d2(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function kx(t){var e,n=Is(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function Sx(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var s=o.popperRect,a=o.popperState,l=o.props,c=l.interactiveBorder,u=bx(a.placement),d=a.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,m=u==="left"?d.right.x:0,g=s.top-r+f>c,b=r-s.bottom-p>c,y=s.left-n+h>c,S=n-s.right-m>c;return g||b||y||S})}function vf(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function f2(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Fr={isTouch:!1},p2=0;function Ex(){Fr.isTouch||(Fr.isTouch=!0,window.performance&&document.addEventListener("mousemove",h2))}function h2(){var t=performance.now();t-p2<20&&(Fr.isTouch=!1,document.removeEventListener("mousemove",h2)),p2=t}function xx(){var t=document.activeElement;if(vx(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Tx(){document.addEventListener("touchstart",Ex,Fi),window.addEventListener("blur",xx)}var Ax=typeof window!="undefined"&&typeof document!="undefined",_x=Ax?!!window.msCrypto:!1,Dx={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Mx={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},hr=Object.assign({appendTo:s2,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Dx,Mx),Nx=Object.keys(hr),Bx=function(e){var n=Object.keys(e);n.forEach(function(r){hr[r]=e[r]})};function m2(t){var e=t.plugins||[],n=e.reduce(function(r,o){var s=o.name,a=o.defaultValue;if(s){var l;r[s]=t[s]!==void 0?t[s]:(l=hr[s])!=null?l:a}return r},{});return Object.assign({},t,n)}function Ox(t,e){var n=e?Object.keys(m2(Object.assign({},hr,{plugins:e}))):Nx,r=n.reduce(function(o,s){var a=(t.getAttribute("data-tippy-"+s)||"").trim();if(!a)return o;if(s==="content")o[s]=a;else try{o[s]=JSON.parse(a)}catch{o[s]=a}return o},{});return r}function g2(t,e){var n=Object.assign({},e,{content:a2(e.content,[t])},e.ignoreAttributes?{}:Ox(t,e.plugins));return n.aria=Object.assign({},hr.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var Ix=function(){return"innerHTML"};function Cf(t,e){t[Ix()]=e}function b2(t){var e=qa();return t===!0?e.className=o2:(e.className=i2,Bc(t)?e.appendChild(t):Cf(e,t)),e}function y2(t,e){Bc(e.content)?(Cf(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Cf(t,e.content):t.textContent=e.content)}function kf(t){var e=t.firstElementChild,n=Nc(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(r2)}),arrow:n.find(function(r){return r.classList.contains(o2)||r.classList.contains(i2)}),backdrop:n.find(function(r){return r.classList.contains(hx)})}}function w2(t){var e=qa(),n=qa();n.className=px,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=qa();r.className=r2,r.setAttribute("data-state","hidden"),y2(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(s,a){var l=kf(e),c=l.box,u=l.content,d=l.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&y2(u,t.props),a.arrow?d?s.arrow!==a.arrow&&(c.removeChild(d),c.appendChild(b2(a.arrow))):c.appendChild(b2(a.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:o}}w2.$$tippy=!0;var Px=1,Oc=[],Sf=[];function Lx(t,e){var n=g2(t,Object.assign({},hr,m2(u2(e)))),r,o,s,a=!1,l=!1,c=!1,u=!1,d,f,p,h=[],m=l2(We,n.interactiveDebounce),g,b=Px++,y=null,S=gx(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:b,reference:t,popper:qa(),popperInstance:y,props:n,state:k,plugins:S,clearDelayTimeouts:G,setProps:me,setContent:ze,show:at,hide:yn,hideWithInteractivity:ki,enable:$t,disable:R,unmount:Si,destroy:Ei};if(!n.render)return C;var _=n.render(C),E=_.popper,T=_.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+C.id,C.popper=E,t._tippy=C,E._tippy=C;var M=S.map(function(q){return q.fn(C)}),D=t.hasAttribute("aria-expanded");return Ae(),ae(),B(),H("onCreate",[C]),n.showOnCreate&&st(),E.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",m)}),C;function L(){var q=C.props.touch;return Array.isArray(q)?q:[q,0]}function $(){return L()[0]==="hold"}function V(){var q;return!!((q=C.props.render)!=null&&q.$$tippy)}function W(){return g||t}function ee(){var q=W().parentNode;return q?kx(q):document}function J(){return kf(E)}function I(q){return C.state.isMounted&&!C.state.isVisible||Fr.isTouch||d&&d.type==="focus"?0:bf(C.props.delay,q?0:1,hr.delay)}function B(q){q===void 0&&(q=!1),E.style.pointerEvents=C.props.interactive&&!q?"":"none",E.style.zIndex=""+C.props.zIndex}function H(q,we,Oe){if(Oe===void 0&&(Oe=!0),M.forEach(function(Ke){Ke[q]&&Ke[q].apply(Ke,we)}),Oe){var Qe;(Qe=C.props)[q].apply(Qe,we)}}function K(){var q=C.props.aria;if(!!q.content){var we="aria-"+q.content,Oe=E.id,Qe=Is(C.props.triggerTarget||t);Qe.forEach(function(Ke){var Ut=Ke.getAttribute(we);if(C.state.isVisible)Ke.setAttribute(we,Ut?Ut+" "+Oe:Oe);else{var un=Ut&&Ut.replace(Oe,"").trim();un?Ke.setAttribute(we,un):Ke.removeAttribute(we)}})}}function ae(){if(!(D||!C.props.aria.expanded)){var q=Is(C.props.triggerTarget||t);q.forEach(function(we){C.props.interactive?we.setAttribute("aria-expanded",C.state.isVisible&&we===W()?"true":"false"):we.removeAttribute("aria-expanded")})}}function ye(){ee().removeEventListener("mousemove",m),Oc=Oc.filter(function(q){return q!==m})}function le(q){if(!(Fr.isTouch&&(c||q.type==="mousedown"))){var we=q.composedPath&&q.composedPath()[0]||q.target;if(!(C.props.interactive&&f2(E,we))){if(Is(C.props.triggerTarget||t).some(function(Oe){return f2(Oe,we)})){if(Fr.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[C,q]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),l=!0,setTimeout(function(){l=!1}),C.state.isMounted||Re())}}}function re(){c=!0}function de(){c=!1}function fe(){var q=ee();q.addEventListener("mousedown",le,!0),q.addEventListener("touchend",le,Fi),q.addEventListener("touchstart",de,Fi),q.addEventListener("touchmove",re,Fi)}function Re(){var q=ee();q.removeEventListener("mousedown",le,!0),q.removeEventListener("touchend",le,Fi),q.removeEventListener("touchstart",de,Fi),q.removeEventListener("touchmove",re,Fi)}function Z(q,we){ce(q,function(){!C.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&we()})}function z(q,we){ce(q,we)}function ce(q,we){var Oe=J().box;function Qe(Ke){Ke.target===Oe&&(vf(Oe,"remove",Qe),we())}if(q===0)return we();vf(Oe,"remove",f),vf(Oe,"add",Qe),f=Qe}function ve(q,we,Oe){Oe===void 0&&(Oe=!1);var Qe=Is(C.props.triggerTarget||t);Qe.forEach(function(Ke){Ke.addEventListener(q,we,Oe),h.push({node:Ke,eventType:q,handler:we,options:Oe})})}function Ae(){$()&&(ve("touchstart",rt,{passive:!0}),ve("touchend",ot,{passive:!0})),mx(C.props.trigger).forEach(function(q){if(q!=="manual")switch(ve(q,rt),q){case"mouseenter":ve("mouseleave",ot);break;case"focus":ve(_x?"focusout":"blur",ht);break;case"focusin":ve("focusout",ht);break}})}function qe(){h.forEach(function(q){var we=q.node,Oe=q.eventType,Qe=q.handler,Ke=q.options;we.removeEventListener(Oe,Qe,Ke)}),h=[]}function rt(q){var we,Oe=!1;if(!(!C.state.isEnabled||pe(q)||l)){var Qe=((we=d)==null?void 0:we.type)==="focus";d=q,g=q.currentTarget,ae(),!C.state.isVisible&&wx(q)&&Oc.forEach(function(Ke){return Ke(q)}),q.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||a)&&C.props.hideOnClick!==!1&&C.state.isVisible?Oe=!0:st(q),q.type==="click"&&(a=!Oe),Oe&&!Qe&&Ft(q)}}function We(q){var we=q.target,Oe=W().contains(we)||E.contains(we);if(!(q.type==="mousemove"&&Oe)){var Qe=Xe().concat(E).map(function(Ke){var Ut,un=Ke._tippy,jn=(Ut=un.popperInstance)==null?void 0:Ut.state;return jn?{popperRect:Ke.getBoundingClientRect(),popperState:jn,props:n}:null}).filter(Boolean);Sx(Qe,q)&&(ye(),Ft(q))}}function ot(q){var we=pe(q)||C.props.trigger.indexOf("click")>=0&&a;if(!we){if(C.props.interactive){C.hideWithInteractivity(q);return}Ft(q)}}function ht(q){C.props.trigger.indexOf("focusin")<0&&q.target!==W()||C.props.interactive&&q.relatedTarget&&E.contains(q.relatedTarget)||Ft(q)}function pe(q){return Fr.isTouch?$()!==q.type.indexOf("touch")>=0:!1}function kt(){Ve();var q=C.props,we=q.popperOptions,Oe=q.placement,Qe=q.offset,Ke=q.getReferenceClientRect,Ut=q.moveTransition,un=V()?kf(E).arrow:null,jn=Ke?{getBoundingClientRect:Ke,contextElement:Ke.contextElement||W()}:t,j={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Fe){var At=Fe.state;if(V()){var on=J(),Un=on.box;["placement","reference-hidden","escaped"].forEach(function(On){On==="placement"?Un.setAttribute("data-placement",At.placement):At.attributes.popper["data-popper-"+On]?Un.setAttribute("data-"+On,""):Un.removeAttribute("data-"+On)}),At.attributes.popper={}}}},X=[{name:"offset",options:{offset:Qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ut}},j];V()&&un&&X.push({name:"arrow",options:{element:un,padding:3}}),X.push.apply(X,(we==null?void 0:we.modifiers)||[]),C.popperInstance=fx(jn,E,Object.assign({},we,{placement:Oe,onFirstUpdate:p,modifiers:X}))}function Ve(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function Ne(){var q=C.props.appendTo,we,Oe=W();C.props.interactive&&q===s2||q==="parent"?we=Oe.parentNode:we=a2(q,[Oe]),we.contains(E)||we.appendChild(E),C.state.isMounted=!0,kt()}function Xe(){return Nc(E.querySelectorAll("[data-tippy-root]"))}function st(q){C.clearDelayTimeouts(),q&&H("onTrigger",[C,q]),fe();var we=I(!0),Oe=L(),Qe=Oe[0],Ke=Oe[1];Fr.isTouch&&Qe==="hold"&&Ke&&(we=Ke),we?r=setTimeout(function(){C.show()},we):C.show()}function Ft(q){if(C.clearDelayTimeouts(),H("onUntrigger",[C,q]),!C.state.isVisible){Re();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(q.type)>=0&&a)){var we=I(!1);we?o=setTimeout(function(){C.state.isVisible&&C.hide()},we):s=requestAnimationFrame(function(){C.hide()})}}function $t(){C.state.isEnabled=!0}function R(){C.hide(),C.state.isEnabled=!1}function G(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function me(q){if(!C.state.isDestroyed){H("onBeforeUpdate",[C,q]),qe();var we=C.props,Oe=g2(t,Object.assign({},we,u2(q),{ignoreAttributes:!0}));C.props=Oe,Ae(),we.interactiveDebounce!==Oe.interactiveDebounce&&(ye(),m=l2(We,Oe.interactiveDebounce)),we.triggerTarget&&!Oe.triggerTarget?Is(we.triggerTarget).forEach(function(Qe){Qe.removeAttribute("aria-expanded")}):Oe.triggerTarget&&t.removeAttribute("aria-expanded"),ae(),B(),T&&T(we,Oe),C.popperInstance&&(kt(),Xe().forEach(function(Qe){requestAnimationFrame(Qe._tippy.popperInstance.forceUpdate)})),H("onAfterUpdate",[C,q])}}function ze(q){C.setProps({content:q})}function at(){var q=C.state.isVisible,we=C.state.isDestroyed,Oe=!C.state.isEnabled,Qe=Fr.isTouch&&!C.props.touch,Ke=bf(C.props.duration,0,hr.duration);if(!(q||we||Oe||Qe)&&!W().hasAttribute("disabled")&&(H("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,V()&&(E.style.visibility="visible"),B(),fe(),C.state.isMounted||(E.style.transition="none"),V()){var Ut=J(),un=Ut.box,jn=Ut.content;wf([un,jn],0)}p=function(){var X;if(!(!C.state.isVisible||u)){if(u=!0,E.offsetHeight,E.style.transition=C.props.moveTransition,V()&&C.props.animation){var be=J(),Fe=be.box,At=be.content;wf([Fe,At],Ke),d2([Fe,At],"visible")}K(),ae(),c2(Sf,C),(X=C.popperInstance)==null||X.forceUpdate(),H("onMount",[C]),C.props.animation&&V()&&z(Ke,function(){C.state.isShown=!0,H("onShown",[C])})}},Ne()}}function yn(){var q=!C.state.isVisible,we=C.state.isDestroyed,Oe=!C.state.isEnabled,Qe=bf(C.props.duration,1,hr.duration);if(!(q||we||Oe)&&(H("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,u=!1,a=!1,V()&&(E.style.visibility="hidden"),ye(),Re(),B(!0),V()){var Ke=J(),Ut=Ke.box,un=Ke.content;C.props.animation&&(wf([Ut,un],Qe),d2([Ut,un],"hidden"))}K(),ae(),C.props.animation?V()&&Z(Qe,C.unmount):C.unmount()}}function ki(q){ee().addEventListener("mousemove",m),c2(Oc,m),m(q)}function Si(){C.state.isVisible&&C.hide(),C.state.isMounted&&(Ve(),Xe().forEach(function(q){q._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Sf=Sf.filter(function(q){return q!==C}),C.state.isMounted=!1,H("onHidden",[C]))}function Ei(){C.state.isDestroyed||(C.clearDelayTimeouts(),C.unmount(),qe(),delete t._tippy,C.state.isDestroyed=!0,H("onDestroy",[C]))}}function $i(t,e){e===void 0&&(e={});var n=hr.plugins.concat(e.plugins||[]);Tx();var r=Object.assign({},e,{plugins:n}),o=Cx(t),s=o.reduce(function(a,l){var c=l&&Lx(l,r);return c&&a.push(c),a},[]);return Bc(t)?s[0]:s}$i.defaultProps=hr,$i.setDefaultProps=Bx,$i.currentInput=Fr,Object.assign({},V4,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),$i.setDefaultProps({render:w2});class Rx{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:s=250,shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:l,state:c,from:u,to:d})=>{const{doc:f,selection:p}=c,{empty:h}=p,m=!f.textBetween(u,d).length&&ef(c.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||h||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}(l==null?void 0:l.relatedTarget)&&((c=this.element.parentNode)===null||c===void 0?void 0:c.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,c)=>{const u=!(c!=null&&c.selection.eq(l.state.selection)),d=!(c!=null&&c.doc.eq(l.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,d,c)},this.updateDelay))},this.updateHandler=(l,c,u,d)=>{var f,p,h;const{state:m,composing:g}=l,{selection:b}=m;if(g||!c&&!u)return;this.createTooltip();const{ranges:S}=b,k=Math.min(...S.map(E=>E.$from.pos)),C=Math.max(...S.map(E=>E.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:l,state:m,oldState:d,from:k,to:C}))){this.hide();return}(p=this.tippy)===null||p===void 0||p.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(VS(m.selection)){let E=l.nodeDOM(k);const T=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(T&&(E=T.firstChild),E)return E.getBoundingClientRect()}return P4(l,k,C)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=s,a&&(this.shouldShow=a),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=$i(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const s=!(n!=null&&n.selection.eq(e.state.selection)),a=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,s,a,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const v2=t=>new wt({key:typeof t.pluginKey=="string"?new Ot(t.pluginKey):t.pluginKey,view:e=>new Rx({view:e,...t})});it.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[v2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class zx{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l})=>{const{selection:c}=l,{$anchor:u,empty:d}=c,f=u.depth===1,p=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!a.hasFocus()||!d||!f||!p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}(a==null?void 0:a.relatedTarget)&&((l=this.element.parentNode)===null||l===void 0?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.editor=e,this.element=n,this.view=r,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=$i(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){var r,o,s;const{state:a}=e,{doc:l,selection:c}=a,{from:u,to:d}=c;if(n&&n.doc.eq(l)&&n.selection.eq(c))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:a,oldState:n}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((s=this.tippyOptions)===null||s===void 0?void 0:s.getReferenceClientRect)||(()=>P4(e,u,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const C2=t=>new wt({key:typeof t.pluginKey=="string"?new Ot(t.pluginKey):t.pluginKey,view:e=>new zx({view:e,...t})});it.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[C2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const Fx=i.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=i.ref(null);return i.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:s,shouldShow:a,tippyOptions:l}=t;o.registerPlugin(v2({updateDelay:r,editor:o,element:n.value,pluginKey:s,shouldShow:a,tippyOptions:l}))}),i.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return i.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function k2(t){return i.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class It extends Ra{constructor(e={}){return super(e),this.vueRenderers=i.reactive(new Map),this.contentComponent=null,this.reactiveState=k2(this.view.state),this.reactiveExtensionStorage=k2(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),i.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const $x=i.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=i.ref(),n=i.getCurrentInstance();return i.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&i.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=i.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),i.onBeforeUnmount(()=>{const r=t.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=i.h(i.Teleport,{to:e.teleportElement,key:e.id},i.h(e.component,{ref:e.id,...e.props}));t.push(n)}),i.h("div",{ref:e=>{this.rootEl=e}},...t)}});i.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=i.ref(null);return i.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:s,shouldShow:a}=t;o.registerPlugin(C2({pluginKey:r,editor:o,element:n.value,tippyOptions:s,shouldShow:a}))}),i.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return i.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});const Vx=i.defineComponent({props:{as:{type:String,default:"div"}},render(){return i.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),Ef=i.defineComponent({props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return i.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}}),Hx=(t={})=>{const e=i.shallowRef();return i.onMounted(()=>{e.value=new It(t)}),i.onBeforeUnmount(()=>{var n;(n=e.value)===null||n===void 0||n.destroy()}),e};class S2{constructor(e,{props:n={},editor:r}){if(this.id=Math.floor(Math.random()*4294967295).toString(),this.editor=r,this.component=i.markRaw(e),this.teleportElement=document.createElement("div"),this.element=this.teleportElement,this.props=i.reactive(n),this.editor.vueRenderers.set(this.id,this),this.editor.contentComponent){if(this.editor.contentComponent.update(),this.teleportElement.children.length!==1)throw Error("VueRenderer doesn\u2019t support multiple child elements.");this.element=this.teleportElement.firstElementChild}}get ref(){var e;return(e=this.editor.contentComponent)===null||e===void 0?void 0:e.refs[this.id]}updateProps(e={}){Object.entries(e).forEach(([n,r])=>{this.props[n]=r})}destroy(){this.editor.vueRenderers.delete(this.id)}}const Ln={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0}};class jx extends sE{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(o={})=>this.updateAttributes(o),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=i.ref(this.getDecorationClasses());const r=i.defineComponent({extends:{...this.component},props:Object.keys(e),template:this.component.template,setup:o=>{var s,a;return i.provide("onDragStart",n),i.provide("decorationClasses",this.decorationClasses),(a=(s=this.component).setup)===null||a===void 0?void 0:a.call(s,o,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules});this.renderer=new S2(r,{editor:this.editor,props:e})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}update(e,n){const r=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,s=this.decorations;return this.node=e,this.decorations=n,this.options.update({oldNode:o,oldDecorations:s,newNode:e,newDecorations:n,updateProps:()=>r({node:e,decorations:n})})}return e.type!==this.node.type?!1:(e===this.node&&this.decorations===n||(this.node=e,this.decorations=n,r({node:e,decorations:n})),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}getDecorationClasses(){return this.decorations.map(e=>e.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy()}}function xf(t,e){return n=>n.editor.contentComponent?new jx(t,n,e):{}}const Ux=it.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new wt({key:new Ot("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const s=t.type.createAndFill(),a=(s==null?void 0:s.sameMarkup(t))&&s.content.findDiffStart(t.content)===null;return t.descendants((l,c)=>{const u=r>=c&&r<=c+l.nodeSize,d=!l.isLeaf&&!l.childCount;if((u||!this.options.showOnlyCurrent)&&d){const f=[this.options.emptyNodeClass];a&&f.push(this.options.emptyEditorClass);const p=Yt.node(c,c+l.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:c,hasAnchor:u}):this.options.placeholder});o.push(p)}return this.options.includeChildren}),mt.create(t,o)}}})]}}),qx=it.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize"}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;return((t==null?void 0:t.mode)||this.options.mode)==="textSize"?e.textBetween(0,e.content.size,void 0," ").length:e.nodeSize},this.storage.words=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;return e.textBetween(0,e.content.size," "," ").split(" ").filter(o=>o!=="").length}},addProseMirrorPlugins(){return[new wt({key:new Ot("characterCount"),filterTransaction:(t,e)=>{const n=this.options.limit;if(!t.docChanged||n===0||n===null||n===void 0)return!0;const r=this.storage.characters({node:e.doc}),o=this.storage.characters({node:t.doc});if(o<=n||r>n&&o>n&&o<=r)return!0;if(r>n&&o>n&&o>r||!t.getMeta("paste"))return!1;const a=t.selection.$head.pos,l=o-n,c=a-l,u=a;return t.deleteRange(c,u),!(this.storage.characters({node:t.doc})>n)}})]}}),Tf={};function Wx(t){return new Promise((e,n)=>{const r={complete:!1,width:0,height:0,src:t};if(!t){n(r);return}if(Tf[t]){e({...Tf[t]});return}const o=new Image;o.onload=()=>{r.width=o.width,r.height=o.height,r.complete=!0,Tf[t]={...r},e(r)},o.onerror=()=>{n(r)},o.src=t})}var mr=(t=>(t.INLINE="inline",t.BREAK_TEXT="block",t.FLOAT_LEFT="left",t.FLOAT_RIGHT="right",t))(mr||{});const E2="[Element-Tiptap Tip]",Kx=/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/,Gx=200,Jx=mr.INLINE,x2=1.7,Ic="100%";class Wa{static warn(e){console.warn(`${E2} ${e}`)}static error(e){console.error(`${E2} ${e}`)}}var Xx={editor:{extensions:{Ai:{tooltip:"Ai Options",image:{ocr:"OCR",od:"Object Detection"},chat:{prompt:"Prompt",summarize:"summarize",polish:"polish doc",translate:"translate",correct:"correct",continuation:"continue writing",asr:"speech recognition",imageGen:"generate AI image",imageGen_prompt:"Describe the image that you want me to generate.",promptWriting:"writing by prompt",promptWriting_prompt:"Write a prompt to generate text.",generateTable:"Ai generate table"}},Bold:{tooltip:"Bold"},Underline:{tooltip:"Underline"},Italic:{tooltip:"Italic"},Strike:{tooltip:"Strike through"},Heading:{tooltip:"Heading",buttons:{paragraph:"Paragraph",heading:"Heading"}},Blockquote:{tooltip:"Block quote"},CodeBlock:{tooltip:"Code block"},Link:{add:{tooltip:"Apply link",control:{title:"Apply Link",href:"Href",open_in_new_tab:"Open in new tab",confirm:"Apply",cancel:"Cancel"}},edit:{tooltip:"Edit link",control:{title:"Edit Link",href:"Href",open_in_new_tab:"Open in new tab",confirm:"Update",cancel:"Cancel"}},unlink:{tooltip:"Unlink"},open:{tooltip:"Open link"}},Image:{buttons:{insert_image:{tooltip:"Insert image",external:"Insert Image By Url",upload:"Upload Image"},remove_image:{tooltip:"Remove"},image_options:{tooltip:"Image options"},display:{tooltip:"Display",inline:"Inline",block:"Break Text",left:"Float Left",right:"Float Right"}},control:{insert_by_url:{title:"Insert image",placeholder:"Url of image",confirm:"Insert",cancel:"Cancel",invalid_url:"Please enter the correct url"},upload_image:{title:"Upload image",button:"Choose an image file or drag it here"},edit_image:{title:"Edit image",confirm:"Update",cancel:"Cancel",form:{src:"Image Url",alt:"Alternative Text",width:"Width",height:"Height"}}}},Iframe:{tooltip:"Insert video",control:{title:"Insert video",placeholder:"Href",confirm:"Insert",cancel:"Cancel"}},BulletList:{tooltip:"Bullet list"},OrderedList:{tooltip:"Ordered list"},TodoList:{tooltip:"Todo list"},TextAlign:{buttons:{align_left:{tooltip:"Align left"},align_center:{tooltip:"Align center"},align_right:{tooltip:"Align right"},align_justify:{tooltip:"Align justify"}}},FontType:{tooltip:"Font family"},FontSize:{tooltip:"Font size",default:"default"},TextColor:{tooltip:"Text color"},TextHighlight:{tooltip:"Text highlight"},LineHeight:{tooltip:"Line height"},Table:{tooltip:"Table",buttons:{insert_table:"Insert Table",add_column_before:"Add Column Before",add_column_after:"Add Column After",delete_column:"Delete Column",add_row_before:"Add Row Before",add_row_after:"Add Row After",delete_row:"Delete Row",merge_cells:"Merge Cells",split_cell:"Split Cell",delete_table:"Delete Table"}},Indent:{buttons:{indent:{tooltip:"Indent"},outdent:{tooltip:"Outdent"}}},FormatClear:{tooltip:"Clear format"},HorizontalRule:{tooltip:"Horizontal rule"},History:{tooltip:{undo:"Undo",redo:"Redo"}},Fullscreen:{tooltip:{fullscreen:"Full screen",exit_fullscreen:"Exit full screen"}},Print:{tooltip:"Print"},Preview:{tooltip:"Preview",dialog:{title:"Preview"}},SelectAll:{tooltip:"Select all"},CodeView:{tooltip:"Code view"}},characters:"Characters"}},Yx={editor:{extensions:{Ai:{tooltip:"AI \u9009\u9879",image:{ocr:"\u5149\u5B66\u5B57\u7B26\u8BC6\u522B",od:"\u76EE\u6807\u68C0\u6D4B"},chat:{prompt:"\u63D0\u793A",summarize:"\u603B\u7ED3",polish:"\u6DA6\u8272\u6587\u6863",translate:"\u7FFB\u8BD1",correct:"\u7EA0\u6B63",continuation:"\u7EE7\u7EED\u5199\u4F5C",asr:"\u8BED\u97F3\u8BC6\u522B",imageGen:"\u751F\u6210 AI \u56FE\u50CF",imageGen_prompt:"\u63CF\u8FF0\u60A8\u60F3\u8981\u751F\u6210\u7684\u56FE\u50CF\u3002",promptWriting:"\u6839\u636E\u63D0\u793A\u5199\u4F5C",promptWriting_prompt:"\u751F\u6210\u6307\u5B9A\u6587\u672C",generateTable:"AI \u8BC6\u522B\u8868\u683C"}},Bold:{tooltip:"\u52A0\u7C97"},Underline:{tooltip:"\u4E0B\u5212\u7EBF"},Italic:{tooltip:"\u659C\u4F53"},Strike:{tooltip:"\u5220\u9664\u7EBF"},Heading:{tooltip:"\u6807\u9898",buttons:{paragraph:"\u6BB5\u843D",heading:"\u6807\u9898"}},Blockquote:{tooltip:"\u5F15\u7528"},CodeBlock:{tooltip:"\u4EE3\u7801\u5757"},Link:{add:{tooltip:"\u6DFB\u52A0\u94FE\u63A5",control:{title:"\u6DFB\u52A0\u94FE\u63A5",href:"\u94FE\u63A5\u5730\u5740",open_in_new_tab:"\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",confirm:"\u5E94\u7528",cancel:"\u53D6\u6D88"}},edit:{tooltip:"\u7F16\u8F91\u94FE\u63A5",control:{title:"\u7F16\u8F91\u94FE\u63A5",href:"\u94FE\u63A5\u5730\u5740",open_in_new_tab:"\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",confirm:"\u66F4\u65B0",cancel:"\u53D6\u6D88"}},unlink:{tooltip:"\u53D6\u6D88\u94FE\u63A5"},open:{tooltip:"\u6253\u5F00\u94FE\u63A5"}},Image:{buttons:{insert_image:{tooltip:"\u63D2\u5165\u56FE\u7247",external:"\u901A\u8FC7\u94FE\u63A5\u63D2\u5165\u56FE\u7247",upload:"\u4E0A\u4F20\u56FE\u7247"},remove_image:{tooltip:"\u79FB\u9664\u56FE\u7247"},image_options:{tooltip:"\u56FE\u7247\u9009\u9879"},display:{tooltip:"\u663E\u793A",inline:"\u884C\u5185",block:"\u65AD\u884C",left:"\u5DE6\u6D6E\u52A8",right:"\u53F3\u6D6E\u52A8"}},control:{insert_by_url:{title:"\u63D2\u5165\u56FE\u7247",placeholder:"\u56FE\u7247 URL",confirm:"\u63D2\u5165",cancel:"\u53D6\u6D88",invalid_url:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684 URL"},upload_image:{title:"\u4E0A\u4F20\u56FE\u7247",button:"\u9009\u62E9\u4E00\u4E2A\u56FE\u7247\u6587\u4EF6\u6216\u62D6\u52A8\u5230\u6B64\u5904"},edit_image:{title:"\u7F16\u8F91\u56FE\u7247",confirm:"\u66F4\u65B0",cancel:"\u53D6\u6D88",form:{src:"\u56FE\u7247 URL",alt:"\u66FF\u4EE3\u6587\u672C",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}}}},Iframe:{tooltip:"\u63D2\u5165\u89C6\u9891",control:{title:"\u63D2\u5165\u89C6\u9891",placeholder:"\u89C6\u9891\u94FE\u63A5",confirm:"\u63D2\u5165",cancel:"\u53D6\u6D88"}},BulletList:{tooltip:"\u65E0\u5E8F\u5217\u8868"},OrderedList:{tooltip:"\u6709\u5E8F\u5217\u8868"},TodoList:{tooltip:"\u5F85\u529E\u5217\u8868"},TextAlign:{buttons:{align_left:{tooltip:"\u5DE6\u5BF9\u9F50"},align_center:{tooltip:"\u5C45\u4E2D\u5BF9\u9F50"},align_right:{tooltip:"\u53F3\u5BF9\u9F50"},align_justify:{tooltip:"\u4E24\u7AEF\u5BF9\u9F50"}}},FontType:{tooltip:"\u5B57\u4F53"},FontSize:{tooltip:"\u5B57\u53F7",default:"\u9ED8\u8BA4"},TextColor:{tooltip:"\u6587\u5B57\u989C\u8272"},TextHighlight:{tooltip:"\u9AD8\u4EAE\u989C\u8272"},LineHeight:{tooltip:"\u884C\u9AD8"},Table:{tooltip:"\u8868\u683C",buttons:{insert_table:"\u63D2\u5165\u8868\u683C",add_column_before:"\u5728\u524D\u9762\u63D2\u5165\u5217",add_column_after:"\u5728\u540E\u9762\u63D2\u5165\u5217",delete_column:"\u5220\u9664\u5217",add_row_before:"\u5728\u4E0A\u9762\u63D2\u5165\u884C",add_row_after:"\u5728\u4E0B\u9762\u63D2\u5165\u884C",delete_row:"\u5220\u9664\u884C",merge_cells:"\u5408\u5E76\u5355\u5143\u683C",split_cell:"\u62C6\u5206\u5355\u5143\u683C",delete_table:"\u5220\u9664\u8868\u683C"}},Indent:{buttons:{indent:{tooltip:"\u589E\u52A0\u7F29\u8FDB"},outdent:{tooltip:"\u51CF\u5C11\u7F29\u8FDB"}}},FormatClear:{tooltip:"\u6E05\u9664\u683C\u5F0F"},HorizontalRule:{tooltip:"\u5206\u5272\u7EBF"},History:{tooltip:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"}},Fullscreen:{tooltip:{fullscreen:"\u5168\u5C4F",exit_fullscreen:"\u9000\u51FA\u5168\u5C4F"}},Print:{tooltip:"\u6253\u5370"},Preview:{tooltip:"\u9884\u89C8",dialog:{title:"\u9884\u89C8"}},SelectAll:{tooltip:"\u5168\u9009"},CodeView:{tooltip:"\u4EE3\u7801\u89C6\u56FE"}},characters:"\u5B57\u7B26"}},Zx={editor:{extensions:{Bold:{tooltip:"\u7C97\u9AD4"},Underline:{tooltip:"\u5E95\u7DDA"},Italic:{tooltip:"\u659C\u9AD4"},Strike:{tooltip:"\u522A\u9664\u7DDA"},Heading:{tooltip:"\u6A19\u984C",buttons:{paragraph:"\u6BB5\u843D",heading:"\u6A19\u984C"}},Blockquote:{tooltip:"\u5F15\u7528"},CodeBlock:{tooltip:"\u7A0B\u5F0F\u78BC"},Link:{add:{tooltip:"\u65B0\u589E\u8D85\u9023\u7D50",control:{title:"\u65B0\u589E\u8D85\u9023\u7D50",href:"\u8D85\u9023\u7D50",open_in_new_tab:"\u5728\u65B0\u5206\u9801\u958B\u555F",confirm:"\u65B0\u589E",cancel:"\u53D6\u6D88"}},edit:{tooltip:"\u7DE8\u8F2F\u8D85\u9023\u7D50",control:{title:"\u7DE8\u8F2F\u8D85\u9023\u7D50",href:"\u8D85\u9023\u7D50",open_in_new_tab:"\u5728\u65B0\u5206\u9801\u958B\u555F",confirm:"\u66F4\u65B0",cancel:"\u53D6\u6D88"}},unlink:{tooltip:"\u53D6\u6D88\u8D85\u9023\u7D50"},open:{tooltip:"\u6253\u958B\u8D85\u9023\u7D50"}},Image:{buttons:{insert_image:{tooltip:"\u65B0\u589E\u5716\u7247",external:"\u65B0\u589E\u7DB2\u8DEF\u5716\u7247",upload:"\u4E0A\u50B3\u672C\u6A5F\u5716\u7247"},remove_image:{tooltip:"\u522A\u9664"},image_options:{tooltip:"\u5716\u7247\u5C6C\u6027"},display:{tooltip:"\u4F48\u5C40",inline:"\u5185\u806F",block:"\u584A",left:"\u5DE6\u6D6E\u52D5",right:"\u53F3\u6D6E\u52D5"}},control:{insert_by_url:{title:"\u65B0\u589E\u7DB2\u8DEF\u5716\u7247",placeholder:"\u8F38\u5165\u8D85\u9023\u7D50",confirm:"\u65B0\u589E",cancel:"\u53D6\u6D88",invalid_url:"\u8ACB\u8F38\u5165\u6B63\u78BA\u7684\u5716\u7247\u9023\u7D50"},upload_image:{title:"\u4E0A\u50B3\u672C\u6A5F\u5716\u7247",button:"\u5C07\u5716\u7247\u6587\u4EF6\u62D6\u5230\u6B64\u8655\u6216\u8005\u9EDE\u64CA\u4E0A\u50B3"},edit_image:{title:"\u7DE8\u8F2F\u5716\u7247",confirm:"\u66F4\u65B0",cancel:"\u53D6\u6D88",form:{src:"\u5716\u7247\u9023\u7D50",alt:"\u66FF\u4EE3\u6587\u5B57",width:"\u5BEC\u5EA6",height:"\u9AD8\u5EA6"}}}},Iframe:{tooltip:"\u65B0\u589E\u5F71\u7247",control:{title:"\u65B0\u589E\u5F71\u7247",placeholder:"\u8F38\u5165\u8D85\u9023\u7D50",confirm:"\u78BA\u8A8D",cancel:"\u53D6\u6D88"}},BulletList:{tooltip:"\u7121\u5E8F\u5217\u8868"},OrderedList:{tooltip:"\u6709\u5E8F\u5217\u8868"},TodoList:{tooltip:"\u4EFB\u52D9\u5217\u8868"},TextAlign:{buttons:{align_left:{tooltip:"\u7F6E\u5DE6"},align_center:{tooltip:"\u7F6E\u4E2D"},align_right:{tooltip:"\u7F6E\u53F3"},align_justify:{tooltip:"\u6C34\u5E73\u5C0D\u9F4A"}}},FontType:{tooltip:"\u5B57\u9AD4"},FontSize:{tooltip:"\u5B57\u9AD4\u5927\u5C0F",default:"\u9ED8\u8A8D"},TextColor:{tooltip:"\u6587\u5B57\u984F\u8272"},TextHighlight:{tooltip:"\u6587\u5B57\u53CD\u767D"},LineHeight:{tooltip:"\u884C\u8DDD"},Table:{tooltip:"\u8868\u683C",buttons:{insert_table:"\u65B0\u589E\u8868\u683C",add_column_before:"\u5411\u5DE6\u65B0\u589E\u4E00\u5217",add_column_after:"\u5411\u53F3\u65B0\u589E\u4E00\u5217",delete_column:"\u522A\u9664\u5217",add_row_before:"\u5411\u4E0A\u65B0\u589E\u4E00\u884C",add_row_after:"\u5411\u4E0B\u65B0\u589E\u4E00\u884C",delete_row:"\u5220\u9664\u884C",merge_cells:"\u5408\u4F75",split_cell:"\u5206\u96E2\u5132\u5B58\u683C",delete_table:"\u5220\u9664\u8868\u683C"}},Indent:{buttons:{indent:{tooltip:"\u589E\u52A0\u7E2E\u6392"},outdent:{tooltip:"\u51CF\u5C11\u7E2E\u6392"}}},FormatClear:{tooltip:"\u6E05\u9664\u683C\u5F0F"},HorizontalRule:{tooltip:"\u5206\u9694\u7DDA"},History:{tooltip:{undo:"\u5FA9\u539F",redo:"\u53D6\u6D88\u5FA9\u539F"}},Fullscreen:{tooltip:{fullscreen:"\u5168\u87A2\u5E55",exit_fullscreen:"\u9000\u51FA\u5168\u87A2\u5E55"}},Print:{tooltip:"\u5217\u5370"},Preview:{tooltip:"\u9810\u89BD",dialog:{title:"\u9810\u89BD"}},SelectAll:{tooltip:"\u5168\u9078"},CodeView:{tooltip:"\u67E5\u770B\u539F\u59CB\u78BC"}},characters:"\u5B57\u6578"}},Qx={editor:{extensions:{Bold:{tooltip:"Pogrubienie"},Underline:{tooltip:"Podkre\u015Blenie"},Italic:{tooltip:"Kursywa"},Strike:{tooltip:"Przekre\u015Blenie"},Heading:{tooltip:"Nag\u0142\xF3wek",buttons:{paragraph:"Paragraf",heading:"Nag\u0142\xF3wek"}},Blockquote:{tooltip:"Cytat"},CodeBlock:{tooltip:"Kod"},Link:{add:{tooltip:"Dodaj link",control:{title:"Dodaj Link",href:"\u0179r\xF3d\u0142o",open_in_new_tab:"Otw\xF3rz w nowej karcie",confirm:"Dodaj",cancel:"Anuluj"}},edit:{tooltip:"Edytuj link",control:{title:"Edytuj link",href:"\u0179r\xF3d\u0142o",open_in_new_tab:"Otw\xF3rz w nowej karcie",confirm:"aktualizacja",cancel:"Anuluj"}},unlink:{tooltip:"Odczepi\u0107"},open:{tooltip:"Otw\xF3rz link"}},Image:{buttons:{insert_image:{tooltip:"Dodaj obraz",external:"Dodaj obraz online",upload:"Dodaj obraz z dysku"},remove_image:{tooltip:"Usu\u0144"},image_options:{tooltip:"Opcje obrazu"},display:{tooltip:"Pokaz",inline:"Inline",block:"Podziel tekst",left:"Przesu\u0144 w lewo",right:"P\u0142y\u0144 w prawo"}},control:{insert_by_url:{title:"Dodawanie obrazu online",placeholder:"URL obrazu",confirm:"Dodaj",cancel:"Zamknij",invalid_url:"Prosz\u0119 poda\u0107 prawid\u0142owy link prowadz\u0105cy do obrazu"},upload_image:{title:"Dodawanie obrazu z dysku",button:"Wska\u017C obraz lub przeci\u0105gnij go tutaj"},edit_image:{title:"Edytuj obraz",confirm:"Aktualizacja",cancel:"Zamknij",form:{src:"URL obrazu",alt:"Alternatywny Tekst",width:"Szeroko\u015B\u0107",height:"Wysoko\u015B\u0107"}}}},Iframe:{tooltip:"Dodaj film",control:{title:"Dodaj film",placeholder:"URL filmu",confirm:"Dodaj",cancel:"Zamknij"}},BulletList:{tooltip:"Lista wypunktowana"},OrderedList:{tooltip:"Lista uporz\u0105dkowana"},TodoList:{tooltip:"Lista rzeczy do zrobienia"},TextAlign:{buttons:{align_left:{tooltip:"Wyr\xF3wnaj do lewej"},align_center:{tooltip:"Wy\u015Brodkuj"},align_right:{tooltip:"Wyr\xF3wnaj do prawej"},align_justify:{tooltip:"Wyjustuj"}}},FontType:{tooltip:"Rodzina czcionek"},FontSize:{tooltip:"Rozmiar czcionki",default:"domy\u015Blna"},TextColor:{tooltip:"Kolor tekstu"},TextHighlight:{tooltip:"Pod\u015Bwietlenie tekstu"},LineHeight:{tooltip:"Wysoko\u015B\u0107 linii"},Table:{tooltip:"Tabela",buttons:{insert_table:"Dodaj tabel\u0119",add_column_before:"Dodaj kolumn\u0119 przed",add_column_afer:"Dodaj kolumn\u0119 za",delete_column:"Usu\u0144 kolumn\u0119",add_row_before:"Dodaj wiersz przed",add_row_after:"Dodaj wiersz za",delete_row:"Usu\u0144 wiersz",merge_cells:"Po\u0142\u0105cz kom\xF3rki",split_cell:"Rozdziel kom\xF3rki",delete_table:"Usu\u0144 tabel\u0119"}},Indent:{buttons:{indent:{tooltip:"Zwi\u0119ksz wci\u0119cie"},outdent:{tooltip:"Zmniejsz wci\u0119cie"}}},FormatClear:{tooltip:"Wyczy\u015B\u0107 formatowanie"},HorizontalRule:{tooltip:"Linia pozioma"},History:{tooltip:{undo:"Cofnij",redo:"Powt\xF3rz"}},Fullscreen:{tooltip:{fullscreen:"Pe\u0142ny ekran",exit_fullscreen:"Zamknij pe\u0142ny ekran"}},Print:{tooltip:"Drukuj"},Preview:{tooltip:"Podgl\u0105d",dialog:{title:"Podgl\u0105d"}},SelectAll:{tooltip:"Zaznacz wszystko"},CodeView:{tooltip:"Widok kodu"}},characters:"Znaki"}},eT={editor:{extensions:{Bold:{tooltip:"\u041F\u043E\u043B\u0443\u0436\u0438\u0440\u043D\u044B\u0439"},Underline:{tooltip:"\u041F\u043E\u0434\u0447\u0435\u0440\u043A\u043D\u0443\u0442\u044B\u0439"},Italic:{tooltip:"\u041A\u0443\u0440\u0441\u0438\u0432"},Strike:{tooltip:"\u0417\u0430\u0447\u0435\u0440\u043A\u043D\u0443\u0442\u044B\u0439"},Heading:{tooltip:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",buttons:{paragraph:"\u041F\u0430\u0440\u0430\u0433\u0440\u0430\u0444",heading:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A"}},Blockquote:{tooltip:"\u0426\u0438\u0442\u0430\u0442\u0430"},CodeBlock:{tooltip:"\u0411\u043B\u043E\u043A \u043A\u043E\u0434\u0430"},Link:{add:{tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",control:{title:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",href:"\u0410\u0434\u0440\u0435\u0441",open_in_new_tab:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435",confirm:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"}},edit:{tooltip:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",control:{title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",href:"\u0410\u0434\u0440\u0435\u0441",open_in_new_tab:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435",confirm:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"}},unlink:{tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443"},open:{tooltip:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443"}},Image:{buttons:{insert_image:{tooltip:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0443",external:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0443 \u043F\u043E \u0441\u0441\u044B\u043B\u043A\u0435",upload:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0443"},remove_image:{tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"},image_options:{tooltip:"\u041E\u043F\u0446\u0438\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F"},display:{tooltip:"\u041F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435",inline:"\u0412 \u0442\u0435\u043A\u0441\u0442\u0435",block:"\u041E\u0431\u0442\u0435\u043A\u0430\u043D\u0438\u0435 \u0442\u0435\u043A\u0441\u0442\u043E\u043C",left:"\u0421\u043B\u0435\u0432\u0430",right:"\u0421\u043F\u0440\u0430\u0432\u0430"}},control:{insert_by_url:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0443",placeholder:"\u0410\u0434\u0440\u0435\u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438",confirm:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",invalid_url:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441"},upload_image:{title:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0443",button:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0441\u044E\u0434\u0430"},edit_image:{title:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",confirm:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",form:{src:"\u0410\u0434\u0440\u0435\u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438",alt:"\u0410\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442",width:"\u0428\u0438\u0440\u0438\u043D\u0430",height:"\u0412\u044B\u0441\u043E\u0442\u0430"}}}},Iframe:{tooltip:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0432\u0438\u0434\u0435\u043E",control:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0432\u0438\u0434\u0435\u043E",placeholder:"\u0410\u0434\u0440\u0435\u0441",confirm:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"}},BulletList:{tooltip:"\u041C\u0430\u0440\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A"},OrderedList:{tooltip:"\u041D\u0443\u043C\u0435\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A"},TodoList:{tooltip:"\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447"},TextAlign:{buttons:{align_left:{tooltip:"\u0412\u044B\u0440\u043E\u0432\u043D\u044F\u0442\u044C \u043F\u043E \u043B\u0435\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E"},align_center:{tooltip:"\u0412\u044B\u0440\u043E\u0432\u043D\u044F\u0442\u044C \u043F\u043E \u0446\u0435\u043D\u0442\u0440\u0443"},align_right:{tooltip:"\u0412\u044B\u0440\u043E\u0432\u043D\u044F\u0442\u044C \u043F\u043E \u043F\u0440\u0430\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E"},align_justify:{tooltip:"\u0412\u044B\u0440\u043E\u0432\u043D\u044F\u0442\u044C \u043F\u043E \u0448\u0438\u0440\u0438\u043D\u0435"}}},FontType:{tooltip:"\u0428\u0440\u0438\u0444\u0442"},FontSize:{tooltip:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",default:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E"},TextColor:{tooltip:"\u0426\u0432\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430"},TextHighlight:{tooltip:"\u0426\u0432\u0435\u0442 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0442\u0435\u043A\u0441\u0442\u0430"},LineHeight:{tooltip:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B"},Table:{tooltip:"\u0422\u0430\u0431\u043B\u0438\u0446\u0430",buttons:{insert_table:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0442\u0430\u0431\u043B\u0438\u0446\u0443",add_column_before:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 \u0441\u043B\u0435\u0432\u0430",add_column_after:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 \u0441\u043F\u0440\u0430\u0432\u0430",delete_column:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446",add_row_before:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u0441\u0432\u0435\u0440\u0445\u0443",add_row_after:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u0441\u043D\u0438\u0437\u0443",delete_row:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",merge_cells:"\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u044F\u0447\u0435\u0439\u043A\u0438",split_cell:"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C \u044F\u0447\u0435\u0439\u043A\u0438",delete_table:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0430\u0431\u043B\u0438\u0446\u0443"}},Indent:{buttons:{indent:{tooltip:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F"},outdent:{tooltip:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F"}}},FormatClear:{tooltip:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"},HorizontalRule:{tooltip:"\u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u043B\u0438\u043D\u0438\u044F"},History:{tooltip:{undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"}},Fullscreen:{tooltip:{fullscreen:"\u041F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",exit_fullscreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430"}},Print:{tooltip:"\u041F\u0435\u0447\u0430\u0442\u044C"},Preview:{tooltip:"\u041F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440",dialog:{title:"\u041F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440"}},SelectAll:{tooltip:"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u0441\u0435"},CodeView:{tooltip:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u043E\u0434\u0430"}},characters:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"}},tT={editor:{extensions:{Bold:{tooltip:"Fett"},Underline:{tooltip:"Unterstrichen"},Italic:{tooltip:"Kursiv"},Strike:{tooltip:"Durchgestrichen"},Heading:{tooltip:"\xDCberschrift",buttons:{paragraph:"Absatz",heading:"\xDCberschrift"}},Blockquote:{tooltip:"Zitat"},CodeBlock:{tooltip:"Codeblock"},Link:{add:{tooltip:"Link hinzuf\xFCgen",control:{title:"Link hinzuf\xFCgen",href:"Link",open_in_new_tab:"\xD6ffnen Sie in einem neuen Tab",confirm:"Hinzuf\xFCgen",cancel:"Abbrechen"}},edit:{tooltip:"Link bearbeiten",control:{title:"Link bearbeiten",href:"Link",open_in_new_tab:"\xD6ffnen Sie in einem neuen Tab",confirm:"Speichern",cancel:"Abbrechen"}},unlink:{tooltip:"Link entfernen"},open:{tooltip:"Link \xF6ffnen"}},Image:{buttons:{insert_image:{tooltip:"Bild einf\xFCgen",external:"Bild von URL einf\xFCgen",upload:"Bild hochladen"},remove_image:{tooltip:"Entfernen"},image_options:{tooltip:"Bildoptionen"},display:{tooltip:"Textumbruch",inline:"In der Zeile",block:"Text teilen",left:"Links",right:"Rechts"}},control:{insert_by_url:{title:"Bild einf\xFCgen",placeholder:"Bild URL",confirm:"Einf\xFCgen",cancel:"Abbrechen",invalid_url:"Diese URL hat ein ung\xFCltiges Format"},upload_image:{title:"Bild hochladen",button:"W\xE4hlen Sie ein Bild aus, oder ziehen Sie ein Bild auf dieses Feld"},edit_image:{title:"Bild Bearbeiten",confirm:"Speichern",cancel:"Abbrechen",form:{src:"Bild URL",alt:"Alternativer Text (angezeigt beim \xDCberfahren mit Maus)",width:"Breite",height:"H\xF6he"}}}},Iframe:{tooltip:"Video einf\xFCgen",control:{title:"Video einf\xFCgen",placeholder:"Link",confirm:"Einf\xFCgen",cancel:"Abbrechen"}},BulletList:{tooltip:"Aufz\xE4hlungsliste"},OrderedList:{tooltip:"Nummerierte Liste"},TodoList:{tooltip:"Erledigungsliste"},TextAlign:{buttons:{align_left:{tooltip:"Linksb\xFCndig"},align_center:{tooltip:"Zentriert"},align_right:{tooltip:"Rechtsb\xFCndig"},align_justify:{tooltip:"Blocksatz"}}},FontType:{tooltip:"Schriftfamilie"},FontSize:{tooltip:"Schriftgr\xF6\xDFe",default:"standard"},TextColor:{tooltip:"Textfarbe"},TextHighlight:{tooltip:"Hervorhebungsfarbe"},LineHeight:{tooltip:"Zeilenabstand"},Table:{tooltip:"Tabelle",buttons:{insert_table:"Tabelle einf\xFCgen",add_column_before:"Spalte vorher einf\xFCgen",add_column_after:"Spalte nachher einf\xFCgen",delete_column:"Spalte l\xF6schen",add_row_before:"Zeile vorher einf\xFCgen",add_row_after:"Zeile nachher einf\xFCgen",delete_row:"Zeile l\xF6schen",merge_cells:"Zellen verbinden",split_cell:"Zellen aufteilen",delete_table:"Tabelle l\xF6schen"}},Indent:{buttons:{indent:{tooltip:"Einzug vergr\xF6\xDFern"},outdent:{tooltip:"Einzug verringern"}}},FormatClear:{tooltip:"Formattierung entfernen"},HorizontalRule:{tooltip:"Horizontale Linie"},History:{tooltip:{undo:"R\xFCckg\xE4ngig",redo:"Wiederholen"}},Fullscreen:{tooltip:{fullscreen:"Vollbild",exit_fullscreen:"Vollbild verlassen"}},Print:{tooltip:"Drucken"},Preview:{tooltip:"Vorschau",dialog:{title:"Vorschau"}},SelectAll:{tooltip:"Alles ausw\xE4hlen"},CodeView:{tooltip:"Codeansicht"}},characters:"Zeichen"}},nT={editor:{extensions:{Bold:{tooltip:"\uAD75\uAC8C"},Underline:{tooltip:"\uBC11\uC904"},Italic:{tooltip:"\uAE30\uC6B8\uC784"},Strike:{tooltip:"\uCDE8\uC18C\uC120"},Heading:{tooltip:"\uBB38\uB2E8 \uD615\uC2DD",buttons:{paragraph:"\uBB38\uB2E8",heading:"\uC81C\uBAA9"}},Blockquote:{tooltip:"\uC778\uC6A9"},CodeBlock:{tooltip:"\uCF54\uB4DC"},Link:{add:{tooltip:"\uB9C1\uD06C \uCD94\uAC00",control:{title:"\uB9C1\uD06C \uCD94\uAC00",href:"URL\uC8FC\uC18C",open_in_new_tab:"\uC0C8 \uD0ED\uC5D0\uC11C \uC5F4\uAE30",confirm:"\uC801\uC6A9",cancel:"\uCDE8\uC18C"}},edit:{tooltip:"\uB9C1\uD06C \uD3B8\uC9D1",control:{title:"\uB9C1\uD06C \uD3B8\uC9D1",href:"URL\uC8FC\uC18C",open_in_new_tab:"\uC0C8 \uD0ED\uC5D0\uC11C \uC5F4\uAE30",confirm:"\uC801\uC6A9",cancel:"\uCDE8\uC18C"}},unlink:{tooltip:"\uB9C1\uD06C \uC81C\uAC70"},open:{tooltip:"\uB9C1\uD06C \uC5F4\uAE30"}},Image:{buttons:{insert_image:{tooltip:"\uC774\uBBF8\uC9C0 \uCD94\uAC00",external:"\uC774\uBBF8\uC9C0 URL\uC744 \uC785\uB825\uD558\uC138\uC694.",upload:"\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC"},remove_image:{tooltip:"\uC81C\uAC70"},image_options:{tooltip:"\uC774\uBBF8\uC9C0 \uC635\uC158"},display:{tooltip:"\uD45C\uC2DC",inline:"\uC778\uB77C\uC778",block:"\uC0C8\uC904",left:"\uC88C\uCE21 \uC815\uB82C",right:"\uC6B0\uCE21 \uC815\uB82C"}},control:{insert_by_url:{title:"\uC774\uBBF8\uC9C0 \uCD94\uAC00",placeholder:"\uC774\uBBF8\uC9C0 URL",confirm:"\uCD94\uAC00",cancel:"\uCDE8\uC18C",invalid_url:"\uC815\uD655\uD55C URL\uC744 \uC785\uB825\uD558\uC138\uC694"},upload_image:{title:"\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC",button:"\uC774\uBBF8\uC9C0 \uD30C\uC77C\uC744 \uC120\uD0DD\uD558\uAC70\uB098 \uB04C\uC5B4\uB123\uAE30 \uD558\uC138\uC694"},edit_image:{title:"\uC774\uBBF8\uC9C0 \uD3B8\uC9D1",confirm:"\uC801\uC6A9",cancel:"\uCDE8\uC18C",form:{src:"\uC774\uBBF8\uC9C0 URL",alt:"\uB300\uCCB4 \uD14D\uC2A4\uD2B8",width:"\uB108\uBE44",height:"\uB192\uC774"}}}},Iframe:{tooltip:"\uBE44\uB514\uC624 \uCD94\uAC00",control:{title:"\uBE44\uB514\uC624 \uCD94\uAC00",placeholder:"\uBE44\uB514\uC624 URL",confirm:"\uCD94\uAC00",cancel:"\uCDE8\uC18C"}},BulletList:{tooltip:"\uBE44\uBC88\uD638 \uBAA9\uB85D"},OrderedList:{tooltip:"\uBC88\uD638 \uBAA9\uB85D"},TodoList:{tooltip:"\uD560\uC77C \uBAA9\uB85D"},TextAlign:{buttons:{align_left:{tooltip:"\uC88C\uCE21 \uC815\uB82C"},align_center:{tooltip:"\uC911\uC559 \uC815\uB82C"},align_right:{tooltip:"\uC6B0\uCE21 \uC815\uB82C"},align_justify:{tooltip:"\uC88C\uC6B0 \uC815\uB82C"}}},FontType:{tooltip:"\uD3F0\uD2B8"},FontSize:{tooltip:"\uAE00\uC790 \uD06C\uAE30",default:"\uAE30\uBCF8"},TextColor:{tooltip:"\uAE00\uC790 \uC0C9"},TextHighlight:{tooltip:"\uAE00\uC790 \uAC15\uC870"},LineHeight:{tooltip:"\uC904 \uB192\uC774"},Table:{tooltip:"\uD14C\uC774\uBE14",buttons:{insert_table:"\uD14C\uC774\uBE14 \uCD94\uAC00",add_column_before:"\uC774\uC804\uC5D0 \uC5F4 \uCD94\uAC00",add_column_after:"\uC774\uD6C4\uC5D0 \uC5F4 \uCD94\uAC00",delete_column:"\uC5F4 \uC0AD\uC81C",add_row_before:"\uC774\uC804\uC5D0 \uC904 \uCD94\uAC00",add_row_after:"\uC774\uD6C4\uC5D0 \uC904 \uCD94\uAC00",delete_row:"\uC904 \uC0AD\uC81C",merge_cells:"\uC140 \uBCD1\uD569",split_cell:"\uC140 \uBD84\uD560",delete_table:"\uD14C\uC774\uBE14 \uC0AD\uC81C"}},Indent:{buttons:{indent:{tooltip:"\uB4E4\uC5EC \uC4F0\uAE30"},outdent:{tooltip:"\uB0B4\uC5B4 \uC4F0\uAE30"}}},FormatClear:{tooltip:"\uD615\uC2DD \uC9C0\uC6B0\uAE30"},HorizontalRule:{tooltip:"\uAC00\uB85C \uC904"},History:{tooltip:{undo:"\uB418\uB3CC\uB9AC\uAE30",redo:"\uB2E4\uC2DC \uC2E4\uD589"}},Fullscreen:{tooltip:{fullscreen:"\uC804\uCCB4\uD654\uBA74",exit_fullscreen:"\uC804\uCCB4\uD654\uBA74 \uB098\uAC00\uAE30"}},Print:{tooltip:"\uC778\uC1C4"},Preview:{tooltip:"\uBBF8\uB9AC\uBCF4\uAE30",dialog:{title:"\uBBF8\uB9AC\uBCF4\uAE30"}},SelectAll:{tooltip:"\uC804\uCCB4\uC120\uD0DD"},CodeView:{tooltip:"\uCF54\uB4DC \uBDF0"}},characters:"\uBB38\uC790\uC218"}},rT={editor:{extensions:{Bold:{tooltip:"Negrita"},Underline:{tooltip:"Subrayado"},Italic:{tooltip:"Cursiva"},Strike:{tooltip:"Texto tachado"},Heading:{tooltip:"Encabezado",buttons:{paragraph:"P\xE1rrafo",heading:"Encabezado"}},Blockquote:{tooltip:"Bloque de cita"},CodeBlock:{tooltip:"Bloque de c\xF3digo"},Link:{add:{tooltip:"Crear enlace",control:{title:"Crear enlace",href:"Href",open_in_new_tab:"Abrir en una pesta\xF1a nueva",confirm:"Crear",cancel:"Cancelar"}},edit:{tooltip:"Editar enlace",control:{title:"Editar enlace",href:"Href",open_in_new_tab:"Abrir en una pesta\xF1a nueva",confirm:"Actualizar",cancel:"Cancelar"}},unlink:{tooltip:"Desenlazar"},open:{tooltip:"Abrir enlace"}},Image:{buttons:{insert_image:{tooltip:"Insertar imagen",external:"Insertar imagen desde Url",upload:"Cargar imagen"},remove_image:{tooltip:"Eliminar"},image_options:{tooltip:"Opciones de imagen"},display:{tooltip:"Visualizaci\xF3n",inline:"En l\xEDnea",block:"Bloque",left:"Flotar a la izquierda",right:"Flotar a la derecha"}},control:{insert_by_url:{title:"Insertar imagen",placeholder:"Url de la imagen",confirm:"Insertar",cancel:"Cancelar",invalid_url:"Por favor introduce una Url v\xE1lida"},upload_image:{title:"Cargar imagen",button:"Selecciona una imagen o arr\xE1strala aqu\xED"},edit_image:{title:"Editar imagen",confirm:"Actualizar",cancel:"Cancelar",form:{src:"Url de la imagen",alt:"Texto alternativo",width:"Ancho",height:"Alto"}}}},Iframe:{tooltip:"Insertar v\xEDdeo",control:{title:"Insertar v\xEDdeo",placeholder:"Href",confirm:"Insertar",cancel:"Cancelar"}},BulletList:{tooltip:"Lista desordenada"},OrderedList:{tooltip:"Lista ordenada"},TodoList:{tooltip:"Lista de tareas"},TextAlign:{buttons:{align_left:{tooltip:"Alinear a la izquierda"},align_center:{tooltip:"Centrar texto"},align_right:{tooltip:"Alinear a la derecha"},align_justify:{tooltip:"Texto justificado"}}},FontType:{tooltip:"Fuente"},FontSize:{tooltip:"Tama\xF1o de fuente",default:"por defecto"},TextColor:{tooltip:"Color de texto"},TextHighlight:{tooltip:"Resaltar texto"},LineHeight:{tooltip:"Altura de l\xEDnea"},Table:{tooltip:"Tabla",buttons:{insert_table:"Insertar tabla",add_column_before:"A\xF1adir columna antes",add_column_after:"A\xF1adir columna despu\xE9s",delete_column:"Eliminar columna",add_row_before:"A\xF1adir fila antes",add_row_after:"A\xF1adir fila despu\xE9s",delete_row:"Eliminar fila",merge_cells:"Fusionar celdas",split_cell:"Separar celda",delete_table:"Eliminar la tabla"}},Indent:{buttons:{indent:{tooltip:"Indentar"},outdent:{tooltip:"Desindentar"}}},FormatClear:{tooltip:"Borrar formato"},HorizontalRule:{tooltip:"Separador horizontal"},History:{tooltip:{undo:"Deshacer",redo:"Rehacer"}},Fullscreen:{tooltip:{fullscreen:"Pantalla completa",exit_fullscreen:"Salir de pantalla completa"}},Print:{tooltip:"Imprimir"},Preview:{tooltip:"Vista previa",dialog:{title:"Vista previa"}},SelectAll:{tooltip:"Seleccionar todo"},CodeView:{tooltip:"Vista de c\xF3digo"}},characters:"Caracteres"}},oT={editor:{extensions:{Bold:{tooltip:"Gras"},Underline:{tooltip:"Soulign\xE9"},Italic:{tooltip:"Italique"},Strike:{tooltip:"Barr\xE9"},Heading:{tooltip:"Titre",buttons:{paragraph:"Paragraphe",heading:"Titre"}},Blockquote:{tooltip:"Citation"},CodeBlock:{tooltip:"Bloc de code"},Link:{add:{tooltip:"Appliquer le lien",control:{title:"Appliquer le lien",href:"Cible du lien",open_in_new_tab:"Ouvrir dans un nouvel onglet",confirm:"Appliquer",cancel:"Annuler"}},edit:{tooltip:"Editer le lien",control:{title:"Editer le lien",href:"Cible du lien",open_in_new_tab:"Ouvrir dans un nouvel onglet",confirm:"Mettre \xE0 jour",cancel:"Annuler"}},unlink:{tooltip:"Supprimer le lien"},open:{tooltip:"Ouvrir le lien"}},Image:{buttons:{insert_image:{tooltip:"Ins\xE9rer une image",external:"Ins\xE9rer une image via un lien",upload:"T\xE9l\xE9charger une image"},remove_image:{tooltip:"Retirer"},image_options:{tooltip:"Options de l'image"},display:{tooltip:"Affichage",inline:"En ligne",block:"Rupture du texte",left:"Floter \xE0 gauche",right:"Floter \xE0 droite"}},control:{insert_by_url:{title:"Ins\xE9rer une image",placeholder:"Lien de l'image",confirm:"Ins\xE9rer",cancel:"Annuler",invalid_url:"Lien de l'image incorrect, merci de corriger"},upload_image:{title:"T\xE9l\xE9charger une image",button:"Choisir une image ou d\xE9poser celle-ci ici"},edit_image:{title:"Editer l'image",confirm:"Mettre \xE0 jour",cancel:"Annuler",form:{src:"Lien de l'image",alt:"Texte alternatif",width:"Largeur",height:"Hauteur"}}}},Iframe:{tooltip:"Ins\xE9rer une video",control:{title:"Ins\xE9rer une video",placeholder:"Lien",confirm:"Ins\xE9rer",cancel:"Annuler"}},BulletList:{tooltip:"Liste \xE0 puces"},OrderedList:{tooltip:"Liste ordonn\xE9e"},TodoList:{tooltip:"Liste de choses \xE0 faire"},TextAlign:{buttons:{align_left:{tooltip:"Aligner \xE0 gauche"},align_center:{tooltip:"Aigner au centre"},align_right:{tooltip:"Aligner \xE0 droite"},align_justify:{tooltip:"Justifier"}}},FontType:{tooltip:"Police de caract\xE8re"},FontSize:{tooltip:"Taille de la police",default:"Par d\xE9faut"},TextColor:{tooltip:"Couleur du texte"},TextHighlight:{tooltip:"Texte surlign\xE9"},LineHeight:{tooltip:"Hauteur de ligne"},Table:{tooltip:"Tableau",buttons:{insert_table:"Ins\xE9rer un tableau",add_column_before:"Ajouter une colonne avant",add_column_after:"Ajouter une colonne apr\xE8s",delete_column:"Supprimer une colonne",add_row_before:"Ajouter une ligne avant",add_row_after:"Ajouter une ligna apr\xE8s",delete_row:"Supprimer une ligne",merge_cells:"Fusionner les cellules",split_cell:"Diviser la cellule",delete_table:"Supprimer le tableau"}},Indent:{buttons:{indent:{tooltip:"Retrait positif"},outdent:{tooltip:"Retrait n\xE9gatif"}}},FormatClear:{tooltip:"Supprimer le formatage"},HorizontalRule:{tooltip:"Ligne horizontal"},History:{tooltip:{undo:"Annuler",redo:"Refaire"}},Fullscreen:{tooltip:{fullscreen:"Plein \xE9cran",exit_fullscreen:"Sortir du plein \xE9cran"}},Print:{tooltip:"Impression"},Preview:{tooltip:"Pr\xE9visualisation",dialog:{title:"Pr\xE9visualisation"}},SelectAll:{tooltip:"Tout s\xE9lectionner"},CodeView:{tooltip:"Voir le code source"}},characters:"Caract\xE8res"}},iT={editor:{extensions:{Bold:{tooltip:"Negrito"},Underline:{tooltip:"Sublinhado"},Italic:{tooltip:"It\xE1lico"},Strike:{tooltip:"Riscado"},Heading:{tooltip:"Cabe\xE7alho",buttons:{paragraph:"Par\xE1grafo",heading:"Cabe\xE7alho"}},Blockquote:{tooltip:"Bloco de cita\xE7\xE3o"},CodeBlock:{tooltip:"Bloco de c\xF3digo"},Link:{add:{tooltip:"Inserir Link",control:{title:"Inserir Link",href:"Link de Refer\xEAncia",open_in_new_tab:"Abrir em nova aba",confirm:"Inserir",cancel:"Cancelar"}},edit:{tooltip:"Editar link",control:{title:"Editar Link",href:"Link de Refer\xEAncia",open_in_new_tab:"Abrir em nova aba",confirm:"Alterar",cancel:"Cancelar"}},unlink:{tooltip:"Excluir"},open:{tooltip:"Abrir link"}},Image:{buttons:{insert_image:{tooltip:"Inserir imagem",external:"Inserir Imagem com Url",upload:"Enviar Imagem"},remove_image:{tooltip:"Remover"},image_options:{tooltip:"Op\xE7\xF5es da Imagem"},display:{tooltip:"Visualiza\xE7\xE3o",inline:"Em Linha",block:"Quebra de Texto",left:"Para esquerda",right:"Para direita"}},control:{insert_by_url:{title:"Inserir imagem",placeholder:"Url da imagem",confirm:"Inserir",cancel:"Cancelar",invalid_url:"Por favor, entre com o link correto"},upload_image:{title:"Enviar imagem",button:"Escolha uma imagem ou arraste para c\xE1"},edit_image:{title:"Editar imagem",confirm:"Alterar",cancel:"Cancelar",form:{src:"Imagem Url",alt:"Texto alternativo",width:"Largura",height:"Altura"}}}},Iframe:{tooltip:"Inserir v\xEDdeo",control:{title:"Inserir v\xEDdeo",placeholder:"Link de Refer\xEAncia",confirm:"Inserir",cancel:"Cancelar"}},BulletList:{tooltip:"Lista de Marcadores"},OrderedList:{tooltip:"Lista Enumerada"},TodoList:{tooltip:"Lista de afazeres"},TextAlign:{buttons:{align_left:{tooltip:"Alinhar a esquerda"},align_center:{tooltip:"Alinhar ao centro"},align_right:{tooltip:"Alinhar a direita"},align_justify:{tooltip:"Alinhamento justificado"}}},FontType:{tooltip:"Fonte"},FontSize:{tooltip:"Tamnaho da Fonte",default:"padr\xE3o"},TextColor:{tooltip:"Cor do Texto"},TextHighlight:{tooltip:"Cor de destaque"},LineHeight:{tooltip:"Altura da Linha"},Table:{tooltip:"Tabela",buttons:{insert_table:"Inserir Tabela",add_column_before:"Adicionar coluna antes",add_column_after:"Adicionar coluna depois",delete_column:"Deletar coluna",add_row_before:"Adicionar linha antes",add_row_after:"Adicionar linha depois",delete_row:"Deletar linha",merge_cells:"Mesclar c\xE9lulas",split_cell:"Dividir c\xE9lula",delete_table:"Deletar tabela"}},Indent:{buttons:{indent:{tooltip:"Aumentar Recuo"},outdent:{tooltip:"Diminuir Recuo"}}},FormatClear:{tooltip:"Limpar formata\xE7\xE3o"},HorizontalRule:{tooltip:"Linha horizontal"},History:{tooltip:{undo:"Desafazer",redo:"Refazer"}},Fullscreen:{tooltip:{fullscreen:"Tela cheia",exit_fullscreen:"Fechar tela cheia"}},Print:{tooltip:"Imprimir"},Preview:{tooltip:"Pre visualizar",dialog:{title:"Pre visualizar"}},SelectAll:{tooltip:"Selecionar Todos"},CodeView:{tooltip:"Visualiza\xE7\xE3o de C\xF3digo"}},characters:"Caracteres"}},sT={editor:{extensions:{Bold:{tooltip:"Vet"},Underline:{tooltip:"Onderstrepen"},Italic:{tooltip:"Cursief"},Strike:{tooltip:"Doorhalen"},Heading:{tooltip:"Hoofdstuk",buttons:{paragraph:"Paragraaf",heading:"Hoofdstuk"}},Blockquote:{tooltip:"Citaat blokkeren"},CodeBlock:{tooltip:"Codeblok"},Link:{add:{tooltip:"Link toepassen",control:{title:"Link toepassen",href:"Link",open_in_new_tab:"Openen in nieuw tabblad",confirm:"Toepassen",cancel:"Annuleren"}},edit:{tooltip:"Link bewerken",control:{title:"Link bewerken",href:"Link",open_in_new_tab:"Openen in nieuw tabblad",confirm:"Bijwerken",cancel:"Annuleren"}},unlink:{tooltip:"Link verwijderen"},open:{tooltip:"Link openen"}},Image:{buttons:{insert_image:{tooltip:"Afbeelding invoegen",external:"Afbeelding invoegen via URL",upload:"Afbeelding uploaden"},remove_image:{tooltip:"Verwijderen"},image_options:{tooltip:"Afbeeldingsopties"},display:{tooltip:"Weergeven",inline:"In tekstregel",block:"Tekst afbreken",left:"Links uitlijnen",right:"Rechts uitlijnen"}},control:{insert_by_url:{title:"Afbeelding invoegen",placeholder:"URL van afbeelding",confirm:"Invoegen",cancel:"Annuleren",invalid_url:"Vul een geldige URL in"},upload_image:{title:"Afbeelding uploaden",button:"Kies een afbeelding of sleep het hier"},edit_image:{title:"Afbeelding bewerken",confirm:"Bijwerken",cancel:"Annuleren",form:{src:"Afbeelding URL",alt:"Alternatieve tekst",width:"Breedte",height:"Hoogte"}}}},Iframe:{tooltip:"Video invoegen",control:{title:"Video invoegen",placeholder:"Link",confirm:"Invoegen",cancel:"Annuleren"}},BulletList:{tooltip:"Opsommingslijst"},OrderedList:{tooltip:"Genummerde lijst"},TodoList:{tooltip:"Takenlijst"},TextAlign:{buttons:{align_left:{tooltip:"Links uitlijnen"},align_center:{tooltip:"Centreren"},align_right:{tooltip:"Rechts uitlijnen"},align_justify:{tooltip:"Tekst uitvullen"}}},FontType:{tooltip:"Lettertype"},FontSize:{tooltip:"Tekengrootte",default:"Standaard"},TextColor:{tooltip:"Tekstkleur"},TextHighlight:{tooltip:"Tekst markeren"},LineHeight:{tooltip:"Regelafstand"},Table:{tooltip:"Tabel",buttons:{insert_table:"Tabel invoegen",add_column_before:"Kolom links invoegen",add_column_after:"Kolom rechts invoegen",delete_column:"Kolom verwijderen",add_row_before:"Rij boven toevoegen",add_row_after:"Rij onder toevoegen",delete_row:"Rij verwijderen",merge_cells:"Cellen samenvoegen",split_cell:"Cellen splitsen",delete_table:"Cellen verwijderen"}},Indent:{buttons:{indent:{tooltip:"Inspringen"},outdent:{tooltip:"Uitspringen"}}},FormatClear:{tooltip:"Opmaak wissen"},HorizontalRule:{tooltip:"Horizontale regel"},History:{tooltip:{undo:"Ongedaan maken",redo:"Herhalen"}},Fullscreen:{tooltip:{fullscreen:"Volledig scherm",exit_fullscreen:"Volledig scherm sluiten"}},Print:{tooltip:"Afdrukken"},Preview:{tooltip:"Voorbeeld",dialog:{title:"Voorbeeld"}},SelectAll:{tooltip:"Selecteer alles"},CodeView:{tooltip:"Codeweergave"}},characters:"Karakters"}},aT={editor:{extensions:{Bold:{tooltip:"\u05DE\u05D5\u05D3\u05D2\u05E9"},Underline:{tooltip:"\u05E7\u05D5 \u05EA\u05D7\u05EA\u05D5\u05DF"},Italic:{tooltip:"\u05D4\u05D8\u05D4"},Strike:{tooltip:"\u05E7\u05D5 \u05D7\u05D5\u05E6\u05D4"},Heading:{tooltip:"\u05DB\u05D5\u05EA\u05E8\u05EA",buttons:{paragraph:"\u05E4\u05E1\u05E7\u05D4",heading:"\u05DB\u05D5\u05EA\u05E8\u05EA"}},Blockquote:{tooltip:"\u05E6\u05D9\u05D8\u05D5\u05D8"},CodeBlock:{tooltip:"\u05E7\u05D5\u05D3"},Link:{add:{tooltip:"\u05D4\u05D7\u05DC \u05E7\u05D9\u05E9\u05D5\u05E8",control:{title:"\u05D4\u05D7\u05DC \u05E7\u05D9\u05E9\u05D5\u05E8",href:"\u05E7\u05D9\u05E9\u05D5\u05E8",open_in_new_tab:"\u05E4\u05EA\u05D7 \u05D1\u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9",confirm:"\u05D4\u05D7\u05DC",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC"}},edit:{tooltip:"\u05E2\u05E8\u05D5\u05DA \u05E7\u05D9\u05E9\u05D5\u05E8",control:{title:"\u05E2\u05E8\u05D5\u05DA \u05E7\u05D9\u05E9\u05D5\u05E8",href:"\u05E7\u05D9\u05E9\u05D5\u05E8",open_in_new_tab:"\u05E4\u05EA\u05D7 \u05D1\u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9",confirm:"\u05E2\u05D9\u05D3\u05DB\u05D5\u05DF",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC"}},unlink:{tooltip:"\u05D4\u05E1\u05E8 \u05E7\u05D9\u05E9\u05D5\u05E8"},open:{tooltip:"\u05E4\u05EA\u05D7 \u05E7\u05D9\u05E9\u05D5\u05E8"}},Image:{buttons:{insert_image:{tooltip:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",external:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4 \u05DC\u05E4\u05D9 \u05E7\u05D9\u05E9\u05D5\u05E8",upload:"\u05D4\u05E2\u05DC\u05D0\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},remove_image:{tooltip:"\u05D4\u05E1\u05E8"},image_options:{tooltip:"\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},display:{tooltip:"\u05D4\u05E6\u05D2",inline:"\u05D1\u05E9\u05D5\u05E8\u05D4",block:"\u05E9\u05D1\u05D5\u05E8 \u05D8\u05E7\u05E1\u05D8",left:"\u05D4\u05E6\u05DE\u05D3 \u05DC\u05E9\u05DE\u05D0\u05DC",right:"\u05D4\u05E6\u05DE\u05D3 \u05DC\u05D9\u05DE\u05D9\u05DF"}},control:{insert_by_url:{title:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",placeholder:"\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05EA\u05DE\u05D5\u05E0\u05D4",confirm:"\u05D4\u05D5\u05E1\u05E4\u05D4",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",invalid_url:"\u05E0\u05D0 \u05D4\u05D6\u05DF \u05E7\u05D9\u05E9\u05D5\u05E8 \u05EA\u05E7\u05D9\u05DF"},upload_image:{title:"\u05D4\u05E2\u05DC\u05D0\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",button:"\u05DC\u05D7\u05E5 \u05DB\u05D0\u05DF \u05DC\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4 \u05DE\u05EA\u05D9\u05E7\u05D9\u05D4 \u05D0\u05D5 \u05D2\u05E8\u05D5\u05E8 \u05D0\u05D5\u05EA\u05D4 \u05D4\u05E0\u05D4"},edit_image:{title:"\u05E2\u05E8\u05D9\u05DB\u05D4 \u05EA\u05DE\u05D5\u05E0\u05D4",confirm:"\u05E2\u05D3\u05DB\u05D5\u05DF",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",form:{src:"\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05EA\u05DE\u05D5\u05E0\u05D4",alt:"\u05D8\u05E7\u05E1\u05D8 \u05D7\u05DC\u05D5\u05E4\u05D9",width:"\u05E8\u05D5\u05D7\u05D1",height:"\u05D2\u05D5\u05D1\u05D4"}}}},Iframe:{tooltip:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E1\u05E8\u05D8\u05D5\u05DF",control:{title:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E1\u05E8\u05D8\u05D5\u05DF",placeholder:"\u05E7\u05D9\u05E9\u05D5\u05E8",confirm:"\u05D4\u05D5\u05E1\u05E4\u05D4",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC"}},BulletList:{tooltip:"\u05EA\u05D1\u05DC\u05D9\u05D8\u05D9\u05DD"},OrderedList:{tooltip:"\u05DE\u05E1\u05E4\u05D5\u05E8"},TodoList:{tooltip:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA"},TextAlign:{buttons:{align_left:{tooltip:"\u05D9\u05E9\u05E8 \u05DC\u05E9\u05DE\u05D0\u05DC"},align_center:{tooltip:"\u05D9\u05E9\u05E8 \u05DC\u05D0\u05DE\u05E6\u05E2"},align_right:{tooltip:"\u05D9\u05E9\u05E8 \u05DC\u05D9\u05DE\u05D9\u05DF"},align_justify:{tooltip:"\u05D9\u05E9\u05E8 \u05DC\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD"}}},FontType:{tooltip:"\u05D2\u05D5\u05E4\u05DF"},FontSize:{tooltip:"\u05D2\u05D5\u05D3\u05DC \u05D2\u05D5\u05E4\u05DF",default:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC"},TextColor:{tooltip:"\u05E6\u05D1\u05E2 \u05D8\u05E7\u05E1\u05D8"},TextHighlight:{tooltip:"\u05E6\u05D1\u05E2 \u05E1\u05D9\u05DE\u05D5\u05DF \u05D8\u05E7\u05E1\u05D8"},LineHeight:{tooltip:"\u05D2\u05D5\u05D1\u05D4 \u05E9\u05D5\u05E8\u05D4"},Table:{tooltip:"\u05D8\u05D1\u05DC\u05D4",buttons:{insert_table:"\u05D4\u05D5\u05E1\u05E3 \u05D8\u05D1\u05DC\u05D4",add_column_before:"\u05D4\u05D5\u05E1\u05E3 \u05E2\u05DE\u05D5\u05D3\u05D4 \u05DC\u05E4\u05E0\u05D9",add_column_after:"\u05D4\u05D5\u05E1\u05E3 \u05E2\u05DE\u05D5\u05D3\u05D4 \u05D0\u05D7\u05E8\u05D9",delete_column:"\u05DE\u05D7\u05E7 \u05E2\u05DE\u05D5\u05D3\u05D4",add_row_before:"\u05D4\u05D5\u05E1\u05E3 \u05E9\u05D5\u05E8\u05D4 \u05DC\u05E4\u05E0\u05D9",add_row_after:"\u05D4\u05D5\u05E1\u05E3 \u05E9\u05D5\u05E8\u05D4 \u05D0\u05D7\u05E8\u05D9",delete_row:"\u05DE\u05D7\u05E7 \u05E9\u05D5\u05E8\u05D4",merge_cells:"\u05DE\u05D9\u05D6\u05D5\u05D2 \u05EA\u05D0\u05D9\u05DD",split_cell:"\u05E4\u05D9\u05E6\u05D5\u05DC \u05EA\u05D0",delete_table:"\u05DE\u05D7\u05D9\u05E7\u05EA \u05D8\u05D1\u05DC\u05D4"}},Indent:{buttons:{indent:{tooltip:"\u05D1\u05E7\u05D8\u05DF \u05DB\u05E0\u05D9\u05E1\u05D4"},outdent:{tooltip:"\u05D4\u05D2\u05D3\u05DC \u05DB\u05E0\u05D9\u05E1\u05D4"}}},FormatClear:{tooltip:"\u05E0\u05E7\u05D4 \u05E2\u05D9\u05E6\u05D5\u05D1"},HorizontalRule:{tooltip:"\u05E7\u05D5 \u05D0\u05D5\u05E4\u05E7\u05D9"},History:{tooltip:{undo:"\u05D4\u05E7\u05D5\u05D3\u05DD",redo:"\u05D4\u05D1\u05D0"}},Fullscreen:{tooltip:{fullscreen:"\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0",exit_fullscreen:"\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0"}},Print:{tooltip:"\u05D4\u05D3\u05E4\u05E1"},Preview:{tooltip:"\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4",dialog:{title:"\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4"}},SelectAll:{tooltip:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05DC"},CodeView:{tooltip:"\u05EA\u05E6\u05D5\u05D2\u05EA \u05E7\u05D5\u05D3"}},characters:"\u05EA\u05D5\u05D5\u05D9\u05DD"}};const Pc="en",T2={en:Xx,zh:Yx,zh_tw:Zx,pl:Qx,ru:eT,de:tT,ko:nT,es:rT,fr:oT,pt_br:iT,nl:sT,he:aT},A2={get defaultLanguage(){return Pc},get supportedLanguages(){return Object.keys(T2)},loadLanguage(t){return T2[t]},isLangSupported(t){return this.supportedLanguages.includes(t)},buildI18nHandler(t=Pc){let e;this.isLangSupported(t)?e=t:(Wa.warn(`Can't find the current language "${t}", Using language "${Pc}" by default. Welcome contribution to https://github.com/Leecason/element-tiptap`),e=Pc);const n=this.loadLanguage(e);return function(o){return o.split(".").reduce((a,l)=>a[l],n)}}};function lT(t){return{characters:i.computed(()=>{var n;return(n=t.value)==null?void 0:n.storage.characterCount.characters()})}}function cT(t){let e;const n=i.ref(),r=i.ref(!1),o=c=>{r.value=c},s=c=>{c.execCommand("selectAll");const u={from:c.getCursor(!0),to:c.getCursor(!1)};c.autoFormatRange(u.from,u.to),c.setCursor(0)},a=()=>{const c=i.unref(t).extensionManager.extensions.find(u=>u.name==="codeView");if(c){const{codemirror:u,codemirrorOptions:d}=c.options;if(u){const f={...d,readOnly:!1,spellcheck:!0};e=u.fromTextArea(n.value,f),e.setValue(i.unref(t).getHTML()),s(e)}}},l=()=>{const c=e.doc.cm.getWrapperElement();c&&c.remove&&c.remove(),e=null};return i.watch(r,c=>{if(c)i.nextTick(()=>{e||a()});else if(e){const u=e.getValue();i.unref(t).commands.setContent(u,!0),l()}}),i.provide("isCodeViewMode",r),i.provide("toggleIsCodeViewMode",o),{cmTextAreaRef:n,isCodeViewMode:r}}const _2="px";function uT({width:t,height:e}){return[{width:isNaN(Number(t))?t:`${t}${_2}`,height:isNaN(Number(e))?e:`${e}${_2}`}]}var tt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n};const dT=i.defineComponent({name:"Menubar",components:{},props:{editor:{type:Ra,required:!0}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},methods:{generateCommandButtonComponentSpecs(){var e;return(e=this.editor.extensionManager.extensions.reduce((n,r)=>{const{button:o}=r.options;if(!o||typeof o!="function")return n;const s=o({editor:this.editor,t:this.t,extension:r});return Array.isArray(s)?[...n,...s.map(a=>({...a,priority:r.options.priority}))]:[...n,{...s,priority:r.options.priority}]},[]))==null?void 0:e.sort((n,r)=>r.priority-n.priority)}}}),fT={class:"el-tiptap-editor__menu-bar"};function pT(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",fT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.generateCommandButtonComponentSpecs(),(a,l)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),i.mergeProps({key:"command-button"+l,"enable-tooltip":t.enableTooltip},a.componentProps,{readonly:t.isCodeViewMode},i.toHandlers(a.componentEvents||{})),null,16,["enable-tooltip","readonly"]))),128))])}var hT=tt(dT,[["render",pT]]);function mT(t){switch(t){case"../../icons/ai.svg":return Promise.resolve().then(function(){return Cne});case"../../icons/align-center.svg":return Promise.resolve().then(function(){return xne});case"../../icons/align-justify.svg":return Promise.resolve().then(function(){return Dne});case"../../icons/align-left.svg":return Promise.resolve().then(function(){return One});case"../../icons/align-right.svg":return Promise.resolve().then(function(){return Rne});case"../../icons/arrow-left.svg":return Promise.resolve().then(function(){return Vne});case"../../icons/bold.svg":return Promise.resolve().then(function(){return qne});case"../../icons/clear-format.svg":return Promise.resolve().then(function(){return Jne});case"../../icons/code.svg":return Promise.resolve().then(function(){return Qne});case"../../icons/compress.svg":return Promise.resolve().then(function(){return rre});case"../../icons/edit.svg":return Promise.resolve().then(function(){return are});case"../../icons/ellipsis-h.svg":return Promise.resolve().then(function(){return dre});case"../../icons/expand.svg":return Promise.resolve().then(function(){return mre});case"../../icons/external-link.svg":return Promise.resolve().then(function(){return wre});case"../../icons/file-code.svg":return Promise.resolve().then(function(){return Sre});case"../../icons/font-color.svg":return Promise.resolve().then(function(){return Are});case"../../icons/font-family.svg":return Promise.resolve().then(function(){return Nre});case"../../icons/font-size.svg":return Promise.resolve().then(function(){return Pre});case"../../icons/heading.svg":return Promise.resolve().then(function(){return Fre});case"../../icons/highlight.svg":return Promise.resolve().then(function(){return jre});case"../../icons/horizontal-rule.svg":return Promise.resolve().then(function(){return Kre});case"../../icons/image-align.svg":return Promise.resolve().then(function(){return Yre});case"../../icons/image.svg":return Promise.resolve().then(function(){return toe});case"../../icons/indent.svg":return Promise.resolve().then(function(){return ioe});case"../../icons/italic.svg":return Promise.resolve().then(function(){return coe});case"../../icons/link.svg":return Promise.resolve().then(function(){return poe});case"../../icons/list-ol.svg":return Promise.resolve().then(function(){return boe});case"../../icons/list-ul.svg":return Promise.resolve().then(function(){return Coe});case"../../icons/outdent.svg":return Promise.resolve().then(function(){return xoe});case"../../icons/print.svg":return Promise.resolve().then(function(){return Doe});case"../../icons/quote-right.svg":return Promise.resolve().then(function(){return Ooe});case"../../icons/redo.svg":return Promise.resolve().then(function(){return Roe});case"../../icons/select-all.svg":return Promise.resolve().then(function(){return Voe});case"../../icons/strikethrough.svg":return Promise.resolve().then(function(){return qoe});case"../../icons/table.svg":return Promise.resolve().then(function(){return Joe});case"../../icons/tasks.svg":return Promise.resolve().then(function(){return Qoe});case"../../icons/text-height.svg":return Promise.resolve().then(function(){return rie});case"../../icons/trash-alt.svg":return Promise.resolve().then(function(){return aie});case"../../icons/underline.svg":return Promise.resolve().then(function(){return die});case"../../icons/undo.svg":return Promise.resolve().then(function(){return mie});case"../../icons/unlink.svg":return Promise.resolve().then(function(){return wie});case"../../icons/video.svg":return Promise.resolve().then(function(){return Sie});default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}const gT=i.defineComponent({name:"icon",props:{name:String},computed:{icon(){return i.defineAsyncComponent(()=>mT(`../../icons/${this.name}.svg`))}}});function bT(t,e,n,r,o,s){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon),i.mergeProps({width:"16",height:"16"},t.$attrs),null,16)}var D2=tt(gT,[["render",bT]]);const yT='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',wT=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,M2=t=>Array.from(t.querySelectorAll(yT)).filter(e=>vT(e)&&wT(e)),vT=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Pt=(t,e,{checkForDefaultPrevented:n=!0}={})=>o=>{const s=t==null?void 0:t(o);if(n===!1||!s)return e==null?void 0:e(o)},N2=t=>e=>e.pointerType==="mouse"?t(e):void 0;var B2;const lt=typeof window!="undefined",CT=t=>typeof t!="undefined",kT=t=>typeof t=="function",ST=t=>typeof t=="string",Lc=()=>{},O2=lt&&((B2=window==null?void 0:window.navigator)==null?void 0:B2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ka(t){return typeof t=="function"?t():i.unref(t)}function ET(t,e){function n(...r){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return n}function xT(t,e={}){let n,r,o=Lc;const s=l=>{clearTimeout(l),o(),o=Lc};return l=>{const c=Ka(t),u=Ka(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(l())},u)),n=setTimeout(()=>{r&&s(r),r=null,d(l())},c)})}}function TT(t){return t}function Rc(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function AT(t,e=200,n={}){return ET(xT(e,n),t)}function _T(t,e=200,n={}){const r=i.ref(t.value),o=AT(()=>{r.value=t.value},e,n);return i.watch(t,()=>o()),r}function DT(t,e=!0){i.getCurrentInstance()?i.onMounted(t):e?t():i.nextTick(t)}function Af(t,e,n={}){const{immediate:r=!0}=n,o=i.ref(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function l(){o.value=!1,a()}function c(...u){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,t(...u)},Ka(e))}return r&&(o.value=!0,lt&&c()),Rc(l),{isPending:i.readonly(o),start:c,stop:l}}function qo(t){var e;const n=Ka(t);return(e=n==null?void 0:n.$el)!=null?e:n}const _f=lt?window:void 0;function $r(...t){let e,n,r,o;if(ST(t[0])||Array.isArray(t[0])?([n,r,o]=t,e=_f):[e,n,r,o]=t,!e)return Lc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(d=>d()),s.length=0},l=(d,f,p,h)=>(d.addEventListener(f,p,h),()=>d.removeEventListener(f,p,h)),c=i.watch(()=>[qo(e),Ka(o)],([d,f])=>{a(),d&&s.push(...n.flatMap(p=>r.map(h=>l(d,p,h,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return Rc(u),u}let I2=!1;function MT(t,e,n={}){const{window:r=_f,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return;O2&&!I2&&(I2=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Lc)));let l=!0;const c=p=>o.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(m=>m===p.target||p.composedPath().includes(m));{const m=qo(h);return m&&(p.target===m||p.composedPath().includes(m))}}),d=[$r(r,"click",p=>{const h=qo(t);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),$r(r,"pointerdown",p=>{const h=qo(t);h&&(l=!p.composedPath().includes(h)&&!c(p))},{passive:!0}),a&&$r(r,"blur",p=>{var h;const m=qo(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(p)})].filter(Boolean);return()=>d.forEach(p=>p())}function NT(t,e=!1){const n=i.ref(),r=()=>n.value=Boolean(t());return r(),DT(r,e),n}function BT(t){return JSON.parse(JSON.stringify(t))}const Df=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Mf="__vueuse_ssr_handlers__";Df[Mf]=Df[Mf]||{},Df[Mf];var P2=Object.getOwnPropertySymbols,OT=Object.prototype.hasOwnProperty,IT=Object.prototype.propertyIsEnumerable,PT=(t,e)=>{var n={};for(var r in t)OT.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&P2)for(var r of P2(t))e.indexOf(r)<0&&IT.call(t,r)&&(n[r]=t[r]);return n};function Ps(t,e,n={}){const r=n,{window:o=_f}=r,s=PT(r,["window"]);let a;const l=NT(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},u=i.watch(()=>qo(t),f=>{c(),l.value&&o&&f&&(a=new ResizeObserver(e),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Rc(d),{isSupported:l,stop:d}}var L2;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(L2||(L2={}));var LT=Object.defineProperty,R2=Object.getOwnPropertySymbols,RT=Object.prototype.hasOwnProperty,zT=Object.prototype.propertyIsEnumerable,z2=(t,e,n)=>e in t?LT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FT=(t,e)=>{for(var n in e||(e={}))RT.call(e,n)&&z2(t,n,e[n]);if(R2)for(var n of R2(e))zT.call(e,n)&&z2(t,n,e[n]);return t};FT({linear:TT},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function $T(t,e,n,r={}){var o,s,a;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:f}=r,p=i.getCurrentInstance(),h=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((a=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(p==null?void 0:p.proxy));let m=u;e||(e="modelValue"),m=u||m||`update:${e.toString()}`;const g=y=>l?kT(l)?l(y):BT(y):y,b=()=>CT(t[e])?g(t[e]):f;if(c){const y=b(),S=i.ref(y);return i.watch(()=>t[e],k=>S.value=g(k)),i.watch(S,k=>{(k!==t[e]||d)&&h(m,k)},{deep:d}),S}else return i.computed({get(){return b()},set(y){h(m,y)}})}const F2=()=>lt&&/firefox/i.test(window.navigator.userAgent),gt=()=>{},VT=Object.prototype.hasOwnProperty,Wo=(t,e)=>VT.call(t,e),Vr=Array.isArray,St=t=>typeof t=="function",vt=t=>typeof t=="string",Qt=t=>t!==null&&typeof t=="object",HT=Object.prototype.toString,jT=t=>HT.call(t),Nf=t=>jT(t).slice(8,-1),$2=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},UT=/-(\w)/g,qT=$2(t=>t.replace(UT,(e,n)=>n?n.toUpperCase():"")),WT=/\B([A-Z])/g,KT=$2(t=>t.replace(WT,"-$1").toLowerCase());var GT=typeof global=="object"&&global&&global.Object===Object&&global,V2=GT,JT=typeof self=="object"&&self&&self.Object===Object&&self,XT=V2||JT||Function("return this")(),gr=XT,YT=gr.Symbol,Zn=YT,H2=Object.prototype,ZT=H2.hasOwnProperty,QT=H2.toString,Ga=Zn?Zn.toStringTag:void 0;function eA(t){var e=ZT.call(t,Ga),n=t[Ga];try{t[Ga]=void 0;var r=!0}catch{}var o=QT.call(t);return r&&(e?t[Ga]=n:delete t[Ga]),o}var tA=Object.prototype,nA=tA.toString;function rA(t){return nA.call(t)}var oA="[object Null]",iA="[object Undefined]",j2=Zn?Zn.toStringTag:void 0;function Ls(t){return t==null?t===void 0?iA:oA:j2&&j2 in Object(t)?eA(t):rA(t)}function Ko(t){return t!=null&&typeof t=="object"}var sA="[object Symbol]";function zc(t){return typeof t=="symbol"||Ko(t)&&Ls(t)==sA}function aA(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var lA=Array.isArray,br=lA,cA=1/0,U2=Zn?Zn.prototype:void 0,q2=U2?U2.toString:void 0;function W2(t){if(typeof t=="string")return t;if(br(t))return aA(t,W2)+"";if(zc(t))return q2?q2.call(t):"";var e=t+"";return e=="0"&&1/t==-cA?"-0":e}var uA=/\s/;function dA(t){for(var e=t.length;e--&&uA.test(t.charAt(e)););return e}var fA=/^\s+/;function pA(t){return t&&t.slice(0,dA(t)+1).replace(fA,"")}function Hr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var K2=0/0,hA=/^[-+]0x[0-9a-f]+$/i,mA=/^0b[01]+$/i,gA=/^0o[0-7]+$/i,bA=parseInt;function G2(t){if(typeof t=="number")return t;if(zc(t))return K2;if(Hr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=pA(t);var n=mA.test(t);return n||gA.test(t)?bA(t.slice(2),n?2:8):hA.test(t)?K2:+t}function yA(t){return t}var wA="[object AsyncFunction]",vA="[object Function]",CA="[object GeneratorFunction]",kA="[object Proxy]";function J2(t){if(!Hr(t))return!1;var e=Ls(t);return e==vA||e==CA||e==wA||e==kA}var SA=gr["__core-js_shared__"],Bf=SA,X2=function(){var t=/[^.]+$/.exec(Bf&&Bf.keys&&Bf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function EA(t){return!!X2&&X2 in t}var xA=Function.prototype,TA=xA.toString;function Vi(t){if(t!=null){try{return TA.call(t)}catch{}try{return t+""}catch{}}return""}var AA=/[\\^$.*+?()[\]{}|]/g,_A=/^\[object .+?Constructor\]$/,DA=Function.prototype,MA=Object.prototype,NA=DA.toString,BA=MA.hasOwnProperty,OA=RegExp("^"+NA.call(BA).replace(AA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IA(t){if(!Hr(t)||EA(t))return!1;var e=J2(t)?OA:_A;return e.test(Vi(t))}function PA(t,e){return t==null?void 0:t[e]}function Hi(t,e){var n=PA(t,e);return IA(n)?n:void 0}var LA=Hi(gr,"WeakMap"),Of=LA,Y2=Object.create,RA=function(){function t(){}return function(e){if(!Hr(e))return{};if(Y2)return Y2(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),zA=RA;function FA(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function $A(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var VA=800,HA=16,jA=Date.now;function UA(t){var e=0,n=0;return function(){var r=jA(),o=HA-(r-n);if(n=r,o>0){if(++e>=VA)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function qA(t){return function(){return t}}var WA=function(){try{var t=Hi(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Fc=WA,KA=Fc?function(t,e){return Fc(t,"toString",{configurable:!0,enumerable:!1,value:qA(e),writable:!0})}:yA,GA=KA,JA=UA(GA),XA=JA;function YA(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var ZA=9007199254740991,QA=/^(?:0|[1-9]\d*)$/;function If(t,e){var n=typeof t;return e=e==null?ZA:e,!!e&&(n=="number"||n!="symbol"&&QA.test(t))&&t>-1&&t%1==0&&t<e}function Z2(t,e,n){e=="__proto__"&&Fc?Fc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Pf(t,e){return t===e||t!==t&&e!==e}var e_=Object.prototype,t_=e_.hasOwnProperty;function Lf(t,e,n){var r=t[e];(!(t_.call(t,e)&&Pf(r,n))||n===void 0&&!(e in t))&&Z2(t,e,n)}function $c(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],c=r?r(n[l],t[l],l,n,t):void 0;c===void 0&&(c=t[l]),o?Z2(n,l,c):Lf(n,l,c)}return n}var Q2=Math.max;function n_(t,e,n){return e=Q2(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=Q2(r.length-e,0),a=Array(s);++o<s;)a[o]=r[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=r[o];return l[e]=n(a),FA(t,this,l)}}var r_=9007199254740991;function Rf(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r_}function e3(t){return t!=null&&Rf(t.length)&&!J2(t)}var o_=Object.prototype;function zf(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||o_;return t===n}function i_(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var s_="[object Arguments]";function t3(t){return Ko(t)&&Ls(t)==s_}var n3=Object.prototype,a_=n3.hasOwnProperty,l_=n3.propertyIsEnumerable,c_=t3(function(){return arguments}())?t3:function(t){return Ko(t)&&a_.call(t,"callee")&&!l_.call(t,"callee")},Ff=c_;function u_(){return!1}var r3=typeof ke=="object"&&ke&&!ke.nodeType&&ke,o3=r3&&typeof module=="object"&&module&&!module.nodeType&&module,d_=o3&&o3.exports===r3,i3=d_?gr.Buffer:void 0,f_=i3?i3.isBuffer:void 0,p_=f_||u_,Vc=p_,h_="[object Arguments]",m_="[object Array]",g_="[object Boolean]",b_="[object Date]",y_="[object Error]",w_="[object Function]",v_="[object Map]",C_="[object Number]",k_="[object Object]",S_="[object RegExp]",E_="[object Set]",x_="[object String]",T_="[object WeakMap]",A_="[object ArrayBuffer]",__="[object DataView]",D_="[object Float32Array]",M_="[object Float64Array]",N_="[object Int8Array]",B_="[object Int16Array]",O_="[object Int32Array]",I_="[object Uint8Array]",P_="[object Uint8ClampedArray]",L_="[object Uint16Array]",R_="[object Uint32Array]",bt={};bt[D_]=bt[M_]=bt[N_]=bt[B_]=bt[O_]=bt[I_]=bt[P_]=bt[L_]=bt[R_]=!0,bt[h_]=bt[m_]=bt[A_]=bt[g_]=bt[__]=bt[b_]=bt[y_]=bt[w_]=bt[v_]=bt[C_]=bt[k_]=bt[S_]=bt[E_]=bt[x_]=bt[T_]=!1;function z_(t){return Ko(t)&&Rf(t.length)&&!!bt[Ls(t)]}function $f(t){return function(e){return t(e)}}var s3=typeof ke=="object"&&ke&&!ke.nodeType&&ke,Ja=s3&&typeof module=="object"&&module&&!module.nodeType&&module,F_=Ja&&Ja.exports===s3,Vf=F_&&V2.process,$_=function(){try{var t=Ja&&Ja.require&&Ja.require("util").types;return t||Vf&&Vf.binding&&Vf.binding("util")}catch{}}(),Rs=$_,a3=Rs&&Rs.isTypedArray,V_=a3?$f(a3):z_,l3=V_,H_=Object.prototype,j_=H_.hasOwnProperty;function c3(t,e){var n=br(t),r=!n&&Ff(t),o=!n&&!r&&Vc(t),s=!n&&!r&&!o&&l3(t),a=n||r||o||s,l=a?i_(t.length,String):[],c=l.length;for(var u in t)(e||j_.call(t,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||If(u,c)))&&l.push(u);return l}function u3(t,e){return function(n){return t(e(n))}}var U_=u3(Object.keys,Object),q_=U_,W_=Object.prototype,K_=W_.hasOwnProperty;function G_(t){if(!zf(t))return q_(t);var e=[];for(var n in Object(t))K_.call(t,n)&&n!="constructor"&&e.push(n);return e}function Hf(t){return e3(t)?c3(t):G_(t)}function J_(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var X_=Object.prototype,Y_=X_.hasOwnProperty;function Z_(t){if(!Hr(t))return J_(t);var e=zf(t),n=[];for(var r in t)r=="constructor"&&(e||!Y_.call(t,r))||n.push(r);return n}function jf(t){return e3(t)?c3(t,!0):Z_(t)}var Q_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eD=/^\w*$/;function tD(t,e){if(br(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||zc(t)?!0:eD.test(t)||!Q_.test(t)||e!=null&&t in Object(e)}var nD=Hi(Object,"create"),Xa=nD;function rD(){this.__data__=Xa?Xa(null):{},this.size=0}function oD(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var iD="__lodash_hash_undefined__",sD=Object.prototype,aD=sD.hasOwnProperty;function lD(t){var e=this.__data__;if(Xa){var n=e[t];return n===iD?void 0:n}return aD.call(e,t)?e[t]:void 0}var cD=Object.prototype,uD=cD.hasOwnProperty;function dD(t){var e=this.__data__;return Xa?e[t]!==void 0:uD.call(e,t)}var fD="__lodash_hash_undefined__";function pD(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Xa&&e===void 0?fD:e,this}function ji(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ji.prototype.clear=rD,ji.prototype.delete=oD,ji.prototype.get=lD,ji.prototype.has=dD,ji.prototype.set=pD;function hD(){this.__data__=[],this.size=0}function Hc(t,e){for(var n=t.length;n--;)if(Pf(t[n][0],e))return n;return-1}var mD=Array.prototype,gD=mD.splice;function bD(t){var e=this.__data__,n=Hc(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gD.call(e,n,1),--this.size,!0}function yD(t){var e=this.__data__,n=Hc(e,t);return n<0?void 0:e[n][1]}function wD(t){return Hc(this.__data__,t)>-1}function vD(t,e){var n=this.__data__,r=Hc(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function uo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}uo.prototype.clear=hD,uo.prototype.delete=bD,uo.prototype.get=yD,uo.prototype.has=wD,uo.prototype.set=vD;var CD=Hi(gr,"Map"),Ya=CD;function kD(){this.size=0,this.__data__={hash:new ji,map:new(Ya||uo),string:new ji}}function SD(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function jc(t,e){var n=t.__data__;return SD(e)?n[typeof e=="string"?"string":"hash"]:n.map}function ED(t){var e=jc(this,t).delete(t);return this.size-=e?1:0,e}function xD(t){return jc(this,t).get(t)}function TD(t){return jc(this,t).has(t)}function AD(t,e){var n=jc(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function fo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}fo.prototype.clear=kD,fo.prototype.delete=ED,fo.prototype.get=xD,fo.prototype.has=TD,fo.prototype.set=AD;var _D="Expected a function";function Uc(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(_D);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var a=t.apply(this,r);return n.cache=s.set(o,a)||s,a};return n.cache=new(Uc.Cache||fo),n}Uc.Cache=fo;var DD=500;function MD(t){var e=Uc(t,function(r){return n.size===DD&&n.clear(),r}),n=e.cache;return e}var ND=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BD=/\\(\\)?/g,OD=MD(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ND,function(n,r,o,s){e.push(o?s.replace(BD,"$1"):r||n)}),e}),ID=OD;function PD(t){return t==null?"":W2(t)}function qc(t,e){return br(t)?t:tD(t,e)?[t]:ID(PD(t))}var LD=1/0;function Uf(t){if(typeof t=="string"||zc(t))return t;var e=t+"";return e=="0"&&1/t==-LD?"-0":e}function d3(t,e){e=qc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Uf(e[n++])];return n&&n==r?t:void 0}function Rn(t,e,n){var r=t==null?void 0:d3(t,e);return r===void 0?n:r}function qf(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var f3=Zn?Zn.isConcatSpreadable:void 0;function RD(t){return br(t)||Ff(t)||!!(f3&&t&&t[f3])}function p3(t,e,n,r,o){var s=-1,a=t.length;for(n||(n=RD),o||(o=[]);++s<a;){var l=t[s];e>0&&n(l)?e>1?p3(l,e-1,n,r,o):qf(o,l):r||(o[o.length]=l)}return o}function zD(t){var e=t==null?0:t.length;return e?p3(t,1):[]}function FD(t){return XA(n_(t,void 0,zD),t+"")}var $D=u3(Object.getPrototypeOf,Object),h3=$D;function Wf(){if(!arguments.length)return[];var t=arguments[0];return br(t)?t:[t]}function VD(){this.__data__=new uo,this.size=0}function HD(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function jD(t){return this.__data__.get(t)}function UD(t){return this.__data__.has(t)}var qD=200;function WD(t,e){var n=this.__data__;if(n instanceof uo){var r=n.__data__;if(!Ya||r.length<qD-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new fo(r)}return n.set(t,e),this.size=n.size,this}function po(t){var e=this.__data__=new uo(t);this.size=e.size}po.prototype.clear=VD,po.prototype.delete=HD,po.prototype.get=jD,po.prototype.has=UD,po.prototype.set=WD;function KD(t,e){return t&&$c(e,Hf(e),t)}function GD(t,e){return t&&$c(e,jf(e),t)}var m3=typeof ke=="object"&&ke&&!ke.nodeType&&ke,g3=m3&&typeof module=="object"&&module&&!module.nodeType&&module,JD=g3&&g3.exports===m3,b3=JD?gr.Buffer:void 0,y3=b3?b3.allocUnsafe:void 0;function XD(t,e){if(e)return t.slice();var n=t.length,r=y3?y3(n):new t.constructor(n);return t.copy(r),r}function YD(t,e){for(var n=-1,r=t==null?0:t.length,o=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[o++]=a)}return s}function w3(){return[]}var ZD=Object.prototype,QD=ZD.propertyIsEnumerable,v3=Object.getOwnPropertySymbols,eM=v3?function(t){return t==null?[]:(t=Object(t),YD(v3(t),function(e){return QD.call(t,e)}))}:w3,Kf=eM;function tM(t,e){return $c(t,Kf(t),e)}var nM=Object.getOwnPropertySymbols,rM=nM?function(t){for(var e=[];t;)qf(e,Kf(t)),t=h3(t);return e}:w3,C3=rM;function oM(t,e){return $c(t,C3(t),e)}function k3(t,e,n){var r=e(t);return br(t)?r:qf(r,n(t))}function Gf(t){return k3(t,Hf,Kf)}function iM(t){return k3(t,jf,C3)}var sM=Hi(gr,"DataView"),Jf=sM,aM=Hi(gr,"Promise"),Xf=aM,lM=Hi(gr,"Set"),Yf=lM,S3="[object Map]",cM="[object Object]",E3="[object Promise]",x3="[object Set]",T3="[object WeakMap]",A3="[object DataView]",uM=Vi(Jf),dM=Vi(Ya),fM=Vi(Xf),pM=Vi(Yf),hM=Vi(Of),Ui=Ls;(Jf&&Ui(new Jf(new ArrayBuffer(1)))!=A3||Ya&&Ui(new Ya)!=S3||Xf&&Ui(Xf.resolve())!=E3||Yf&&Ui(new Yf)!=x3||Of&&Ui(new Of)!=T3)&&(Ui=function(t){var e=Ls(t),n=e==cM?t.constructor:void 0,r=n?Vi(n):"";if(r)switch(r){case uM:return A3;case dM:return S3;case fM:return E3;case pM:return x3;case hM:return T3}return e});var Za=Ui,mM=Object.prototype,gM=mM.hasOwnProperty;function bM(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&gM.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var yM=gr.Uint8Array,Wc=yM;function Zf(t){var e=new t.constructor(t.byteLength);return new Wc(e).set(new Wc(t)),e}function wM(t,e){var n=e?Zf(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var vM=/\w*$/;function CM(t){var e=new t.constructor(t.source,vM.exec(t));return e.lastIndex=t.lastIndex,e}var _3=Zn?Zn.prototype:void 0,D3=_3?_3.valueOf:void 0;function kM(t){return D3?Object(D3.call(t)):{}}function SM(t,e){var n=e?Zf(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var EM="[object Boolean]",xM="[object Date]",TM="[object Map]",AM="[object Number]",_M="[object RegExp]",DM="[object Set]",MM="[object String]",NM="[object Symbol]",BM="[object ArrayBuffer]",OM="[object DataView]",IM="[object Float32Array]",PM="[object Float64Array]",LM="[object Int8Array]",RM="[object Int16Array]",zM="[object Int32Array]",FM="[object Uint8Array]",$M="[object Uint8ClampedArray]",VM="[object Uint16Array]",HM="[object Uint32Array]";function jM(t,e,n){var r=t.constructor;switch(e){case BM:return Zf(t);case EM:case xM:return new r(+t);case OM:return wM(t,n);case IM:case PM:case LM:case RM:case zM:case FM:case $M:case VM:case HM:return SM(t,n);case TM:return new r;case AM:case MM:return new r(t);case _M:return CM(t);case DM:return new r;case NM:return kM(t)}}function UM(t){return typeof t.constructor=="function"&&!zf(t)?zA(h3(t)):{}}var qM="[object Map]";function WM(t){return Ko(t)&&Za(t)==qM}var M3=Rs&&Rs.isMap,KM=M3?$f(M3):WM,GM=KM,JM="[object Set]";function XM(t){return Ko(t)&&Za(t)==JM}var N3=Rs&&Rs.isSet,YM=N3?$f(N3):XM,ZM=YM,QM=1,eN=2,tN=4,B3="[object Arguments]",nN="[object Array]",rN="[object Boolean]",oN="[object Date]",iN="[object Error]",O3="[object Function]",sN="[object GeneratorFunction]",aN="[object Map]",lN="[object Number]",I3="[object Object]",cN="[object RegExp]",uN="[object Set]",dN="[object String]",fN="[object Symbol]",pN="[object WeakMap]",hN="[object ArrayBuffer]",mN="[object DataView]",gN="[object Float32Array]",bN="[object Float64Array]",yN="[object Int8Array]",wN="[object Int16Array]",vN="[object Int32Array]",CN="[object Uint8Array]",kN="[object Uint8ClampedArray]",SN="[object Uint16Array]",EN="[object Uint32Array]",dt={};dt[B3]=dt[nN]=dt[hN]=dt[mN]=dt[rN]=dt[oN]=dt[gN]=dt[bN]=dt[yN]=dt[wN]=dt[vN]=dt[aN]=dt[lN]=dt[I3]=dt[cN]=dt[uN]=dt[dN]=dt[fN]=dt[CN]=dt[kN]=dt[SN]=dt[EN]=!0,dt[iN]=dt[O3]=dt[pN]=!1;function Qa(t,e,n,r,o,s){var a,l=e&QM,c=e&eN,u=e&tN;if(n&&(a=o?n(t,r,o,s):n(t)),a!==void 0)return a;if(!Hr(t))return t;var d=br(t);if(d){if(a=bM(t),!l)return $A(t,a)}else{var f=Za(t),p=f==O3||f==sN;if(Vc(t))return XD(t,l);if(f==I3||f==B3||p&&!o){if(a=c||p?{}:UM(t),!l)return c?oM(t,GD(a,t)):tM(t,KD(a,t))}else{if(!dt[f])return o?t:{};a=jM(t,f,l)}}s||(s=new po);var h=s.get(t);if(h)return h;s.set(t,a),ZM(t)?t.forEach(function(b){a.add(Qa(b,e,n,b,t,s))}):GM(t)&&t.forEach(function(b,y){a.set(y,Qa(b,e,n,y,t,s))});var m=u?c?iM:Gf:c?jf:Hf,g=d?void 0:m(t);return YA(g||t,function(b,y){g&&(y=b,b=t[y]),Lf(a,y,Qa(b,e,n,y,t,s))}),a}var xN=4;function P3(t){return Qa(t,xN)}var TN=1,AN=4;function L3(t){return Qa(t,TN|AN)}var _N="__lodash_hash_undefined__";function DN(t){return this.__data__.set(t,_N),this}function MN(t){return this.__data__.has(t)}function Kc(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new fo;++e<n;)this.add(t[e])}Kc.prototype.add=Kc.prototype.push=DN,Kc.prototype.has=MN;function NN(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function BN(t,e){return t.has(e)}var ON=1,IN=2;function R3(t,e,n,r,o,s){var a=n&ON,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var f=-1,p=!0,h=n&IN?new Kc:void 0;for(s.set(t,e),s.set(e,t);++f<l;){var m=t[f],g=e[f];if(r)var b=a?r(g,m,f,e,t,s):r(m,g,f,t,e,s);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!NN(e,function(y,S){if(!BN(h,S)&&(m===y||o(m,y,n,r,s)))return h.push(S)})){p=!1;break}}else if(!(m===g||o(m,g,n,r,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function PN(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function LN(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var RN=1,zN=2,FN="[object Boolean]",$N="[object Date]",VN="[object Error]",HN="[object Map]",jN="[object Number]",UN="[object RegExp]",qN="[object Set]",WN="[object String]",KN="[object Symbol]",GN="[object ArrayBuffer]",JN="[object DataView]",z3=Zn?Zn.prototype:void 0,Qf=z3?z3.valueOf:void 0;function XN(t,e,n,r,o,s,a){switch(n){case JN:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case GN:return!(t.byteLength!=e.byteLength||!s(new Wc(t),new Wc(e)));case FN:case $N:case jN:return Pf(+t,+e);case VN:return t.name==e.name&&t.message==e.message;case UN:case WN:return t==e+"";case HN:var l=PN;case qN:var c=r&RN;if(l||(l=LN),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=zN,a.set(t,e);var d=R3(l(t),l(e),r,o,s,a);return a.delete(t),d;case KN:if(Qf)return Qf.call(t)==Qf.call(e)}return!1}var YN=1,ZN=Object.prototype,QN=ZN.hasOwnProperty;function eB(t,e,n,r,o,s){var a=n&YN,l=Gf(t),c=l.length,u=Gf(e),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var p=l[f];if(!(a?p in e:QN.call(e,p)))return!1}var h=s.get(t),m=s.get(e);if(h&&m)return h==e&&m==t;var g=!0;s.set(t,e),s.set(e,t);for(var b=a;++f<c;){p=l[f];var y=t[p],S=e[p];if(r)var k=a?r(S,y,p,e,t,s):r(y,S,p,t,e,s);if(!(k===void 0?y===S||o(y,S,n,r,s):k)){g=!1;break}b||(b=p=="constructor")}if(g&&!b){var C=t.constructor,_=e.constructor;C!=_&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return s.delete(t),s.delete(e),g}var tB=1,F3="[object Arguments]",$3="[object Array]",Gc="[object Object]",nB=Object.prototype,V3=nB.hasOwnProperty;function rB(t,e,n,r,o,s){var a=br(t),l=br(e),c=a?$3:Za(t),u=l?$3:Za(e);c=c==F3?Gc:c,u=u==F3?Gc:u;var d=c==Gc,f=u==Gc,p=c==u;if(p&&Vc(t)){if(!Vc(e))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new po),a||l3(t)?R3(t,e,n,r,o,s):XN(t,e,c,n,r,o,s);if(!(n&tB)){var h=d&&V3.call(t,"__wrapped__"),m=f&&V3.call(e,"__wrapped__");if(h||m){var g=h?t.value():t,b=m?e.value():e;return s||(s=new po),o(g,b,n,r,s)}}return p?(s||(s=new po),eB(t,e,n,r,o,s)):!1}function H3(t,e,n,r,o){return t===e?!0:t==null||e==null||!Ko(t)&&!Ko(e)?t!==t&&e!==e:rB(t,e,n,r,H3,o)}function oB(t,e){return t!=null&&e in Object(t)}function iB(t,e,n){e=qc(e,t);for(var r=-1,o=e.length,s=!1;++r<o;){var a=Uf(e[r]);if(!(s=t!=null&&n(t,a)))break;t=t[a]}return s||++r!=o?s:(o=t==null?0:t.length,!!o&&Rf(o)&&If(a,o)&&(br(t)||Ff(t)))}function sB(t,e){return t!=null&&iB(t,e,oB)}var aB=function(){return gr.Date.now()},ep=aB,lB="Expected a function",cB=Math.max,uB=Math.min;function j3(t,e,n){var r,o,s,a,l,c,u=0,d=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError(lB);e=G2(e)||0,Hr(n)&&(d=!!n.leading,f="maxWait"in n,s=f?cB(G2(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p);function h(E){var T=r,M=o;return r=o=void 0,u=E,a=t.apply(M,T),a}function m(E){return u=E,l=setTimeout(y,e),d?h(E):a}function g(E){var T=E-c,M=E-u,D=e-T;return f?uB(D,s-M):D}function b(E){var T=E-c,M=E-u;return c===void 0||T>=e||T<0||f&&M>=s}function y(){var E=ep();if(b(E))return S(E);l=setTimeout(y,g(E))}function S(E){return l=void 0,p&&r?h(E):(r=o=void 0,a)}function k(){l!==void 0&&clearTimeout(l),u=0,r=c=o=l=void 0}function C(){return l===void 0?a:S(ep())}function _(){var E=ep(),T=b(E);if(r=arguments,o=this,c=E,T){if(l===void 0)return m(c);if(f)return clearTimeout(l),l=setTimeout(y,e),h(c)}return l===void 0&&(l=setTimeout(y,e)),a}return _.cancel=k,_.flush=C,_}function Jc(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function Xc(t,e){return H3(t,e)}function zs(t){return t==null}function dB(t){return t===void 0}function U3(t,e,n,r){if(!Hr(t))return t;e=qc(e,t);for(var o=-1,s=e.length,a=s-1,l=t;l!=null&&++o<s;){var c=Uf(e[o]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(o!=a){var d=l[c];u=r?r(d,c,l):void 0,u===void 0&&(u=Hr(d)?d:If(e[o+1])?[]:{})}Lf(l,c,u),l=l[c]}return t}function fB(t,e,n){for(var r=-1,o=e.length,s={};++r<o;){var a=e[r],l=d3(t,a);n(l,a)&&U3(s,qc(a,t),l)}return s}function pB(t,e){return fB(t,e,function(n,r){return sB(t,r)})}var hB=FD(function(t,e){return t==null?{}:pB(t,e)}),mB=hB;function gB(t,e,n){return t==null?t:U3(t,e,n)}const el=t=>t===void 0,ho=t=>typeof t=="boolean",_t=t=>typeof t=="number",Go=t=>typeof Element=="undefined"?!1:t instanceof Element,bB=t=>vt(t)?!Number.isNaN(Number(t)):!1,yB=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),q3=t=>Object.keys(t),wB=t=>Object.entries(t),tp=(t,e,n)=>({get value(){return Rn(t,e,n)},set value(r){gB(t,e,r)}});class vB extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function Fs(t,e){throw new vB(`[${t}] ${e}`)}function Pie(t,e){}const W3=(t="")=>t.split(" ").filter(e=>!!e.trim()),K3=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},Yc=(t,e)=>{!t||!e.trim()||t.classList.add(...W3(e))},Jo=(t,e)=>{!t||!e.trim()||t.classList.remove(...W3(e))},$s=(t,e)=>{var n;if(!lt||!t||!e)return"";let r=qT(e);r==="float"&&(r="cssFloat");try{const o=t.style[r];if(o)return o;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return s?s[r]:""}catch{return t.style[r]}};function jr(t,e="px"){if(!t)return"";if(_t(t)||bB(t))return`${t}${e}`;if(vt(t))return t}let Zc;const CB=t=>{var e;if(!lt)return 0;if(Zc!==void 0)return Zc;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const s=o.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),Zc=r-s,Zc};function kB(t,e){if(!lt)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const o=e.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),s=o+e.offsetHeight,a=t.scrollTop,l=a+t.clientHeight;o<a?t.scrollTop=o:s>l&&(t.scrollTop=s-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var ft=(t,e)=>{let n=t.__vccOpts||t;for(let[r,o]of e)n[r]=o;return n},SB={name:"Aim"},EB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xB=i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),TB=i.createElementVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),AB=[xB,TB];function _B(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",EB,AB)}var DB=ft(SB,[["render",_B],["__file","aim.vue"]]),MB={name:"ArrowDown"},NB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BB=i.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),OB=[BB];function IB(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",NB,OB)}var G3=ft(MB,[["render",IB],["__file","arrow-down.vue"]]),PB={name:"CaretRight"},LB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RB=i.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),zB=[RB];function FB(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",LB,zB)}var J3=ft(PB,[["render",FB],["__file","caret-right.vue"]]),$B={name:"Check"},VB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HB=i.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),jB=[HB];function UB(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",VB,jB)}var X3=ft($B,[["render",UB],["__file","check.vue"]]),qB={name:"CircleCheck"},WB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KB=i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),GB=i.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),JB=[KB,GB];function XB(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",WB,JB)}var np=ft(qB,[["render",XB],["__file","circle-check.vue"]]),YB={name:"CircleCloseFilled"},ZB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},QB=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),eO=[QB];function tO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",ZB,eO)}var Y3=ft(YB,[["render",tO],["__file","circle-close-filled.vue"]]),nO={name:"CircleClose"},rO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oO=i.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),iO=i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sO=[oO,iO];function aO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",rO,sO)}var Qc=ft(nO,[["render",aO],["__file","circle-close.vue"]]),lO={name:"Close"},cO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uO=i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),dO=[uO];function fO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",cO,dO)}var qi=ft(lO,[["render",fO],["__file","close.vue"]]),pO={name:"Delete"},hO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mO=i.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),gO=[mO];function bO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",hO,gO)}var yO=ft(pO,[["render",bO],["__file","delete.vue"]]),wO={name:"Document"},vO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CO=i.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),kO=[CO];function SO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",vO,kO)}var EO=ft(wO,[["render",SO],["__file","document.vue"]]),xO={name:"EditPen"},TO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},AO=i.createElementVNode("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1),_O=[AO];function DO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",TO,_O)}var MO=ft(xO,[["render",DO],["__file","edit-pen.vue"]]),NO={name:"Finished"},BO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},OO=i.createElementVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),IO=[OO];function PO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",BO,IO)}var LO=ft(NO,[["render",PO],["__file","finished.vue"]]),RO={name:"Hide"},zO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FO=i.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),$O=i.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),VO=[FO,$O];function HO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",zO,VO)}var jO=ft(RO,[["render",HO],["__file","hide.vue"]]),UO={name:"InfoFilled"},qO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WO=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),KO=[WO];function GO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",qO,KO)}var Z3=ft(UO,[["render",GO],["__file","info-filled.vue"]]),JO={name:"Loading"},XO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YO=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),ZO=[YO];function QO(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",XO,ZO)}var rp=ft(JO,[["render",QO],["__file","loading.vue"]]),eI={name:"MagicStick"},tI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nI=i.createElementVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),rI=[nI];function oI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",tI,rI)}var iI=ft(eI,[["render",oI],["__file","magic-stick.vue"]]),sI={name:"Mic"},aI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lI=i.createElementVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),cI=[lI];function uI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",aI,cI)}var dI=ft(sI,[["render",uI],["__file","mic.vue"]]),fI={name:"PictureFilled"},pI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hI=i.createElementVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),mI=[hI];function gI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",pI,mI)}var bI=ft(fI,[["render",gI],["__file","picture-filled.vue"]]),yI={name:"Picture"},wI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vI=i.createElementVNode("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),CI=i.createElementVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),kI=[vI,CI];function SI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",wI,kI)}var EI=ft(yI,[["render",SI],["__file","picture.vue"]]),xI={name:"Promotion"},TI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},AI=i.createElementVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),_I=[AI];function DI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",TI,_I)}var MI=ft(xI,[["render",DI],["__file","promotion.vue"]]),NI={name:"SuccessFilled"},BI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},OI=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),II=[OI];function PI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",BI,II)}var Q3=ft(NI,[["render",PI],["__file","success-filled.vue"]]),LI={name:"Sugar"},RI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zI=i.createElementVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),FI=[zI];function $I(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",RI,FI)}var VI=ft(LI,[["render",$I],["__file","sugar.vue"]]),HI={name:"Switch"},jI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UI=i.createElementVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),qI=[UI];function WI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",jI,qI)}var KI=ft(HI,[["render",WI],["__file","switch.vue"]]),GI={name:"View"},JI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XI=i.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),YI=[XI];function ZI(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",JI,YI)}var QI=ft(GI,[["render",ZI],["__file","view.vue"]]),eP={name:"WarningFilled"},tP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nP=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),rP=[nP];function oP(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",tP,rP)}var op=ft(eP,[["render",oP],["__file","warning-filled.vue"]]),iP={name:"ZoomIn"},sP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aP=i.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),lP=[aP];function cP(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("svg",sP,lP)}var uP=ft(iP,[["render",cP],["__file","zoom-in.vue"]]);const eb="__epPropKey",ne=t=>t,dP=t=>Qt(t)&&!!t[eb],yr=(t,e)=>{if(!Qt(t)||dP(t))return t;const{values:n,required:r,default:o,type:s,validator:a}=t,c={type:s,required:!!r,validator:n||a?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),Wo(t,"default")&&f.push(o),d||(d=f.includes(u))),a&&(d||(d=a(u))),!d&&f.length>0){const p=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");i.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${p}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[eb]:!0};return Wo(t,"default")&&(c.default=o),c},Pe=t=>Jc(Object.entries(t).map(([e,n])=>[e,yr(n,e)])),wr=ne([String,Object,Function]),fP={Close:qi},tb={Close:qi,SuccessFilled:Q3,InfoFilled:Z3,WarningFilled:op,CircleCloseFilled:Y3},eu={success:Q3,warning:op,error:Y3,info:Z3},nb={validating:rp,success:np,error:Qc},Lt=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e!=null?e:{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},pP=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),hP=(t,e)=>(t.install=n=>{n.directive(e,t)},t),mo=t=>(t.install=gt,t),ip=(...t)=>e=>{t.forEach(n=>{St(n)?n(e):n.value=e})},Ge={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},en="update:modelValue",rb="change",tl=["","default","small","large"],mP={large:40,default:32,small:24},gP=t=>mP[t||"default"],ob=t=>["",...tl].includes(t);var tu=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(tu||{});const ib=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),sb=t=>lt?window.requestAnimationFrame(t):setTimeout(t,16),ab=t=>lt?window.cancelAnimationFrame(t):clearTimeout(t),ln=t=>t,bP=["class","style"],yP=/^on[A-Z]/,wP=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=i.computed(()=>((n==null?void 0:n.value)||[]).concat(bP)),o=i.getCurrentInstance();return o?i.computed(()=>{var s;return Jc(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([a])=>!r.value.includes(a)&&!(e&&yP.test(a))))}):i.computed(()=>({}))},nu=({from:t,replacement:e,scope:n,version:r,ref:o,type:s="API"},a)=>{i.watch(()=>i.unref(a),l=>{},{immediate:!0})},lb=(t,e,n)=>{let r={offsetX:0,offsetY:0};const o=l=>{const c=l.clientX,u=l.clientY,{offsetX:d,offsetY:f}=r,p=t.value.getBoundingClientRect(),h=p.left,m=p.top,g=p.width,b=p.height,y=document.documentElement.clientWidth,S=document.documentElement.clientHeight,k=-h+d,C=-m+f,_=y-h-g+d,E=S-m-b+f,T=D=>{const L=Math.min(Math.max(d+D.clientX-c,k),_),$=Math.min(Math.max(f+D.clientY-u,C),E);r={offsetX:L,offsetY:$},t.value.style.transform=`translate(${jr(L)}, ${jr($)})`},M=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)},s=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",o)},a=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",o)};i.onMounted(()=>{i.watchEffect(()=>{n.value?s():a()})}),i.onBeforeUnmount(()=>{a()})};var vP={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const CP=t=>(e,n)=>kP(e,n,i.unref(t)),kP=(t,e,n)=>Rn(n,t,t).replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=e==null?void 0:e[o])!=null?s:`{${o}}`}`}),SP=t=>{const e=i.computed(()=>i.unref(t).name),n=i.isRef(t)?t:i.ref(t);return{lang:e,locale:n,t:CP(t)}},cb=Symbol("localeContextKey"),go=t=>{const e=t||i.inject(cb,i.ref());return SP(i.computed(()=>e.value||vP))};let EP;function xP(t,e=EP){e&&e.active&&e.effects.push(t)}const TP=t=>{const e=new Set(t);return e.w=0,e.n=0,e},ub=t=>(t.w&Xo)>0,db=t=>(t.n&Xo)>0,AP=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=Xo},_P=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];ub(o)&&!db(o)?o.delete(t):e[n++]=o,o.w&=~Xo,o.n&=~Xo}e.length=n}};let nl=0,Xo=1;const sp=30;let Ur;class DP{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,xP(this,r)}run(){if(!this.active)return this.fn();let e=Ur,n=ru;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ur,Ur=this,ru=!0,Xo=1<<++nl,nl<=sp?AP(this):fb(this),this.fn()}finally{nl<=sp&&_P(this),Xo=1<<--nl,Ur=this.parent,ru=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ur===this?this.deferStop=!0:this.active&&(fb(this),this.onStop&&this.onStop(),this.active=!1)}}function fb(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let ru=!0;function MP(t,e){let n=!1;nl<=sp?db(t)||(t.n|=Xo,n=!ub(t)):n=!t.has(Ur),n&&(t.add(Ur),Ur.deps.push(t))}function NP(t,e){const n=Vr(t)?t:[...t];for(const r of n)r.computed&&pb(r);for(const r of n)r.computed||pb(r)}function pb(t,e){(t!==Ur||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function ou(t){const e=t&&t.__v_raw;return e?ou(e):t}function BP(t){ru&&Ur&&(t=ou(t),MP(t.dep||(t.dep=TP())))}function OP(t,e){t=ou(t);const n=t.dep;n&&NP(n)}class IP{constructor(e,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new DP(e,()=>{this._dirty||(this._dirty=!0,OP(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=ou(this);return BP(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function PP(t,e,n=!1){let r,o;const s=St(t);return s?(r=t,o=gt):(r=t.get,o=t.set),new IP(r,o,s||!o,n)}const rl="el",LP="is-",Wi=(t,e,n,r,o)=>{let s=`${t}-${e}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},hb=Symbol("namespaceContextKey"),ap=t=>{const e=t||(i.getCurrentInstance()?i.inject(hb,i.ref(rl)):i.ref(rl));return i.computed(()=>i.unref(e)||rl)},Ee=(t,e)=>{const n=ap(e);return{namespace:n,b:(g="")=>Wi(n.value,t,g,"",""),e:g=>g?Wi(n.value,t,"",g,""):"",m:g=>g?Wi(n.value,t,"","",g):"",be:(g,b)=>g&&b?Wi(n.value,t,g,b,""):"",em:(g,b)=>g&&b?Wi(n.value,t,"",g,b):"",bm:(g,b)=>g&&b?Wi(n.value,t,g,"",b):"",bem:(g,b,y)=>g&&b&&y?Wi(n.value,t,g,b,y):"",is:(g,...b)=>{const y=b.length>=1?b[0]:!0;return g&&y?`${LP}${g}`:""},cssVar:g=>{const b={};for(const y in g)g[y]&&(b[`--${n.value}-${y}`]=g[y]);return b},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const b={};for(const y in g)g[y]&&(b[`--${n.value}-${t}-${y}`]=g[y]);return b},cssVarBlockName:g=>`--${n.value}-${t}-${g}`}},mb=(t,e={})=>{i.isRef(t)||Fs("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||Ee("popup"),r=PP(()=>n.bm("parent","hidden"));if(!lt||K3(document.body,r.value))return;let o=0,s=!1,a="0";const l=()=>{setTimeout(()=>{Jo(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=a)},200)};i.watch(t,c=>{if(!c){l();return}s=!K3(document.body,r.value),s&&(a=document.body.style.width),o=CB(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=$s(document.body,"overflowY");o>0&&(u||d==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`),Yc(document.body,r.value)}),i.onScopeDispose(()=>l())},RP=yr({type:ne(Boolean),default:null}),zP=yr({type:ne(Function)}),FP=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],o={[t]:RP,[n]:zP};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:f})=>{const p=i.getCurrentInstance(),{emit:h}=p,m=p.props,g=i.computed(()=>St(m[n])),b=i.computed(()=>m[t]===null),y=T=>{a.value!==!0&&(a.value=!0,l&&(l.value=T),St(d)&&d(T))},S=T=>{a.value!==!1&&(a.value=!1,l&&(l.value=T),St(f)&&f(T))},k=T=>{if(m.disabled===!0||St(u)&&!u())return;const M=g.value&<M&&h(e,!0),(b.value||!M)&&y(T)},C=T=>{if(m.disabled===!0||!lt)return;const M=g.value&<M&&h(e,!1),(b.value||!M)&&S(T)},_=T=>{!ho(T)||(m.disabled&&T?g.value&&h(e,!1):a.value!==T&&(T?y():S()))},E=()=>{a.value?C():k()};return i.watch(()=>m[t],_),c&&p.appContext.config.globalProperties.$route!==void 0&&i.watch(()=>({...p.proxy.$route}),()=>{c.value&&a.value&&C()}),i.onMounted(()=>{_(m[t])}),{hide:C,show:k,toggle:E,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}},gb=t=>{const e=i.getCurrentInstance();return i.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var xn="top",Qn="bottom",er="right",Tn="left",lp="auto",ol=[xn,Qn,er,Tn],Vs="start",il="end",$P="clippingParents",bb="viewport",sl="popper",VP="reference",yb=ol.reduce(function(t,e){return t.concat([e+"-"+Vs,e+"-"+il])},[]),iu=[].concat(ol,[lp]).reduce(function(t,e){return t.concat([e,e+"-"+Vs,e+"-"+il])},[]),HP="beforeRead",jP="read",UP="afterRead",qP="beforeMain",WP="main",KP="afterMain",GP="beforeWrite",JP="write",XP="afterWrite",YP=[HP,jP,UP,qP,WP,KP,GP,JP,XP];function qr(t){return t?(t.nodeName||"").toLowerCase():null}function vr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Hs(t){var e=vr(t).Element;return t instanceof e||t instanceof Element}function tr(t){var e=vr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cp(t){if(typeof ShadowRoot=="undefined")return!1;var e=vr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZP(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},s=e.elements[n];!tr(s)||!qr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function QP(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!tr(o)||!qr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var wb={name:"applyStyles",enabled:!0,phase:"write",fn:ZP,effect:QP,requires:["computeStyles"]};function Wr(t){return t.split("-")[0]}var Ki=Math.max,su=Math.min,js=Math.round;function Us(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if(tr(t)&&e){var s=t.offsetHeight,a=t.offsetWidth;a>0&&(r=js(n.width)/a||1),s>0&&(o=js(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function up(t){var e=Us(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function vb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cp(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bo(t){return vr(t).getComputedStyle(t)}function eL(t){return["table","td","th"].indexOf(qr(t))>=0}function Yo(t){return((Hs(t)?t.ownerDocument:t.document)||window.document).documentElement}function au(t){return qr(t)==="html"?t:t.assignedSlot||t.parentNode||(cp(t)?t.host:null)||Yo(t)}function Cb(t){return!tr(t)||bo(t).position==="fixed"?null:t.offsetParent}function tL(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&tr(t)){var r=bo(t);if(r.position==="fixed")return null}var o=au(t);for(cp(o)&&(o=o.host);tr(o)&&["html","body"].indexOf(qr(o))<0;){var s=bo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function al(t){for(var e=vr(t),n=Cb(t);n&&eL(n)&&bo(n).position==="static";)n=Cb(n);return n&&(qr(n)==="html"||qr(n)==="body"&&bo(n).position==="static")?e:n||tL(t)||e}function dp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ll(t,e,n){return Ki(t,su(e,n))}function nL(t,e,n){var r=ll(t,e,n);return r>n?n:r}function kb(){return{top:0,right:0,bottom:0,left:0}}function Sb(t){return Object.assign({},kb(),t)}function Eb(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var rL=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Sb(typeof t!="number"?t:Eb(t,ol))};function oL(t){var e,n=t.state,r=t.name,o=t.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Wr(n.placement),c=dp(l),u=[Tn,er].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!a)){var f=rL(o.padding,n),p=up(s),h=c==="y"?xn:Tn,m=c==="y"?Qn:er,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],b=a[c]-n.rects.reference[c],y=al(s),S=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,k=g/2-b/2,C=f[h],_=S-p[d]-f[m],E=S/2-p[d]/2+k,T=ll(C,E,_),M=c;n.modifiersData[r]=(e={},e[M]=T,e.centerOffset=T-E,e)}}function iL(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!vb(e.elements.popper,o)||(e.elements.arrow=o))}var sL={name:"arrow",enabled:!0,phase:"main",fn:oL,effect:iL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qs(t){return t.split("-")[1]}var aL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lL(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:js(e*o)/o||0,y:js(n*o)/o||0}}function xb(t){var e,n=t.popper,r=t.popperRect,o=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),k=Tn,C=xn,_=window;if(u){var E=al(n),T="clientHeight",M="clientWidth";if(E===vr(n)&&(E=Yo(n),bo(E).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),E=E,o===xn||(o===Tn||o===er)&&s===il){C=Qn;var D=f&&E===_&&_.visualViewport?_.visualViewport.height:E[T];g-=D-r.height,g*=c?1:-1}if(o===Tn||(o===xn||o===Qn)&&s===il){k=er;var L=f&&E===_&&_.visualViewport?_.visualViewport.width:E[M];h-=L-r.width,h*=c?1:-1}}var $=Object.assign({position:l},u&&aL),V=d===!0?lL({x:h,y:g}):{x:h,y:g};if(h=V.x,g=V.y,c){var W;return Object.assign({},$,(W={},W[C]=S?"0":"",W[k]=y?"0":"",W.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",W))}return Object.assign({},$,(e={},e[C]=S?g+"px":"",e[k]=y?h+"px":"",e.transform="",e))}function cL(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Wr(e.placement),variation:qs(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,xb(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,xb(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Tb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cL,data:{}},lu={passive:!0};function uL(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=vr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,lu)}),l&&c.addEventListener("resize",n.update,lu),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,lu)}),l&&c.removeEventListener("resize",n.update,lu)}}var Ab={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uL,data:{}},dL={left:"right",right:"left",bottom:"top",top:"bottom"};function cu(t){return t.replace(/left|right|bottom|top/g,function(e){return dL[e]})}var fL={start:"end",end:"start"};function _b(t){return t.replace(/start|end/g,function(e){return fL[e]})}function fp(t){var e=vr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pp(t){return Us(Yo(t)).left+fp(t).scrollLeft}function pL(t){var e=vr(t),n=Yo(t),r=e.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:s,x:a+pp(t),y:l}}function hL(t){var e,n=Yo(t),r=fp(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=Ki(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ki(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+pp(t),c=-r.scrollTop;return bo(o||n).direction==="rtl"&&(l+=Ki(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function hp(t){var e=bo(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Db(t){return["html","body","#document"].indexOf(qr(t))>=0?t.ownerDocument.body:tr(t)&&hp(t)?t:Db(au(t))}function cl(t,e){var n;e===void 0&&(e=[]);var r=Db(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),s=vr(r),a=o?[s].concat(s.visualViewport||[],hp(r)?r:[]):r,l=e.concat(a);return o?l:l.concat(cl(au(a)))}function mp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mL(t){var e=Us(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function Mb(t,e){return e===bb?mp(pL(t)):Hs(e)?mL(e):mp(hL(Yo(t)))}function gL(t){var e=cl(au(t)),n=["absolute","fixed"].indexOf(bo(t).position)>=0,r=n&&tr(t)?al(t):t;return Hs(r)?e.filter(function(o){return Hs(o)&&vb(o,r)&&qr(o)!=="body"}):[]}function bL(t,e,n){var r=e==="clippingParents"?gL(t):[].concat(e),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(l,c){var u=Mb(t,c);return l.top=Ki(u.top,l.top),l.right=su(u.right,l.right),l.bottom=su(u.bottom,l.bottom),l.left=Ki(u.left,l.left),l},Mb(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Nb(t){var e=t.reference,n=t.element,r=t.placement,o=r?Wr(r):null,s=r?qs(r):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(o){case xn:c={x:a,y:e.y-n.height};break;case Qn:c={x:a,y:e.y+e.height};break;case er:c={x:e.x+e.width,y:l};break;case Tn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=o?dp(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Vs:c[u]=c[u]-(e[d]/2-n[d]/2);break;case il:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function ul(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,s=n.boundary,a=s===void 0?$P:s,l=n.rootBoundary,c=l===void 0?bb:l,u=n.elementContext,d=u===void 0?sl:u,f=n.altBoundary,p=f===void 0?!1:f,h=n.padding,m=h===void 0?0:h,g=Sb(typeof m!="number"?m:Eb(m,ol)),b=d===sl?VP:sl,y=t.rects.popper,S=t.elements[p?b:d],k=bL(Hs(S)?S:S.contextElement||Yo(t.elements.popper),a,c),C=Us(t.elements.reference),_=Nb({reference:C,element:y,strategy:"absolute",placement:o}),E=mp(Object.assign({},y,_)),T=d===sl?E:C,M={top:k.top-T.top+g.top,bottom:T.bottom-k.bottom+g.bottom,left:k.left-T.left+g.left,right:T.right-k.right+g.right},D=t.modifiersData.offset;if(d===sl&&D){var L=D[o];Object.keys(M).forEach(function($){var V=[er,Qn].indexOf($)>=0?1:-1,W=[xn,Qn].indexOf($)>=0?"y":"x";M[$]+=L[W]*V})}return M}function yL(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?iu:c,d=qs(r),f=d?l?yb:yb.filter(function(m){return qs(m)===d}):ol,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=ul(t,{placement:g,boundary:o,rootBoundary:s,padding:a})[Wr(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function wL(t){if(Wr(t)===lp)return[];var e=cu(t);return[_b(t),e,_b(e)]}function vL(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,b=e.options.placement,y=Wr(b),S=y===b,k=c||(S||!m?[cu(b)]:wL(b)),C=[b].concat(k).reduce(function(de,fe){return de.concat(Wr(fe)===lp?yL(e,{placement:fe,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):fe)},[]),_=e.rects.reference,E=e.rects.popper,T=new Map,M=!0,D=C[0],L=0;L<C.length;L++){var $=C[L],V=Wr($),W=qs($)===Vs,ee=[xn,Qn].indexOf(V)>=0,J=ee?"width":"height",I=ul(e,{placement:$,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),B=ee?W?er:Tn:W?Qn:xn;_[J]>E[J]&&(B=cu(B));var H=cu(B),K=[];if(s&&K.push(I[V]<=0),l&&K.push(I[B]<=0,I[H]<=0),K.every(function(de){return de})){D=$,M=!1;break}T.set($,K)}if(M)for(var ae=m?3:1,ye=function(de){var fe=C.find(function(Re){var Z=T.get(Re);if(Z)return Z.slice(0,de).every(function(z){return z})});if(fe)return D=fe,"break"},le=ae;le>0;le--){var re=ye(le);if(re==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}var CL={name:"flip",enabled:!0,phase:"main",fn:vL,requiresIfExists:["offset"],data:{_skip:!1}};function Bb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ob(t){return[xn,er,Qn,Tn].some(function(e){return t[e]>=0})}function kL(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,a=ul(e,{elementContext:"reference"}),l=ul(e,{altBoundary:!0}),c=Bb(a,r),u=Bb(l,o,s),d=Ob(c),f=Ob(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var SL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kL};function EL(t,e,n){var r=Wr(t),o=[Tn,xn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[Tn,er].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function xL(t){var e=t.state,n=t.options,r=t.name,o=n.offset,s=o===void 0?[0,0]:o,a=iu.reduce(function(d,f){return d[f]=EL(f,e.rects,s),d},{}),l=a[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var TL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xL};function AL(t){var e=t.state,n=t.name;e.modifiersData[n]=Nb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Ib={name:"popperOffsets",enabled:!0,phase:"read",fn:AL,data:{}};function _L(t){return t==="x"?"y":"x"}function DL(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,b=ul(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=Wr(e.placement),S=qs(e.placement),k=!S,C=dp(y),_=_L(C),E=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,D=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(E){if(s){var W,ee=C==="y"?xn:Tn,J=C==="y"?Qn:er,I=C==="y"?"height":"width",B=E[C],H=B+b[ee],K=B-b[J],ae=h?-M[I]/2:0,ye=S===Vs?T[I]:M[I],le=S===Vs?-M[I]:-T[I],re=e.elements.arrow,de=h&&re?up(re):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kb(),Re=fe[ee],Z=fe[J],z=ll(0,T[I],de[I]),ce=k?T[I]/2-ae-z-Re-L.mainAxis:ye-z-Re-L.mainAxis,ve=k?-T[I]/2+ae+z+Z+L.mainAxis:le+z+Z+L.mainAxis,Ae=e.elements.arrow&&al(e.elements.arrow),qe=Ae?C==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,rt=(W=$==null?void 0:$[C])!=null?W:0,We=B+ce-rt-qe,ot=B+ve-rt,ht=ll(h?su(H,We):H,B,h?Ki(K,ot):K);E[C]=ht,V[C]=ht-B}if(l){var pe,kt=C==="x"?xn:Tn,Ve=C==="x"?Qn:er,Ne=E[_],Xe=_==="y"?"height":"width",st=Ne+b[kt],Ft=Ne-b[Ve],$t=[xn,Tn].indexOf(y)!==-1,R=(pe=$==null?void 0:$[_])!=null?pe:0,G=$t?st:Ne-T[Xe]-M[Xe]-R+L.altAxis,me=$t?Ne+T[Xe]+M[Xe]-R-L.altAxis:Ft,ze=h&&$t?nL(G,Ne,me):ll(h?G:st,Ne,h?me:Ft);E[_]=ze,V[_]=ze-Ne}e.modifiersData[r]=V}}var ML={name:"preventOverflow",enabled:!0,phase:"main",fn:DL,requiresIfExists:["offset"]};function NL(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function BL(t){return t===vr(t)||!tr(t)?fp(t):NL(t)}function OL(t){var e=t.getBoundingClientRect(),n=js(e.width)/t.offsetWidth||1,r=js(e.height)/t.offsetHeight||1;return n!==1||r!==1}function IL(t,e,n){n===void 0&&(n=!1);var r=tr(e),o=tr(e)&&OL(e),s=Yo(e),a=Us(t,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((qr(e)!=="body"||hp(s))&&(l=BL(e)),tr(e)?(c=Us(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=pp(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function PL(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&o(c)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||o(s)}),r}function LL(t){var e=PL(t);return YP.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function RL(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function zL(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Pb={placement:"bottom",modifiers:[],strategy:"absolute"};function Lb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gp(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,s=o===void 0?Pb:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pb,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var b=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},s,u.options,b),u.scrollParents={reference:Hs(a)?cl(a):a.contextElement?cl(a.contextElement):[],popper:cl(l)};var y=LL(zL([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(S){return S.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,b=g.reference,y=g.popper;if(Lb(b,y)){u.rects={reference:IL(b,al(y),u.options.strategy==="fixed"),popper:up(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var k=u.orderedModifiers[S],C=k.fn,_=k.options,E=_===void 0?{}:_,T=k.name;typeof C=="function"&&(u=C({state:u,options:E,name:T,instance:p})||u)}}}},update:RL(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!Lb(a,l))return p;p.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function h(){u.orderedModifiers.forEach(function(g){var b=g.name,y=g.options,S=y===void 0?{}:y,k=g.effect;if(typeof k=="function"){var C=k({state:u,name:b,instance:p,options:S}),_=function(){};d.push(C||_)}})}function m(){d.forEach(function(g){return g()}),d=[]}return p}}gp();var FL=[Ab,Ib,Tb,wb];gp({defaultModifiers:FL});var $L=[Ab,Ib,Tb,wb,TL,CL,ML,sL,SL],VL=gp({defaultModifiers:$L});const HL=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=jL(c);Object.assign(a.value,u)},requires:["computeStyles"]},o=i.computed(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:f}=i.unref(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),s=i.shallowRef(),a=i.ref({styles:{popper:{position:i.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{!s.value||(s.value.destroy(),s.value=void 0)};return i.watch(o,c=>{const u=i.unref(s);u&&u.setOptions(c)},{deep:!0}),i.watch([t,e],([c,u])=>{l(),!(!c||!u)&&(s.value=VL(c,u,i.unref(o)))}),i.onBeforeUnmount(()=>{l()}),{state:i.computed(()=>{var c;return{...((c=i.unref(s))==null?void 0:c.state)||{}}}),styles:i.computed(()=>i.unref(a).styles),attributes:i.computed(()=>i.unref(a).attributes),update:()=>{var c;return(c=i.unref(s))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=i.unref(s))==null?void 0:c.forceUpdate()},instanceRef:i.computed(()=>i.unref(s))}};function jL(t){const e=Object.keys(t.elements),n=Jc(e.map(o=>[o,t.styles[o]||{}])),r=Jc(e.map(o=>[o,t.attributes[o]]));return{styles:n,attributes:r}}const bp=t=>{if(!t)return{onClick:gt,onMousedown:gt,onMouseup:gt};let e=!1,n=!1;return{onClick:a=>{e&&n&&t(a),e=n=!1},onMousedown:a=>{e=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},UL=(t,e=0)=>{if(e===0)return t;const n=i.ref(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=t.value},e)};return i.onMounted(o),i.watch(()=>t.value,s=>{s?o():n.value=s}),n};function Rb(){let t;const e=(r,o)=>{n(),t=window.setTimeout(r,o)},n=()=>window.clearTimeout(t);return Rc(()=>n()),{registerTimeout:e,cancelTimeout:n}}const zb={prefix:Math.floor(Math.random()*1e4),current:0},qL=Symbol("elIdInjection"),Fb=()=>i.getCurrentInstance()?i.inject(qL,zb):zb,yo=t=>{const e=Fb(),n=ap();return i.computed(()=>i.unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let Ws=[];const $b=t=>{const e=t;e.key===Ge.esc&&Ws.forEach(n=>n(e))},WL=t=>{i.onMounted(()=>{Ws.length===0&&document.addEventListener("keydown",$b),lt&&Ws.push(t)}),i.onBeforeUnmount(()=>{Ws=Ws.filter(e=>e!==t),Ws.length===0&<&&document.removeEventListener("keydown",$b)})};let Vb;const Hb=()=>{const t=ap(),e=Fb(),n=i.computed(()=>`${t.value}-popper-container-${e.prefix}`),r=i.computed(()=>`#${n.value}`);return{id:n,selector:r}},KL=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},GL=()=>{const{id:t,selector:e}=Hb();return i.onBeforeMount(()=>{!lt||!Vb&&!document.body.querySelector(e.value)&&(Vb=KL(t.value))}),{id:t,selector:e}},JL=Pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),XL=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:o})=>{const{registerTimeout:s}=Rb(),{registerTimeout:a,cancelTimeout:l}=Rb();return{onOpen:d=>{s(()=>{r(d);const f=i.unref(n);_t(f)&&f>0&&a(()=>{o(d)},f)},i.unref(t))},onClose:d=>{l(),s(()=>{o(d)},i.unref(e))}}},jb=Symbol("elForwardRef"),YL=t=>{const e=n=>{t.value=n};i.provide(jb,{setForwardRef:e})},ZL=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),Ub=i.ref(0),qb=2e3,Wb=Symbol("zIndexContextKey"),yp=t=>{const e=t||(i.getCurrentInstance()?i.inject(Wb,void 0):void 0),n=i.computed(()=>{const s=i.unref(e);return _t(s)?s:qb}),r=i.computed(()=>n.value+Ub.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Ub.value++,r.value)}};function QL(t){const e=i.ref();function n(){if(t.value==null)return;const{selectionStart:o,selectionEnd:s,value:a}=t.value;if(o==null||s==null)return;const l=a.slice(0,Math.max(0,o)),c=a.slice(Math.max(0,s));e.value={selectionStart:o,selectionEnd:s,value:a,beforeTxt:l,afterTxt:c}}function r(){if(t.value==null||e.value==null)return;const{value:o}=t.value,{beforeTxt:s,afterTxt:a,selectionStart:l}=e.value;if(s==null||a==null||l==null)return;let c=o.length;if(o.endsWith(a))c=o.length-a.length;else if(o.startsWith(s))c=s.length;else{const u=s[l-1],d=o.indexOf(u,l-1);d!==-1&&(c=d+1)}t.value.setSelectionRange(c,c)}return[n,r]}const dl=yr({type:String,values:tl,required:!1}),Kb=Symbol("size"),eR=()=>{const t=i.inject(Kb,{});return i.computed(()=>i.unref(t.size)||"")};function tR(t,{afterFocus:e,afterBlur:n}={}){const r=i.getCurrentInstance(),{emit:o}=r,s=i.shallowRef(),a=i.ref(!1),l=d=>{a.value||(a.value=!0,o("focus",d),e==null||e())},c=d=>{var f;d.relatedTarget&&((f=s.value)==null?void 0:f.contains(d.relatedTarget))||(a.value=!1,o("blur",d),n==null||n())},u=()=>{var d;(d=t.value)==null||d.focus()};return i.watch(s,d=>{d&&d.setAttribute("tabindex","-1")}),$r(s,"click",u),{wrapperRef:s,isFocused:a,handleFocus:l,handleBlur:c}}const Gb=Symbol(),uu=i.ref();function du(t,e=void 0){const n=i.getCurrentInstance()?i.inject(Gb,uu):uu;return t?i.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[t])!=null?o:e}):n}function wp(t,e){const n=du(),r=Ee(t,i.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||rl})),o=go(i.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),s=yp(i.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||qb})),a=i.computed(()=>{var l;return i.unref(e)||((l=n.value)==null?void 0:l.size)||""});return Jb(i.computed(()=>i.unref(n)||{})),{ns:r,locale:o,zIndex:s,size:a}}const Jb=(t,e,n=!1)=>{var r;const o=!!i.getCurrentInstance(),s=o?du():void 0,a=(r=e==null?void 0:e.provide)!=null?r:o?i.provide:void 0;if(!a)return;const l=i.computed(()=>{const c=i.unref(t);return s!=null&&s.value?nR(s.value,c):c});return a(Gb,l),a(cb,i.computed(()=>l.value.locale)),a(hb,i.computed(()=>l.value.namespace)),a(Wb,i.computed(()=>l.value.zIndex)),a(Kb,{size:i.computed(()=>l.value.size||"")}),(n||!uu.value)&&(uu.value=l.value),l},nR=(t,e)=>{var n;const r=[...new Set([...q3(t),...q3(e)])],o={};for(const s of r)o[s]=(n=e[s])!=null?n:t[s];return o},rR=Pe({a11y:{type:Boolean,default:!0},locale:{type:ne(Object)},size:dl,button:{type:ne(Object)},experimentalFeatures:{type:ne(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ne(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),vp={};i.defineComponent({name:"ElConfigProvider",props:rR,setup(t,{slots:e}){i.watch(()=>t.message,r=>{Object.assign(vp,r!=null?r:{})},{immediate:!0,deep:!0});const n=Jb(t);return()=>i.renderSlot(e,"default",{config:n==null?void 0:n.value})}});var xe=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n};const oR=Pe({size:{type:ne([Number,String])},color:{type:String}}),iR=i.defineComponent({name:"ElIcon",inheritAttrs:!1}),sR=i.defineComponent({...iR,props:oR,setup(t){const e=t,n=Ee("icon"),r=i.computed(()=>{const{size:o,color:s}=e;return!o&&!s?{}:{fontSize:el(o)?void 0:jr(o),"--color":s}});return(o,s)=>(i.openBlock(),i.createElementBlock("i",i.mergeProps({class:i.unref(n).b(),style:i.unref(r)},o.$attrs),[i.renderSlot(o.$slots,"default")],16))}});var aR=xe(sR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const yt=Lt(aR),Ks=Symbol("formContextKey"),wo=Symbol("formItemContextKey"),vo=(t,e={})=>{const n=i.ref(void 0),r=e.prop?n:gb("size"),o=e.global?n:eR(),s=e.form?{size:void 0}:i.inject(Ks,void 0),a=e.formItem?{size:void 0}:i.inject(wo,void 0);return i.computed(()=>r.value||i.unref(t)||(a==null?void 0:a.size)||(s==null?void 0:s.size)||o.value||"")},Zo=t=>{const e=gb("disabled"),n=i.inject(Ks,void 0);return i.computed(()=>e.value||i.unref(t)||(n==null?void 0:n.disabled)||!1)},Gs=()=>{const t=i.inject(Ks,void 0),e=i.inject(wo,void 0);return{form:t,formItem:e}},Cp=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=i.ref(!1)),r||(r=i.ref(!1));const o=i.ref();let s;const a=i.computed(()=>{var l;return!!(!t.label&&e&&e.inputIds&&((l=e.inputIds)==null?void 0:l.length)<=1)});return i.onMounted(()=>{s=i.watch([i.toRef(t,"id"),n],([l,c])=>{const u=l!=null?l:c?void 0:yo().value;u!==o.value&&(e!=null&&e.removeInputId&&(o.value&&e.removeInputId(o.value),!(r!=null&&r.value)&&!c&&u&&e.addInputId(u)),o.value=u)},{immediate:!0})}),i.onUnmounted(()=>{s&&s(),e!=null&&e.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:a,inputId:o}},lR=Pe({size:{type:String,values:tl},disabled:Boolean}),cR=Pe({...lR,model:Object,rules:{type:ne(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),uR={validate:(t,e,n)=>(Vr(t)||vt(t))&&ho(e)&&vt(n)};function dR(){const t=i.ref([]),e=i.computed(()=>{if(!t.value.length)return"0";const s=Math.max(...t.value);return s?`${s}px`:""});function n(s){const a=t.value.indexOf(s);return a===-1&&e.value,a}function r(s,a){if(s&&a){const l=n(a);t.value.splice(l,1,s)}else s&&t.value.push(s)}function o(s){const a=n(s);a>-1&&t.value.splice(a,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:o}}const fu=(t,e)=>{const n=Wf(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},fR="ElForm",pR=i.defineComponent({name:fR}),hR=i.defineComponent({...pR,props:cR,emits:uR,setup(t,{expose:e,emit:n}){const r=t,o=[],s=vo(),a=Ee("form"),l=i.computed(()=>{const{labelPosition:S,inline:k}=r;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${S}`)]:S,[a.m("inline")]:k}]}),c=S=>{o.push(S)},u=S=>{S.prop&&o.splice(o.indexOf(S),1)},d=(S=[])=>{!r.model||fu(o,S).forEach(k=>k.resetField())},f=(S=[])=>{fu(o,S).forEach(k=>k.clearValidate())},p=i.computed(()=>!!r.model),h=S=>{if(o.length===0)return[];const k=fu(o,S);return k.length?k:[]},m=async S=>b(void 0,S),g=async(S=[])=>{if(!p.value)return!1;const k=h(S);if(k.length===0)return!0;let C={};for(const _ of k)try{await _.validate("")}catch(E){C={...C,...E}}return Object.keys(C).length===0?!0:Promise.reject(C)},b=async(S=[],k)=>{const C=!St(k);try{const _=await g(S);return _===!0&&(k==null||k(_)),_}catch(_){if(_ instanceof Error)throw _;const E=_;return r.scrollToError&&y(Object.keys(E)[0]),k==null||k(!1,E),C&&Promise.reject(E)}},y=S=>{var k;const C=fu(o,S)[0];C&&((k=C.$el)==null||k.scrollIntoView(r.scrollIntoViewOptions))};return i.watch(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(S=>void 0)},{deep:!0}),i.provide(Ks,i.reactive({...i.toRefs(r),emit:n,resetFields:d,clearValidate:f,validateField:b,addField:c,removeField:u,...dR()})),e({validate:m,validateField:b,resetFields:d,clearValidate:f,scrollToField:y}),(S,k)=>(i.openBlock(),i.createElementBlock("form",{class:i.normalizeClass(i.unref(l))},[i.renderSlot(S.$slots,"default")],2))}});var mR=xe(hR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Gi(){return Gi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gi.apply(this,arguments)}function gR(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,fl(t,e)}function kp(t){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kp(t)}function fl(t,e){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fl(t,e)}function bR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pu(t,e,n){return bR()?pu=Reflect.construct.bind():pu=function(o,s,a){var l=[null];l.push.apply(l,s);var c=Function.bind.apply(o,l),u=new c;return a&&fl(u,a.prototype),u},pu.apply(null,arguments)}function yR(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Sp(t){var e=typeof Map=="function"?new Map:void 0;return Sp=function(r){if(r===null||!yR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,o)}function o(){return pu(r,arguments,kp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),fl(o,r)},Sp(t)}var wR=/%[sdj%]/g,vR=function(){};function Ep(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function zn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,s=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(wR,function(l){if(l==="%%")return"%";if(o>=s)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return t}function CR(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Ht(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||CR(e)&&typeof t=="string"&&!t)}function kR(t,e,n){var r=[],o=0,s=t.length;function a(l){r.push.apply(r,l||[]),o++,o===s&&n(r)}t.forEach(function(l){e(l,a)})}function Xb(t,e,n){var r=0,o=t.length;function s(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?e(t[l],s):n([])}s([])}function SR(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var Yb=function(t){gR(e,t);function e(n,r){var o;return o=t.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return e}(Sp(Error));function ER(t,e,n,r,o){if(e.first){var s=new Promise(function(p,h){var m=function(y){return r(y),y.length?h(new Yb(y,Ep(y))):p(o)},g=SR(t);Xb(g,n,m)});return s.catch(function(p){return p}),s}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],l=Object.keys(t),c=l.length,u=0,d=[],f=new Promise(function(p,h){var m=function(b){if(d.push.apply(d,b),u++,u===c)return r(d),d.length?h(new Yb(d,Ep(d))):p(o)};l.length||(r(d),p(o)),l.forEach(function(g){var b=t[g];a.indexOf(g)!==-1?Xb(b,n,m):kR(b,n,m)})});return f.catch(function(p){return p}),f}function xR(t){return!!(t&&t.message!==void 0)}function TR(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function Zb(t,e){return function(n){var r;return t.fullFields?r=TR(e,t.fullFields):r=e[n.field||t.fullField],xR(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function Qb(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Gi({},t[n],r):t[n]=r}}return t}var ey=function(e,n,r,o,s,a){e.required&&(!r.hasOwnProperty(e.field)||Ht(n,a||e.type))&&o.push(zn(s.messages.required,e.fullField))},AR=function(e,n,r,o,s){(/^\s+$/.test(n)||n==="")&&o.push(zn(s.messages.whitespace,e.fullField))},hu,_R=function(){if(hu)return hu;var t="[a-fA-F\\d:]",e=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(C){return C&&C.exact?s:new RegExp("(?:"+e(C)+n+e(C)+")|(?:"+e(C)+o+e(C)+")","g")};c.v4=function(k){return k&&k.exact?a:new RegExp(""+e(k)+n+e(k),"g")},c.v6=function(k){return k&&k.exact?l:new RegExp(""+e(k)+o+e(k),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,p=c.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',S="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+h+m+g+")"+b+y;return hu=new RegExp("(?:^"+S+"$)","i"),hu},ty={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pl={integer:function(e){return pl.number(e)&&parseInt(e,10)===e},float:function(e){return pl.number(e)&&!pl.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!pl.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(ty.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(_R())},hex:function(e){return typeof e=="string"&&!!e.match(ty.hex)}},DR=function(e,n,r,o,s){if(e.required&&n===void 0){ey(e,n,r,o,s);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;a.indexOf(l)>-1?pl[l](n)||o.push(zn(s.messages.types[l],e.fullField,e.type)):l&&typeof n!==e.type&&o.push(zn(s.messages.types[l],e.fullField,e.type))},MR=function(e,n,r,o,s){var a=typeof e.len=="number",l=typeof e.min=="number",c=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(p?f="number":h?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),h&&(d=n.replace(u,"_").length),a?d!==e.len&&o.push(zn(s.messages[f].len,e.fullField,e.len)):l&&!c&&d<e.min?o.push(zn(s.messages[f].min,e.fullField,e.min)):c&&!l&&d>e.max?o.push(zn(s.messages[f].max,e.fullField,e.max)):l&&c&&(d<e.min||d>e.max)&&o.push(zn(s.messages[f].range,e.fullField,e.min,e.max))},Js="enum",NR=function(e,n,r,o,s){e[Js]=Array.isArray(e[Js])?e[Js]:[],e[Js].indexOf(n)===-1&&o.push(zn(s.messages[Js],e.fullField,e[Js].join(", ")))},BR=function(e,n,r,o,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||o.push(zn(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||o.push(zn(s.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Je={required:ey,whitespace:AR,type:DR,range:MR,enum:NR,pattern:BR},OR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n,"string")&&!e.required)return r();Je.required(e,n,o,a,s,"string"),Ht(n,"string")||(Je.type(e,n,o,a,s),Je.range(e,n,o,a,s),Je.pattern(e,n,o,a,s),e.whitespace===!0&&Je.whitespace(e,n,o,a,s))}r(a)},IR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&Je.type(e,n,o,a,s)}r(a)},PR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(n===""&&(n=void 0),Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&(Je.type(e,n,o,a,s),Je.range(e,n,o,a,s))}r(a)},LR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&Je.type(e,n,o,a,s)}r(a)},RR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),Ht(n)||Je.type(e,n,o,a,s)}r(a)},zR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&(Je.type(e,n,o,a,s),Je.range(e,n,o,a,s))}r(a)},FR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&(Je.type(e,n,o,a,s),Je.range(e,n,o,a,s))}r(a)},$R=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(n==null&&!e.required)return r();Je.required(e,n,o,a,s,"array"),n!=null&&(Je.type(e,n,o,a,s),Je.range(e,n,o,a,s))}r(a)},VR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&Je.type(e,n,o,a,s)}r(a)},HR="enum",jR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s),n!==void 0&&Je[HR](e,n,o,a,s)}r(a)},UR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n,"string")&&!e.required)return r();Je.required(e,n,o,a,s),Ht(n,"string")||Je.pattern(e,n,o,a,s)}r(a)},qR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n,"date")&&!e.required)return r();if(Je.required(e,n,o,a,s),!Ht(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Je.type(e,c,o,a,s),c&&Je.range(e,c.getTime(),o,a,s)}}r(a)},WR=function(e,n,r,o,s){var a=[],l=Array.isArray(n)?"array":typeof n;Je.required(e,n,o,a,s,l),r(a)},xp=function(e,n,r,o,s){var a=e.type,l=[],c=e.required||!e.required&&o.hasOwnProperty(e.field);if(c){if(Ht(n,a)&&!e.required)return r();Je.required(e,n,o,l,s,a),Ht(n,a)||Je.type(e,n,o,l,s)}r(l)},KR=function(e,n,r,o,s){var a=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Ht(n)&&!e.required)return r();Je.required(e,n,o,a,s)}r(a)},hl={string:OR,method:IR,number:PR,boolean:LR,regexp:RR,integer:zR,float:FR,array:$R,object:VR,enum:jR,pattern:UR,date:qR,url:xp,hex:xp,email:xp,required:WR,any:KR};function Tp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ap=Tp(),ml=function(){function t(n){this.rules=null,this._messages=Ap,this.define(n)}var e=t.prototype;return e.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var a=r[s];o.rules[s]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=Qb(Tp(),r)),this._messages},e.validate=function(r,o,s){var a=this;o===void 0&&(o={}),s===void 0&&(s=function(){});var l=r,c=o,u=s;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(g){var b=[],y={};function S(C){if(Array.isArray(C)){var _;b=(_=b).concat.apply(_,C)}else b.push(C)}for(var k=0;k<g.length;k++)S(g[k]);b.length?(y=Ep(b),u(b,y)):u(null,l)}if(c.messages){var f=this.messages();f===Ap&&(f=Tp()),Qb(f,c.messages),c.messages=f}else c.messages=this.messages();var p={},h=c.keys||Object.keys(this.rules);h.forEach(function(g){var b=a.rules[g],y=l[g];b.forEach(function(S){var k=S;typeof k.transform=="function"&&(l===r&&(l=Gi({},l)),y=l[g]=k.transform(y)),typeof k=="function"?k={validator:k}:k=Gi({},k),k.validator=a.getValidationMethod(k),k.validator&&(k.field=g,k.fullField=k.fullField||g,k.type=a.getType(k),p[g]=p[g]||[],p[g].push({rule:k,value:y,source:l,field:g}))})});var m={};return ER(p,c,function(g,b){var y=g.rule,S=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");S=S&&(y.required||!y.required&&g.value),y.field=g.field;function k(E,T){return Gi({},T,{fullField:y.fullField+"."+E,fullFields:y.fullFields?[].concat(y.fullFields,[E]):[E]})}function C(E){E===void 0&&(E=[]);var T=Array.isArray(E)?E:[E];!c.suppressWarning&&T.length&&t.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var M=T.map(Zb(y,l));if(c.first&&M.length)return m[y.field]=1,b(M);if(!S)b(M);else{if(y.required&&!g.value)return y.message!==void 0?M=[].concat(y.message).map(Zb(y,l)):c.error&&(M=[c.error(y,zn(c.messages.required,y.field))]),b(M);var D={};y.defaultField&&Object.keys(g.value).map(function(V){D[V]=y.defaultField}),D=Gi({},D,g.rule.fields);var L={};Object.keys(D).forEach(function(V){var W=D[V],ee=Array.isArray(W)?W:[W];L[V]=ee.map(k.bind(null,V))});var $=new t(L);$.messages(c.messages),g.rule.options&&(g.rule.options.messages=c.messages,g.rule.options.error=c.error),$.validate(g.value,g.rule.options||c,function(V){var W=[];M&&M.length&&W.push.apply(W,M),V&&V.length&&W.push.apply(W,V),b(W.length?W:null)})}}var _;if(y.asyncValidator)_=y.asyncValidator(y,g.value,C,g.source,c);else if(y.validator){try{_=y.validator(y,g.value,C,g.source,c)}catch(E){console.error==null||console.error(E),c.suppressValidatorError||setTimeout(function(){throw E},0),C(E.message)}_===!0?C():_===!1?C(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):_ instanceof Array?C(_):_ instanceof Error&&C(_.message)}_&&_.then&&_.then(function(){return C()},function(E){return C(E)})},function(g){d(g)},l)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!hl.hasOwnProperty(r.type))throw new Error(zn("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),s=o.indexOf("message");return s!==-1&&o.splice(s,1),o.length===1&&o[0]==="required"?hl.required:hl[this.getType(r)]||void 0},t}();ml.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");hl[e]=n},ml.warning=vR,ml.messages=Ap,ml.validators=hl;const GR=["","error","validating","success"],JR=Pe({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ne([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ne([Object,Array])},error:String,validateStatus:{type:String,values:GR},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:tl}}),ny="ElLabelWrap";var XR=i.defineComponent({name:ny,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=i.inject(Ks,void 0),r=i.inject(wo);r||Fs(ny,"usage: <el-form-item><label-wrap /></el-form-item>");const o=Ee("form"),s=i.ref(),a=i.ref(0),l=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},c=(d="update")=>{i.nextTick(()=>{e.default&&t.isAutoWidth&&(d==="update"?a.value=l():d==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>c("update");return i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{c("remove")}),i.onUpdated(()=>u()),i.watch(a,(d,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(d,f))}),Ps(i.computed(()=>{var d,f;return(f=(d=s.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!e)return null;const{isAutoWidth:p}=t;if(p){const h=n==null?void 0:n.autoLabelWidth,m=r==null?void 0:r.hasLabel,g={};if(m&&h&&h!=="auto"){const b=Math.max(0,Number.parseInt(h,10)-a.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";b&&(g[y]=`${b}px`)}return i.createVNode("div",{ref:s,class:[o.be("item","label-wrap")],style:g},[(d=e.default)==null?void 0:d.call(e)])}else return i.createVNode(i.Fragment,{ref:s},[(f=e.default)==null?void 0:f.call(e)])}}});const YR=["role","aria-labelledby"],ZR=i.defineComponent({name:"ElFormItem"}),QR=i.defineComponent({...ZR,props:JR,setup(t,{expose:e}){const n=t,r=i.useSlots(),o=i.inject(Ks,void 0),s=i.inject(wo,void 0),a=vo(void 0,{formItem:!1}),l=Ee("form-item"),c=yo().value,u=i.ref([]),d=i.ref(""),f=_T(d,100),p=i.ref(""),h=i.ref();let m,g=!1;const b=i.computed(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const Z=jr(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return Z?{width:Z}:{}}),y=i.computed(()=>{if((o==null?void 0:o.labelPosition)==="top"||(o==null?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const Z=jr(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Z}:{}}),S=i.computed(()=>[l.b(),l.m(a.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",ee.value||n.required),l.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:o==null?void 0:o.statusIcon}]),k=i.computed(()=>ho(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),C=i.computed(()=>[l.e("error"),{[l.em("error","inline")]:k.value}]),_=i.computed(()=>n.prop?vt(n.prop)?n.prop:n.prop.join("."):""),E=i.computed(()=>!!(n.label||r.label)),T=i.computed(()=>n.for||u.value.length===1?u.value[0]:void 0),M=i.computed(()=>!T.value&&E.value),D=!!s,L=i.computed(()=>{const Z=o==null?void 0:o.model;if(!(!Z||!n.prop))return tp(Z,n.prop).value}),$=i.computed(()=>{const{required:Z}=n,z=[];n.rules&&z.push(...Wf(n.rules));const ce=o==null?void 0:o.rules;if(ce&&n.prop){const ve=tp(ce,n.prop).value;ve&&z.push(...Wf(ve))}if(Z!==void 0){const ve=z.map((Ae,qe)=>[Ae,qe]).filter(([Ae])=>Object.keys(Ae).includes("required"));if(ve.length>0)for(const[Ae,qe]of ve)Ae.required!==Z&&(z[qe]={...Ae,required:Z});else z.push({required:Z})}return z}),V=i.computed(()=>$.value.length>0),W=Z=>$.value.filter(ce=>!ce.trigger||!Z?!0:Array.isArray(ce.trigger)?ce.trigger.includes(Z):ce.trigger===Z).map(({trigger:ce,...ve})=>ve),ee=i.computed(()=>$.value.some(Z=>Z.required)),J=i.computed(()=>{var Z;return f.value==="error"&&n.showMessage&&((Z=o==null?void 0:o.showMessage)!=null?Z:!0)}),I=i.computed(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),B=Z=>{d.value=Z},H=Z=>{var z,ce;const{errors:ve,fields:Ae}=Z;(!ve||!Ae)&&console.error(Z),B("error"),p.value=ve?(ce=(z=ve==null?void 0:ve[0])==null?void 0:z.message)!=null?ce:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,p.value)},K=()=>{B("success"),o==null||o.emit("validate",n.prop,!0,"")},ae=async Z=>{const z=_.value;return new ml({[z]:Z}).validate({[z]:L.value},{firstFields:!0}).then(()=>(K(),!0)).catch(ve=>(H(ve),Promise.reject(ve)))},ye=async(Z,z)=>{if(g||!n.prop)return!1;const ce=St(z);if(!V.value)return z==null||z(!1),!1;const ve=W(Z);return ve.length===0?(z==null||z(!0),!0):(B("validating"),ae(ve).then(()=>(z==null||z(!0),!0)).catch(Ae=>{const{fields:qe}=Ae;return z==null||z(!1,qe),ce?!1:Promise.reject(qe)}))},le=()=>{B(""),p.value="",g=!1},re=async()=>{const Z=o==null?void 0:o.model;if(!Z||!n.prop)return;const z=tp(Z,n.prop);g=!0,z.value=P3(m),await i.nextTick(),le(),g=!1},de=Z=>{u.value.includes(Z)||u.value.push(Z)},fe=Z=>{u.value=u.value.filter(z=>z!==Z)};i.watch(()=>n.error,Z=>{p.value=Z||"",B(Z?"error":"")},{immediate:!0}),i.watch(()=>n.validateStatus,Z=>B(Z||""));const Re=i.reactive({...i.toRefs(n),$el:h,size:a,validateState:d,labelId:c,inputIds:u,isGroup:M,hasLabel:E,addInputId:de,removeInputId:fe,resetField:re,clearValidate:le,validate:ye});return i.provide(wo,Re),i.onMounted(()=>{n.prop&&(o==null||o.addField(Re),m=P3(L.value))}),i.onBeforeUnmount(()=>{o==null||o.removeField(Re)}),e({size:a,validateMessage:p,validateState:d,validate:ye,clearValidate:le,resetField:re}),(Z,z)=>{var ce;return i.openBlock(),i.createElementBlock("div",{ref_key:"formItemRef",ref:h,class:i.normalizeClass(i.unref(S)),role:i.unref(M)?"group":void 0,"aria-labelledby":i.unref(M)?i.unref(c):void 0},[i.createVNode(i.unref(XR),{"is-auto-width":i.unref(b).width==="auto","update-all":((ce=i.unref(o))==null?void 0:ce.labelWidth)==="auto"},{default:i.withCtx(()=>[i.unref(E)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(T)?"label":"div"),{key:0,id:i.unref(c),for:i.unref(T),class:i.normalizeClass(i.unref(l).e("label")),style:i.normalizeStyle(i.unref(b))},{default:i.withCtx(()=>[i.renderSlot(Z.$slots,"label",{label:i.unref(I)},()=>[i.createTextVNode(i.toDisplayString(i.unref(I)),1)])]),_:3},8,["id","for","class","style"])):i.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),i.createElementVNode("div",{class:i.normalizeClass(i.unref(l).e("content")),style:i.normalizeStyle(i.unref(y))},[i.renderSlot(Z.$slots,"default"),i.createVNode(i.TransitionGroup,{name:`${i.unref(l).namespace.value}-zoom-in-top`},{default:i.withCtx(()=>[i.unref(J)?i.renderSlot(Z.$slots,"error",{key:0,error:p.value},()=>[i.createElementVNode("div",{class:i.normalizeClass(i.unref(C))},i.toDisplayString(p.value),3)]):i.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,YR)}}});var ry=xe(QR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const _p=Lt(mR,{FormItem:ry}),Dp=mo(ry);let Cr;const ez=`
height:0 !important;
visibility:hidden !important;
${F2()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,tz=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function nz(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),o=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:tz.map(a=>`${a}:${e.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function oy(t,e=1,n){var r;Cr||(Cr=document.createElement("textarea"),document.body.appendChild(Cr));const{paddingSize:o,borderSize:s,boxSizing:a,contextStyle:l}=nz(t);Cr.setAttribute("style",`${l};${ez}`),Cr.value=t.value||t.placeholder||"";let c=Cr.scrollHeight;const u={};a==="border-box"?c=c+s:a==="content-box"&&(c=c-o),Cr.value="";const d=Cr.scrollHeight-o;if(_t(e)){let f=d*e;a==="border-box"&&(f=f+o+s),c=Math.max(f,c),u.minHeight=`${f}px`}if(_t(n)){let f=d*n;a==="border-box"&&(f=f+o+s),c=Math.min(f,c)}return u.height=`${c}px`,(r=Cr.parentNode)==null||r.removeChild(Cr),Cr=void 0,u}const rz=Pe({id:{type:String,default:void 0},size:dl,disabled:Boolean,modelValue:{type:ne([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ne([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:wr},prefixIcon:{type:wr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ne([Object,Array,String]),default:()=>ln({})}}),oz={[en]:t=>vt(t),input:t=>vt(t),change:t=>vt(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},iz=["role"],sz=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],az=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],lz=i.defineComponent({name:"ElInput",inheritAttrs:!1}),cz=i.defineComponent({...lz,props:rz,emits:oz,setup(t,{expose:e,emit:n}){const r=t,o=i.useAttrs(),s=i.useSlots(),a=i.computed(()=>{const R={};return r.containerRole==="combobox"&&(R["aria-haspopup"]=o["aria-haspopup"],R["aria-owns"]=o["aria-owns"],R["aria-expanded"]=o["aria-expanded"]),R}),l=i.computed(()=>[r.type==="textarea"?b.b():g.b(),g.m(h.value),g.is("disabled",m.value),g.is("exceed",de.value),{[g.b("group")]:s.prepend||s.append,[g.bm("group","append")]:s.append,[g.bm("group","prepend")]:s.prepend,[g.m("prefix")]:s.prefix||r.prefixIcon,[g.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[g.bm("suffix","password-clear")]:ae.value&&ye.value},o.class]),c=i.computed(()=>[g.e("wrapper"),g.is("focus",L.value)]),u=wP({excludeKeys:i.computed(()=>Object.keys(a.value))}),{form:d,formItem:f}=Gs(),{inputId:p}=Cp(r,{formItemContext:f}),h=vo(),m=Zo(),g=Ee("input"),b=Ee("textarea"),y=i.shallowRef(),S=i.shallowRef(),k=i.ref(!1),C=i.ref(!1),_=i.ref(!1),E=i.ref(),T=i.shallowRef(r.inputStyle),M=i.computed(()=>y.value||S.value),{wrapperRef:D,isFocused:L,handleFocus:$,handleBlur:V}=tR(M,{afterBlur(){var R;r.validateEvent&&((R=f==null?void 0:f.validate)==null||R.call(f,"blur").catch(G=>void 0))}}),W=i.computed(()=>{var R;return(R=d==null?void 0:d.statusIcon)!=null?R:!1}),ee=i.computed(()=>(f==null?void 0:f.validateState)||""),J=i.computed(()=>ee.value&&nb[ee.value]),I=i.computed(()=>_.value?QI:jO),B=i.computed(()=>[o.style,r.inputStyle]),H=i.computed(()=>[r.inputStyle,T.value,{resize:r.resize}]),K=i.computed(()=>zs(r.modelValue)?"":String(r.modelValue)),ae=i.computed(()=>r.clearable&&!m.value&&!r.readonly&&!!K.value&&(L.value||k.value)),ye=i.computed(()=>r.showPassword&&!m.value&&!r.readonly&&!!K.value&&(!!K.value||L.value)),le=i.computed(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),re=i.computed(()=>K.value.length),de=i.computed(()=>!!le.value&&re.value>Number(u.value.maxlength)),fe=i.computed(()=>!!s.suffix||!!r.suffixIcon||ae.value||r.showPassword||le.value||!!ee.value&&W.value),[Re,Z]=QL(y);Ps(S,R=>{if(ve(),!le.value||r.resize!=="both")return;const G=R[0],{width:me}=G.contentRect;E.value={right:`calc(100% - ${me+15+6}px)`}});const z=()=>{const{type:R,autosize:G}=r;if(!(!lt||R!=="textarea"||!S.value))if(G){const me=Qt(G)?G.minRows:void 0,ze=Qt(G)?G.maxRows:void 0,at=oy(S.value,me,ze);T.value={overflowY:"hidden",...at},i.nextTick(()=>{S.value.offsetHeight,T.value=at})}else T.value={minHeight:oy(S.value).minHeight}},ve=(R=>{let G=!1;return()=>{var me;if(G||!r.autosize)return;((me=S.value)==null?void 0:me.offsetParent)===null||(R(),G=!0)}})(z),Ae=()=>{const R=M.value,G=r.formatter?r.formatter(K.value):K.value;!R||R.value===G||(R.value=G)},qe=async R=>{Re();let{value:G}=R.target;if(r.formatter&&(G=r.parser?r.parser(G):G),!C.value){if(G===K.value){Ae();return}n(en,G),n("input",G),await i.nextTick(),Ae(),Z()}},rt=R=>{n("change",R.target.value)},We=R=>{n("compositionstart",R),C.value=!0},ot=R=>{var G;n("compositionupdate",R);const me=(G=R.target)==null?void 0:G.value,ze=me[me.length-1]||"";C.value=!ib(ze)},ht=R=>{n("compositionend",R),C.value&&(C.value=!1,qe(R))},pe=()=>{_.value=!_.value,kt()},kt=async()=>{var R;await i.nextTick(),(R=M.value)==null||R.focus()},Ve=()=>{var R;return(R=M.value)==null?void 0:R.blur()},Ne=R=>{k.value=!1,n("mouseleave",R)},Xe=R=>{k.value=!0,n("mouseenter",R)},st=R=>{n("keydown",R)},Ft=()=>{var R;(R=M.value)==null||R.select()},$t=()=>{n(en,""),n("change",""),n("clear"),n("input","")};return i.watch(()=>r.modelValue,()=>{var R;i.nextTick(()=>z()),r.validateEvent&&((R=f==null?void 0:f.validate)==null||R.call(f,"change").catch(G=>void 0))}),i.watch(K,()=>Ae()),i.watch(()=>r.type,async()=>{await i.nextTick(),Ae(),z()}),i.onMounted(()=>{!r.formatter&&r.parser,Ae(),i.nextTick(z)}),e({input:y,textarea:S,ref:M,textareaStyle:H,autosize:i.toRef(r,"autosize"),focus:kt,blur:Ve,select:Ft,clear:$t,resizeTextarea:z}),(R,G)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(i.unref(a),{class:i.unref(l),style:i.unref(B),role:R.containerRole,onMouseenter:Xe,onMouseleave:Ne}),[i.createCommentVNode(" input "),R.type!=="textarea"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createCommentVNode(" prepend slot "),R.$slots.prepend?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(g).be("group","prepend"))},[i.renderSlot(R.$slots,"prepend")],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{ref_key:"wrapperRef",ref:D,class:i.normalizeClass(i.unref(c))},[i.createCommentVNode(" prefix slot "),R.$slots.prefix||R.prefixIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(g).e("prefix"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(g).e("prefix-inner"))},[i.renderSlot(R.$slots,"prefix"),R.prefixIcon?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass(i.unref(g).e("icon"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(R.prefixIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("input",i.mergeProps({id:i.unref(p),ref_key:"input",ref:y,class:i.unref(g).e("inner")},i.unref(u),{type:R.showPassword?_.value?"text":"password":R.type,disabled:i.unref(m),formatter:R.formatter,parser:R.parser,readonly:R.readonly,autocomplete:R.autocomplete,tabindex:R.tabindex,"aria-label":R.label,placeholder:R.placeholder,style:R.inputStyle,form:r.form,onCompositionstart:We,onCompositionupdate:ot,onCompositionend:ht,onInput:qe,onFocus:G[0]||(G[0]=(...me)=>i.unref($)&&i.unref($)(...me)),onBlur:G[1]||(G[1]=(...me)=>i.unref(V)&&i.unref(V)(...me)),onChange:rt,onKeydown:st}),null,16,sz),i.createCommentVNode(" suffix slot "),i.unref(fe)?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(i.unref(g).e("suffix"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(g).e("suffix-inner"))},[!i.unref(ae)||!i.unref(ye)||!i.unref(le)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(R.$slots,"suffix"),R.suffixIcon?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass(i.unref(g).e("icon"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(R.suffixIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],64)):i.createCommentVNode("v-if",!0),i.unref(ae)?(i.openBlock(),i.createBlock(i.unref(yt),{key:1,class:i.normalizeClass([i.unref(g).e("icon"),i.unref(g).e("clear")]),onMousedown:i.withModifiers(i.unref(gt),["prevent"]),onClick:$t},{default:i.withCtx(()=>[i.createVNode(i.unref(Qc))]),_:1},8,["class","onMousedown"])):i.createCommentVNode("v-if",!0),i.unref(ye)?(i.openBlock(),i.createBlock(i.unref(yt),{key:2,class:i.normalizeClass([i.unref(g).e("icon"),i.unref(g).e("password")]),onClick:pe},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(I))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.unref(le)?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(i.unref(g).e("count"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(g).e("count-inner"))},i.toDisplayString(i.unref(re))+" / "+i.toDisplayString(i.unref(u).maxlength),3)],2)):i.createCommentVNode("v-if",!0),i.unref(ee)&&i.unref(J)&&i.unref(W)?(i.openBlock(),i.createBlock(i.unref(yt),{key:4,class:i.normalizeClass([i.unref(g).e("icon"),i.unref(g).e("validateIcon"),i.unref(g).is("loading",i.unref(ee)==="validating")])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(J))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0)],2),i.createCommentVNode(" append slot "),R.$slots.append?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(g).be("group","append"))},[i.renderSlot(R.$slots,"append")],2)):i.createCommentVNode("v-if",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" textarea "),i.createElementVNode("textarea",i.mergeProps({id:i.unref(p),ref_key:"textarea",ref:S,class:i.unref(b).e("inner")},i.unref(u),{tabindex:R.tabindex,disabled:i.unref(m),readonly:R.readonly,autocomplete:R.autocomplete,style:i.unref(H),"aria-label":R.label,placeholder:R.placeholder,form:r.form,onCompositionstart:We,onCompositionupdate:ot,onCompositionend:ht,onInput:qe,onFocus:G[2]||(G[2]=(...me)=>i.unref($)&&i.unref($)(...me)),onBlur:G[3]||(G[3]=(...me)=>i.unref(V)&&i.unref(V)(...me)),onChange:rt,onKeydown:st}),null,16,az),i.unref(le)?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(E.value),class:i.normalizeClass(i.unref(g).e("count"))},i.toDisplayString(i.unref(re))+" / "+i.toDisplayString(i.unref(u).maxlength),7)):i.createCommentVNode("v-if",!0)],64))],16,iz)),[[i.vShow,R.type!=="hidden"]])}});var uz=xe(cz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Qo=Lt(uz),Xs=4,iy={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},dz=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),sy=Symbol("scrollbarContextKey"),fz=Pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),pz="Thumb";var ay=xe(i.defineComponent({__name:"thumb",props:fz,setup(t){const e=t,n=i.inject(sy),r=Ee("scrollbar");n||Fs(pz,"can not inject scrollbar context");const o=i.ref(),s=i.ref(),a=i.ref({}),l=i.ref(!1);let c=!1,u=!1,d=lt?document.onselectstart:null;const f=i.computed(()=>iy[e.vertical?"vertical":"horizontal"]),p=i.computed(()=>dz({size:e.size,move:e.move,bar:f.value})),h=i.computed(()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/s.value[f.value.offset]),m=E=>{var T;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(T=window.getSelection())==null||T.removeAllRanges(),b(E);const M=E.currentTarget;!M||(a.value[f.value.axis]=M[f.value.offset]-(E[f.value.client]-M.getBoundingClientRect()[f.value.direction]))},g=E=>{if(!s.value||!o.value||!n.wrapElement)return;const T=Math.abs(E.target.getBoundingClientRect()[f.value.direction]-E[f.value.client]),M=s.value[f.value.offset]/2,D=(T-M)*100*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=D*n.wrapElement[f.value.scrollSize]/100},b=E=>{E.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),d=document.onselectstart,document.onselectstart=()=>!1},y=E=>{if(!o.value||!s.value||c===!1)return;const T=a.value[f.value.axis];if(!T)return;const M=(o.value.getBoundingClientRect()[f.value.direction]-E[f.value.client])*-1,D=s.value[f.value.offset]-T,L=(M-D)*100*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=L*n.wrapElement[f.value.scrollSize]/100},S=()=>{c=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),_(),u&&(l.value=!1)},k=()=>{u=!1,l.value=!!e.size},C=()=>{u=!0,l.value=c};i.onBeforeUnmount(()=>{_(),document.removeEventListener("mouseup",S)});const _=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return $r(i.toRef(n,"scrollbarElement"),"mousemove",k),$r(i.toRef(n,"scrollbarElement"),"mouseleave",C),(E,T)=>(i.openBlock(),i.createBlock(i.Transition,{name:i.unref(r).b("fade"),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref_key:"instance",ref:o,class:i.normalizeClass([i.unref(r).e("bar"),i.unref(r).is(i.unref(f).key)]),onMousedown:g},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(i.unref(r).e("thumb")),style:i.normalizeStyle(i.unref(p)),onMousedown:m},null,38)],34),[[i.vShow,E.always||l.value]])]),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const hz=Pe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var mz=xe(i.defineComponent({__name:"bar",props:hz,setup(t,{expose:e}){const n=t,r=i.ref(0),o=i.ref(0);return e({handleScroll:a=>{if(a){const l=a.offsetHeight-Xs,c=a.offsetWidth-Xs;o.value=a.scrollTop*100/l*n.ratioY,r.value=a.scrollLeft*100/c*n.ratioX}}}),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(ay,{move:r.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),i.createVNode(ay,{move:o.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const gz=Pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ne([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),bz={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(_t)},yz="ElScrollbar",wz=i.defineComponent({name:yz}),vz=i.defineComponent({...wz,props:gz,emits:bz,setup(t,{expose:e,emit:n}){const r=t,o=Ee("scrollbar");let s,a;const l=i.ref(),c=i.ref(),u=i.ref(),d=i.ref("0"),f=i.ref("0"),p=i.ref(),h=i.ref(1),m=i.ref(1),g=i.computed(()=>{const T={};return r.height&&(T.height=jr(r.height)),r.maxHeight&&(T.maxHeight=jr(r.maxHeight)),[r.wrapStyle,T]}),b=i.computed(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),y=i.computed(()=>[o.e("view"),r.viewClass]),S=()=>{var T;c.value&&((T=p.value)==null||T.handleScroll(c.value),n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function k(T,M){Qt(T)?c.value.scrollTo(T):_t(T)&&_t(M)&&c.value.scrollTo(T,M)}const C=T=>{!_t(T)||(c.value.scrollTop=T)},_=T=>{!_t(T)||(c.value.scrollLeft=T)},E=()=>{if(!c.value)return;const T=c.value.offsetHeight-Xs,M=c.value.offsetWidth-Xs,D=T**2/c.value.scrollHeight,L=M**2/c.value.scrollWidth,$=Math.max(D,r.minSize),V=Math.max(L,r.minSize);h.value=D/(T-D)/($/(T-$)),m.value=L/(M-L)/(V/(M-V)),f.value=$+Xs<T?`${$}px`:"",d.value=V+Xs<M?`${V}px`:""};return i.watch(()=>r.noresize,T=>{T?(s==null||s(),a==null||a()):({stop:s}=Ps(u,E),a=$r("resize",E))},{immediate:!0}),i.watch(()=>[r.maxHeight,r.height],()=>{r.native||i.nextTick(()=>{var T;E(),c.value&&((T=p.value)==null||T.handleScroll(c.value))})}),i.provide(sy,i.reactive({scrollbarElement:l,wrapElement:c})),i.onMounted(()=>{r.native||i.nextTick(()=>{E()})}),i.onUpdated(()=>E()),e({wrapRef:c,update:E,scrollTo:k,setScrollTop:C,setScrollLeft:_,handleScroll:S}),(T,M)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"scrollbarRef",ref:l,class:i.normalizeClass(i.unref(o).b())},[i.createElementVNode("div",{ref_key:"wrapRef",ref:c,class:i.normalizeClass(i.unref(b)),style:i.normalizeStyle(i.unref(g)),onScroll:S},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(T.tag),{ref_key:"resizeRef",ref:u,class:i.normalizeClass(i.unref(y)),style:i.normalizeStyle(T.viewStyle)},{default:i.withCtx(()=>[i.renderSlot(T.$slots,"default")]),_:3},8,["class","style"]))],38),T.native?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(mz,{key:0,ref_key:"barRef",ref:p,height:f.value,width:d.value,always:T.always,"ratio-x":m.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Cz=xe(vz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ly=Lt(Cz),Mp=Symbol("popper"),cy=Symbol("popperContent"),uy=Pe({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),kz=i.defineComponent({name:"ElPopper",inheritAttrs:!1}),Sz=i.defineComponent({...kz,props:uy,setup(t,{expose:e}){const n=t,r=i.ref(),o=i.ref(),s=i.ref(),a=i.ref(),l=i.computed(()=>n.role),c={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:a,role:l};return e(c),i.provide(Mp,c),(u,d)=>i.renderSlot(u.$slots,"default")}});var Ez=xe(Sz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const dy=Pe({arrowOffset:{type:Number,default:5}}),xz=i.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Tz=i.defineComponent({...xz,props:dy,setup(t,{expose:e}){const n=t,r=Ee("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:a}=i.inject(cy,void 0);return i.watch(()=>n.arrowOffset,l=>{o.value=l}),i.onBeforeUnmount(()=>{s.value=void 0}),e({arrowRef:s}),(l,c)=>(i.openBlock(),i.createElementBlock("span",{ref_key:"arrowRef",ref:s,class:i.normalizeClass(i.unref(r).e("arrow")),style:i.normalizeStyle(i.unref(a)),"data-popper-arrow":""},null,6))}});var Az=xe(Tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const _z="ElOnlyChild",fy=i.defineComponent({name:_z,setup(t,{slots:e,attrs:n}){var r;const o=i.inject(jb),s=ZL((r=o==null?void 0:o.setForwardRef)!=null?r:gt);return()=>{var a;const l=(a=e.default)==null?void 0:a.call(e,n);if(!l||l.length>1)return null;const c=py(l);return c?i.withDirectives(i.cloneVNode(c,n),[[s]]):null}}});function py(t){if(!t)return null;const e=t;for(const n of e){if(Qt(n))switch(n.type){case i.Comment:continue;case i.Text:case"svg":return hy(n);case i.Fragment:return py(n.children);default:return n}return hy(n)}return null}function hy(t){const e=Ee("only-child");return i.createVNode("span",{class:e.e("content")},[t])}const my=Pe({virtualRef:{type:ne(Object)},virtualTriggering:Boolean,onMouseenter:{type:ne(Function)},onMouseleave:{type:ne(Function)},onClick:{type:ne(Function)},onKeydown:{type:ne(Function)},onFocus:{type:ne(Function)},onBlur:{type:ne(Function)},onContextmenu:{type:ne(Function)},id:String,open:Boolean}),Dz=i.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),Mz=i.defineComponent({...Dz,props:my,setup(t,{expose:e}){const n=t,{role:r,triggerRef:o}=i.inject(Mp,void 0);YL(o);const s=i.computed(()=>l.value?n.id:void 0),a=i.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=i.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),c=i.computed(()=>l.value?`${n.open}`:void 0);let u;return i.onMounted(()=>{i.watch(()=>n.virtualRef,d=>{d&&(o.value=qo(d))},{immediate:!0}),i.watch(o,(d,f)=>{u==null||u(),u=void 0,Go(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var h;const m=n[p];m&&(d.addEventListener(p.slice(2).toLowerCase(),m),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,p.slice(2).toLowerCase(),m))}),u=i.watch([s,a,l,c],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{zs(p[m])?d.removeAttribute(h):d.setAttribute(h,p[m])})},{immediate:!0})),Go(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),i.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:o}),(d,f)=>d.virtualTriggering?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.unref(fy),i.mergeProps({key:0},d.$attrs,{"aria-controls":i.unref(s),"aria-describedby":i.unref(a),"aria-expanded":i.unref(c),"aria-haspopup":i.unref(l)}),{default:i.withCtx(()=>[i.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Nz=xe(Mz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Np="focus-trap.focus-after-trapped",Bp="focus-trap.focus-after-released",Bz="focus-trap.focusout-prevented",gy={cancelable:!0,bubbles:!1},Oz={cancelable:!0,bubbles:!1},by="focusAfterTrapped",yy="focusAfterReleased",Op=Symbol("elFocusTrap"),Ip=i.ref(),mu=i.ref(0),Pp=i.ref(0);let gu=0;const wy=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},vy=(t,e)=>{for(const n of t)if(!Iz(n,e))return n},Iz=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},Pz=t=>{const e=wy(t),n=vy(e,t),r=vy(e.reverse(),t);return[n,r]},Lz=t=>t instanceof HTMLInputElement&&"select"in t,ei=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Pp.value=window.performance.now(),t!==n&&Lz(t)&&e&&t.select()}};function Cy(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const Rz=()=>{let t=[];return{push:r=>{const o=t[0];o&&r!==o&&o.pause(),t=Cy(t,r),t.unshift(r)},remove:r=>{var o,s;t=Cy(t,r),(s=(o=t[0])==null?void 0:o.resume)==null||s.call(o)}}},zz=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(ei(r,e),document.activeElement!==n)return},ky=Rz(),Fz=()=>mu.value>Pp.value,bu=()=>{Ip.value="pointer",mu.value=window.performance.now()},Sy=()=>{Ip.value="keyboard",mu.value=window.performance.now()},$z=()=>(i.onMounted(()=>{gu===0&&(document.addEventListener("mousedown",bu),document.addEventListener("touchstart",bu),document.addEventListener("keydown",Sy)),gu++}),i.onBeforeUnmount(()=>{gu--,gu<=0&&(document.removeEventListener("mousedown",bu),document.removeEventListener("touchstart",bu),document.removeEventListener("keydown",Sy))}),{focusReason:Ip,lastUserFocusTimestamp:mu,lastAutomatedFocusTimestamp:Pp}),yu=t=>new CustomEvent(Bz,{...Oz,detail:t}),Vz=i.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[by,yy,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=i.ref();let r,o;const{focusReason:s}=$z();WL(m=>{t.trapped&&!a.paused&&e("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=m=>{if(!t.loop&&!t.trapped||a.paused)return;const{key:g,altKey:b,ctrlKey:y,metaKey:S,currentTarget:k,shiftKey:C}=m,{loop:_}=t,E=g===Ge.tab&&!b&&!y&&!S,T=document.activeElement;if(E&&T){const M=k,[D,L]=Pz(M);if(D&&L){if(!C&&T===L){const V=yu({focusReason:s.value});e("focusout-prevented",V),V.defaultPrevented||(m.preventDefault(),_&&ei(D,!0))}else if(C&&[D,M].includes(T)){const V=yu({focusReason:s.value});e("focusout-prevented",V),V.defaultPrevented||(m.preventDefault(),_&&ei(L,!0))}}else if(T===M){const V=yu({focusReason:s.value});e("focusout-prevented",V),V.defaultPrevented||m.preventDefault()}}};i.provide(Op,{focusTrapRef:n,onKeydown:l}),i.watch(()=>t.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),i.watch([n],([m],[g])=>{m&&(m.addEventListener("keydown",l),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",d),g.removeEventListener("focusout",f))});const c=m=>{e(by,m)},u=m=>e(yy,m),d=m=>{const g=i.unref(n);if(!g)return;const b=m.target,y=m.relatedTarget,S=b&&g.contains(b);t.trapped||y&&g.contains(y)||(r=y),S&&e("focusin",m),!a.paused&&t.trapped&&(S?o=b:ei(o,!0))},f=m=>{const g=i.unref(n);if(!(a.paused||!g))if(t.trapped){const b=m.relatedTarget;!zs(b)&&!g.contains(b)&&setTimeout(()=>{if(!a.paused&&t.trapped){const y=yu({focusReason:s.value});e("focusout-prevented",y),y.defaultPrevented||ei(o,!0)}},0)}else{const b=m.target;b&&g.contains(b)||e("focusout",m)}};async function p(){await i.nextTick();const m=i.unref(n);if(m){ky.push(a);const g=m.contains(document.activeElement)?r:document.activeElement;if(r=g,!m.contains(g)){const y=new Event(Np,gy);m.addEventListener(Np,c),m.dispatchEvent(y),y.defaultPrevented||i.nextTick(()=>{let S=t.focusStartEl;vt(S)||(ei(S),document.activeElement!==S&&(S="first")),S==="first"&&zz(wy(m),!0),(document.activeElement===g||S==="container")&&ei(m)})}}}function h(){const m=i.unref(n);if(m){m.removeEventListener(Np,c);const g=new CustomEvent(Bp,{...gy,detail:{focusReason:s.value}});m.addEventListener(Bp,u),m.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!Fz()||m.contains(document.activeElement))&&ei(r!=null?r:document.body),m.removeEventListener(Bp,u),ky.remove(a)}}return i.onMounted(()=>{t.trapped&&p(),i.watch(()=>t.trapped,m=>{m?p():h()})}),i.onBeforeUnmount(()=>{t.trapped&&h()}),{onKeydown:l}}});function Hz(t,e,n,r,o,s){return i.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var Lp=xe(Vz,[["render",Hz],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const jz=["fixed","absolute"],Uz=Pe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ne(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:iu,default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},strategy:{type:String,values:jz,default:"absolute"}}),Ey=Pe({...Uz,id:String,style:{type:ne([String,Array,Object])},className:{type:ne([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ne([String,Array,Object])},popperStyle:{type:ne([String,Array,Object])},referenceEl:{type:ne(Object)},triggerTargetEl:{type:ne(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),qz={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Wz=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:o}=t,s={placement:n,strategy:r,...o,modifiers:[...Gz(t),...e]};return Jz(s,o==null?void 0:o.modifiers),s},Kz=t=>{if(!!lt)return qo(t)};function Gz(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e!=null?e:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Jz(t,e){e&&(t.modifiers=[...t.modifiers,...e!=null?e:[]])}const Xz=0,Yz=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:o}=i.inject(Mp,void 0),s=i.ref(),a=i.ref(),l=i.computed(()=>({name:"eventListeners",enabled:!!t.visible})),c=i.computed(()=>{var y;const S=i.unref(s),k=(y=i.unref(a))!=null?y:Xz;return{name:"arrow",enabled:!dB(S),options:{element:S,padding:k}}}),u=i.computed(()=>({onFirstUpdate:()=>{m()},...Wz(t,[i.unref(c),i.unref(l)])})),d=i.computed(()=>Kz(t.referenceEl)||i.unref(r)),{attributes:f,state:p,styles:h,update:m,forceUpdate:g,instanceRef:b}=HL(d,n,u);return i.watch(b,y=>e.value=y),i.onMounted(()=>{i.watch(()=>{var y;return(y=i.unref(d))==null?void 0:y.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:s,contentRef:n,instanceRef:b,state:p,styles:h,role:o,forceUpdate:g,update:m}},Zz=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:o}=yp(),s=Ee("popper"),a=i.computed(()=>i.unref(e).popper),l=i.ref(t.zIndex||o()),c=i.computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),u=i.computed(()=>[{zIndex:i.unref(l)},i.unref(n).popper,t.popperStyle||{}]),d=i.computed(()=>r.value==="dialog"?"false":void 0),f=i.computed(()=>i.unref(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=t.zIndex||o()}}},Qz=(t,e)=>{const n=i.ref(!1),r=i.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},eF=i.defineComponent({name:"ElPopperContent"}),tF=i.defineComponent({...eF,props:Ey,emits:qz,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:o,trapped:s,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=Qz(r,n),{attributes:f,arrowRef:p,contentRef:h,styles:m,instanceRef:g,role:b,update:y}=Yz(r),{ariaModal:S,arrowStyle:k,contentAttrs:C,contentClass:_,contentStyle:E,updateZIndex:T}=Zz(r,{styles:m,attributes:f,role:b}),M=i.inject(wo,void 0),D=i.ref();i.provide(cy,{arrowStyle:k,arrowRef:p,arrowOffset:D}),M&&(M.addInputId||M.removeInputId)&&i.provide(wo,{...M,addInputId:gt,removeInputId:gt});let L;const $=(W=!0)=>{y(),W&&T()},V=()=>{$(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return i.onMounted(()=>{i.watch(()=>r.triggerTargetEl,(W,ee)=>{L==null||L(),L=void 0;const J=i.unref(W||h.value),I=i.unref(ee||h.value);Go(J)&&(L=i.watch([b,()=>r.ariaLabel,S,()=>r.id],B=>{["role","aria-label","aria-modal","id"].forEach((H,K)=>{zs(B[K])?J.removeAttribute(H):J.setAttribute(H,B[K])})},{immediate:!0})),I!==J&&Go(I)&&["role","aria-label","aria-modal","id"].forEach(B=>{I.removeAttribute(B)})},{immediate:!0}),i.watch(()=>r.visible,V,{immediate:!0})}),i.onBeforeUnmount(()=>{L==null||L(),L=void 0}),e({popperContentRef:h,popperInstanceRef:g,updatePopper:$,contentStyle:E}),(W,ee)=>(i.openBlock(),i.createElementBlock("div",i.mergeProps({ref_key:"contentRef",ref:h},i.unref(C),{style:i.unref(E),class:i.unref(_),tabindex:"-1",onMouseenter:ee[0]||(ee[0]=J=>W.$emit("mouseenter",J)),onMouseleave:ee[1]||(ee[1]=J=>W.$emit("mouseleave",J))}),[i.createVNode(i.unref(Lp),{trapped:i.unref(s),"trap-on-focus-in":!0,"focus-trap-el":i.unref(h),"focus-start-el":i.unref(o),onFocusAfterTrapped:i.unref(l),onFocusAfterReleased:i.unref(a),onFocusin:i.unref(c),onFocusoutPrevented:i.unref(u),onReleaseRequested:i.unref(d)},{default:i.withCtx(()=>[i.renderSlot(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var nF=xe(tF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const rF=Lt(Ez),Rp=Symbol("elTooltip"),Fn=Pe({...JL,...Ey,appendTo:{type:ne([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ne(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),gl=Pe({...my,disabled:Boolean,trigger:{type:ne([String,Array]),default:"hover"},triggerKeys:{type:ne(Array),default:()=>[Ge.enter,Ge.space]}}),{useModelToggleProps:oF,useModelToggleEmits:iF,useModelToggle:sF}=FP("visible"),aF=Pe({...uy,...oF,...Fn,...gl,...dy,showArrow:{type:Boolean,default:!0}}),lF=[...iF,"before-show","before-hide","show","hide","open","close"],cF=(t,e)=>Vr(t)?t.includes(e):t===e,Ys=(t,e,n)=>r=>{cF(i.unref(t),e)&&n(r)},uF=i.defineComponent({name:"ElTooltipTrigger"}),dF=i.defineComponent({...uF,props:gl,setup(t,{expose:e}){const n=t,r=Ee("tooltip"),{controlled:o,id:s,open:a,onOpen:l,onClose:c,onToggle:u}=i.inject(Rp,void 0),d=i.ref(null),f=()=>{if(i.unref(o)||n.disabled)return!0},p=i.toRef(n,"trigger"),h=Pt(f,Ys(p,"hover",l)),m=Pt(f,Ys(p,"hover",c)),g=Pt(f,Ys(p,"click",C=>{C.button===0&&u(C)})),b=Pt(f,Ys(p,"focus",l)),y=Pt(f,Ys(p,"focus",c)),S=Pt(f,Ys(p,"contextmenu",C=>{C.preventDefault(),u(C)})),k=Pt(f,C=>{const{code:_}=C;n.triggerKeys.includes(_)&&(C.preventDefault(),u(C))});return e({triggerRef:d}),(C,_)=>(i.openBlock(),i.createBlock(i.unref(Nz),{id:i.unref(s),"virtual-ref":C.virtualRef,open:i.unref(a),"virtual-triggering":C.virtualTriggering,class:i.normalizeClass(i.unref(r).e("trigger")),onBlur:i.unref(y),onClick:i.unref(g),onContextmenu:i.unref(S),onFocus:i.unref(b),onMouseenter:i.unref(h),onMouseleave:i.unref(m),onKeydown:i.unref(k)},{default:i.withCtx(()=>[i.renderSlot(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var fF=xe(dF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const pF=i.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),hF=i.defineComponent({...pF,props:Fn,setup(t,{expose:e}){const n=t,{selector:r}=Hb(),o=Ee("tooltip"),s=i.ref(null),a=i.ref(!1),{controlled:l,id:c,open:u,trigger:d,onClose:f,onOpen:p,onShow:h,onHide:m,onBeforeShow:g,onBeforeHide:b}=i.inject(Rp,void 0),y=i.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),S=i.computed(()=>n.persistent);i.onBeforeUnmount(()=>{a.value=!0});const k=i.computed(()=>i.unref(S)?!0:i.unref(u)),C=i.computed(()=>n.disabled?!1:i.unref(u)),_=i.computed(()=>n.appendTo||r.value),E=i.computed(()=>{var B;return(B=n.style)!=null?B:{}}),T=i.computed(()=>!i.unref(u)),M=()=>{m()},D=()=>{if(i.unref(l))return!0},L=Pt(D,()=>{n.enterable&&i.unref(d)==="hover"&&p()}),$=Pt(D,()=>{i.unref(d)==="hover"&&f()}),V=()=>{var B,H;(H=(B=s.value)==null?void 0:B.updatePopper)==null||H.call(B),g==null||g()},W=()=>{b==null||b()},ee=()=>{h(),I=MT(i.computed(()=>{var B;return(B=s.value)==null?void 0:B.popperContentRef}),()=>{if(i.unref(l))return;i.unref(d)!=="hover"&&f()})},J=()=>{n.virtualTriggering||f()};let I;return i.watch(()=>i.unref(u),B=>{B||I==null||I()},{flush:"post"}),i.watch(()=>n.content,()=>{var B,H;(H=(B=s.value)==null?void 0:B.updatePopper)==null||H.call(B)}),e({contentRef:s}),(B,H)=>(i.openBlock(),i.createBlock(i.Teleport,{disabled:!B.teleported,to:i.unref(_)},[i.createVNode(i.Transition,{name:i.unref(y),onAfterLeave:M,onBeforeEnter:V,onAfterEnter:ee,onBeforeLeave:W},{default:i.withCtx(()=>[i.unref(k)?i.withDirectives((i.openBlock(),i.createBlock(i.unref(nF),i.mergeProps({key:0,id:i.unref(c),ref_key:"contentRef",ref:s},B.$attrs,{"aria-label":B.ariaLabel,"aria-hidden":i.unref(T),"boundaries-padding":B.boundariesPadding,"fallback-placements":B.fallbackPlacements,"gpu-acceleration":B.gpuAcceleration,offset:B.offset,placement:B.placement,"popper-options":B.popperOptions,strategy:B.strategy,effect:B.effect,enterable:B.enterable,pure:B.pure,"popper-class":B.popperClass,"popper-style":[B.popperStyle,i.unref(E)],"reference-el":B.referenceEl,"trigger-target-el":B.triggerTargetEl,visible:i.unref(C),"z-index":B.zIndex,onMouseenter:i.unref(L),onMouseleave:i.unref($),onBlur:J,onClose:i.unref(f)}),{default:i.withCtx(()=>[a.value?i.createCommentVNode("v-if",!0):i.renderSlot(B.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[i.vShow,i.unref(C)]]):i.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var mF=xe(hF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const gF=["innerHTML"],bF={key:1},yF=i.defineComponent({name:"ElTooltip"}),wF=i.defineComponent({...yF,props:aF,emits:lF,setup(t,{expose:e,emit:n}){const r=t;GL();const o=yo(),s=i.ref(),a=i.ref(),l=()=>{var y;const S=i.unref(s);S&&((y=S.popperInstanceRef)==null||y.update())},c=i.ref(!1),u=i.ref(),{show:d,hide:f,hasUpdateHandler:p}=sF({indicator:c,toggleReason:u}),{onOpen:h,onClose:m}=XL({showAfter:i.toRef(r,"showAfter"),hideAfter:i.toRef(r,"hideAfter"),autoClose:i.toRef(r,"autoClose"),open:d,close:f}),g=i.computed(()=>ho(r.visible)&&!p.value);i.provide(Rp,{controlled:g,id:o,open:i.readonly(c),trigger:i.toRef(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{m(y)},onToggle:y=>{i.unref(c)?m(y):h(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),i.watch(()=>r.disabled,y=>{y&&c.value&&(c.value=!1)});const b=y=>{var S,k;const C=(k=(S=a.value)==null?void 0:S.contentRef)==null?void 0:k.popperContentRef,_=(y==null?void 0:y.relatedTarget)||document.activeElement;return C&&C.contains(_)};return i.onDeactivated(()=>c.value&&f()),e({popperRef:s,contentRef:a,isFocusInsideContent:b,updatePopper:l,onOpen:h,onClose:m,hide:f}),(y,S)=>(i.openBlock(),i.createBlock(i.unref(rF),{ref_key:"popperRef",ref:s,role:y.role},{default:i.withCtx(()=>[i.createVNode(fF,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:i.withCtx(()=>[y.$slots.default?i.renderSlot(y.$slots,"default",{key:0}):i.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),i.createVNode(mF,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:y.content},null,8,gF)):(i.openBlock(),i.createElementBlock("span",bF,i.toDisplayString(y.content),1))]),y.showArrow?(i.openBlock(),i.createBlock(i.unref(Az),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):i.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var vF=xe(wF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const wu=Lt(vF),CF=Pe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),kF=["textContent"],SF=i.defineComponent({name:"ElBadge"}),EF=i.defineComponent({...SF,props:CF,setup(t,{expose:e}){const n=t,r=Ee("badge"),o=i.computed(()=>n.isDot?"":_t(n.value)&&_t(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return e({content:o}),(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(r).b())},[i.renderSlot(s.$slots,"default"),i.createVNode(i.Transition,{name:`${i.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("sup",{class:i.normalizeClass([i.unref(r).e("content"),i.unref(r).em("content",s.type),i.unref(r).is("fixed",!!s.$slots.default),i.unref(r).is("dot",s.isDot)]),textContent:i.toDisplayString(i.unref(o))},null,10,kF),[[i.vShow,!s.hidden&&(i.unref(o)||s.isDot)]])]),_:1},8,["name"])],2))}});var xF=xe(EF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const TF=Lt(xF),xy=Symbol("buttonGroupContextKey"),AF=(t,e)=>{nu({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},i.computed(()=>t.type==="text"));const n=i.inject(xy,void 0),r=du("button"),{form:o}=Gs(),s=vo(i.computed(()=>n==null?void 0:n.size)),a=Zo(),l=i.ref(),c=i.useSlots(),u=i.computed(()=>t.type||(n==null?void 0:n.type)||""),d=i.computed(()=>{var m,g,b;return(b=(g=t.autoInsertSpace)!=null?g:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?b:!1}),f=i.computed(()=>t.tag==="button"?{ariaDisabled:a.value||t.loading,disabled:a.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),p=i.computed(()=>{var m;const g=(m=c.default)==null?void 0:m.call(c);if(d.value&&(g==null?void 0:g.length)===1){const b=g[0];if((b==null?void 0:b.type)===i.Text){const y=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:a,_size:s,_type:u,_ref:l,_props:f,shouldAddSpace:p,handleClick:m=>{t.nativeType==="reset"&&(o==null||o.resetFields()),e("click",m)}}},zp=Pe({size:dl,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:wr},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:wr,default:()=>rp},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ne([String,Object]),default:"button"}}),_F={click:t=>t instanceof MouseEvent};function tn(t,e){DF(t)&&(t="100%");var n=MF(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function vu(t){return Math.min(1,Math.max(0,t))}function DF(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function MF(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Ty(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Cu(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Ji(t){return t.length===1?"0"+t:String(t)}function NF(t,e,n){return{r:tn(t,255)*255,g:tn(e,255)*255,b:tn(n,255)*255}}function Ay(t,e,n){t=tn(t,255),e=tn(e,255),n=tn(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),s=0,a=0,l=(r+o)/2;if(r===o)a=0,s=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case t:s=(e-n)/c+(e<n?6:0);break;case e:s=(n-t)/c+2;break;case n:s=(t-e)/c+4;break}s/=6}return{h:s,s:a,l}}function Fp(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function BF(t,e,n){var r,o,s;if(t=tn(t,360),e=tn(e,100),n=tn(n,100),e===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Fp(l,a,t+1/3),o=Fp(l,a,t),s=Fp(l,a,t-1/3)}return{r:r*255,g:o*255,b:s*255}}function _y(t,e,n){t=tn(t,255),e=tn(e,255),n=tn(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),s=0,a=r,l=r-o,c=r===0?0:l/r;if(r===o)s=0;else{switch(r){case t:s=(e-n)/l+(e<n?6:0);break;case e:s=(n-t)/l+2;break;case n:s=(t-e)/l+4;break}s/=6}return{h:s,s:c,v:a}}function OF(t,e,n){t=tn(t,360)*6,e=tn(e,100),n=tn(n,100);var r=Math.floor(t),o=t-r,s=n*(1-e),a=n*(1-o*e),l=n*(1-(1-o)*e),c=r%6,u=[n,a,s,s,l,n][c],d=[l,n,n,a,s,s][c],f=[s,s,l,n,n,a][c];return{r:u*255,g:d*255,b:f*255}}function Dy(t,e,n,r){var o=[Ji(Math.round(t).toString(16)),Ji(Math.round(e).toString(16)),Ji(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function IF(t,e,n,r,o){var s=[Ji(Math.round(t).toString(16)),Ji(Math.round(e).toString(16)),Ji(Math.round(n).toString(16)),Ji(PF(r))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function PF(t){return Math.round(parseFloat(t)*255).toString(16)}function My(t){return $n(t)/255}function $n(t){return parseInt(t,16)}function LF(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var $p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function RF(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,l=!1;return typeof t=="string"&&(t=$F(t)),typeof t=="object"&&(Co(t.r)&&Co(t.g)&&Co(t.b)?(e=NF(t.r,t.g,t.b),a=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Co(t.h)&&Co(t.s)&&Co(t.v)?(r=Cu(t.s),o=Cu(t.v),e=OF(t.h,r,o),a=!0,l="hsv"):Co(t.h)&&Co(t.s)&&Co(t.l)&&(r=Cu(t.s),s=Cu(t.l),e=BF(t.h,r,s),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Ty(n),{ok:a,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var zF="[-\\+]?\\d+%?",FF="[-\\+]?\\d*\\.\\d+%?",ti="(?:".concat(FF,")|(?:").concat(zF,")"),Vp="[\\s|\\(]+(".concat(ti,")[,|\\s]+(").concat(ti,")[,|\\s]+(").concat(ti,")\\s*\\)?"),Hp="[\\s|\\(]+(".concat(ti,")[,|\\s]+(").concat(ti,")[,|\\s]+(").concat(ti,")[,|\\s]+(").concat(ti,")\\s*\\)?"),kr={CSS_UNIT:new RegExp(ti),rgb:new RegExp("rgb"+Vp),rgba:new RegExp("rgba"+Hp),hsl:new RegExp("hsl"+Vp),hsla:new RegExp("hsla"+Hp),hsv:new RegExp("hsv"+Vp),hsva:new RegExp("hsva"+Hp),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $F(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if($p[t])t=$p[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=kr.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=kr.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=kr.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=kr.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=kr.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=kr.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=kr.hex8.exec(t),n?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),a:My(n[4]),format:e?"name":"hex8"}:(n=kr.hex6.exec(t),n?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),format:e?"name":"hex"}:(n=kr.hex4.exec(t),n?{r:$n(n[1]+n[1]),g:$n(n[2]+n[2]),b:$n(n[3]+n[3]),a:My(n[4]+n[4]),format:e?"name":"hex8"}:(n=kr.hex3.exec(t),n?{r:$n(n[1]+n[1]),g:$n(n[2]+n[2]),b:$n(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Co(t){return Boolean(kr.CSS_UNIT.exec(String(t)))}var VF=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=LF(e)),this.originalInput=e;var o=RF(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,o,s=e.r/255,a=e.g/255,l=e.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=Ty(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=_y(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=_y(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Ay(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Ay(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),Dy(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),IF(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(tn(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(tn(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+Dy(this.r,this.g,this.b,!1),n=0,r=Object.entries($p);n<r.length;n++){var o=r[n],s=o[0],a=o[1];if(e===a)return s}return!1},t.prototype.toString=function(e){var n=Boolean(e);e=e!=null?e:this.format;var r=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(e.startsWith("hex")||e==="name");return s?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=vu(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=vu(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=vu(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=vu(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),o=new t(e).toRgb(),s=n/100,a={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new t(a)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,s.push(new t(r));return s},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,o=n.s,s=n.v,a=[],l=1/e;e--;)a.push(new t({h:r,s:o,v:s})),s=(s+l)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),o=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,o=[this],s=360/e,a=1;a<e;a++)o.push(new t({h:(r+a*s)%360,s:n.s,l:n.l}));return o},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function ni(t,e=20){return t.mix("#141414",e).toString()}function HF(t){const e=Zo(),n=Ee("button");return i.computed(()=>{let r={};const o=t.color;if(o){const s=new VF(o),a=t.dark?s.tint(20).toString():ni(s,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?ni(s,90):s.tint(90).toString(),"text-color":o,"border-color":t.dark?ni(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?ni(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?ni(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?ni(s,80):s.tint(80).toString());else{const l=t.dark?ni(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),e.value){const u=t.dark?ni(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const jF=i.defineComponent({name:"ElButton"}),UF=i.defineComponent({...jF,props:zp,emits:_F,setup(t,{expose:e,emit:n}){const r=t,o=HF(r),s=Ee("button"),{_ref:a,_size:l,_type:c,_disabled:u,_props:d,shouldAddSpace:f,handleClick:p}=AF(r,n);return e({ref:a,size:l,type:c,disabled:u,shouldAddSpace:f}),(h,m)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.tag),i.mergeProps({ref_key:"_ref",ref:a},i.unref(d),{class:[i.unref(s).b(),i.unref(s).m(i.unref(c)),i.unref(s).m(i.unref(l)),i.unref(s).is("disabled",i.unref(u)),i.unref(s).is("loading",h.loading),i.unref(s).is("plain",h.plain),i.unref(s).is("round",h.round),i.unref(s).is("circle",h.circle),i.unref(s).is("text",h.text),i.unref(s).is("link",h.link),i.unref(s).is("has-bg",h.bg)],style:i.unref(o),onClick:i.unref(p)}),{default:i.withCtx(()=>[h.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.$slots.loading?i.renderSlot(h.$slots,"loading",{key:0}):(i.openBlock(),i.createBlock(i.unref(yt),{key:1,class:i.normalizeClass(i.unref(s).is("loading"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(i.openBlock(),i.createBlock(i.unref(yt),{key:1},{default:i.withCtx(()=>[h.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.icon),{key:0})):i.renderSlot(h.$slots,"icon",{key:1})]),_:3})):i.createCommentVNode("v-if",!0),h.$slots.default?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass({[i.unref(s).em("text","expand")]:i.unref(f)})},[i.renderSlot(h.$slots,"default")],2)):i.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var qF=xe(UF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const WF={size:zp.size,type:zp.type},KF=i.defineComponent({name:"ElButtonGroup"}),GF=i.defineComponent({...KF,props:WF,setup(t){const e=t;i.provide(xy,i.reactive({size:i.toRef(e,"size"),type:i.toRef(e,"type")}));const n=Ee("button");return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`${i.unref(n).b("group")}`)},[i.renderSlot(r.$slots,"default")],2))}});var Ny=xe(GF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const nn=Lt(qF,{ButtonGroup:Ny});mo(Ny);const ri=new Map;let By;lt&&(document.addEventListener("mousedown",t=>By=t),document.addEventListener("mouseup",t=>{for(const e of ri.values())for(const{documentHandler:n}of e)n(t,By)}));function Oy(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:Go(e.arg)&&n.push(e.arg),function(r,o){const s=e.instance.popperRef,a=r.target,l=o==null?void 0:o.target,c=!e||!e.instance,u=!a||!l,d=t.contains(a)||t.contains(l),f=t===a,p=n.length&&n.some(m=>m==null?void 0:m.contains(a))||n.length&&n.includes(l),h=s&&(s.contains(a)||s.contains(l));c||u||d||f||p||h||e.value(r,o)}}const JF={beforeMount(t,e){ri.has(t)||ri.set(t,[]),ri.get(t).push({documentHandler:Oy(t,e),bindingFn:e.value})},updated(t,e){ri.has(t)||ri.set(t,[]);const n=ri.get(t),r=n.findIndex(s=>s.bindingFn===e.oldValue),o={documentHandler:Oy(t,e),bindingFn:e.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(t){ri.delete(t)}},jp="_trap-focus-children",Xi=[],Iy=t=>{if(Xi.length===0)return;const e=Xi[Xi.length-1][jp];if(e.length>0&&t.code===Ge.tab){if(e.length===1){t.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=t.shiftKey,r=t.target===e[0],o=t.target===e[e.length-1];r&&n&&(t.preventDefault(),e[e.length-1].focus()),o&&!n&&(t.preventDefault(),e[0].focus())}},XF={beforeMount(t){t[jp]=M2(t),Xi.push(t),Xi.length<=1&&document.addEventListener("keydown",Iy)},updated(t){i.nextTick(()=>{t[jp]=M2(t)})},unmounted(){Xi.shift(),Xi.length===0&&document.removeEventListener("keydown",Iy)}},YF=Pe({header:{type:String,default:""},bodyStyle:{type:ne([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),ZF=i.defineComponent({name:"ElCard"}),QF=i.defineComponent({...ZF,props:YF,setup(t){const e=Ee("card");return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(e).b(),i.unref(e).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e).e("header"))},[i.renderSlot(n.$slots,"header",{},()=>[i.createTextVNode(i.toDisplayString(n.header),1)])],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(e).e("body")),style:i.normalizeStyle(n.bodyStyle)},[i.renderSlot(n.$slots,"default")],6)],2))}});var e$=xe(QF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const bl=Lt(e$),Py={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:dl,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Ly={[en]:t=>vt(t)||_t(t)||ho(t),change:t=>vt(t)||_t(t)||ho(t)},Zs=Symbol("checkboxGroupContextKey"),t$=({model:t,isChecked:e})=>{const n=i.inject(Zs,void 0),r=i.computed(()=>{var s,a;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,c=(a=n==null?void 0:n.min)==null?void 0:a.value;return!el(l)&&t.value.length>=l&&!e.value||!el(c)&&t.value.length<=c&&e.value});return{isDisabled:Zo(i.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},n$=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const a=i.inject(Zs,void 0),{formItem:l}=Gs(),{emit:c}=i.getCurrentInstance();function u(m){var g,b;return m===t.trueLabel||m===!0?(g=t.trueLabel)!=null?g:!0:(b=t.falseLabel)!=null?b:!1}function d(m,g){c("change",u(m),g)}function f(m){if(n.value)return;const g=m.target;c("change",u(g.checked),m)}async function p(m){n.value||!r.value&&!o.value&&s.value&&(m.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await i.nextTick(),d(e.value,m)))}const h=i.computed(()=>(a==null?void 0:a.validateEvent)||t.validateEvent);return i.watch(()=>t.modelValue,()=>{h.value&&(l==null||l.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:p}},r$=t=>{const e=i.ref(!1),{emit:n}=i.getCurrentInstance(),r=i.inject(Zs,void 0),o=i.computed(()=>el(r)===!1),s=i.ref(!1);return{model:i.computed({get(){var l,c;return o.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(c=t.modelValue)!=null?c:e.value},set(l){var c,u;o.value&&Vr(l)?(s.value=((c=r==null?void 0:r.max)==null?void 0:c.value)!==void 0&&l.length>(r==null?void 0:r.max.value),s.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,l))):(n(en,l),e.value=l)}}),isGroup:o,isLimitExceeded:s}},o$=(t,e,{model:n})=>{const r=i.inject(Zs,void 0),o=i.ref(!1),s=i.computed(()=>{const u=n.value;return ho(u)?u:Vr(u)?Qt(t.label)?u.map(i.toRaw).some(d=>Xc(d,t.label)):u.map(i.toRaw).includes(t.label):u!=null?u===t.trueLabel:!!u}),a=vo(i.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),l=vo(i.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=i.computed(()=>!!(e.default||t.label));return{checkboxButtonSize:a,isChecked:s,isFocused:o,checkboxSize:l,hasOwnLabel:c}},i$=(t,{model:e})=>{function n(){Vr(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},Ry=(t,e)=>{const{formItem:n}=Gs(),{model:r,isGroup:o,isLimitExceeded:s}=r$(t),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=o$(t,e,{model:r}),{isDisabled:f}=t$({model:r,isChecked:l}),{inputId:p,isLabeledByFormItem:h}=Cp(t,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:m,onClickRoot:g}=n$(t,{model:r,isLimitExceeded:s,hasOwnLabel:d,isDisabled:f,isLabeledByFormItem:h});return i$(t,{model:r}),{inputId:p,isLabeledByFormItem:h,isChecked:l,isDisabled:f,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:r,handleChange:m,onClickRoot:g}},s$=["tabindex","role","aria-checked"],a$=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],l$=["id","aria-hidden","disabled","value","name","tabindex"],c$=i.defineComponent({name:"ElCheckbox"}),u$=i.defineComponent({...c$,props:Py,emits:Ly,setup(t){const e=t,n=i.useSlots(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:f,onClickRoot:p}=Ry(e,n),h=Ee("checkbox"),m=i.computed(()=>[h.b(),h.m(c.value),h.is("disabled",a.value),h.is("bordered",e.border),h.is("checked",s.value)]),g=i.computed(()=>[h.e("input"),h.is("disabled",a.value),h.is("checked",s.value),h.is("indeterminate",e.indeterminate),h.is("focus",l.value)]);return(b,y)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(!i.unref(u)&&i.unref(o)?"span":"label"),{class:i.normalizeClass(i.unref(m)),"aria-controls":b.indeterminate?b.controls:null,onClick:i.unref(p)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(i.unref(g)),tabindex:b.indeterminate?0:void 0,role:b.indeterminate?"checkbox":void 0,"aria-checked":b.indeterminate?"mixed":void 0},[b.trueLabel||b.falseLabel?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,id:i.unref(r),"onUpdate:modelValue":y[0]||(y[0]=S=>i.isRef(d)?d.value=S:null),class:i.normalizeClass(i.unref(h).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",name:b.name,tabindex:b.tabindex,disabled:i.unref(a),"true-value":b.trueLabel,"false-value":b.falseLabel,onChange:y[1]||(y[1]=(...S)=>i.unref(f)&&i.unref(f)(...S)),onFocus:y[2]||(y[2]=S=>l.value=!0),onBlur:y[3]||(y[3]=S=>l.value=!1)},null,42,a$)),[[i.vModelCheckbox,i.unref(d)]]):i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:1,id:i.unref(r),"onUpdate:modelValue":y[4]||(y[4]=S=>i.isRef(d)?d.value=S:null),class:i.normalizeClass(i.unref(h).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",disabled:i.unref(a),value:b.label,name:b.name,tabindex:b.tabindex,onChange:y[5]||(y[5]=(...S)=>i.unref(f)&&i.unref(f)(...S)),onFocus:y[6]||(y[6]=S=>l.value=!0),onBlur:y[7]||(y[7]=S=>l.value=!1)},null,42,l$)),[[i.vModelCheckbox,i.unref(d)]]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(h).e("inner"))},null,2)],10,s$),i.unref(u)?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(h).e("label"))},[i.renderSlot(b.$slots,"default"),b.$slots.default?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(b.label),1)],64))],2)):i.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var d$=xe(u$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const f$=["name","tabindex","disabled","true-value","false-value"],p$=["name","tabindex","disabled","value"],h$=i.defineComponent({name:"ElCheckboxButton"}),m$=i.defineComponent({...h$,props:Py,emits:Ly,setup(t){const e=t,n=i.useSlots(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:a,model:l,handleChange:c}=Ry(e,n),u=i.inject(Zs,void 0),d=Ee("checkbox"),f=i.computed(()=>{var h,m,g,b;const y=(m=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:y,borderColor:y,color:(b=(g=u==null?void 0:u.textColor)==null?void 0:g.value)!=null?b:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),p=i.computed(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",s.value),d.is("checked",o.value),d.is("focus",r.value)]);return(h,m)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(i.unref(p))},[h.trueLabel||h.falseLabel?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=g=>i.isRef(l)?l.value=g:null),class:i.normalizeClass(i.unref(d).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:i.unref(s),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:m[1]||(m[1]=(...g)=>i.unref(c)&&i.unref(c)(...g)),onFocus:m[2]||(m[2]=g=>r.value=!0),onBlur:m[3]||(m[3]=g=>r.value=!1)},null,42,f$)),[[i.vModelCheckbox,i.unref(l)]]):i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:1,"onUpdate:modelValue":m[4]||(m[4]=g=>i.isRef(l)?l.value=g:null),class:i.normalizeClass(i.unref(d).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:i.unref(s),value:h.label,onChange:m[5]||(m[5]=(...g)=>i.unref(c)&&i.unref(c)(...g)),onFocus:m[6]||(m[6]=g=>r.value=!0),onBlur:m[7]||(m[7]=g=>r.value=!1)},null,42,p$)),[[i.vModelCheckbox,i.unref(l)]]),h.$slots.default||h.label?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(i.unref(d).be("button","inner")),style:i.normalizeStyle(i.unref(o)?i.unref(f):void 0)},[i.renderSlot(h.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(h.label),1)])],6)):i.createCommentVNode("v-if",!0)],2))}});var zy=xe(m$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const g$=Pe({modelValue:{type:ne(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:dl,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),b$={[en]:t=>Vr(t),change:t=>Vr(t)},y$=i.defineComponent({name:"ElCheckboxGroup"}),w$=i.defineComponent({...y$,props:g$,emits:b$,setup(t,{emit:e}){const n=t,r=Ee("checkbox"),{formItem:o}=Gs(),{inputId:s,isLabeledByFormItem:a}=Cp(n,{formItemContext:o}),l=async u=>{e(en,u),await i.nextTick(),e("change",u)},c=i.computed({get(){return n.modelValue},set(u){l(u)}});return i.provide(Zs,{...mB(i.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),i.watch(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.tag),{id:i.unref(s),class:i.normalizeClass(i.unref(r).b("group")),role:"group","aria-label":i.unref(a)?void 0:u.label||"checkbox-group","aria-labelledby":i.unref(a)?(f=i.unref(o))==null?void 0:f.labelId:void 0},{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Fy=xe(w$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const yl=Lt(d$,{CheckboxButton:zy,CheckboxGroup:Fy});mo(zy),mo(Fy);const $y=Pe({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:tl,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),v$={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},C$=i.defineComponent({name:"ElTag"}),k$=i.defineComponent({...C$,props:$y,emits:v$,setup(t,{emit:e}){const n=t,r=vo(),o=Ee("tag"),s=i.computed(()=>{const{type:c,hit:u,effect:d,closable:f,round:p}=n;return[o.b(),o.is("closable",f),o.m(c),o.m(r.value),o.m(d),o.is("hit",u),o.is("round",p)]}),a=c=>{e("close",c)},l=c=>{e("click",c)};return(c,u)=>c.disableTransitions?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(s)),style:i.normalizeStyle({backgroundColor:c.color}),onClick:l},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).e("content"))},[i.renderSlot(c.$slots,"default")],2),c.closable?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass(i.unref(o).e("close")),onClick:i.withModifiers(a,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(qi))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],6)):(i.openBlock(),i.createBlock(i.Transition,{key:1,name:`${i.unref(o).namespace.value}-zoom-in-center`,appear:""},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(i.unref(s)),style:i.normalizeStyle({backgroundColor:c.color}),onClick:l},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).e("content"))},[i.renderSlot(c.$slots,"default")],2),c.closable?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass(i.unref(o).e("close")),onClick:i.withModifiers(a,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(qi))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var S$=xe(k$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const E$=Lt(S$),x$=Symbol("rowContextKey"),T$=Pe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ne([Number,Object]),default:()=>ln({})},sm:{type:ne([Number,Object]),default:()=>ln({})},md:{type:ne([Number,Object]),default:()=>ln({})},lg:{type:ne([Number,Object]),default:()=>ln({})},xl:{type:ne([Number,Object]),default:()=>ln({})}}),A$=i.defineComponent({name:"ElCol"}),_$=i.defineComponent({...A$,props:T$,setup(t){const e=t,{gutter:n}=i.inject(x$,{gutter:i.computed(()=>0)}),r=Ee("col"),o=i.computed(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),s=i.computed(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=e[u];_t(d)&&(u==="span"?a.push(r.b(`${e[u]}`)):d>0&&a.push(r.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{_t(e[u])?a.push(r.b(`${u}-${e[u]}`)):Qt(e[u])&&Object.entries(e[u]).forEach(([d,f])=>{a.push(d!=="span"?r.b(`${u}-${d}-${f}`):r.b(`${u}-${f}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,l)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.tag),{class:i.normalizeClass(i.unref(s)),style:i.normalizeStyle(i.unref(o))},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},8,["class","style"]))}});var D$=xe(_$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const M$=Lt(D$),N$=i.defineComponent({name:"ElCollapseTransition"}),B$=i.defineComponent({...N$,setup(t){const e=Ee("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,s)=>(i.openBlock(),i.createBlock(i.Transition,i.mergeProps({name:i.unref(e).b()},i.toHandlers(r)),{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},16,["name"]))}});var ku=xe(B$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ku.install=t=>{t.component(ku.name,ku)};const O$=ku,I$=Pe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ne([String,Array,Object])},zIndex:{type:ne([String,Number])}}),P$={click:t=>t instanceof MouseEvent},L$="overlay";var R$=i.defineComponent({name:"ElOverlay",props:I$,emits:P$,setup(t,{slots:e,emit:n}){const r=Ee(L$),o=c=>{n("click",c)},{onClick:s,onMousedown:a,onMouseup:l}=bp(t.customMaskEvent?void 0:o);return()=>t.mask?i.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:s,onMousedown:a,onMouseup:l},[i.renderSlot(e,"default")],tu.STYLE|tu.CLASS|tu.PROPS,["onClick","onMouseup","onMousedown"]):i.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[i.renderSlot(e,"default")])}});const Vy=R$,Hy=Symbol("dialogInjectionKey"),jy=Pe({center:Boolean,alignCenter:Boolean,closeIcon:{type:wr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),z$={close:()=>!0},F$=["aria-label"],$$=["id"],V$=i.defineComponent({name:"ElDialogContent"}),H$=i.defineComponent({...V$,props:jy,emits:z$,setup(t){const e=t,{t:n}=go(),{Close:r}=fP,{dialogRef:o,headerRef:s,bodyId:a,ns:l,style:c}=i.inject(Hy),{focusTrapRef:u}=i.inject(Op),d=i.computed(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center},e.customClass]),f=ip(u,o),p=i.computed(()=>e.draggable);return lb(o,s,p),(h,m)=>(i.openBlock(),i.createElementBlock("div",{ref:i.unref(f),class:i.normalizeClass(i.unref(d)),style:i.normalizeStyle(i.unref(c)),tabindex:"-1"},[i.createElementVNode("header",{ref_key:"headerRef",ref:s,class:i.normalizeClass(i.unref(l).e("header"))},[i.renderSlot(h.$slots,"header",{},()=>[i.createElementVNode("span",{role:"heading",class:i.normalizeClass(i.unref(l).e("title"))},i.toDisplayString(h.title),3)]),h.showClose?(i.openBlock(),i.createElementBlock("button",{key:0,"aria-label":i.unref(n)("el.dialog.close"),class:i.normalizeClass(i.unref(l).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=g=>h.$emit("close"))},[i.createVNode(i.unref(yt),{class:i.normalizeClass(i.unref(l).e("close"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.closeIcon||i.unref(r))))]),_:1},8,["class"])],10,F$)):i.createCommentVNode("v-if",!0)],2),i.createElementVNode("div",{id:i.unref(a),class:i.normalizeClass(i.unref(l).e("body"))},[i.renderSlot(h.$slots,"default")],10,$$),h.$slots.footer?(i.openBlock(),i.createElementBlock("footer",{key:0,class:i.normalizeClass(i.unref(l).e("footer"))},[i.renderSlot(h.$slots,"footer")],2)):i.createCommentVNode("v-if",!0)],6))}});var j$=xe(H$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const U$=Pe({...jy,appendToBody:Boolean,beforeClose:{type:ne(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),q$={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[en]:t=>ho(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},W$=(t,e)=>{const r=i.getCurrentInstance().emit,{nextZIndex:o}=yp();let s="";const a=yo(),l=yo(),c=i.ref(!1),u=i.ref(!1),d=i.ref(!1),f=i.ref(t.zIndex||o());let p,h;const m=du("namespace",rl),g=i.computed(()=>{const ee={},J=`--${m.value}-dialog`;return t.fullscreen||(t.top&&(ee[`${J}-margin-top`]=t.top),t.width&&(ee[`${J}-width`]=jr(t.width))),ee}),b=i.computed(()=>t.alignCenter?{display:"flex"}:{});function y(){r("opened")}function S(){r("closed"),r(en,!1),t.destroyOnClose&&(d.value=!1)}function k(){r("close")}function C(){h==null||h(),p==null||p(),t.openDelay&&t.openDelay>0?{stop:p}=Af(()=>M(),t.openDelay):M()}function _(){p==null||p(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=Af(()=>D(),t.closeDelay):D()}function E(){function ee(J){J||(u.value=!0,c.value=!1)}t.beforeClose?t.beforeClose(ee):_()}function T(){t.closeOnClickModal&&E()}function M(){!lt||(c.value=!0)}function D(){c.value=!1}function L(){r("openAutoFocus")}function $(){r("closeAutoFocus")}function V(ee){var J;((J=ee.detail)==null?void 0:J.focusReason)==="pointer"&&ee.preventDefault()}t.lockScroll&&mb(c);function W(){t.closeOnPressEscape&&E()}return i.watch(()=>t.modelValue,ee=>{ee?(u.value=!1,C(),d.value=!0,f.value=t.zIndex?f.value++:o(),i.nextTick(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):c.value&&_()}),i.watch(()=>t.fullscreen,ee=>{!e.value||(ee?(s=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=s)}),i.onMounted(()=>{t.modelValue&&(c.value=!0,d.value=!0,C())}),{afterEnter:y,afterLeave:S,beforeLeave:k,handleClose:E,onModalClick:T,close:_,doClose:D,onOpenAutoFocus:L,onCloseAutoFocus:$,onCloseRequested:W,onFocusoutPrevented:V,titleId:a,bodyId:l,closed:u,style:g,overlayDialogStyle:b,rendered:d,visible:c,zIndex:f}},K$=["aria-label","aria-labelledby","aria-describedby"],G$=i.defineComponent({name:"ElDialog",inheritAttrs:!1}),J$=i.defineComponent({...G$,props:U$,emits:q$,setup(t,{expose:e}){const n=t,r=i.useSlots();nu({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},i.computed(()=>!!r.title)),nu({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},i.computed(()=>!!n.customClass));const o=Ee("dialog"),s=i.ref(),a=i.ref(),l=i.ref(),{visible:c,titleId:u,bodyId:d,style:f,overlayDialogStyle:p,rendered:h,zIndex:m,afterEnter:g,afterLeave:b,beforeLeave:y,handleClose:S,onModalClick:k,onOpenAutoFocus:C,onCloseAutoFocus:_,onCloseRequested:E,onFocusoutPrevented:T}=W$(n,s);i.provide(Hy,{dialogRef:s,headerRef:a,bodyId:d,ns:o,rendered:h,style:f});const M=bp(k),D=i.computed(()=>n.draggable&&!n.fullscreen);return e({visible:c,dialogContentRef:l}),(L,$)=>(i.openBlock(),i.createBlock(i.Teleport,{to:"body",disabled:!L.appendToBody},[i.createVNode(i.Transition,{name:"dialog-fade",onAfterEnter:i.unref(g),onAfterLeave:i.unref(b),onBeforeLeave:i.unref(y),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createVNode(i.unref(Vy),{"custom-mask-event":"",mask:L.modal,"overlay-class":L.modalClass,"z-index":i.unref(m)},{default:i.withCtx(()=>[i.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":L.title||void 0,"aria-labelledby":L.title?void 0:i.unref(u),"aria-describedby":i.unref(d),class:i.normalizeClass(`${i.unref(o).namespace.value}-overlay-dialog`),style:i.normalizeStyle(i.unref(p)),onClick:$[0]||($[0]=(...V)=>i.unref(M).onClick&&i.unref(M).onClick(...V)),onMousedown:$[1]||($[1]=(...V)=>i.unref(M).onMousedown&&i.unref(M).onMousedown(...V)),onMouseup:$[2]||($[2]=(...V)=>i.unref(M).onMouseup&&i.unref(M).onMouseup(...V))},[i.createVNode(i.unref(Lp),{loop:"",trapped:i.unref(c),"focus-start-el":"container",onFocusAfterTrapped:i.unref(C),onFocusAfterReleased:i.unref(_),onFocusoutPrevented:i.unref(T),onReleaseRequested:i.unref(E)},{default:i.withCtx(()=>[i.unref(h)?(i.openBlock(),i.createBlock(j$,i.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},L.$attrs,{"custom-class":L.customClass,center:L.center,"align-center":L.alignCenter,"close-icon":L.closeIcon,draggable:i.unref(D),fullscreen:L.fullscreen,"show-close":L.showClose,title:L.title,onClose:i.unref(S)}),i.createSlots({header:i.withCtx(()=>[L.$slots.title?i.renderSlot(L.$slots,"title",{key:1}):i.renderSlot(L.$slots,"header",{key:0,close:i.unref(S),titleId:i.unref(u),titleClass:i.unref(o).e("title")})]),default:i.withCtx(()=>[i.renderSlot(L.$slots,"default")]),_:2},[L.$slots.footer?{name:"footer",fn:i.withCtx(()=>[i.renderSlot(L.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):i.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,K$)]),_:3},8,["mask","overlay-class","z-index"]),[[i.vShow,i.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var X$=xe(J$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Qs=Lt(X$),Y$=i.defineComponent({inheritAttrs:!1});function Z$(t,e,n,r,o,s){return i.renderSlot(t.$slots,"default")}var Q$=xe(Y$,[["render",Z$],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const eV=i.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function tV(t,e,n,r,o,s){return i.renderSlot(t.$slots,"default")}var nV=xe(eV,[["render",tV],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Uy="data-el-collection-item",qy=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),o=Symbol(n),s={...Q$,name:e,setup(){const l=i.ref(null),c=new Map,u=()=>{const d=i.unref(l);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${Uy}]`));return[...c.values()].sort((h,m)=>f.indexOf(h.ref)-f.indexOf(m.ref))};i.provide(r,{itemMap:c,getItems:u,collectionRef:l})}},a={...nV,name:n,setup(l,{attrs:c}){const u=i.ref(null),d=i.inject(r,void 0);i.provide(o,{collectionItemRef:u}),i.onMounted(()=>{const f=i.unref(u);f&&d.itemMap.set(f,{ref:f,...c})}),i.onBeforeUnmount(()=>{const f=i.unref(u);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:a}},rV=Pe({style:{type:ne([String,Array,Object])},currentTabId:{type:ne(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ne(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:oV,ElCollectionItem:iV,COLLECTION_INJECTION_KEY:Up,COLLECTION_ITEM_INJECTION_KEY:sV}=qy("RovingFocusGroup"),qp=Symbol("elRovingFocusGroup"),Wy=Symbol("elRovingFocusGroupItem"),aV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},lV=(t,e)=>{if(e!=="rtl")return t;switch(t){case Ge.right:return Ge.left;case Ge.left:return Ge.right;default:return t}},cV=(t,e,n)=>{const r=lV(t.key,n);if(!(e==="vertical"&&[Ge.left,Ge.right].includes(r))&&!(e==="horizontal"&&[Ge.up,Ge.down].includes(r)))return aV[r]},uV=(t,e)=>t.map((n,r)=>t[(r+e)%t.length]),Wp=t=>{const{activeElement:e}=document;for(const n of t)if(n===e||(n.focus(),e!==document.activeElement))return},Ky="currentTabIdChange",Gy="rovingFocusGroup.entryFocus",dV={bubbles:!1,cancelable:!0},fV=i.defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rV,emits:[Ky,"entryFocus"],setup(t,{emit:e}){var n;const r=i.ref((n=t.currentTabId||t.defaultCurrentTabId)!=null?n:null),o=i.ref(!1),s=i.ref(!1),a=i.ref(null),{getItems:l}=i.inject(Up,void 0),c=i.computed(()=>[{outline:"none"},t.style]),u=g=>{e(Ky,g)},d=()=>{o.value=!0},f=Pt(g=>{var b;(b=t.onMousedown)==null||b.call(t,g)},()=>{s.value=!0}),p=Pt(g=>{var b;(b=t.onFocus)==null||b.call(t,g)},g=>{const b=!i.unref(s),{target:y,currentTarget:S}=g;if(y===S&&b&&!i.unref(o)){const k=new Event(Gy,dV);if(S==null||S.dispatchEvent(k),!k.defaultPrevented){const C=l().filter(D=>D.focusable),_=C.find(D=>D.active),E=C.find(D=>D.id===i.unref(r)),M=[_,E,...C].filter(Boolean).map(D=>D.ref);Wp(M)}}s.value=!1}),h=Pt(g=>{var b;(b=t.onBlur)==null||b.call(t,g)},()=>{o.value=!1}),m=(...g)=>{e("entryFocus",...g)};i.provide(qp,{currentTabbedId:i.readonly(r),loop:i.toRef(t,"loop"),tabIndex:i.computed(()=>i.unref(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:c,orientation:i.toRef(t,"orientation"),dir:i.toRef(t,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:h,onFocus:p,onMousedown:f}),i.watch(()=>t.currentTabId,g=>{r.value=g!=null?g:null}),$r(a,Gy,m)}});function pV(t,e,n,r,o,s){return i.renderSlot(t.$slots,"default")}var hV=xe(fV,[["render",pV],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const mV=i.defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:oV,ElRovingFocusGroupImpl:hV}});function gV(t,e,n,r,o,s){const a=i.resolveComponent("el-roving-focus-group-impl"),l=i.resolveComponent("el-focus-group-collection");return i.openBlock(),i.createBlock(l,null,{default:i.withCtx(()=>[i.createVNode(a,i.normalizeProps(i.guardReactiveProps(t.$attrs)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},16)]),_:3})}var bV=xe(mV,[["render",gV],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const yV=i.defineComponent({components:{ElRovingFocusCollectionItem:iV},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:e}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:s}=i.inject(qp,void 0),{getItems:a}=i.inject(Up,void 0),l=yo(),c=i.ref(null),u=Pt(h=>{e("mousedown",h)},h=>{t.focusable?o(i.unref(l)):h.preventDefault()}),d=Pt(h=>{e("focus",h)},()=>{o(i.unref(l))}),f=Pt(h=>{e("keydown",h)},h=>{const{key:m,shiftKey:g,target:b,currentTarget:y}=h;if(m===Ge.tab&&g){s();return}if(b!==y)return;const S=cV(h);if(S){h.preventDefault();let C=a().filter(_=>_.focusable).map(_=>_.ref);switch(S){case"last":{C.reverse();break}case"prev":case"next":{S==="prev"&&C.reverse();const _=C.indexOf(y);C=r.value?uV(C,_+1):C.slice(_+1);break}}i.nextTick(()=>{Wp(C)})}}),p=i.computed(()=>n.value===i.unref(l));return i.provide(Wy,{rovingFocusGroupItemRef:c,tabIndex:i.computed(()=>i.unref(p)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:f}),{id:l,handleKeydown:f,handleFocus:d,handleMousedown:u}}});function wV(t,e,n,r,o,s){const a=i.resolveComponent("el-roving-focus-collection-item");return i.openBlock(),i.createBlock(a,{id:t.id,focusable:t.focusable,active:t.active},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var vV=xe(yV,[["render",wV],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Su=Pe({trigger:gl.trigger,effect:{...Fn.effect,default:"light"},type:{type:ne(String)},placement:{type:ne(String),default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ne([Number,String]),default:0},maxHeight:{type:ne([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ne(Object)},teleported:Fn.teleported}),Jy=Pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:wr}}),CV=Pe({onKeydown:{type:ne(Function)}}),kV=[Ge.down,Ge.pageDown,Ge.home],Xy=[Ge.up,Ge.pageUp,Ge.end],SV=[...kV,...Xy],{ElCollection:EV,ElCollectionItem:xV,COLLECTION_INJECTION_KEY:TV,COLLECTION_ITEM_INJECTION_KEY:AV}=qy("Dropdown"),Eu=Symbol("elDropdown"),{ButtonGroup:_V}=nn,DV=i.defineComponent({name:"ElDropdown",components:{ElButton:nn,ElButtonGroup:_V,ElScrollbar:ly,ElDropdownCollection:EV,ElTooltip:wu,ElRovingFocusGroup:bV,ElOnlyChild:fy,ElIcon:yt,ArrowDown:G3},props:Su,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=i.getCurrentInstance(),r=Ee("dropdown"),{t:o}=go(),s=i.ref(),a=i.ref(),l=i.ref(null),c=i.ref(null),u=i.ref(null),d=i.ref(null),f=i.ref(!1),p=[Ge.enter,Ge.space,Ge.down],h=i.computed(()=>({maxHeight:jr(t.maxHeight)})),m=i.computed(()=>[r.m(C.value)]),g=yo().value,b=i.computed(()=>t.id||g);i.watch([s,i.toRef(t,"trigger")],([I,B],[H])=>{var K,ae,ye;const le=Vr(B)?B:[B];(K=H==null?void 0:H.$el)!=null&&K.removeEventListener&&H.$el.removeEventListener("pointerenter",E),(ae=I==null?void 0:I.$el)!=null&&ae.removeEventListener&&I.$el.removeEventListener("pointerenter",E),((ye=I==null?void 0:I.$el)==null?void 0:ye.addEventListener)&&le.includes("hover")&&I.$el.addEventListener("pointerenter",E)},{immediate:!0}),i.onBeforeUnmount(()=>{var I,B;(B=(I=s.value)==null?void 0:I.$el)!=null&&B.removeEventListener&&s.value.$el.removeEventListener("pointerenter",E)});function y(){S()}function S(){var I;(I=l.value)==null||I.onClose()}function k(){var I;(I=l.value)==null||I.onOpen()}const C=vo();function _(...I){e("command",...I)}function E(){var I,B;(B=(I=s.value)==null?void 0:I.$el)==null||B.focus()}function T(){}function M(){const I=i.unref(c);I==null||I.focus(),d.value=null}function D(I){d.value=I}function L(I){f.value||(I.preventDefault(),I.stopImmediatePropagation())}function $(){e("visible-change",!0)}function V(I){(I==null?void 0:I.type)==="keydown"&&c.value.focus()}function W(){e("visible-change",!1)}return i.provide(Eu,{contentRef:c,role:i.computed(()=>t.role),triggerId:b,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),i.provide("elDropdown",{instance:n,dropdownSize:C,handleClick:y,commandHandler:_,trigger:i.toRef(t,"trigger"),hideOnClick:i.toRef(t,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:m,dropdownSize:C,triggerId:b,triggerKeys:p,currentTabId:d,handleCurrentTabIdChange:D,handlerMainButtonClick:I=>{e("click",I)},handleEntryFocus:L,handleClose:S,handleOpen:k,handleBeforeShowTooltip:$,handleShowTooltip:V,handleBeforeHideTooltip:W,onFocusAfterTrapped:I=>{var B,H;I.preventDefault(),(H=(B=c.value)==null?void 0:B.focus)==null||H.call(B,{preventScroll:!0})},popperRef:l,contentRef:c,triggeringElementRef:s,referenceElementRef:a}}});function MV(t,e,n,r,o,s){var a;const l=i.resolveComponent("el-dropdown-collection"),c=i.resolveComponent("el-roving-focus-group"),u=i.resolveComponent("el-scrollbar"),d=i.resolveComponent("el-only-child"),f=i.resolveComponent("el-tooltip"),p=i.resolveComponent("el-button"),h=i.resolveComponent("arrow-down"),m=i.resolveComponent("el-icon"),g=i.resolveComponent("el-button-group");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.ns.b(),t.ns.is("disabled",t.disabled)])},[i.createVNode(f,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(a=t.referenceElementRef)==null?void 0:a.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},i.createSlots({content:i.withCtx(()=>[i.createVNode(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:i.withCtx(()=>[i.createVNode(c,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:i.withCtx(()=>[i.createVNode(l,null,{default:i.withCtx(()=>[i.renderSlot(t.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[t.splitButton?void 0:{name:"default",fn:i.withCtx(()=>[i.createVNode(d,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),t.splitButton?(i.openBlock(),i.createBlock(g,{key:0},{default:i.withCtx(()=>[i.createVNode(p,i.mergeProps({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),i.createVNode(p,i.mergeProps({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:i.withCtx(()=>[i.createVNode(m,{class:i.normalizeClass(t.ns.e("icon"))},{default:i.withCtx(()=>[i.createVNode(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):i.createCommentVNode("v-if",!0)],2)}var NV=xe(DV,[["render",MV],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const BV=i.defineComponent({name:"DropdownItemImpl",components:{ElIcon:yt},props:Jy,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=Ee("dropdown"),{role:r}=i.inject(Eu,void 0),{collectionItemRef:o}=i.inject(AV,void 0),{collectionItemRef:s}=i.inject(sV,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:c,handleKeydown:u,handleMousedown:d}=i.inject(Wy,void 0),f=ip(o,s,a),p=i.computed(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Pt(m=>{const{code:g}=m;if(g===Ge.enter||g===Ge.space)return m.preventDefault(),m.stopImmediatePropagation(),e("clickimpl",m),!0},u);return{ns:n,itemRef:f,dataset:{[Uy]:""},role:p,tabIndex:l,handleFocus:c,handleKeydown:h,handleMousedown:d}}}),OV=["aria-disabled","tabindex","role"];function IV(t,e,n,r,o,s){const a=i.resolveComponent("el-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.divided?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):i.createCommentVNode("v-if",!0),i.createElementVNode("li",i.mergeProps({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:e[0]||(e[0]=l=>t.$emit("clickimpl",l)),onFocus:e[1]||(e[1]=(...l)=>t.handleFocus&&t.handleFocus(...l)),onKeydown:e[2]||(e[2]=i.withModifiers((...l)=>t.handleKeydown&&t.handleKeydown(...l),["self"])),onMousedown:e[3]||(e[3]=(...l)=>t.handleMousedown&&t.handleMousedown(...l)),onPointermove:e[4]||(e[4]=l=>t.$emit("pointermove",l)),onPointerleave:e[5]||(e[5]=l=>t.$emit("pointerleave",l))}),[t.icon?(i.openBlock(),i.createBlock(a,{key:0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon)))]),_:1})):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"default")],16,OV)],64)}var PV=xe(BV,[["render",IV],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Yy=()=>{const t=i.inject("elDropdown",{}),e=i.computed(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:e}},LV=i.defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:xV,ElRovingFocusItem:vV,ElDropdownItemImpl:PV},inheritAttrs:!1,props:Jy,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:r}=Yy(),o=i.getCurrentInstance(),s=i.ref(null),a=i.computed(()=>{var h,m;return(m=(h=i.unref(s))==null?void 0:h.textContent)!=null?m:""}),{onItemEnter:l,onItemLeave:c}=i.inject(Eu,void 0),u=Pt(h=>(e("pointermove",h),h.defaultPrevented),N2(h=>{if(t.disabled){c(h);return}const m=h.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(l(h),h.defaultPrevented||m==null||m.focus())})),d=Pt(h=>(e("pointerleave",h),h.defaultPrevented),N2(h=>{c(h)})),f=Pt(h=>{if(!t.disabled)return e("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var m,g,b;if(t.disabled){h.stopImmediatePropagation();return}(m=r==null?void 0:r.hideOnClick)!=null&&m.value&&((g=r.handleClick)==null||g.call(r)),(b=r.commandHandler)==null||b.call(r,t.command,o,h)}),p=i.computed(()=>({...t,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:p}}});function RV(t,e,n,r,o,s){var a;const l=i.resolveComponent("el-dropdown-item-impl"),c=i.resolveComponent("el-roving-focus-item"),u=i.resolveComponent("el-dropdown-collection-item");return i.openBlock(),i.createBlock(u,{disabled:t.disabled,"text-value":(a=t.textValue)!=null?a:t.textContent},{default:i.withCtx(()=>[i.createVNode(c,{focusable:!t.disabled},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Zy=xe(LV,[["render",RV],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const zV=i.defineComponent({name:"ElDropdownMenu",props:CV,setup(t){const e=Ee("dropdown"),{_elDropdownSize:n}=Yy(),r=n.value,{focusTrapRef:o,onKeydown:s}=i.inject(Op,void 0),{contentRef:a,role:l,triggerId:c}=i.inject(Eu,void 0),{collectionRef:u,getItems:d}=i.inject(TV,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:m,onFocus:g,onMousedown:b}=i.inject(qp,void 0),{collectionRef:y}=i.inject(Up,void 0),S=i.computed(()=>[e.b("menu"),e.bm("menu",r==null?void 0:r.value)]),k=ip(a,u,o,f,y),C=Pt(E=>{var T;(T=t.onKeydown)==null||T.call(t,E)},E=>{const{currentTarget:T,code:M,target:D}=E;if(T.contains(D),Ge.tab===M&&E.stopImmediatePropagation(),E.preventDefault(),D!==i.unref(a)||!SV.includes(M))return;const $=d().filter(V=>!V.disabled).map(V=>V.ref);Xy.includes(M)&&$.reverse(),Wp($)});return{size:r,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:S,role:l,triggerId:c,dropdownListWrapperRef:k,handleKeydown:E=>{C(E),s(E)},onBlur:m,onFocus:g,onMousedown:b}}}),FV=["role","aria-labelledby"];function $V(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("ul",{ref:t.dropdownListWrapperRef,class:i.normalizeClass(t.dropdownKls),style:i.normalizeStyle(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:e[0]||(e[0]=(...a)=>t.onBlur&&t.onBlur(...a)),onFocus:e[1]||(e[1]=(...a)=>t.onFocus&&t.onFocus(...a)),onKeydown:e[2]||(e[2]=i.withModifiers((...a)=>t.handleKeydown&&t.handleKeydown(...a),["self"])),onMousedown:e[3]||(e[3]=i.withModifiers((...a)=>t.onMousedown&&t.onMousedown(...a),["self"]))},[i.renderSlot(t.$slots,"default")],46,FV)}var Qy=xe(zV,[["render",$V],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const wl=Lt(NV,{DropdownItem:Zy,DropdownMenu:Qy}),An=mo(Zy),vl=mo(Qy),e5=Symbol("ElSelectGroup"),xu=Symbol("ElSelect");function VV(t,e){const n=i.inject(xu),r=i.inject(e5,{disabled:!1}),o=i.computed(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),s=i.computed(()=>n.props.multiple?f(n.props.modelValue,t.value):p(t.value,n.props.modelValue)),a=i.computed(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!s.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),l=i.computed(()=>t.label||(o.value?"":t.value)),c=i.computed(()=>t.value||t.label||""),u=i.computed(()=>t.disabled||e.groupDisabled||a.value),d=i.getCurrentInstance(),f=(g=[],b)=>{if(o.value){const y=n.props.valueKey;return g&&g.some(S=>i.toRaw(Rn(S,y))===Rn(b,y))}else return g&&g.includes(b)},p=(g,b)=>{if(o.value){const{valueKey:y}=n.props;return Rn(g,y)===Rn(b,y)}else return g===b},h=()=>{!t.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};i.watch(()=>l.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),i.watch(()=>t.value,(g,b)=>{const{remote:y,valueKey:S}=n.props;if(Object.is(g,b)||(n.onOptionDestroy(b,d.proxy),n.onOptionCreate(d.proxy)),!t.created&&!y){if(S&&typeof g=="object"&&typeof b=="object"&&g[S]===b[S])return;n.setSelected()}}),i.watch(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=i.toRaw(n);return i.watch(m,g=>{const{query:b}=i.unref(g),y=new RegExp(yB(b),"i");e.visible=y.test(l.value)||t.created,e.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:l,currentValue:c,itemSelected:s,isDisabled:u,hoverItem:h}}const HV=i.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(t){const e=Ee("select"),n=i.computed(()=>[e.be("dropdown","item"),e.is("disabled",i.unref(a)),{selected:i.unref(s),hover:i.unref(d)}]),r=i.reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:a,select:l,hoverItem:c}=VV(t,r),{visible:u,hover:d}=i.toRefs(r),f=i.getCurrentInstance().proxy;l.onOptionCreate(f),i.onBeforeUnmount(()=>{const h=f.value,{selected:m}=l,b=(l.props.multiple?m:[m]).some(y=>y.value===f.value);i.nextTick(()=>{l.cachedOptions.get(h)===f&&!b&&l.cachedOptions.delete(h)}),l.onOptionDestroy(h,f)});function p(){t.disabled!==!0&&r.groupDisabled!==!0&&l.handleOptionSelect(f)}return{ns:e,containerKls:n,currentLabel:o,itemSelected:s,isDisabled:a,select:l,hoverItem:c,visible:u,hover:d,selectOptionClick:p,states:r}}});function jV(t,e,n,r,o,s){return i.withDirectives((i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.containerKls),onMouseenter:e[0]||(e[0]=(...a)=>t.hoverItem&&t.hoverItem(...a)),onClick:e[1]||(e[1]=i.withModifiers((...a)=>t.selectOptionClick&&t.selectOptionClick(...a),["stop"]))},[i.renderSlot(t.$slots,"default",{},()=>[i.createElementVNode("span",null,i.toDisplayString(t.currentLabel),1)])],34)),[[i.vShow,t.visible]])}var Kp=xe(HV,[["render",jV],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const UV=i.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=i.inject(xu),e=Ee("select"),n=i.computed(()=>t.props.popperClass),r=i.computed(()=>t.props.multiple),o=i.computed(()=>t.props.fitInputWidth),s=i.ref("");function a(){var l;s.value=`${(l=t.selectWrapper)==null?void 0:l.offsetWidth}px`}return i.onMounted(()=>{a(),Ps(t.selectWrapper,a)}),{ns:e,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function qV(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:i.normalizeStyle({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[i.renderSlot(t.$slots,"default")],6)}var WV=xe(UV,[["render",qV],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function KV(t){const{t:e}=go();return i.reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:e("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const GV=(t,e,n)=>{const{t:r}=go(),o=Ee("select");nu({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},i.computed(()=>t.suffixTransition===!1));const s=i.ref(null),a=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref(null),d=i.ref(null),f=i.ref(null),p=i.ref(null),h=i.ref(-1),m=i.shallowRef({query:""}),g=i.shallowRef(""),b=i.ref([]);let y=0;const{form:S,formItem:k}=Gs(),C=i.computed(()=>!t.filterable||t.multiple||!e.visible),_=i.computed(()=>t.disabled||(S==null?void 0:S.disabled)),E=i.computed(()=>{const j=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!_.value&&e.inputHovering&&j}),T=i.computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),M=i.computed(()=>o.is("reverse",T.value&&e.visible&&t.suffixTransition)),D=i.computed(()=>(S==null?void 0:S.statusIcon)&&(k==null?void 0:k.validateState)&&nb[k==null?void 0:k.validateState]),L=i.computed(()=>t.remote?300:0),$=i.computed(()=>t.loading?t.loadingText||r("el.select.loading"):t.remote&&e.query===""&&e.options.size===0?!1:t.filterable&&e.query&&e.options.size>0&&e.filteredOptionsCount===0?t.noMatchText||r("el.select.noMatch"):e.options.size===0?t.noDataText||r("el.select.noData"):null),V=i.computed(()=>{const j=Array.from(e.options.values()),X=[];return b.value.forEach(be=>{const Fe=j.findIndex(At=>At.currentLabel===be);Fe>-1&&X.push(j[Fe])}),X.length?X:j}),W=i.computed(()=>Array.from(e.cachedOptions.values())),ee=i.computed(()=>{const j=V.value.filter(X=>!X.created).some(X=>X.currentLabel===e.query);return t.filterable&&t.allowCreate&&e.query!==""&&!j}),J=vo(),I=i.computed(()=>["small"].includes(J.value)?"small":"default"),B=i.computed({get(){return e.visible&&$.value!==!1},set(j){e.visible=j}});i.watch([()=>_.value,()=>J.value,()=>S==null?void 0:S.size],()=>{i.nextTick(()=>{H()})}),i.watch(()=>t.placeholder,j=>{e.cachedPlaceHolder=e.currentPlaceholder=j,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(e.currentPlaceholder="")}),i.watch(()=>t.modelValue,(j,X)=>{t.multiple&&(H(),j&&j.length>0||a.value&&e.query!==""?e.currentPlaceholder="":e.currentPlaceholder=e.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(e.query="",K(e.query))),le(),t.filterable&&!t.multiple&&(e.inputLength=20),!Xc(j,X)&&t.validateEvent&&(k==null||k.validate("change").catch(be=>void 0))},{flush:"post",deep:!0}),i.watch(()=>e.visible,j=>{var X,be,Fe,At,on;j?((be=(X=c.value)==null?void 0:X.updatePopper)==null||be.call(X),t.filterable&&(e.filteredOptionsCount=e.optionsCount,e.query=t.remote?"":e.selectedLabel,(At=(Fe=l.value)==null?void 0:Fe.focus)==null||At.call(Fe),t.multiple?(on=a.value)==null||on.focus():e.selectedLabel&&(e.currentPlaceholder=`${e.selectedLabel}`,e.selectedLabel=""),K(e.query),!t.multiple&&!t.remote&&(m.value.query="",i.triggerRef(m),i.triggerRef(g)))):(t.filterable&&(St(t.filterMethod)&&t.filterMethod(""),St(t.remoteMethod)&&t.remoteMethod("")),e.query="",e.previousQuery=null,e.selectedLabel="",e.inputLength=20,e.menuVisibleOnFocus=!1,de(),i.nextTick(()=>{a.value&&a.value.value===""&&e.selected.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}),t.multiple||(e.selected&&(t.filterable&&t.allowCreate&&e.createdSelected&&e.createdLabel?e.selectedLabel=e.createdLabel:e.selectedLabel=e.selected.currentLabel,t.filterable&&(e.query=e.selectedLabel)),t.filterable&&(e.currentPlaceholder=e.cachedPlaceHolder))),n.emit("visible-change",j)}),i.watch(()=>e.options.entries(),()=>{var j,X,be;if(!lt)return;(X=(j=c.value)==null?void 0:j.updatePopper)==null||X.call(j),t.multiple&&H();const Fe=((be=f.value)==null?void 0:be.querySelectorAll("input"))||[];Array.from(Fe).includes(document.activeElement)||le(),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&ye()},{flush:"post"}),i.watch(()=>e.hoverIndex,j=>{_t(j)&&j>-1?h.value=V.value[j]||{}:h.value={},V.value.forEach(X=>{X.hover=h.value===X})});const H=()=>{i.nextTick(()=>{var j,X;if(!s.value)return;const be=s.value.$el.querySelector("input");y=y||(be.clientHeight>0?be.clientHeight+2:0);const Fe=d.value,At=gP(J.value||(S==null?void 0:S.size)),on=J.value||At===y||y<=0?At:y;!(be.offsetParent===null)&&(be.style.height=`${(e.selected.length===0?on:Math.max(Fe?Fe.clientHeight+(Fe.clientHeight>on?6:0):0,on))-2}px`),e.visible&&$.value!==!1&&((X=(j=c.value)==null?void 0:j.updatePopper)==null||X.call(j))})},K=async j=>{if(!(e.previousQuery===j||e.isOnComposition)){if(e.previousQuery===null&&(St(t.filterMethod)||St(t.remoteMethod))){e.previousQuery=j;return}e.previousQuery=j,i.nextTick(()=>{var X,be;e.visible&&((be=(X=c.value)==null?void 0:X.updatePopper)==null||be.call(X))}),e.hoverIndex=-1,t.multiple&&t.filterable&&i.nextTick(()=>{const X=a.value.value.length*15+20;e.inputLength=t.collapseTags?Math.min(50,X):X,ae(),H()}),t.remote&&St(t.remoteMethod)?(e.hoverIndex=-1,t.remoteMethod(j)):St(t.filterMethod)?(t.filterMethod(j),i.triggerRef(g)):(e.filteredOptionsCount=e.optionsCount,m.value.query=j,i.triggerRef(m),i.triggerRef(g)),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&(await i.nextTick(),ye())}},ae=()=>{e.currentPlaceholder!==""&&(e.currentPlaceholder=a.value.value?"":e.cachedPlaceHolder)},ye=()=>{const j=V.value.filter(Fe=>Fe.visible&&!Fe.disabled&&!Fe.states.groupDisabled),X=j.find(Fe=>Fe.created),be=j[0];e.hoverIndex=ot(V.value,X||be)},le=()=>{var j;if(t.multiple)e.selectedLabel="";else{const be=re(t.modelValue);(j=be.props)!=null&&j.created?(e.createdLabel=be.props.value,e.createdSelected=!0):e.createdSelected=!1,e.selectedLabel=be.currentLabel,e.selected=be,t.filterable&&(e.query=e.selectedLabel);return}const X=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(be=>{X.push(re(be))}),e.selected=X,i.nextTick(()=>{H()})},re=j=>{let X;const be=Nf(j).toLowerCase()==="object",Fe=Nf(j).toLowerCase()==="null",At=Nf(j).toLowerCase()==="undefined";for(let On=e.cachedOptions.size-1;On>=0;On--){const dr=W.value[On];if(be?Rn(dr.value,t.valueKey)===Rn(j,t.valueKey):dr.value===j){X={value:j,currentLabel:dr.currentLabel,isDisabled:dr.isDisabled};break}}if(X)return X;const on=be?j.label:!Fe&&!At?j:"",Un={value:j,currentLabel:on};return t.multiple&&(Un.hitState=!1),Un},de=()=>{setTimeout(()=>{const j=t.valueKey;t.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(X=>V.value.findIndex(be=>Rn(be,j)===Rn(X,j)))):e.hoverIndex=-1:e.hoverIndex=V.value.findIndex(X=>Ei(X)===Ei(e.selected))},300)},fe=()=>{var j,X;Re(),(X=(j=c.value)==null?void 0:j.updatePopper)==null||X.call(j),t.multiple&&H()},Re=()=>{var j;e.inputWidth=(j=s.value)==null?void 0:j.$el.offsetWidth},Z=()=>{t.filterable&&e.query!==e.selectedLabel&&(e.query=e.selectedLabel,K(e.query))},z=j3(()=>{Z()},L.value),ce=j3(j=>{K(j.target.value)},L.value),ve=j=>{Xc(t.modelValue,j)||n.emit(rb,j)},Ae=j=>{if(j.code!==Ge.delete){if(j.target.value.length<=0&&!Xe()){const X=t.modelValue.slice();X.pop(),n.emit(en,X),ve(X)}j.target.value.length===1&&t.modelValue.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}},qe=(j,X)=>{const be=e.selected.indexOf(X);if(be>-1&&!_.value){const Fe=t.modelValue.slice();Fe.splice(be,1),n.emit(en,Fe),ve(Fe),n.emit("remove-tag",X.value)}j.stopPropagation(),R()},rt=j=>{j.stopPropagation();const X=t.multiple?[]:"";if(!vt(X))for(const be of e.selected)be.isDisabled&&X.push(be.value);n.emit(en,X),ve(X),e.hoverIndex=-1,e.visible=!1,n.emit("clear"),R()},We=j=>{var X;if(t.multiple){const be=(t.modelValue||[]).slice(),Fe=ot(be,j.value);Fe>-1?be.splice(Fe,1):(t.multipleLimit<=0||be.length<t.multipleLimit)&&be.push(j.value),n.emit(en,be),ve(be),j.created&&(e.query="",K(""),e.inputLength=20),t.filterable&&((X=a.value)==null||X.focus())}else n.emit(en,j.value),ve(j.value),e.visible=!1;ht(),!e.visible&&i.nextTick(()=>{pe(j)})},ot=(j=[],X)=>{if(!Qt(X))return j.indexOf(X);const be=t.valueKey;let Fe=-1;return j.some((At,on)=>i.toRaw(Rn(At,be))===Rn(X,be)?(Fe=on,!0):!1),Fe},ht=()=>{const j=a.value||s.value;j&&(j==null||j.focus())},pe=j=>{var X,be,Fe,At,on;const Un=Array.isArray(j)?j[0]:j;let On=null;if(Un!=null&&Un.value){const dr=V.value.filter(p1=>p1.value===Un.value);dr.length>0&&(On=dr[0].$el)}if(c.value&&On){const dr=(At=(Fe=(be=(X=c.value)==null?void 0:X.popperRef)==null?void 0:be.contentRef)==null?void 0:Fe.querySelector)==null?void 0:At.call(Fe,`.${o.be("dropdown","wrap")}`);dr&&kB(dr,On)}(on=p.value)==null||on.handleScroll()},kt=j=>{e.optionsCount++,e.filteredOptionsCount++,e.options.set(j.value,j),e.cachedOptions.set(j.value,j)},Ve=(j,X)=>{e.options.get(j)===X&&(e.optionsCount--,e.filteredOptionsCount--,e.options.delete(j))},Ne=j=>{j.code!==Ge.backspace&&Xe(!1),e.inputLength=a.value.value.length*15+20,H()},Xe=j=>{if(!Array.isArray(e.selected))return;const X=e.selected[e.selected.length-1];if(!!X)return j===!0||j===!1?(X.hitState=j,j):(X.hitState=!X.hitState,X.hitState)},st=j=>{const X=j.target.value;if(j.type==="compositionend")e.isOnComposition=!1,i.nextTick(()=>K(X));else{const be=X[X.length-1]||"";e.isOnComposition=!ib(be)}},Ft=()=>{i.nextTick(()=>pe(e.selected))},$t=j=>{e.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!e.visible&&(e.menuVisibleOnFocus=!0),e.visible=!0),e.focused=!0,n.emit("focus",j))},R=()=>{var j,X;e.visible?(j=a.value||s.value)==null||j.focus():(X=s.value)==null||X.focus()},G=()=>{var j,X,be;e.visible=!1,(j=s.value)==null||j.blur(),(be=(X=l.value)==null?void 0:X.blur)==null||be.call(X)},me=j=>{var X,be,Fe;((X=c.value)==null?void 0:X.isFocusInsideContent(j))||((be=u.value)==null?void 0:be.isFocusInsideContent(j))||((Fe=f.value)==null?void 0:Fe.contains(j.relatedTarget))||(e.visible&&at(),e.focused=!1,n.emit("blur",j))},ze=j=>{rt(j)},at=()=>{e.visible=!1},yn=j=>{e.visible&&(j.preventDefault(),j.stopPropagation(),e.visible=!1)},ki=j=>{j&&!e.mouseEnter||_.value||(e.menuVisibleOnFocus?e.menuVisibleOnFocus=!1:(!c.value||!c.value.isFocusInsideContent())&&(e.visible=!e.visible),R())},Si=()=>{e.visible?V.value[e.hoverIndex]&&We(V.value[e.hoverIndex]):ki()},Ei=j=>Qt(j.value)?Rn(j.value,t.valueKey):j.value,q=i.computed(()=>V.value.filter(j=>j.visible).every(j=>j.disabled)),we=i.computed(()=>e.selected.slice(0,t.maxCollapseTags)),Oe=i.computed(()=>e.selected.slice(t.maxCollapseTags)),Qe=j=>{if(!e.visible){e.visible=!0;return}if(!(e.options.size===0||e.filteredOptionsCount===0)&&!e.isOnComposition&&!q.value){j==="next"?(e.hoverIndex++,e.hoverIndex===e.options.size&&(e.hoverIndex=0)):j==="prev"&&(e.hoverIndex--,e.hoverIndex<0&&(e.hoverIndex=e.options.size-1));const X=V.value[e.hoverIndex];(X.disabled===!0||X.states.groupDisabled===!0||!X.visible)&&Qe(j),i.nextTick(()=>pe(h.value))}},Ke=()=>{e.mouseEnter=!0},Ut=()=>{e.mouseEnter=!1},un=(j,X)=>{var be,Fe;qe(j,X),(Fe=(be=u.value)==null?void 0:be.updatePopper)==null||Fe.call(be)},jn=i.computed(()=>({maxWidth:`${i.unref(e.inputWidth)-32-(D.value?22:0)}px`,width:"100%"}));return{optionList:b,optionsArray:V,selectSize:J,handleResize:fe,debouncedOnInputChange:z,debouncedQueryChange:ce,deletePrevTag:Ae,deleteTag:qe,deleteSelected:rt,handleOptionSelect:We,scrollToOption:pe,readonly:C,resetInputHeight:H,showClose:E,iconComponent:T,iconReverse:M,showNewOption:ee,collapseTagSize:I,setSelected:le,managePlaceholder:ae,selectDisabled:_,emptyText:$,toggleLastOptionHitState:Xe,resetInputState:Ne,handleComposition:st,onOptionCreate:kt,onOptionDestroy:Ve,handleMenuEnter:Ft,handleFocus:$t,focus:R,blur:G,handleBlur:me,handleClearClick:ze,handleClose:at,handleKeydownEscape:yn,toggleMenu:ki,selectOption:Si,getValueKey:Ei,navigateOptions:Qe,handleDeleteTooltipTag:un,dropMenuVisible:B,queryChange:m,groupQueryChange:g,showTagList:we,collapseTagList:Oe,selectTagsStyle:jn,reference:s,input:a,iOSInput:l,tooltipRef:c,tagTooltipRef:u,tags:d,selectWrapper:f,scrollbar:p,handleMouseEnter:Ke,handleMouseLeave:Ut}};var JV=i.defineComponent({name:"ElOptions",emits:["update-options"],setup(t,{slots:e,emit:n}){let r=[];function o(s,a){if(s.length!==a.length)return!1;for(const[l]of s.entries())if(s[l]!=a[l])return!1;return!0}return()=>{var s,a;const l=(s=e.default)==null?void 0:s.call(e),c=[];function u(d){!Array.isArray(d)||d.forEach(f=>{var p,h,m,g;const b=(p=(f==null?void 0:f.type)||{})==null?void 0:p.name;b==="ElOptionGroup"?u(!vt(f.children)&&!Array.isArray(f.children)&&St((h=f.children)==null?void 0:h.default)?(m=f.children)==null?void 0:m.default():f.children):b==="ElOption"?c.push((g=f.props)==null?void 0:g.label):Array.isArray(f.children)&&u(f.children)})}return l.length&&u((a=l[0])==null?void 0:a.children),o(c,r)||(r=c,n("update-options",c)),l}}});const t5="ElSelect",XV=i.defineComponent({name:t5,componentName:t5,components:{ElInput:Qo,ElSelectMenu:WV,ElOption:Kp,ElOptions:JV,ElTag:E$,ElScrollbar:ly,ElTooltip:wu,ElIcon:yt},directives:{ClickOutside:JF},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:ob},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:Fn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:wr,default:Qc},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:wr,default:G3},tagType:{...$y.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:iu,default:"bottom-start"}},emits:[en,rb,"remove-tag","clear","visible-change","focus","blur"],setup(t,e){const n=Ee("select"),r=Ee("input"),{t:o}=go(),s=KV(t),{optionList:a,optionsArray:l,selectSize:c,readonly:u,handleResize:d,collapseTagSize:f,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:g,deleteSelected:b,handleOptionSelect:y,scrollToOption:S,setSelected:k,resetInputHeight:C,managePlaceholder:_,showClose:E,selectDisabled:T,iconComponent:M,iconReverse:D,showNewOption:L,emptyText:$,toggleLastOptionHitState:V,resetInputState:W,handleComposition:ee,onOptionCreate:J,onOptionDestroy:I,handleMenuEnter:B,handleFocus:H,focus:K,blur:ae,handleBlur:ye,handleClearClick:le,handleClose:re,handleKeydownEscape:de,toggleMenu:fe,selectOption:Re,getValueKey:Z,navigateOptions:z,handleDeleteTooltipTag:ce,dropMenuVisible:ve,reference:Ae,input:qe,iOSInput:rt,tooltipRef:We,tagTooltipRef:ot,tags:ht,selectWrapper:pe,scrollbar:kt,queryChange:Ve,groupQueryChange:Ne,handleMouseEnter:Xe,handleMouseLeave:st,showTagList:Ft,collapseTagList:$t,selectTagsStyle:R}=GV(t,s,e),{inputWidth:G,selected:me,inputLength:ze,filteredOptionsCount:at,visible:yn,selectedLabel:ki,hoverIndex:Si,query:Ei,inputHovering:q,currentPlaceholder:we,menuVisibleOnFocus:Oe,isOnComposition:Qe,options:Ke,cachedOptions:Ut,optionsCount:un,prefixWidth:jn}=i.toRefs(s),j=i.computed(()=>{const qn=[n.b()],fs=i.unref(c);return fs&&qn.push(n.m(fs)),t.disabled&&qn.push(n.m("disabled")),qn}),X=i.computed(()=>[n.e("tags"),n.is("disabled",i.unref(T))]),be=i.computed(()=>[n.b("tags-wrapper"),{"has-prefix":i.unref(jn)&&i.unref(me).length}]),Fe=i.computed(()=>[n.e("input"),n.is(i.unref(c)),n.is("disabled",i.unref(T))]),At=i.computed(()=>[n.e("input"),n.is(i.unref(c)),n.em("input","iOS")]),on=i.computed(()=>[n.is("empty",!t.allowCreate&&Boolean(i.unref(Ei))&&i.unref(at)===0)]),Un=i.computed(()=>({maxWidth:`${i.unref(G)>123?i.unref(G)-123:i.unref(G)-75}px`})),On=i.computed(()=>({marginLeft:`${i.unref(jn)}px`,flexGrow:1,width:`${i.unref(ze)/(i.unref(G)-32)}%`,maxWidth:`${i.unref(G)-42}px`}));i.provide(xu,i.reactive({props:t,options:Ke,optionsArray:l,cachedOptions:Ut,optionsCount:un,filteredOptionsCount:at,hoverIndex:Si,handleOptionSelect:y,onOptionCreate:J,onOptionDestroy:I,selectWrapper:pe,selected:me,setSelected:k,queryChange:Ve,groupQueryChange:Ne})),i.onMounted(()=>{s.cachedPlaceHolder=we.value=t.placeholder||(()=>o("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(we.value=""),Ps(pe,d),t.remote&&t.multiple&&C(),i.nextTick(()=>{const qn=Ae.value&&Ae.value.$el;if(!!qn&&(G.value=qn.getBoundingClientRect().width,e.slots.prefix)){const fs=qn.querySelector(`.${r.e("prefix")}`);jn.value=Math.max(fs.getBoundingClientRect().width+11,30)}}),k()}),t.multiple&&!Array.isArray(t.modelValue)&&e.emit(en,[]),!t.multiple&&Array.isArray(t.modelValue)&&e.emit(en,"");const dr=i.computed(()=>{var qn,fs;return(fs=(qn=We.value)==null?void 0:qn.popperRef)==null?void 0:fs.contentRef});return{isIOS:O2,onOptionsRendered:qn=>{a.value=qn},prefixWidth:jn,selectSize:c,readonly:u,handleResize:d,collapseTagSize:f,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:g,handleDeleteTooltipTag:ce,deleteSelected:b,handleOptionSelect:y,scrollToOption:S,inputWidth:G,selected:me,inputLength:ze,filteredOptionsCount:at,visible:yn,selectedLabel:ki,hoverIndex:Si,query:Ei,inputHovering:q,currentPlaceholder:we,menuVisibleOnFocus:Oe,isOnComposition:Qe,options:Ke,resetInputHeight:C,managePlaceholder:_,showClose:E,selectDisabled:T,iconComponent:M,iconReverse:D,showNewOption:L,emptyText:$,toggleLastOptionHitState:V,resetInputState:W,handleComposition:ee,handleMenuEnter:B,handleFocus:H,focus:K,blur:ae,handleBlur:ye,handleClearClick:le,handleClose:re,handleKeydownEscape:de,toggleMenu:fe,selectOption:Re,getValueKey:Z,navigateOptions:z,dropMenuVisible:ve,reference:Ae,input:qe,iOSInput:rt,tooltipRef:We,popperPaneRef:dr,tags:ht,selectWrapper:pe,scrollbar:kt,wrapperKls:j,tagsKls:X,tagWrapperKls:be,inputKls:Fe,iOSInputKls:At,scrollbarKls:on,selectTagsStyle:R,nsSelect:n,tagTextStyle:Un,inputStyle:On,handleMouseEnter:Xe,handleMouseLeave:st,showTagList:Ft,collapseTagList:$t,tagTooltipRef:ot}}}),YV=["disabled","autocomplete"],ZV=["disabled"],QV={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function eH(t,e,n,r,o,s){const a=i.resolveComponent("el-tag"),l=i.resolveComponent("el-tooltip"),c=i.resolveComponent("el-icon"),u=i.resolveComponent("el-input"),d=i.resolveComponent("el-option"),f=i.resolveComponent("el-options"),p=i.resolveComponent("el-scrollbar"),h=i.resolveComponent("el-select-menu"),m=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{ref:"selectWrapper",class:i.normalizeClass(t.wrapperKls),onMouseenter:e[22]||(e[22]=(...g)=>t.handleMouseEnter&&t.handleMouseEnter(...g)),onMouseleave:e[23]||(e[23]=(...g)=>t.handleMouseLeave&&t.handleMouseLeave(...g)),onClick:e[24]||(e[24]=i.withModifiers((...g)=>t.toggleMenu&&t.toggleMenu(...g),["stop"]))},[i.createVNode(l,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"select-trigger",onMouseenter:e[20]||(e[20]=g=>t.inputHovering=!0),onMouseleave:e[21]||(e[21]=g=>t.inputHovering=!1)},[t.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"tags",tabindex:"-1",class:i.normalizeClass(t.tagsKls),style:i.normalizeStyle(t.selectTagsStyle),onClick:e[15]||(e[15]=(...g)=>t.focus&&t.focus(...g))},[t.collapseTags&&t.selected.length?(i.openBlock(),i.createBlock(i.Transition,{key:0,onAfterLeave:t.resetInputHeight},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.tagWrapperKls)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.showTagList,g=>(i.openBlock(),i.createBlock(a,{key:t.getValueKey(g),closable:!t.selectDisabled&&!g.isDisabled,size:t.collapseTagSize,hit:g.hitState,type:t.tagType,"disable-transitions":"",onClose:b=>t.deleteTag(b,g)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.nsSelect.e("tags-text")),style:i.normalizeStyle(t.tagTextStyle)},i.toDisplayString(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(i.openBlock(),i.createBlock(a,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:i.withCtx(()=>[t.collapseTagsTooltip?(i.openBlock(),i.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.nsSelect.e("tags-text"))},"+ "+i.toDisplayString(t.selected.length-t.maxCollapseTags),3)]),content:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(t.nsSelect.e("collapse-tags"))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.collapseTagList,g=>(i.openBlock(),i.createElementBlock("div",{key:t.getValueKey(g),class:i.normalizeClass(t.nsSelect.e("collapse-tag"))},[i.createVNode(a,{class:"in-tooltip",closable:!t.selectDisabled&&!g.isDisabled,size:t.collapseTagSize,hit:g.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:b=>t.handleDeleteTooltipTag(b,g)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.nsSelect.e("tags-text")),style:i.normalizeStyle({maxWidth:t.inputWidth-75+"px"})},i.toDisplayString(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(t.nsSelect.e("tags-text"))},"+ "+i.toDisplayString(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):i.createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):i.createCommentVNode("v-if",!0),t.collapseTags?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.Transition,{key:1,onAfterLeave:t.resetInputHeight},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.tagWrapperKls),style:i.normalizeStyle(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.selected,g=>(i.openBlock(),i.createBlock(a,{key:t.getValueKey(g),closable:!t.selectDisabled&&!g.isDisabled,size:t.collapseTagSize,hit:g.hitState,type:t.tagType,"disable-transitions":"",onClose:b=>t.deleteTag(b,g)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(t.nsSelect.e("tags-text")),style:i.normalizeStyle({maxWidth:t.inputWidth-75+"px"})},i.toDisplayString(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":e[0]||(e[0]=g=>t.query=g),type:"text",class:i.normalizeClass(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:i.normalizeStyle(t.inputStyle),onFocus:e[1]||(e[1]=(...g)=>t.handleFocus&&t.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>t.handleBlur&&t.handleBlur(...g)),onKeyup:e[3]||(e[3]=(...g)=>t.managePlaceholder&&t.managePlaceholder(...g)),onKeydown:[e[4]||(e[4]=(...g)=>t.resetInputState&&t.resetInputState(...g)),e[5]||(e[5]=i.withKeys(i.withModifiers(g=>t.navigateOptions("next"),["prevent"]),["down"])),e[6]||(e[6]=i.withKeys(i.withModifiers(g=>t.navigateOptions("prev"),["prevent"]),["up"])),e[7]||(e[7]=i.withKeys((...g)=>t.handleKeydownEscape&&t.handleKeydownEscape(...g),["esc"])),e[8]||(e[8]=i.withKeys(i.withModifiers((...g)=>t.selectOption&&t.selectOption(...g),["stop","prevent"]),["enter"])),e[9]||(e[9]=i.withKeys((...g)=>t.deletePrevTag&&t.deletePrevTag(...g),["delete"])),e[10]||(e[10]=i.withKeys(g=>t.visible=!1,["tab"]))],onCompositionstart:e[11]||(e[11]=(...g)=>t.handleComposition&&t.handleComposition(...g)),onCompositionupdate:e[12]||(e[12]=(...g)=>t.handleComposition&&t.handleComposition(...g)),onCompositionend:e[13]||(e[13]=(...g)=>t.handleComposition&&t.handleComposition(...g)),onInput:e[14]||(e[14]=(...g)=>t.debouncedQueryChange&&t.debouncedQueryChange(...g))},null,46,YV)),[[i.vModelText,t.query]]):i.createCommentVNode("v-if",!0)],6)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(i.openBlock(),i.createElementBlock("input",{key:1,ref:"iOSInput",class:i.normalizeClass(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,ZV)):i.createCommentVNode("v-if",!0),i.createVNode(u,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":e[16]||(e[16]=g=>t.selectedLabel=g),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:i.normalizeClass([t.nsSelect.is("focus",t.visible)]),tabindex:t.multiple&&t.filterable?-1:void 0,onFocus:t.handleFocus,onBlur:t.handleBlur,onInput:t.debouncedOnInputChange,onPaste:t.debouncedOnInputChange,onCompositionstart:t.handleComposition,onCompositionupdate:t.handleComposition,onCompositionend:t.handleComposition,onKeydown:[e[17]||(e[17]=i.withKeys(i.withModifiers(g=>t.navigateOptions("next"),["stop","prevent"]),["down"])),e[18]||(e[18]=i.withKeys(i.withModifiers(g=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),i.withKeys(i.withModifiers(t.selectOption,["stop","prevent"]),["enter"]),i.withKeys(t.handleKeydownEscape,["esc"]),e[19]||(e[19]=i.withKeys(g=>t.visible=!1,["tab"]))]},i.createSlots({suffix:i.withCtx(()=>[t.iconComponent&&!t.showClose?(i.openBlock(),i.createBlock(c,{key:0,class:i.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),t.showClose&&t.clearIcon?(i.openBlock(),i.createBlock(c,{key:1,class:i.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:i.withCtx(()=>[i.createElementVNode("div",QV,[i.renderSlot(t.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:i.withCtx(()=>[i.createVNode(h,null,{default:i.withCtx(()=>[i.withDirectives(i.createVNode(p,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:i.normalizeClass(t.scrollbarKls)},{default:i.withCtx(()=>[t.showNewOption?(i.openBlock(),i.createBlock(d,{key:0,value:t.query,created:!0},null,8,["value"])):i.createCommentVNode("v-if",!0),i.createVNode(f,{onUpdateOptions:t.onOptionsRendered},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[i.vShow,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.$slots.empty?i.renderSlot(t.$slots,"empty",{key:0}):(i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(t.nsSelect.be("dropdown","empty"))},i.toDisplayString(t.emptyText),3))],64)):i.createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,t.handleClose,t.popperPaneRef]])}var tH=xe(XV,[["render",eH],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const nH=i.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(t){const e=Ee("select"),n=i.ref(!0),r=i.getCurrentInstance(),o=i.ref([]);i.provide(e5,i.reactive({...i.toRefs(t)}));const s=i.inject(xu);i.onMounted(()=>{o.value=a(r.subTree)});const a=c=>{const u=[];return Array.isArray(c.children)&&c.children.forEach(d=>{var f;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(f=d.children)!=null&&f.length&&u.push(...a(d))}),u},{groupQueryChange:l}=i.toRaw(s);return i.watch(l,()=>{n.value=o.value.some(c=>c.visible===!0)},{flush:"post"}),{visible:n,ns:e}}});function rH(t,e,n,r,o,s){return i.withDirectives((i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(t.ns.be("group","wrap"))},[i.createElementVNode("li",{class:i.normalizeClass(t.ns.be("group","title"))},i.toDisplayString(t.label),3),i.createElementVNode("li",null,[i.createElementVNode("ul",{class:i.normalizeClass(t.ns.b("group"))},[i.renderSlot(t.$slots,"default")],2)])],2)),[[i.vShow,t.visible]])}var n5=xe(nH,[["render",rH],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Gp=Lt(tH,{Option:Kp,OptionGroup:n5}),Jp=mo(Kp);mo(n5);const oH=Pe({trigger:gl.trigger,placement:Su.placement,disabled:gl.disabled,visible:Fn.visible,transition:Fn.transition,popperOptions:Su.popperOptions,tabindex:Su.tabindex,content:Fn.content,popperStyle:Fn.popperStyle,popperClass:Fn.popperClass,enterable:{...Fn.enterable,default:!0},effect:{...Fn.effect,default:"light"},teleported:Fn.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),iH={"update:visible":t=>ho(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},sH="onUpdate:visible",aH=i.defineComponent({name:"ElPopover"}),lH=i.defineComponent({...aH,props:oH,emits:iH,setup(t,{expose:e,emit:n}){const r=t,o=i.computed(()=>r[sH]),s=Ee("popover"),a=i.ref(),l=i.computed(()=>{var b;return(b=i.unref(a))==null?void 0:b.popperRef}),c=i.computed(()=>[{width:jr(r.width)},r.popperStyle]),u=i.computed(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),d=i.computed(()=>r.transition===`${s.namespace.value}-fade-in-linear`),f=()=>{var b;(b=a.value)==null||b.hide()},p=()=>{n("before-enter")},h=()=>{n("before-leave")},m=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:l,hide:f}),(b,y)=>(i.openBlock(),i.createBlock(i.unref(wu),i.mergeProps({ref_key:"tooltipRef",ref:a},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":i.unref(u),"popper-style":i.unref(c),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":i.unref(d),"onUpdate:visible":i.unref(o),onBeforeShow:p,onBeforeHide:h,onShow:m,onHide:g}),{content:i.withCtx(()=>[b.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(s).e("title")),role:"title"},i.toDisplayString(b.title),3)):i.createCommentVNode("v-if",!0),i.renderSlot(b.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(b.content),1)])]),default:i.withCtx(()=>[b.$slots.reference?i.renderSlot(b.$slots,"reference",{key:0}):i.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var cH=xe(lH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const r5=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var uH={mounted(t,e){r5(t,e)},updated(t,e){r5(t,e)}};const dH=hP(uH,"popover"),oi=Lt(cH,{directive:dH}),fH=Pe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ne(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ne([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ne(Function),default:t=>`${t}%`}}),pH=["aria-valuenow"],hH={viewBox:"0 0 100 100"},mH=["d","stroke","stroke-linecap","stroke-width"],gH=["d","stroke","opacity","stroke-linecap","stroke-width"],bH={key:0},yH=i.defineComponent({name:"ElProgress"}),wH=i.defineComponent({...yH,props:fH,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ee("progress"),o=i.computed(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:S(e.percentage)})),s=i.computed(()=>(e.strokeWidth/e.width*100).toFixed(1)),a=i.computed(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),l=i.computed(()=>{const k=a.value,C=e.type==="dashboard";return`
M 50 50
m 0 ${C?"":"-"}${k}
a ${k} ${k} 0 1 1 0 ${C?"-":""}${k*2}
a ${k} ${k} 0 1 1 0 ${C?"":"-"}${k*2}
`}),c=i.computed(()=>2*Math.PI*a.value),u=i.computed(()=>e.type==="dashboard"?.75:1),d=i.computed(()=>`${-1*c.value*(1-u.value)/2}px`),f=i.computed(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),p=i.computed(()=>({strokeDasharray:`${c.value*u.value*(e.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=i.computed(()=>{let k;return e.color?k=S(e.percentage):k=n[e.status]||n.default,k}),m=i.computed(()=>e.status==="warning"?op:e.type==="line"?e.status==="success"?np:Qc:e.status==="success"?X3:qi),g=i.computed(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),b=i.computed(()=>e.format(e.percentage));function y(k){const C=100/k.length;return k.map((E,T)=>vt(E)?{color:E,percentage:(T+1)*C}:E).sort((E,T)=>E.percentage-T.percentage)}const S=k=>{var C;const{color:_}=e;if(St(_))return _(k);if(vt(_))return _;{const E=y(_);for(const T of E)if(T.percentage>k)return T.color;return(C=E[E.length-1])==null?void 0:C.color}};return(k,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).m(k.type),i.unref(r).is(k.status),{[i.unref(r).m("without-text")]:!k.showText,[i.unref(r).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(r).b("bar"))},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(r).be("bar","outer")),style:i.normalizeStyle({height:`${k.strokeWidth}px`})},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(r).be("bar","inner"),{[i.unref(r).bem("bar","inner","indeterminate")]:k.indeterminate},{[i.unref(r).bem("bar","inner","striped")]:k.striped},{[i.unref(r).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:i.normalizeStyle(i.unref(o))},[(k.showText||k.$slots.default)&&k.textInside?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(r).be("bar","innerText"))},[i.renderSlot(k.$slots,"default",{percentage:k.percentage},()=>[i.createElementVNode("span",null,i.toDisplayString(i.unref(b)),1)])],2)):i.createCommentVNode("v-if",!0)],6)],6)],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(r).b("circle")),style:i.normalizeStyle({height:`${k.width}px`,width:`${k.width}px`})},[(i.openBlock(),i.createElementBlock("svg",hH,[i.createElementVNode("path",{class:i.normalizeClass(i.unref(r).be("circle","track")),d:i.unref(l),stroke:`var(${i.unref(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":i.unref(s),fill:"none",style:i.normalizeStyle(i.unref(f))},null,14,mH),i.createElementVNode("path",{class:i.normalizeClass(i.unref(r).be("circle","path")),d:i.unref(l),stroke:i.unref(h),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":i.unref(s),style:i.normalizeStyle(i.unref(p))},null,14,gH)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(r).e("text")),style:i.normalizeStyle({fontSize:`${i.unref(g)}px`})},[i.renderSlot(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(i.openBlock(),i.createBlock(i.unref(yt),{key:1},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(m))))]),_:1})):(i.openBlock(),i.createElementBlock("span",bH,i.toDisplayString(i.unref(b)),1))])],6)):i.createCommentVNode("v-if",!0)],10,pH))}});var vH=xe(wH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const CH=Lt(vH);var o5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function kH(t,e){return!!(t===e||o5(t)&&o5(e))}function SH(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!kH(t[n],e[n]))return!1;return!0}function EH(t,e){e===void 0&&(e=SH);var n=null;function r(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(n&&n.lastThis===this&&e(o,n.lastArgs))return n.lastResult;var a=t.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}const xH=()=>{const e=i.getCurrentInstance().proxy.$props;return i.computed(()=>{const n=(r,o,s)=>({});return e.perfMode?Uc(n):EH(n)})},i5="itemRendered",s5="scroll",a5="forward",l5="backward",Xp="auto",TH="smart",AH="start",c5="center",_H="end",ea="horizontal",Yp="vertical",DH="ltr",Tu="rtl",Zp="negative",u5="positive-ascending",d5="positive-descending",MH={[ea]:"left",[Yp]:"top"},NH=20,BH={[ea]:"deltaX",[Yp]:"deltaY"},OH=({atEndEdge:t,atStartEdge:e,layout:n},r)=>{let o,s=0;const a=c=>c<0&&e.value||c>0&&t.value;return{hasReachedEdge:a,onWheel:c=>{ab(o);const u=c[BH[n.value]];a(s)&&a(s+u)||(s+=u,F2()||c.preventDefault(),o=sb(()=>{r(s),s=0}))}}},Qp=yr({type:ne([Number,Function]),required:!0}),eh=yr({type:Number}),th=yr({type:Number,default:2}),IH=yr({type:String,values:["ltr","rtl"],default:"ltr"}),nh=yr({type:Number,default:0}),Au=yr({type:Number,required:!0}),f5=yr({type:String,values:["horizontal","vertical"],default:Yp}),p5=Pe({className:{type:String,default:""},containerElement:{type:ne([String,Object]),default:"div"},data:{type:ne(Array),default:()=>ln([])},direction:IH,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ne([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),PH=Pe({cache:th,estimatedItemSize:eh,layout:f5,initScrollOffset:nh,total:Au,itemSize:Qp,...p5}),rh={type:Number,default:6},h5={type:Number,default:0},m5={type:Number,default:2};Pe({columnCache:th,columnWidth:Qp,estimatedColumnWidth:eh,estimatedRowHeight:eh,initScrollLeft:nh,initScrollTop:nh,itemKey:{type:ne(Function),default:({columnIndex:t,rowIndex:e})=>`${e}:${t}`},rowCache:th,rowHeight:Qp,totalColumn:Au,totalRow:Au,hScrollbarSize:rh,vScrollbarSize:rh,scrollbarStartGap:h5,scrollbarEndGap:m5,role:String,...p5});const LH=Pe({alwaysOn:Boolean,class:String,layout:f5,total:Au,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:rh,startGap:h5,endGap:m5,visible:Boolean}),oh=(t,e)=>t<e?a5:l5,ih=t=>t===DH||t===Tu||t===ea;let ta=null;function g5(t=!1){if(ta===null||t){const e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?ta=d5:(e.scrollLeft=1,e.scrollLeft===0?ta=Zp:ta=u5),document.body.removeChild(e),ta}return ta}function RH({move:t,size:e,bar:n},r){const o={},s=`translate${n.axis}(${t}px)`;return o[n.size]=e,o.transform=s,o.msTransform=s,o.webkitTransform=s,r==="horizontal"?o.height="100%":o.width="100%",o}const zH=i.defineComponent({name:"ElVirtualScrollBar",props:LH,emits:["scroll","start-move","stop-move"],setup(t,{emit:e}){const n=i.computed(()=>t.startGap+t.endGap),r=Ee("virtual-scrollbar"),o=Ee("scrollbar"),s=i.ref(),a=i.ref();let l=null,c=null;const u=i.reactive({isDragging:!1,traveled:0}),d=i.computed(()=>iy[t.layout]),f=i.computed(()=>t.clientSize-i.unref(n)),p=i.computed(()=>({position:"absolute",width:`${ea===t.layout?f.value:t.scrollbarSize}px`,height:`${ea===t.layout?t.scrollbarSize:f.value}px`,[MH[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=i.computed(()=>{const E=t.ratio,T=t.clientSize;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*T/100;const M=T/3;return Math.floor(Math.min(Math.max(E*T,NH),M))}),m=i.computed(()=>{if(!Number.isFinite(h.value))return{display:"none"};const E=`${h.value}px`;return RH({bar:d.value,size:E,move:u.traveled},t.layout)}),g=i.computed(()=>Math.floor(t.clientSize-h.value-i.unref(n))),b=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",k);const E=i.unref(a);!E||(c=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",C),E.addEventListener("touchend",k))},y=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",k),document.onselectstart=c,c=null;const E=i.unref(a);!E||(E.removeEventListener("touchmove",C),E.removeEventListener("touchend",k))},S=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(u.isDragging=!0,u[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),e("start-move"),b())},k=()=>{u.isDragging=!1,u[d.value.axis]=0,e("stop-move"),y()},C=E=>{const{isDragging:T}=u;if(!T||!a.value||!s.value)return;const M=u[d.value.axis];if(!M)return;ab(l);const D=(s.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,L=a.value[d.value.offset]-M,$=D-L;l=sb(()=>{u.traveled=Math.max(t.startGap,Math.min($,g.value)),e("scroll",$,g.value)})},_=E=>{const T=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),M=a.value[d.value.offset]/2,D=T-M;u.traveled=Math.max(0,Math.min(D,g.value)),e("scroll",D,g.value)};return i.watch(()=>t.scrollFrom,E=>{u.isDragging||(u.traveled=Math.ceil(E*g.value))}),i.onBeforeUnmount(()=>{y()}),()=>i.h("div",{role:"presentation",ref:s,class:[r.b(),t.class,(t.alwaysOn||u.isDragging)&&"always-on"],style:p.value,onMousedown:i.withModifiers(_,["stop","prevent"]),onTouchstartPrevent:S},i.h("div",{ref:a,class:o.e("thumb"),style:m.value,onMousedown:S},[]))}}),FH=(({name:t,getOffset:e,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:s,getStopIndexForStartIndex:a,initCache:l,clearCache:c,validateProps:u})=>i.defineComponent({name:t!=null?t:"ElVirtualList",props:PH,emits:[i5,s5],setup(d,{emit:f,expose:p}){u(d);const h=i.getCurrentInstance(),m=Ee("vl"),g=i.ref(l(d,h)),b=xH(),y=i.ref(),S=i.ref(),k=i.ref(),C=i.ref({isScrolling:!1,scrollDir:"forward",scrollOffset:_t(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),_=i.computed(()=>{const{total:re,cache:de}=d,{isScrolling:fe,scrollDir:Re,scrollOffset:Z}=i.unref(C);if(re===0)return[0,0,0,0];const z=s(d,Z,i.unref(g)),ce=a(d,z,Z,i.unref(g)),ve=!fe||Re===l5?Math.max(1,de):1,Ae=!fe||Re===a5?Math.max(1,de):1;return[Math.max(0,z-ve),Math.max(0,Math.min(re-1,ce+Ae)),z,ce]}),E=i.computed(()=>o(d,i.unref(g))),T=i.computed(()=>ih(d.layout)),M=i.computed(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:_t(d.height)?`${d.height}px`:d.height,width:_t(d.width)?`${d.width}px`:d.width},d.style]),D=i.computed(()=>{const re=i.unref(E),de=i.unref(T);return{height:de?"100%":`${re}px`,pointerEvents:i.unref(C).isScrolling?"none":void 0,width:de?`${re}px`:"100%"}}),L=i.computed(()=>T.value?d.width:d.height),{onWheel:$}=OH({atStartEdge:i.computed(()=>C.value.scrollOffset<=0),atEndEdge:i.computed(()=>C.value.scrollOffset>=E.value),layout:i.computed(()=>d.layout)},re=>{var de,fe;(fe=(de=k.value).onMouseUp)==null||fe.call(de),B(Math.min(C.value.scrollOffset+re,E.value-L.value))}),V=()=>{const{total:re}=d;if(re>0){const[Z,z,ce,ve]=i.unref(_);f(i5,Z,z,ce,ve)}const{scrollDir:de,scrollOffset:fe,updateRequested:Re}=i.unref(C);f(s5,de,fe,Re)},W=re=>{const{clientHeight:de,scrollHeight:fe,scrollTop:Re}=re.currentTarget,Z=i.unref(C);if(Z.scrollOffset===Re)return;const z=Math.max(0,Math.min(Re,fe-de));C.value={...Z,isScrolling:!0,scrollDir:oh(Z.scrollOffset,z),scrollOffset:z,updateRequested:!1},i.nextTick(ae)},ee=re=>{const{clientWidth:de,scrollLeft:fe,scrollWidth:Re}=re.currentTarget,Z=i.unref(C);if(Z.scrollOffset===fe)return;const{direction:z}=d;let ce=fe;if(z===Tu)switch(g5()){case Zp:{ce=-fe;break}case d5:{ce=Re-de-fe;break}}ce=Math.max(0,Math.min(ce,Re-de)),C.value={...Z,isScrolling:!0,scrollDir:oh(Z.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},i.nextTick(ae)},J=re=>{i.unref(T)?ee(re):W(re),V()},I=(re,de)=>{const fe=(E.value-L.value)/de*re;B(Math.min(E.value-L.value,fe))},B=re=>{re=Math.max(re,0),re!==i.unref(C).scrollOffset&&(C.value={...i.unref(C),scrollOffset:re,scrollDir:oh(i.unref(C).scrollOffset,re),updateRequested:!0},i.nextTick(ae))},H=(re,de=Xp)=>{const{scrollOffset:fe}=i.unref(C);re=Math.max(0,Math.min(re,d.total-1)),B(e(d,re,de,fe,i.unref(g)))},K=re=>{const{direction:de,itemSize:fe,layout:Re}=d,Z=b.value(c&&fe,c&&Re,c&&de);let z;if(Wo(Z,String(re)))z=Z[re];else{const ce=r(d,re,i.unref(g)),ve=n(d,re,i.unref(g)),Ae=i.unref(T),qe=de===Tu,rt=Ae?ce:0;Z[re]=z={position:"absolute",left:qe?void 0:`${rt}px`,right:qe?`${rt}px`:void 0,top:Ae?0:`${ce}px`,height:Ae?"100%":`${ve}px`,width:Ae?`${ve}px`:"100%"}}return z},ae=()=>{C.value.isScrolling=!1,i.nextTick(()=>{b.value(-1,null,null)})},ye=()=>{const re=y.value;re&&(re.scrollTop=0)};i.onMounted(()=>{if(!lt)return;const{initScrollOffset:re}=d,de=i.unref(y);_t(re)&&de&&(i.unref(T)?de.scrollLeft=re:de.scrollTop=re),V()}),i.onUpdated(()=>{const{direction:re,layout:de}=d,{scrollOffset:fe,updateRequested:Re}=i.unref(C),Z=i.unref(y);if(Re&&Z)if(de===ea)if(re===Tu)switch(g5()){case Zp:{Z.scrollLeft=-fe;break}case u5:{Z.scrollLeft=fe;break}default:{const{clientWidth:z,scrollWidth:ce}=Z;Z.scrollLeft=ce-z-fe;break}}else Z.scrollLeft=fe;else Z.scrollTop=fe});const le={ns:m,clientSize:L,estimatedTotalSize:E,windowStyle:M,windowRef:y,innerRef:S,innerStyle:D,itemsToRender:_,scrollbarRef:k,states:C,getItemStyle:K,onScroll:J,onScrollbarScroll:I,onWheel:$,scrollTo:B,scrollToItem:H,resetScrollTop:ye};return p({windowRef:y,innerRef:S,getItemStyleCache:b,scrollTo:B,scrollToItem:H,resetScrollTop:ye,states:C}),le},render(d){var f;const{$slots:p,className:h,clientSize:m,containerElement:g,data:b,getItemStyle:y,innerElement:S,itemsToRender:k,innerStyle:C,layout:_,total:E,onScroll:T,onScrollbarScroll:M,onWheel:D,states:L,useIsScrolling:$,windowStyle:V,ns:W}=d,[ee,J]=k,I=i.resolveDynamicComponent(g),B=i.resolveDynamicComponent(S),H=[];if(E>0)for(let le=ee;le<=J;le++)H.push((f=p.default)==null?void 0:f.call(p,{data:b,key:le,index:le,isScrolling:$?L.isScrolling:void 0,style:y(le)}));const K=[i.h(B,{style:C,ref:"innerRef"},vt(B)?H:{default:()=>H})],ae=i.h(zH,{ref:"scrollbarRef",clientSize:m,layout:_,onScroll:M,ratio:m*100/this.estimatedTotalSize,scrollFrom:L.scrollOffset/(this.estimatedTotalSize-m),total:E}),ye=i.h(I,{class:[W.e("window"),h],style:V,onScroll:T,onWheel:D,ref:"windowRef",key:0},vt(I)?[K]:{default:()=>[K]});return i.h("div",{key:0,class:[W.e("wrapper"),L.scrollbarAlwaysOn?"always-on":""]},[ye,ae])}}))({name:"ElFixedSizeList",getItemOffset:({itemSize:t},e)=>e*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:e})=>e*t,getOffset:({height:t,total:e,itemSize:n,layout:r,width:o},s,a,l)=>{const c=ih(r)?o:t,u=Math.max(0,e*n-c),d=Math.min(u,s*n),f=Math.max(0,(s+1)*n-c);switch(a===TH&&(l>=f-c&&l<=d+c?a=Xp:a=c5),a){case AH:return d;case _H:return f;case c5:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(c/2)?0:p>u+Math.floor(c/2)?u:p}case Xp:default:return l>=f&&l<=d?l:l<f?f:d}},getStartIndexForOffset:({total:t,itemSize:e},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getStopIndexForStartIndex:({height:t,total:e,itemSize:n,layout:r,width:o},s,a)=>{const l=s*n,c=ih(r)?o:t,u=Math.ceil((c+a-l)/n);return Math.max(0,Math.min(e-1,s+u-1))},initCache(){},clearCache:!0,validateProps(){}}),$H=Pe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),VH=Pe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),HH=i.defineComponent({name:"ElSkeletonItem"}),jH=i.defineComponent({...HH,props:VH,setup(t){const e=Ee("skeleton");return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(e).e("item"),i.unref(e).e(n.variant)])},[n.variant==="image"?(i.openBlock(),i.createBlock(i.unref(bI),{key:0})):i.createCommentVNode("v-if",!0)],2))}});var _u=xe(jH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const UH=i.defineComponent({name:"ElSkeleton"}),qH=i.defineComponent({...UH,props:$H,setup(t,{expose:e}){const n=t,r=Ee("skeleton"),o=UL(i.toRef(n,"loading"),n.throttle);return e({uiLoading:o}),(s,a)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,class:[i.unref(r).b(),i.unref(r).is("animated",s.animated)]},s.$attrs),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.count,l=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[s.loading?i.renderSlot(s.$slots,"template",{key:l},()=>[i.createVNode(_u,{class:i.normalizeClass(i.unref(r).is("first")),variant:"p"},null,8,["class"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.rows,c=>(i.openBlock(),i.createBlock(_u,{key:c,class:i.normalizeClass([i.unref(r).e("paragraph"),i.unref(r).is("last",c===s.rows&&s.rows>1)]),variant:"p"},null,8,["class"]))),128))]):i.createCommentVNode("v-if",!0)],64))),128))],16)):i.renderSlot(s.$slots,"default",i.normalizeProps(i.mergeProps({key:1},s.$attrs)))}});var WH=xe(qH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const Kr=Lt(WH,{SkeletonItem:_u}),ii=mo(_u),na="$treeNodeId",b5=function(t,e){!e||e[na]||Object.defineProperty(e,na,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},sh=function(t,e){return t?e[t]:e[na]},ah=(t,e,n)=>{const r=t.value.currentNode;n();const o=t.value.currentNode;r!==o&&e("current-change",o?o.data:null,o)},lh=t=>{let e=!0,n=!0,r=!0;for(let o=0,s=t.length;o<s;o++){const a=t[o];(a.checked!==!0||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},Du=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=lh(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const o=t.parent;!o||o.level===0||t.store.checkStrictly||Du(o)},Mu=function(t,e){const n=t.store.props,r=t.data||{},o=n[e];if(typeof o=="function")return o(r,t);if(typeof o=="string")return r[o];if(typeof o=="undefined"){const s=r[e];return s===void 0?"":s}};let KH=0;class Yi{constructor(e){this.id=KH++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)Wo(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf!="undefined"){const s=Mu(this,"isLeaf");typeof s=="boolean"&&(this.isLeafByUser=s)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||b5(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,o=e.key;o&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),o&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||b5(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Mu(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return Mu(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return Mu(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof Yi)){if(!r){const o=this.getChildren(!0);o.includes(e.data)||(typeof n=="undefined"||n<0?o.push(e.data):o.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=i.reactive(new Yi(e)),e instanceof Yi&&e.initialize()}e.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(e);o>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Du(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,o){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:l}=lh(this.childNodes);!this.isLeaf&&!a&&l&&(this.checked=!1,e=!1);const c=()=>{if(n){const u=this.childNodes;for(let p=0,h=u.length;p<h;p++){const m=u[p];o=o||e!==!1;const g=m.disabled?m.checked:o;m.setChecked(g,n,!0,o)}const{half:d,all:f}=lh(u);f||(this.checked=f,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{c(),Du(this)},{checked:e!==!1});return}else c()}const s=this.parent;!s||s.level===0||r||Du(s)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),e&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(s=>s.data),r={},o=[];e.forEach((s,a)=>{const l=s[na];!!l&&n.findIndex(u=>u[na]===l)>=0?r[l]={index:a,data:s}:o.push({index:a,data:s})}),this.store.lazy||n.forEach(s=>{r[s[na]]||this.removeChildByData(s)}),o.forEach(({index:s,data:a})=>{this.insertChild({data:a},s)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)};this.store.load(this,r)}else e&&e.call(this)}}class GH{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)Wo(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new Yi({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,o=function(s){const a=s.root?s.root.childNodes:s.childNodes;if(a.forEach(l=>{l.visible=n.call(l,e,l.data,l),o(l)}),!s.visible&&a.length){let l=!0;l=!a.some(c=>c.visible),s.root?s.root.visible=l===!1:s.visible=l===!1}!e||s.visible&&!s.isLeaf&&!r&&s.expand()};o(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof Yi)return e;const n=Qt(e)?sh(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],o=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(l=>{(l.checked||n&&l.indeterminate)&&(!e||e&&l.isLeaf)&&r.push(l.data),o(l)})};return o(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(s=>{s.indeterminate&&e.push(s.data),n(s)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)Wo(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const o=r.childNodes;for(let s=o.length-1;s>=0;s--){const a=o[s];this.remove(a.data)}for(let s=0,a=n.length;s<a;s++){const l=n[s];this.append(l,r.data)}}_setCheckedKeys(e,n=!1,r){const o=this._getAllNodes().sort((l,c)=>c.level-l.level),s=Object.create(null),a=Object.keys(r);o.forEach(l=>l.setChecked(!1,!1));for(let l=0,c=o.length;l<c;l++){const u=o[l],d=u.data[e].toString();if(!a.includes(d)){u.checked&&!s[d]&&u.setChecked(!1,!1);continue}let p=u.parent;for(;p&&p.level>0;)s[p.data[e]]=!0,p=p.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(m){m.childNodes.forEach(b=>{b.isLeaf||b.setChecked(!1,!1),h(b)})};h(u)}}}setCheckedNodes(e,n=!1){const r=this.key,o={};e.forEach(s=>{o[(s||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,o={};e.forEach(s=>{o[s]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const o=this.getNode(e);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const JH=i.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=Ee("tree"),n=i.inject("NodeInstance"),r=i.inject("RootTree");return()=>{const o=t.node,{data:s,store:a}=o;return t.renderContent?t.renderContent(i.h,{_self:n,node:o,data:s,store:a}):r.ctx.slots.default?r.ctx.slots.default({node:o,data:s}):i.h("span",{class:e.be("node","label")},[o.label])}}});var XH=xe(JH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function y5(t){const e=i.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),i.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(!!t.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const w5=Symbol("dragEvents");function YH({props:t,ctx:e,el$:n,dropIndicator$:r,store:o}){const s=Ee("tree"),a=i.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),l=({event:d,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,e.emit("node-drag-start",f.node,d)},c=({event:d,treeNode:f})=>{const p=f,h=a.value.dropNode;h&&h.node.id!==p.node.id&&Jo(h.$el,s.is("drop-inner"));const m=a.value.draggingNode;if(!m||!p)return;let g=!0,b=!0,y=!0,S=!0;typeof t.allowDrop=="function"&&(g=t.allowDrop(m.node,p.node,"prev"),S=b=t.allowDrop(m.node,p.node,"inner"),y=t.allowDrop(m.node,p.node,"next")),d.dataTransfer.dropEffect=b||g||y?"move":"none",(g||b||y)&&(h==null?void 0:h.node.id)!==p.node.id&&(h&&e.emit("node-drag-leave",m.node,h.node,d),e.emit("node-drag-enter",m.node,p.node,d)),(g||b||y)&&(a.value.dropNode=p),p.node.nextSibling===m.node&&(y=!1),p.node.previousSibling===m.node&&(g=!1),p.node.contains(m.node,!1)&&(b=!1),(m.node===p.node||m.node.contains(p.node))&&(g=!1,b=!1,y=!1);const k=p.$el.querySelector(`.${s.be("node","content")}`).getBoundingClientRect(),C=n.value.getBoundingClientRect();let _;const E=g?b?.25:y?.45:1:-1,T=y?b?.75:g?.55:0:1;let M=-9999;const D=d.clientY-k.top;D<k.height*E?_="before":D>k.height*T?_="after":b?_="inner":_="none";const L=p.$el.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),$=r.value;_==="before"?M=L.top-C.top:_==="after"&&(M=L.bottom-C.top),$.style.top=`${M}px`,$.style.left=`${L.right-C.left}px`,_==="inner"?Yc(p.$el,s.is("drop-inner")):Jo(p.$el,s.is("drop-inner")),a.value.showDropIndicator=_==="before"||_==="after",a.value.allowDrop=a.value.showDropIndicator||S,a.value.dropType=_,e.emit("node-drag-over",m.node,p.node,d)},u=d=>{const{draggingNode:f,dropType:p,dropNode:h}=a.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",f&&h){const m={data:f.node.data};p!=="none"&&f.node.remove(),p==="before"?h.node.parent.insertBefore(m,h.node):p==="after"?h.node.parent.insertAfter(m,h.node):p==="inner"&&h.node.insertChild(m),p!=="none"&&o.value.registerNode(m),Jo(h.$el,s.is("drop-inner")),e.emit("node-drag-end",f.node,h.node,p,d),p!=="none"&&e.emit("node-drop",f.node,h.node,p,d)}f&&!h&&e.emit("node-drag-end",f.node,null,p,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return i.provide(w5,{treeNodeDragStart:l,treeNodeDragOver:c,treeNodeDragEnd:u}),{dragState:a}}const ZH=i.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:O$,ElCheckbox:yl,NodeContent:XH,ElIcon:yt,Loading:rp},props:{node:{type:Yi,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=Ee("tree"),{broadcastExpanded:r}=y5(t),o=i.inject("RootTree"),s=i.ref(!1),a=i.ref(!1),l=i.ref(null),c=i.ref(null),u=i.ref(null),d=i.inject(w5),f=i.getCurrentInstance();i.provide("NodeInstance",f),t.node.expanded&&(s.value=!0,a.value=!0);const p=o.props.children||"children";i.watch(()=>{const D=t.node.data[p];return D&&[...D]},()=>{t.node.updateChildren()}),i.watch(()=>t.node.indeterminate,D=>{g(t.node.checked,D)}),i.watch(()=>t.node.checked,D=>{g(D,t.node.indeterminate)}),i.watch(()=>t.node.expanded,D=>{i.nextTick(()=>s.value=D),D&&(a.value=!0)});const h=D=>sh(o.props.nodeKey,D.data),m=D=>{const L=t.props.class;if(!L)return{};let $;if(St(L)){const{data:V}=D;$=L(V,D)}else $=L;return vt($)?{[$]:!0}:$},g=(D,L)=>{(l.value!==D||c.value!==L)&&o.ctx.emit("check-change",t.node.data,D,L),l.value=D,c.value=L},b=D=>{ah(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(t.node)),o.currentNode.value=t.node,o.props.expandOnClickNode&&S(),o.props.checkOnClickNode&&!t.node.disabled&&k(null,{target:{checked:!t.node.checked}}),o.ctx.emit("node-click",t.node.data,t.node,f,D)},y=D=>{o.instance.vnode.props.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),o.ctx.emit("node-contextmenu",D,t.node.data,t.node,f)},S=()=>{t.node.isLeaf||(s.value?(o.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},k=(D,L)=>{t.node.setChecked(L.target.checked,!o.props.checkStrictly),i.nextTick(()=>{const $=o.store.value;o.ctx.emit("check",t.node.data,{checkedNodes:$.getCheckedNodes(),checkedKeys:$.getCheckedKeys(),halfCheckedNodes:$.getHalfCheckedNodes(),halfCheckedKeys:$.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:s,childNodeRendered:a,oldChecked:l,oldIndeterminate:c,getNodeKey:h,getNodeClass:m,handleSelectChange:g,handleClick:b,handleContextMenu:y,handleExpandIconClick:S,handleCheckChange:k,handleChildNodeExpand:(D,L,$)=>{r(L),o.ctx.emit("node-expand",D,L,$)},handleDragStart:D=>{!o.props.draggable||d.treeNodeDragStart({event:D,treeNode:t})},handleDragOver:D=>{D.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:t.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{!o.props.draggable||d.treeNodeDragEnd(D)},CaretRight:J3}}}),QH=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],ej=["aria-expanded"];function tj(t,e,n,r,o,s){const a=i.resolveComponent("el-icon"),l=i.resolveComponent("el-checkbox"),c=i.resolveComponent("loading"),u=i.resolveComponent("node-content"),d=i.resolveComponent("el-tree-node"),f=i.resolveComponent("el-collapse-transition");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{ref:"node$",class:i.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=i.withModifiers((...p)=>t.handleClick&&t.handleClick(...p),["stop"])),onContextmenu:e[2]||(e[2]=(...p)=>t.handleContextMenu&&t.handleContextMenu(...p)),onDragstart:e[3]||(e[3]=i.withModifiers((...p)=>t.handleDragStart&&t.handleDragStart(...p),["stop"])),onDragover:e[4]||(e[4]=i.withModifiers((...p)=>t.handleDragOver&&t.handleDragOver(...p),["stop"])),onDragend:e[5]||(e[5]=i.withModifiers((...p)=>t.handleDragEnd&&t.handleDragEnd(...p),["stop"])),onDrop:e[6]||(e[6]=i.withModifiers((...p)=>t.handleDrop&&t.handleDrop(...p),["stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(t.ns.be("node","content")),style:i.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(i.openBlock(),i.createBlock(a,{key:0,class:i.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:i.withModifiers(t.handleExpandIconClick,["stop"])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0),t.showCheckbox?(i.openBlock(),i.createBlock(l,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=i.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):i.createCommentVNode("v-if",!0),t.node.loading?(i.openBlock(),i.createBlock(a,{key:2,class:i.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:i.withCtx(()=>[i.createVNode(c)]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),i.createVNode(f,null,{default:i.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.node.childNodes,p=>(i.openBlock(),i.createBlock(d,{key:t.getNodeKey(p),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:p,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,ej)),[[i.vShow,t.expanded]]):i.createCommentVNode("v-if",!0)]),_:1})],42,QH)),[[i.vShow,t.node.visible]])}var nj=xe(ZH,[["render",tj],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function rj({el$:t},e){const n=Ee("tree"),r=i.shallowRef([]),o=i.shallowRef([]);i.onMounted(()=>{a()}),i.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),i.watch(o,l=>{l.forEach(c=>{c.setAttribute("tabindex","-1")})}),$r(t,"keydown",l=>{const c=l.target;if(!c.className.includes(n.b("node")))return;const u=l.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=r.value.indexOf(c);let f;if([Ge.up,Ge.down].includes(u)){if(l.preventDefault(),u===Ge.up){f=d===-1?0:d!==0?d-1:r.value.length-1;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=d===-1?0:d<r.value.length-1?d+1:0;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Ge.left,Ge.right].includes(u)&&(l.preventDefault(),c.click());const p=c.querySelector('[type="checkbox"]');[Ge.enter,Ge.space].includes(u)&&p&&(l.preventDefault(),p.click())});const a=()=>{var l;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const c=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(l=r.value[0])==null||l.setAttribute("tabindex","0")}}const oj=i.defineComponent({name:"ElTree",components:{ElTreeNode:nj},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:wr}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=go(),r=Ee("tree"),o=i.ref(new GH({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const s=i.ref(o.value.root),a=i.ref(null),l=i.ref(null),c=i.ref(null),{broadcastExpanded:u}=y5(t),{dragState:d}=YH({props:t,ctx:e,el$:l,dropIndicator$:c,store:o});rj({el$:l},o);const f=i.computed(()=>{const{childNodes:B}=s.value;return!B||B.length===0||B.every(({visible:H})=>!H)});i.watch(()=>t.currentNodeKey,B=>{o.value.setCurrentNodeKey(B)}),i.watch(()=>t.defaultCheckedKeys,B=>{o.value.setDefaultCheckedKey(B)}),i.watch(()=>t.defaultExpandedKeys,B=>{o.value.setDefaultExpandedKeys(B)}),i.watch(()=>t.data,B=>{o.value.setData(B)},{deep:!0}),i.watch(()=>t.checkStrictly,B=>{o.value.checkStrictly=B});const p=B=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(B)},h=B=>sh(t.nodeKey,B.data),m=B=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const H=o.value.getNode(B);if(!H)return[];const K=[H.data];let ae=H.parent;for(;ae&&ae!==s.value;)K.push(ae.data),ae=ae.parent;return K.reverse()},g=(B,H)=>o.value.getCheckedNodes(B,H),b=B=>o.value.getCheckedKeys(B),y=()=>{const B=o.value.getCurrentNode();return B?B.data:null},S=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=y();return B?B[t.nodeKey]:null},k=(B,H)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(B,H)},C=(B,H)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(B,H)},_=(B,H,K)=>{o.value.setChecked(B,H,K)},E=()=>o.value.getHalfCheckedNodes(),T=()=>o.value.getHalfCheckedKeys(),M=(B,H=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");ah(o,e.emit,()=>o.value.setUserCurrentNode(B,H))},D=(B,H=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");ah(o,e.emit,()=>o.value.setCurrentNodeKey(B,H))},L=B=>o.value.getNode(B),$=B=>{o.value.remove(B)},V=(B,H)=>{o.value.append(B,H)},W=(B,H)=>{o.value.insertBefore(B,H)},ee=(B,H)=>{o.value.insertAfter(B,H)},J=(B,H,K)=>{u(H),e.emit("node-expand",B,H,K)},I=(B,H)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(B,H)};return i.provide("RootTree",{ctx:e,props:t,store:o,root:s,currentNode:a,instance:i.getCurrentInstance()}),i.provide(wo,void 0),{ns:r,store:o,root:s,currentNode:a,dragState:d,el$:l,dropIndicator$:c,isEmpty:f,filter:p,getNodeKey:h,getNodePath:m,getCheckedNodes:g,getCheckedKeys:b,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:C,setChecked:_,getHalfCheckedNodes:E,getHalfCheckedKeys:T,setCurrentNode:M,setCurrentKey:D,t:n,getNode:L,remove:$,append:V,insertBefore:W,insertAfter:ee,handleNodeExpand:J,updateKeyChildren:I}}});function ij(t,e,n,r,o,s){const a=i.resolveComponent("el-tree-node");return i.openBlock(),i.createElementBlock("div",{ref:"el$",class:i.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.root.childNodes,l=>(i.openBlock(),i.createBlock(a,{key:t.getNodeKey(l),node:l,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.ns.e("empty-block"))},[i.renderSlot(t.$slots,"empty",{},()=>{var l;return[i.createElementVNode("span",{class:i.normalizeClass(t.ns.e("empty-text"))},i.toDisplayString((l=t.emptyText)!=null?l:t.t("el.tree.emptyText")),3)]})],2)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("div",{ref:"dropIndicator$",class:i.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[i.vShow,t.dragState.showDropIndicator]])],2)}var Nu=xe(oj,[["render",ij],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Nu.install=t=>{t.component(Nu.name,Nu)};const sj=Nu,ch=Symbol(),aj={key:-1,level:-1,data:{}};var Cl=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(Cl||{}),uh=(t=>(t.ADD="add",t.DELETE="delete",t))(uh||{});const v5={type:Number,default:26},lj=Pe({data:{type:ne(Array),default:()=>ln([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ne(Object),default:()=>ln({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ne(Array),default:()=>ln([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ne(Array),default:()=>ln([])},indent:{type:Number,default:16},itemSize:v5,icon:{type:wr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ne([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ne(Function)},perfMode:{type:Boolean,default:!0}}),cj=Pe({node:{type:ne(Object),default:()=>ln(aj)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:v5}),uj=Pe({node:{type:ne(Object),required:!0}}),C5="node-click",k5="node-expand",S5="node-collapse",E5="current-change",x5="check",T5="check-change",A5="node-contextmenu",dj={[C5]:(t,e,n)=>t&&e&&n,[k5]:(t,e)=>t&&e,[S5]:(t,e)=>t&&e,[E5]:(t,e)=>t&&e,[x5]:(t,e)=>t&&e,[T5]:(t,e)=>t&&typeof e=="boolean",[A5]:(t,e,n)=>t&&e&&n},fj={click:(t,e)=>!!(t&&e),toggle:t=>!!t,check:(t,e)=>t&&typeof e=="boolean"};function pj(t,e){const n=i.ref(new Set),r=i.ref(new Set),{emit:o}=i.getCurrentInstance();i.watch([()=>e.value,()=>t.defaultCheckedKeys],()=>i.nextTick(()=>{S(t.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!e.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:k,maxLevel:C}=e.value,_=n.value,E=new Set;for(let T=C-1;T>=1;--T){const M=k.get(T);!M||M.forEach(D=>{const L=D.children;if(L){let $=!0,V=!1;for(const W of L){const ee=W.key;if(_.has(ee))V=!0;else if(E.has(ee)){$=!1,V=!0;break}else $=!1}$?_.add(D.key):V?(E.add(D.key),_.delete(D.key)):(_.delete(D.key),E.delete(D.key))}})}r.value=E},a=k=>n.value.has(k.key),l=k=>r.value.has(k.key),c=(k,C,_=!0)=>{const E=n.value,T=(M,D)=>{E[D?uh.ADD:uh.DELETE](M.key);const L=M.children;!t.checkStrictly&&L&&L.forEach($=>{$.disabled||T($,D)})};T(k,C),s(),_&&u(k,C)},u=(k,C)=>{const{checkedNodes:_,checkedKeys:E}=m(),{halfCheckedNodes:T,halfCheckedKeys:M}=g();o(x5,k.data,{checkedKeys:E,checkedNodes:_,halfCheckedKeys:M,halfCheckedNodes:T}),o(T5,k.data,C)};function d(k=!1){return m(k).checkedKeys}function f(k=!1){return m(k).checkedNodes}function p(){return g().halfCheckedKeys}function h(){return g().halfCheckedNodes}function m(k=!1){const C=[],_=[];if((e==null?void 0:e.value)&&t.showCheckbox){const{treeNodeMap:E}=e.value;n.value.forEach(T=>{const M=E.get(T);M&&(!k||k&&M.isLeaf)&&(_.push(T),C.push(M.data))})}return{checkedKeys:_,checkedNodes:C}}function g(){const k=[],C=[];if((e==null?void 0:e.value)&&t.showCheckbox){const{treeNodeMap:_}=e.value;r.value.forEach(E=>{const T=_.get(E);T&&(C.push(E),k.push(T.data))})}return{halfCheckedNodes:k,halfCheckedKeys:C}}function b(k){n.value.clear(),r.value.clear(),S(k)}function y(k,C){if((e==null?void 0:e.value)&&t.showCheckbox){const _=e.value.treeNodeMap.get(k);_&&c(_,C,!1)}}function S(k){if(e!=null&&e.value){const{treeNodeMap:C}=e.value;if(t.showCheckbox&&C&&k)for(const _ of k){const E=C.get(_);E&&!a(E)&&c(E,!0,!1)}}}return{updateCheckedKeys:s,toggleCheckbox:c,isChecked:a,isIndeterminate:l,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:b}}function hj(t,e){const n=i.ref(new Set([])),r=i.ref(new Set([])),o=i.computed(()=>St(t.filterMethod));function s(l){var c;if(!o.value)return;const u=new Set,d=r.value,f=n.value,p=[],h=((c=e.value)==null?void 0:c.treeNodes)||[],m=t.filterMethod;f.clear();function g(b){b.forEach(y=>{p.push(y),m!=null&&m(l,y.data)?p.forEach(k=>{u.add(k.key)}):y.isLeaf&&f.add(y.key);const S=y.children;if(S&&g(S),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(S){let k=!0;for(const C of S)if(!f.has(C.key)){k=!1;break}k?d.add(y.key):d.delete(y.key)}}p.pop()})}return g(h),u}function a(l){return r.value.has(l.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:s,isForceHiddenExpandIcon:a}}function mj(t,e){const n=i.ref(new Set(t.defaultExpandedKeys)),r=i.ref(),o=i.shallowRef();i.watch(()=>t.currentNodeKey,z=>{r.value=z},{immediate:!0}),i.watch(()=>t.data,z=>{Re(z)},{immediate:!0});const{isIndeterminate:s,isChecked:a,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:h}=pj(t,o),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=hj(t,o),y=i.computed(()=>{var z;return((z=t.props)==null?void 0:z.value)||Cl.KEY}),S=i.computed(()=>{var z;return((z=t.props)==null?void 0:z.children)||Cl.CHILDREN}),k=i.computed(()=>{var z;return((z=t.props)==null?void 0:z.disabled)||Cl.DISABLED}),C=i.computed(()=>{var z;return((z=t.props)==null?void 0:z.label)||Cl.LABEL}),_=i.computed(()=>{const z=n.value,ce=g.value,ve=[],Ae=o.value&&o.value.treeNodes||[];function qe(){const rt=[];for(let We=Ae.length-1;We>=0;--We)rt.push(Ae[We]);for(;rt.length;){const We=rt.pop();if(!!We&&(ce.has(We.key)||ve.push(We),z.has(We.key))){const ot=We.children;if(ot){const ht=ot.length;for(let pe=ht-1;pe>=0;--pe)rt.push(ot[pe])}}}}return qe(),ve}),E=i.computed(()=>_.value.length>0);function T(z){const ce=new Map,ve=new Map;let Ae=1;function qe(We,ot=1,ht=void 0){var pe;const kt=[];for(const Ve of We){const Ne=L(Ve),Xe={level:ot,key:Ne,data:Ve};Xe.label=V(Ve),Xe.parent=ht;const st=D(Ve);Xe.disabled=$(Ve),Xe.isLeaf=!st||st.length===0,st&&st.length&&(Xe.children=qe(st,ot+1,Xe)),kt.push(Xe),ce.set(Ne,Xe),ve.has(ot)||ve.set(ot,[]),(pe=ve.get(ot))==null||pe.push(Xe)}return ot>Ae&&(Ae=ot),kt}const rt=qe(z);return{treeNodeMap:ce,levelTreeNodeMap:ve,maxLevel:Ae,treeNodes:rt}}function M(z){const ce=m(z);ce&&(n.value=ce)}function D(z){return z[S.value]}function L(z){return z?z[y.value]:""}function $(z){return z[k.value]}function V(z){return z[C.value]}function W(z){n.value.has(z.key)?K(z):H(z)}function ee(z){n.value=new Set(z)}function J(z,ce){e(C5,z.data,z,ce),I(z),t.expandOnClickNode&&W(z),t.showCheckbox&&t.checkOnClickNode&&!z.disabled&&l(z,!a(z),!0)}function I(z){le(z)||(r.value=z.key,e(E5,z.data,z))}function B(z,ce){l(z,ce)}function H(z){const ce=n.value;if(o.value&&t.accordion){const{treeNodeMap:ve}=o.value;ce.forEach(Ae=>{const qe=ve.get(Ae);z&&z.level===(qe==null?void 0:qe.level)&&ce.delete(Ae)})}ce.add(z.key),e(k5,z.data,z)}function K(z){n.value.delete(z.key),e(S5,z.data,z)}function ae(z){return n.value.has(z.key)}function ye(z){return!!z.disabled}function le(z){const ce=r.value;return!!ce&&ce===z.key}function re(){var z,ce;if(!!r.value)return(ce=(z=o.value)==null?void 0:z.treeNodeMap.get(r.value))==null?void 0:ce.data}function de(){return r.value}function fe(z){r.value=z}function Re(z){i.nextTick(()=>o.value=T(z))}function Z(z){var ce;const ve=Qt(z)?L(z):z;return(ce=o.value)==null?void 0:ce.treeNodeMap.get(ve)}return{tree:o,flattenTree:_,isNotEmpty:E,getKey:L,getChildren:D,toggleExpand:W,toggleCheckbox:l,isExpanded:ae,isChecked:a,isIndeterminate:s,isDisabled:ye,isCurrent:le,isForceHiddenExpandIcon:b,handleNodeClick:J,handleNodeCheck:B,getCurrentNode:re,getCurrentKey:de,setCurrentKey:fe,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:h,filter:M,setData:Re,getNode:Z,expandNode:H,collapseNode:K,setExpandedKeys:ee}}var gj=i.defineComponent({name:"ElTreeNodeContent",props:uj,setup(t){const e=i.inject(ch),n=Ee("tree");return()=>{const r=t.node,{data:o}=r;return e!=null&&e.ctx.slots.default?e.ctx.slots.default({node:r,data:o}):i.h("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const bj=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],yj=i.defineComponent({name:"ElTreeNode"}),wj=i.defineComponent({...yj,props:cj,emits:fj,setup(t,{emit:e}){const n=t,r=i.inject(ch),o=Ee("tree"),s=i.computed(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),a=i.computed(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:J3}),l=f=>{e("click",n.node,f)},c=()=>{e("toggle",n.node)},u=f=>{e("check",n.node,f)},d=f=>{var p,h,m,g;(m=(h=(p=r==null?void 0:r.instance)==null?void 0:p.vnode)==null?void 0:h.props)!=null&&m.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(A5,f,(g=n.node)==null?void 0:g.data,n.node)};return(f,p)=>{var h,m,g;return i.openBlock(),i.createElementBlock("div",{ref:"node$",class:i.normalizeClass([i.unref(o).b("node"),i.unref(o).is("expanded",f.expanded),i.unref(o).is("current",f.current),i.unref(o).is("focusable",!f.disabled),i.unref(o).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:i.withModifiers(l,["stop"]),onContextmenu:d},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(o).be("node","content")),style:i.normalizeStyle({paddingLeft:`${(f.node.level-1)*i.unref(s)}px`,height:f.itemSize+"px"})},[i.unref(a)?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass([i.unref(o).is("leaf",!!((m=f.node)!=null&&m.isLeaf)),i.unref(o).is("hidden",f.hiddenExpandIcon),{expanded:!((g=f.node)!=null&&g.isLeaf)&&f.expanded},i.unref(o).be("node","expand-icon")]),onClick:i.withModifiers(c,["stop"])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(a))))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0),f.showCheckbox?(i.openBlock(),i.createBlock(i.unref(yl),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:p[0]||(p[0]=i.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(gj),{node:f.node},null,8,["node"])],6)],42,bj)}}});var vj=xe(wj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Cj=i.defineComponent({name:"ElTreeV2"}),kj=i.defineComponent({...Cj,props:lj,emits:dj,setup(t,{expose:e,emit:n}){const r=t,o=i.useSlots(),s=i.computed(()=>r.itemSize);i.provide(ch,{ctx:{emit:n,slots:o},props:r,instance:i.getCurrentInstance()}),i.provide(wo,void 0);const{t:a}=go(),l=Ee("tree"),{flattenTree:c,isNotEmpty:u,toggleExpand:d,isExpanded:f,isIndeterminate:p,isChecked:h,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:y,handleNodeCheck:S,toggleCheckbox:k,getCurrentNode:C,getCurrentKey:_,setCurrentKey:E,getCheckedKeys:T,getCheckedNodes:M,getHalfCheckedKeys:D,getHalfCheckedNodes:L,setChecked:$,setCheckedKeys:V,filter:W,setData:ee,getNode:J,expandNode:I,collapseNode:B,setExpandedKeys:H}=mj(r,n);return e({toggleCheckbox:k,getCurrentNode:C,getCurrentKey:_,setCurrentKey:E,getCheckedKeys:T,getCheckedNodes:M,getHalfCheckedKeys:D,getHalfCheckedNodes:L,setChecked:$,setCheckedKeys:V,filter:W,setData:ee,getNode:J,expandNode:I,collapseNode:B,setExpandedKeys:H}),(K,ae)=>{var ye;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(l).b(),{[i.unref(l).m("highlight-current")]:K.highlightCurrent}]),role:"tree"},[i.unref(u)?(i.openBlock(),i.createBlock(i.unref(FH),{key:0,"class-name":i.unref(l).b("virtual-list"),data:i.unref(c),total:i.unref(c).length,height:K.height,"item-size":i.unref(s),"perf-mode":K.perfMode},{default:i.withCtx(({data:le,index:re,style:de})=>[(i.openBlock(),i.createBlock(vj,{key:le[re].key,style:i.normalizeStyle(de),node:le[re],expanded:i.unref(f)(le[re]),"show-checkbox":K.showCheckbox,checked:i.unref(h)(le[re]),indeterminate:i.unref(p)(le[re]),"item-size":i.unref(s),disabled:i.unref(m)(le[re]),current:i.unref(g)(le[re]),"hidden-expand-icon":i.unref(b)(le[re]),onClick:i.unref(y),onToggle:i.unref(d),onCheck:i.unref(S)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(l).e("empty-block"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(l).e("empty-text"))},i.toDisplayString((ye=K.emptyText)!=null?ye:i.unref(a)("el.tree.emptyText")),3)],2))],2)}}});var Sj=xe(kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Ej=Lt(Sj),_5=Symbol("uploadContextKey"),xj="ElUpload";class Tj extends Error{constructor(e,n,r,o){super(e),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function D5(t,e,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${e.method} ${t} ${n.status}`,new Tj(r,n.status,e.method,t)}function Aj(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const _j=t=>{typeof XMLHttpRequest=="undefined"&&Fs(xj,"XMLHttpRequest is undefined");const e=new XMLHttpRequest,n=t.action;e.upload&&e.upload.addEventListener("progress",s=>{const a=s;a.percent=s.total>0?s.loaded/s.total*100:0,t.onProgress(a)});const r=new FormData;if(t.data)for(const[s,a]of Object.entries(t.data))Array.isArray(a)?r.append(s,...a):r.append(s,a);r.append(t.filename,t.file,t.file.name),e.addEventListener("error",()=>{t.onError(D5(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(D5(n,t,e));t.onSuccess(Aj(e))}),e.open(t.method,n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const o=t.headers||{};if(o instanceof Headers)o.forEach((s,a)=>e.setRequestHeader(a,s));else for(const[s,a]of Object.entries(o))zs(a)||e.setRequestHeader(s,String(a));return e.send(r),e},M5=["text","picture","picture-card"];let Dj=1;const dh=()=>Date.now()+Dj++,N5=Pe({action:{type:String,default:"#"},headers:{type:ne(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>ln({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:ne(Array),default:()=>ln([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:M5,default:"text"},httpRequest:{type:ne(Function),default:_j},disabled:Boolean,limit:Number}),Mj=Pe({...N5,beforeUpload:{type:ne(Function),default:gt},beforeRemove:{type:ne(Function)},onRemove:{type:ne(Function),default:gt},onChange:{type:ne(Function),default:gt},onPreview:{type:ne(Function),default:gt},onSuccess:{type:ne(Function),default:gt},onProgress:{type:ne(Function),default:gt},onError:{type:ne(Function),default:gt},onExceed:{type:ne(Function),default:gt}}),Nj=Pe({files:{type:ne(Array),default:()=>ln([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ne(Function),default:gt},listType:{type:String,values:M5,default:"text"}}),Bj={remove:t=>!!t},Oj=["onKeydown"],Ij=["src"],Pj=["onClick"],Lj=["title"],Rj=["onClick"],zj=["onClick"],Fj=i.defineComponent({name:"ElUploadList"}),$j=i.defineComponent({...Fj,props:Nj,emits:Bj,setup(t,{emit:e}){const{t:n}=go(),r=Ee("upload"),o=Ee("icon"),s=Ee("list"),a=Zo(),l=i.ref(!1),c=u=>{e("remove",u)};return(u,d)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"ul",class:i.normalizeClass([i.unref(r).b("list"),i.unref(r).bm("list",u.listType),i.unref(r).is("disabled",i.unref(a))]),name:i.unref(s).b()},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.files,f=>(i.openBlock(),i.createElementBlock("li",{key:f.uid||f.name,class:i.normalizeClass([i.unref(r).be("list","item"),i.unref(r).is(f.status),{focusing:l.value}]),tabindex:"0",onKeydown:i.withKeys(p=>!i.unref(a)&&c(f),["delete"]),onFocus:d[0]||(d[0]=p=>l.value=!0),onBlur:d[1]||(d[1]=p=>l.value=!1),onClick:d[2]||(d[2]=p=>l.value=!1)},[i.renderSlot(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(i.unref(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,Ij)):i.createCommentVNode("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(r).be("list","item-info"))},[i.createElementVNode("a",{class:i.normalizeClass(i.unref(r).be("list","item-name")),onClick:i.withModifiers(p=>u.handlePreview(f),["prevent"])},[i.createVNode(i.unref(yt),{class:i.normalizeClass(i.unref(o).m("document"))},{default:i.withCtx(()=>[i.createVNode(i.unref(EO))]),_:1},8,["class"]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(r).be("list","item-file-name")),title:f.name},i.toDisplayString(f.name),11,Lj)],10,Pj),f.status==="uploading"?(i.openBlock(),i.createBlock(i.unref(CH),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:i.normalizeStyle(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("label",{class:i.normalizeClass(i.unref(r).be("list","item-status-label"))},[u.listType==="text"?(i.openBlock(),i.createBlock(i.unref(yt),{key:0,class:i.normalizeClass([i.unref(o).m("upload-success"),i.unref(o).m("circle-check")])},{default:i.withCtx(()=>[i.createVNode(i.unref(np))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(i.openBlock(),i.createBlock(i.unref(yt),{key:1,class:i.normalizeClass([i.unref(o).m("upload-success"),i.unref(o).m("check")])},{default:i.withCtx(()=>[i.createVNode(i.unref(X3))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2),i.unref(a)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.unref(yt),{key:2,class:i.normalizeClass(i.unref(o).m("close")),onClick:p=>c(f)},{default:i.withCtx(()=>[i.createVNode(i.unref(qi))]),_:2},1032,["class","onClick"])),i.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),i.createCommentVNode(" This is a bug which needs to be fixed "),i.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),i.unref(a)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("i",{key:3,class:i.normalizeClass(i.unref(o).m("close-tip"))},i.toDisplayString(i.unref(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(i.unref(r).be("list","item-actions"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(r).be("list","item-preview")),onClick:p=>u.handlePreview(f)},[i.createVNode(i.unref(yt),{class:i.normalizeClass(i.unref(o).m("zoom-in"))},{default:i.withCtx(()=>[i.createVNode(i.unref(uP))]),_:1},8,["class"])],10,Rj),i.unref(a)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(r).be("list","item-delete")),onClick:p=>c(f)},[i.createVNode(i.unref(yt),{class:i.normalizeClass(i.unref(o).m("delete"))},{default:i.withCtx(()=>[i.createVNode(i.unref(yO))]),_:1},8,["class"])],10,zj))],2)):i.createCommentVNode("v-if",!0)])],42,Oj))),128)),i.renderSlot(u.$slots,"append")]),_:3},8,["class","name"]))}});var B5=xe($j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Vj=Pe({disabled:{type:Boolean,default:!1}}),Hj={file:t=>Vr(t)},jj=["onDrop","onDragover"],O5="ElUploadDrag",Uj=i.defineComponent({name:O5}),qj=i.defineComponent({...Uj,props:Vj,emits:Hj,setup(t,{emit:e}){const n=i.inject(_5);n||Fs(O5,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Ee("upload"),o=i.ref(!1),s=Zo(),a=c=>{if(s.value)return;o.value=!1,c.stopPropagation();const u=Array.from(c.dataTransfer.files),d=n.accept.value;if(!d){e("file",u);return}const f=u.filter(p=>{const{type:h,name:m}=p,g=m.includes(".")?`.${m.split(".").pop()}`:"",b=h.replace(/\/.*$/,"");return d.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?g===y:/\/\*$/.test(y)?b===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});e("file",f)},l=()=>{s.value||(o.value=!0)};return(c,u)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(r).b("dragger"),i.unref(r).is("dragover",o.value)]),onDrop:i.withModifiers(a,["prevent"]),onDragover:i.withModifiers(l,["prevent"]),onDragleave:u[0]||(u[0]=i.withModifiers(d=>o.value=!1,["prevent"]))},[i.renderSlot(c.$slots,"default")],42,jj))}});var Wj=xe(qj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const Kj=Pe({...N5,beforeUpload:{type:ne(Function),default:gt},onRemove:{type:ne(Function),default:gt},onStart:{type:ne(Function),default:gt},onSuccess:{type:ne(Function),default:gt},onProgress:{type:ne(Function),default:gt},onError:{type:ne(Function),default:gt},onExceed:{type:ne(Function),default:gt}}),Gj=["onKeydown"],Jj=["name","multiple","accept"],Xj=i.defineComponent({name:"ElUploadContent",inheritAttrs:!1}),Yj=i.defineComponent({...Xj,props:Kj,setup(t,{expose:e}){const n=t,r=Ee("upload"),o=Zo(),s=i.shallowRef({}),a=i.shallowRef(),l=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:y,multiple:S,onStart:k,onExceed:C}=n;if(b&&y.length+m.length>b){C(m,y);return}S||(m=m.slice(0,1));for(const _ of m){const E=_;E.uid=dh(),k(E),g&&c(E)}},c=async m=>{if(a.value.value="",!n.beforeUpload)return u(m);let g,b={};try{const S=n.data,k=n.beforeUpload(m);b=Qt(n.data)?L3(n.data):n.data,g=await k,Qt(n.data)&&Xc(S,b)&&(b=L3(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let y=m;g instanceof Blob&&(g instanceof File?y=g:y=new File([g],m.name,{type:m.type})),u(Object.assign(y,{uid:m.uid}),b)},u=(m,g)=>{const{headers:b,data:y,method:S,withCredentials:k,name:C,action:_,onProgress:E,onSuccess:T,onError:M,httpRequest:D}=n,{uid:L}=m,$={headers:b||{},withCredentials:k,file:m,data:g!=null?g:y,method:S,filename:C,action:_,onProgress:W=>{E(W,m)},onSuccess:W=>{T(W,m),delete s.value[L]},onError:W=>{M(W,m),delete s.value[L]}},V=D($);s.value[L]=V,V instanceof Promise&&V.then($.onSuccess,$.onError)},d=m=>{const g=m.target.files;!g||l(Array.from(g))},f=()=>{o.value||(a.value.value="",a.value.click())},p=()=>{f()};return e({abort:m=>{wB(s.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete s.value[b]})},upload:c}),(m,g)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).m(m.listType),i.unref(r).is("drag",m.drag)]),tabindex:"0",onClick:f,onKeydown:i.withKeys(i.withModifiers(p,["self"]),["enter","space"])},[m.drag?(i.openBlock(),i.createBlock(Wj,{key:0,disabled:i.unref(o),onFile:l},{default:i.withCtx(()=>[i.renderSlot(m.$slots,"default")]),_:3},8,["disabled"])):i.renderSlot(m.$slots,"default",{key:1}),i.createElementVNode("input",{ref_key:"inputRef",ref:a,class:i.normalizeClass(i.unref(r).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:d,onClick:g[0]||(g[0]=i.withModifiers(()=>{},["stop"]))},null,42,Jj)],42,Gj))}});var I5=xe(Yj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const P5="ElUpload",Zj=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},Qj=(t,e)=>{const n=$T(t,"fileList",void 0,{passive:!0}),r=p=>n.value.find(h=>h.uid===p.uid);function o(p){var h;(h=e.value)==null||h.abort(p)}function s(p=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!p.includes(h.status))}const a=(p,h)=>{const m=r(h);!m||(console.error(p),m.status="fail",n.value.splice(n.value.indexOf(m),1),t.onError(p,m,n.value),t.onChange(m,n.value))},l=(p,h)=>{const m=r(h);!m||(t.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},c=(p,h)=>{const m=r(h);!m||(m.status="success",m.response=p,t.onSuccess(p,m,n.value),t.onChange(m,n.value))},u=p=>{zs(p.uid)&&(p.uid=dh());const h={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(t.listType==="picture-card"||t.listType==="picture")try{h.url=URL.createObjectURL(p)}catch(m){m.message,t.onError(m,h,n.value)}n.value=[...n.value,h],t.onChange(h,n.value)},d=async p=>{const h=p instanceof File?r(p):p;h||Fs(P5,"file to be removed not found");const m=g=>{o(g);const b=n.value;b.splice(b.indexOf(g),1),t.onRemove(g,b),Zj(g)};t.beforeRemove?await t.beforeRemove(h,n.value)!==!1&&m(h):m(h)};function f(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var h;return p&&((h=e.value)==null?void 0:h.upload(p))})}return i.watch(()=>t.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(h=>{const{raw:m,url:g}=h;if(!g&&m)try{h.url=URL.createObjectURL(m)}catch(b){t.onError(b,h,n.value)}return h}))}),i.watch(n,p=>{for(const h of p)h.uid||(h.uid=dh()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:s,handleError:a,handleProgress:l,handleStart:u,handleSuccess:c,handleRemove:d,submit:f}},eU=i.defineComponent({name:"ElUpload"}),tU=i.defineComponent({...eU,props:Mj,setup(t,{expose:e}){const n=t,r=i.useSlots(),o=Zo(),s=i.shallowRef(),{abort:a,submit:l,clearFiles:c,uploadFiles:u,handleStart:d,handleError:f,handleRemove:p,handleSuccess:h,handleProgress:m}=Qj(n,s),g=i.computed(()=>n.listType==="picture-card"),b=i.computed(()=>({...n,fileList:u.value,onStart:d,onProgress:m,onSuccess:h,onError:f,onRemove:p}));return i.onBeforeUnmount(()=>{u.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),i.provide(_5,{accept:i.toRef(n,"accept")}),e({abort:a,submit:l,clearFiles:c,handleStart:d,handleRemove:p}),(y,S)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(g)&&y.showFileList?(i.openBlock(),i.createBlock(B5,{key:0,disabled:i.unref(o),"list-type":y.listType,files:i.unref(u),"handle-preview":y.onPreview,onRemove:i.unref(p)},i.createSlots({append:i.withCtx(()=>[i.createVNode(I5,i.mergeProps({ref_key:"uploadRef",ref:s},i.unref(b)),{default:i.withCtx(()=>[i.unref(r).trigger?i.renderSlot(y.$slots,"trigger",{key:0}):i.createCommentVNode("v-if",!0),!i.unref(r).trigger&&i.unref(r).default?i.renderSlot(y.$slots,"default",{key:1}):i.createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:i.withCtx(({file:k})=>[i.renderSlot(y.$slots,"file",{file:k})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):i.createCommentVNode("v-if",!0),!i.unref(g)||i.unref(g)&&!y.showFileList?(i.openBlock(),i.createBlock(I5,i.mergeProps({key:1,ref_key:"uploadRef",ref:s},i.unref(b)),{default:i.withCtx(()=>[i.unref(r).trigger?i.renderSlot(y.$slots,"trigger",{key:0}):i.createCommentVNode("v-if",!0),!i.unref(r).trigger&&i.unref(r).default?i.renderSlot(y.$slots,"default",{key:1}):i.createCommentVNode("v-if",!0)]),_:3},16)):i.createCommentVNode("v-if",!0),y.$slots.trigger?i.renderSlot(y.$slots,"default",{key:2}):i.createCommentVNode("v-if",!0),i.renderSlot(y.$slots,"tip"),!i.unref(g)&&y.showFileList?(i.openBlock(),i.createBlock(B5,{key:3,disabled:i.unref(o),"list-type":y.listType,files:i.unref(u),"handle-preview":y.onPreview,onRemove:i.unref(p)},i.createSlots({_:2},[y.$slots.file?{name:"default",fn:i.withCtx(({file:k})=>[i.renderSlot(y.$slots,"file",{file:k})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):i.createCommentVNode("v-if",!0)]))}});var nU=xe(tU,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const L5=Lt(nU);function rU(t){let e;const n=i.ref(!1),r=i.reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function o(p){r.text=p}function s(){const p=r.parent,h=f.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(Jo(p,h.bm("parent","relative")),p.removeAttribute("loading-number")),Jo(p,h.bm("parent","hidden"))}a(),d.unmount()}function a(){var p,h;(h=(p=f.$el)==null?void 0:p.parentNode)==null||h.removeChild(f.$el)}function l(){var p;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(c,400),r.visible=!1,(p=t.closed)==null||p.call(t))}function c(){if(!n.value)return;const p=r.parent;n.value=!1,p.vLoadingAddClassList=void 0,s()}const u=i.defineComponent({name:"ElLoading",setup(p,{expose:h}){const{ns:m,zIndex:g}=wp("loading");return h({ns:m,zIndex:g}),()=>{const b=r.spinner||r.svg,y=i.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[i.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),S=r.text?i.h("p",{class:m.b("text")},[r.text]):void 0;return i.h(i.Transition,{name:m.b("fade"),onAfterLeave:c},{default:i.withCtx(()=>[i.withDirectives(i.createVNode("div",{style:{backgroundColor:r.background||""},class:[m.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[i.h("div",{class:m.b("spinner")},[y,S])]),[[i.vShow,r.visible]])])})}}}),d=i.createApp(u),f=d.mount(document.createElement("div"));return{...i.toRefs(r),setText:o,removeElLoadingChild:a,close:l,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let Bu;const fh=function(t={}){if(!lt)return;const e=oU(t);if(e.fullscreen&&Bu)return Bu;const n=rU({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(Bu=void 0)}});iU(e,e.parent,n),R5(e,e.parent,n),e.parent.vLoadingAddClassList=()=>R5(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),i.nextTick(()=>n.visible.value=e.visible),e.fullscreen&&(Bu=n),n},oU=t=>{var e,n,r,o;let s;return vt(t.target)?s=(e=document.querySelector(t.target))!=null?e:document.body:s=t.target||document.body,{parent:s===document.body||t.body?document.body:s,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:s===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(r=t.lock)!=null?r:!1,customClass:t.customClass||"",visible:(o=t.visible)!=null?o:!0,target:s}},iU=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(t.fullscreen)n.originalPosition.value=$s(document.body,"position"),n.originalOverflow.value=$s(document.body,"overflow"),o.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=$s(document.body,"position"),await i.nextTick();for(const s of["top","left"]){const a=s==="top"?"scrollTop":"scrollLeft";o[s]=`${t.target.getBoundingClientRect()[s]+document.body[a]+document.documentElement[a]-Number.parseInt($s(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${t.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=$s(e,"position");for(const[s,a]of Object.entries(o))n.$el.style[s]=a},R5=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Jo(e,r.bm("parent","relative")):Yc(e,r.bm("parent","relative")),t.fullscreen&&t.lock?Yc(e,r.bm("parent","hidden")):Jo(e,r.bm("parent","hidden"))},ph=Symbol("ElLoading"),z5=(t,e)=>{var n,r,o,s;const a=e.instance,l=p=>Qt(e.value)?e.value[p]:void 0,c=p=>{const h=vt(p)&&(a==null?void 0:a[p])||p;return h&&i.ref(h)},u=p=>c(l(p)||t.getAttribute(`element-loading-${KT(p)}`)),d=(n=l("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=l("target"))!=null?r:d?void 0:t,body:(o=l("body"))!=null?o:e.modifiers.body,lock:(s=l("lock"))!=null?s:e.modifiers.lock};t[ph]={options:f,instance:fh(f)}},sU=(t,e)=>{for(const n of Object.keys(e))i.isRef(e[n])&&(e[n].value=t[n])},F5={mounted(t,e){e.value&&z5(t,e)},updated(t,e){const n=t[ph];e.oldValue!==e.value&&(e.value&&!e.oldValue?z5(t,e):e.value&&e.oldValue?Qt(e.value)&&sU(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[ph])==null||e.instance.close()}},aU={install(t){t.directive("loading",F5),t.config.globalProperties.$loading=fh},directive:F5,service:fh},$5=["success","info","warning","error"],_n=ln({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:lt?document.body:void 0}),lU=Pe({customClass:{type:String,default:_n.customClass},center:{type:Boolean,default:_n.center},dangerouslyUseHTMLString:{type:Boolean,default:_n.dangerouslyUseHTMLString},duration:{type:Number,default:_n.duration},icon:{type:wr,default:_n.icon},id:{type:String,default:_n.id},message:{type:ne([String,Object,Function]),default:_n.message},onClose:{type:ne(Function),required:!1},showClose:{type:Boolean,default:_n.showClose},type:{type:String,values:$5,default:_n.type},offset:{type:Number,default:_n.offset},zIndex:{type:Number,default:_n.zIndex},grouping:{type:Boolean,default:_n.grouping},repeatNum:{type:Number,default:_n.repeatNum}}),cU={destroy:()=>!0},Sr=i.shallowReactive([]),uU=t=>{const e=Sr.findIndex(o=>o.id===t),n=Sr[e];let r;return e>0&&(r=Sr[e-1]),{current:n,prev:r}},dU=t=>{const{prev:e}=uU(t);return e?e.vm.exposed.bottom.value:0},fU=(t,e)=>Sr.findIndex(r=>r.id===t)>0?20:e,pU=["id"],hU=["innerHTML"],mU=i.defineComponent({name:"ElMessage"}),gU=i.defineComponent({...mU,props:lU,emits:cU,setup(t,{expose:e}){const n=t,{Close:r}=tb,{ns:o,zIndex:s}=wp("message"),{currentZIndex:a,nextZIndex:l}=s,c=i.ref(),u=i.ref(!1),d=i.ref(0);let f;const p=i.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=i.computed(()=>{const T=n.type;return{[o.bm("icon",T)]:T&&eu[T]}}),m=i.computed(()=>n.icon||eu[n.type]||""),g=i.computed(()=>dU(n.id)),b=i.computed(()=>fU(n.id,n.offset)+g.value),y=i.computed(()=>d.value+b.value),S=i.computed(()=>({top:`${b.value}px`,zIndex:a.value}));function k(){n.duration!==0&&({stop:f}=Af(()=>{_()},n.duration))}function C(){f==null||f()}function _(){u.value=!1}function E({code:T}){T===Ge.esc&&_()}return i.onMounted(()=>{k(),l(),u.value=!0}),i.watch(()=>n.repeatNum,()=>{C(),k()}),$r(document,"keydown",E),Ps(c,()=>{d.value=c.value.getBoundingClientRect().height}),e({visible:u,bottom:y,close:_}),(T,M)=>(i.openBlock(),i.createBlock(i.Transition,{name:i.unref(o).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:M[0]||(M[0]=D=>T.$emit("destroy")),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{id:T.id,ref_key:"messageRef",ref:c,class:i.normalizeClass([i.unref(o).b(),{[i.unref(o).m(T.type)]:T.type&&!T.icon},i.unref(o).is("center",T.center),i.unref(o).is("closable",T.showClose),T.customClass]),style:i.normalizeStyle(i.unref(S)),role:"alert",onMouseenter:C,onMouseleave:k},[T.repeatNum>1?(i.openBlock(),i.createBlock(i.unref(TF),{key:0,value:T.repeatNum,type:i.unref(p),class:i.normalizeClass(i.unref(o).e("badge"))},null,8,["value","type","class"])):i.createCommentVNode("v-if",!0),i.unref(m)?(i.openBlock(),i.createBlock(i.unref(yt),{key:1,class:i.normalizeClass([i.unref(o).e("icon"),i.unref(h)])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(m))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.renderSlot(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),i.createElementVNode("p",{class:i.normalizeClass(i.unref(o).e("content")),innerHTML:T.message},null,10,hU)],2112)):(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(i.unref(o).e("content"))},i.toDisplayString(T.message),3))]),T.showClose?(i.openBlock(),i.createBlock(i.unref(yt),{key:2,class:i.normalizeClass(i.unref(o).e("closeBtn")),onClick:i.withModifiers(_,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(r))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],46,pU),[[i.vShow,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var bU=xe(gU,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let yU=1;const V5=t=>{const e=!t||vt(t)||i.isVNode(t)||St(t)?{message:t}:t,n={..._n,...e};if(!n.appendTo)n.appendTo=document.body;else if(vt(n.appendTo)){let r=document.querySelector(n.appendTo);Go(r)||(r=document.body),n.appendTo=r}return n},wU=t=>{const e=Sr.indexOf(t);if(e===-1)return;Sr.splice(e,1);const{handler:n}=t;n.close()},vU=({appendTo:t,...e},n)=>{const r=`message_${yU++}`,o=e.onClose,s=document.createElement("div"),a={...e,id:r,onClose:()=>{o==null||o(),wU(d)},onDestroy:()=>{i.render(null,s)}},l=i.createVNode(bU,a,St(a.message)||i.isVNode(a.message)?{default:St(a.message)?a.message:()=>a.message}:null);l.appContext=n||ra._context,i.render(l,s),t.appendChild(s.firstElementChild);const c=l.component,d={id:r,vnode:l,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:l.component.props};return d},ra=(t={},e)=>{if(!lt)return{close:()=>{}};if(_t(vp.max)&&Sr.length>=vp.max)return{close:()=>{}};const n=V5(t);if(n.grouping&&Sr.length){const o=Sr.find(({vnode:s})=>{var a;return((a=s.props)==null?void 0:a.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=vU(n,e);return Sr.push(r),r.handler};$5.forEach(t=>{ra[t]=(e={},n)=>{const r=V5(e);return ra({...r,type:t},n)}});function CU(t){for(const e of Sr)(!t||t===e.props.type)&&e.handler.close()}ra.closeAll=CU,ra._context=null;const Dn=pP(ra,"$message"),kU=i.defineComponent({name:"ElMessageBox",directives:{TrapFocus:XF},components:{ElButton:nn,ElFocusTrap:Lp,ElInput:Qo,ElOverlay:Vy,ElIcon:yt,...tb},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ob},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:e}){const{locale:n,zIndex:r,ns:o,size:s}=wp("message-box",i.computed(()=>t.buttonSize)),{t:a}=n,{nextZIndex:l}=r,c=i.ref(!1),u=i.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=i.computed(()=>{const J=u.type;return{[o.bm("icon",J)]:J&&eu[J]}}),f=yo(),p=yo(),h=i.computed(()=>u.icon||eu[u.type]||""),m=i.computed(()=>!!u.message),g=i.ref(),b=i.ref(),y=i.ref(),S=i.ref(),k=i.ref(),C=i.computed(()=>u.confirmButtonClass);i.watch(()=>u.inputValue,async J=>{await i.nextTick(),t.boxType==="prompt"&&J!==null&&$()},{immediate:!0}),i.watch(()=>c.value,J=>{var I,B;J&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(B=(I=k.value)==null?void 0:I.$el)!=null?B:g.value:y.value=g.value),u.zIndex=l()),t.boxType==="prompt"&&(J?i.nextTick().then(()=>{var H;S.value&&S.value.$el&&(u.autofocus?y.value=(H=V())!=null?H:g.value:y.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const _=i.computed(()=>t.draggable);lb(g,b,_),i.onMounted(async()=>{await i.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",E)}),i.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){!c.value||(c.value=!1,i.nextTick(()=>{u.action&&e("action",u.action)}))}const T=()=>{t.closeOnClickModal&&L(u.distinguishCancelAndClose?"close":"cancel")},M=bp(T),D=J=>{if(u.inputType!=="textarea")return J.preventDefault(),L("confirm")},L=J=>{var I;t.boxType==="prompt"&&J==="confirm"&&!$()||(u.action=J,u.beforeClose?(I=u.beforeClose)==null||I.call(u,J,u,E):E())},$=()=>{if(t.boxType==="prompt"){const J=u.inputPattern;if(J&&!J.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const I=u.inputValidator;if(typeof I=="function"){const B=I(u.inputValue);if(B===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof B=="string")return u.editorErrorMessage=B,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},V=()=>{const J=S.value.$refs;return J.input||J.textarea},W=()=>{L("close")},ee=()=>{t.closeOnPressEscape&&W()};return t.lockScroll&&mb(c),{...i.toRefs(u),ns:o,overlayEvent:M,visible:c,hasMessage:m,typeClass:d,contentId:f,inputId:p,btnSize:s,iconComponent:h,confirmButtonClasses:C,rootRef:g,focusStartRef:y,headerRef:b,inputRef:S,confirmRef:k,doClose:E,handleClose:W,onCloseRequested:ee,handleWrapperClick:T,handleInputEnter:D,handleAction:L,t:a}}}),SU=["aria-label","aria-describedby"],EU=["aria-label"],xU=["id"];function TU(t,e,n,r,o,s){const a=i.resolveComponent("el-icon"),l=i.resolveComponent("close"),c=i.resolveComponent("el-input"),u=i.resolveComponent("el-button"),d=i.resolveComponent("el-focus-trap"),f=i.resolveComponent("el-overlay");return i.openBlock(),i.createBlock(i.Transition,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=p=>t.$emit("vanish")),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createVNode(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:i.withCtx(()=>[i.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:i.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...p)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...p)),onMousedown:e[9]||(e[9]=(...p)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...p)),onMouseup:e[10]||(e[10]=(...p)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...p))},[i.createVNode(d,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:i.withCtx(()=>[i.createElementVNode("div",{ref:"rootRef",class:i.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:i.normalizeStyle(t.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=i.withModifiers(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"headerRef",class:i.normalizeClass(t.ns.e("header"))},[i.createElementVNode("div",{class:i.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(i.openBlock(),i.createBlock(a,{key:0,class:i.normalizeClass([t.ns.e("status"),t.typeClass])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",null,i.toDisplayString(t.title),1)],2),t.showClose?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:i.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:e[0]||(e[0]=p=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=i.withKeys(i.withModifiers(p=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[i.createVNode(a,{class:i.normalizeClass(t.ns.e("close"))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1},8,["class"])],42,EU)):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{id:t.contentId,class:i.normalizeClass(t.ns.e("content"))},[i.createElementVNode("div",{class:i.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(i.openBlock(),i.createBlock(a,{key:0,class:i.normalizeClass([t.ns.e("status"),t.typeClass])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),t.hasMessage?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.ns.e("message"))},[i.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):i.createCommentVNode("v-if",!0)],2),i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(t.ns.e("input"))},[i.createVNode(c,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":e[2]||(e[2]=p=>t.inputValue=p),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:i.normalizeClass({invalid:t.validateError}),onKeydown:i.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),i.createElementVNode("div",{class:i.normalizeClass(t.ns.e("errormsg")),style:i.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},i.toDisplayString(t.editorErrorMessage),7)],2),[[i.vShow,t.showInput]])],10,xU),i.createElementVNode("div",{class:i.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(i.openBlock(),i.createBlock(u,{key:0,loading:t.cancelButtonLoading,class:i.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:e[3]||(e[3]=p=>t.handleAction("cancel")),onKeydown:e[4]||(e[4]=i.withKeys(i.withModifiers(p=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:i.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:e[5]||(e[5]=p=>t.handleAction("confirm")),onKeydown:e[6]||(e[6]=i.withKeys(i.withModifiers(p=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[i.vShow,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,SU)]),_:3},8,["z-index","overlay-class","mask"]),[[i.vShow,t.visible]])]),_:3})}var AU=xe(kU,[["render",TU],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const kl=new Map,_U=t=>{let e=document.body;return t.appendTo&&(vt(t.appendTo)&&(e=document.querySelector(t.appendTo)),Go(t.appendTo)&&(e=t.appendTo),Go(e)||(e=document.body)),e},DU=(t,e,n=null)=>{const r=i.createVNode(AU,t,St(t.message)||i.isVNode(t.message)?{default:St(t.message)?t.message:()=>t.message}:null);return r.appContext=n,i.render(r,e),_U(t).appendChild(e.firstElementChild),r.component},MU=()=>document.createElement("div"),NU=(t,e)=>{const n=MU();t.onVanish=()=>{i.render(null,n),kl.delete(o)},t.onAction=s=>{const a=kl.get(o);let l;t.showInput?l={value:o.inputValue,action:s}:l=s,t.callback?t.callback(l,r.proxy):s==="cancel"||s==="close"?t.distinguishCancelAndClose&&s!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(l)};const r=DU(t,n,e),o=r.proxy;for(const s in t)Wo(t,s)&&!Wo(o.$props,s)&&(o[s]=t[s]);return o.visible=!0,o};function oa(t,e=null){if(!lt)return Promise.reject();let n;return vt(t)||i.isVNode(t)?t={message:t}:n=t.callback,new Promise((r,o)=>{const s=NU(t,e!=null?e:oa._context);kl.set(s,{options:t,callback:n,resolve:r,reject:o})})}const BU=["alert","confirm","prompt"],OU={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};BU.forEach(t=>{oa[t]=IU(t)});function IU(t){return(e,n,r,o)=>{let s="";return Qt(n)?(r=n,s=""):el(n)?s="":s=n,oa(Object.assign({title:s,message:e,type:"",...OU[t]},r,{boxType:t}),o)}}oa.close=()=>{kl.forEach((t,e)=>{e.doClose()}),kl.clear()},oa._context=null;const si=oa;si.install=t=>{si._context=t._context,t.config.globalProperties.$msgbox=si,t.config.globalProperties.$messageBox=si,t.config.globalProperties.$alert=si.alert,t.config.globalProperties.$confirm=si.confirm,t.config.globalProperties.$prompt=si.prompt};const H5=si;var Uie="",qie="",Wie="";function PU(){}function j5(t,e,n){return t<e?e:t>n?n:t}function LU(t){const e=new FileReader;return new Promise((n,r)=>{e.onload=o=>n(o.target.result),e.onerror=r,e.readAsDataURL(t)})}const RU=i.defineComponent({components:{ElTooltip:wu,VIcon:D2},props:{icon:{type:String,required:!0},disabled:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},tooltip:{type:String,required:!0},enableTooltip:{type:Boolean,required:!0},command:{type:Function,default:PU},buttonIcon:{type:String,required:!1,default:""},readonly:{type:Boolean,default:!1}},computed:{commandButtonClass(){return{"el-tiptap-editor__command-button":!0,"el-tiptap-editor__command-button--active":this.isActive,"el-tiptap-editor__command-button--readonly":this.readonly||this.disabled}}},methods:{onClick(){!this.readonly&&!this.disabled&&this.command()}}}),zU=["innerHTML"];function FU(t,e,n,r,o,s){const a=i.resolveComponent("v-icon"),l=i.resolveComponent("el-tooltip");return i.openBlock(),i.createBlock(l,{content:t.tooltip,"show-after":350,disabled:!t.enableTooltip||t.readonly,effect:"dark","popper-class":"tooltip-up",placement:"top",enterable:!1},{default:i.withCtx(()=>[t.buttonIcon?(i.openBlock(),i.createElementBlock("div",{key:1,innerHTML:t.buttonIcon,class:i.normalizeClass(t.commandButtonClass),onMousedown:e[2]||(e[2]=i.withModifiers(()=>{},["prevent"])),onClick:e[3]||(e[3]=(...c)=>t.onClick&&t.onClick(...c))},null,42,zU)):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.commandButtonClass),onMousedown:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),onClick:e[1]||(e[1]=(...c)=>t.onClick&&t.onClick(...c))},[i.createVNode(a,{name:t.icon,"button-icon":t.buttonIcon},null,8,["name","button-icon"])],34))]),_:1},8,["content","disabled"])}var Ue=tt(RU,[["render",FU]]);const $U=i.defineComponent({name:"OpenLinkCommandButton",components:{CommandButton:Ue},props:{editor:{type:It,required:!0},url:{type:String,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}},methods:{openLink(){if(this.url){const t=window.open();t&&(t.opener=null,t.location.href=this.url)}}}});function VU(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createBlock(a,{command:t.openLink,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Link.open.tooltip"),icon:"external-link","button-icon":t.buttonIcon},null,8,["command","enable-tooltip","tooltip","button-icon"])}var HU=tt($U,[["render",VU]]),Kie="",Gie="",Jie="",Xie="",Yie="",Zie="",Qie="";const jU=i.defineComponent({name:"EditLinkCommandButton",components:{ElDialog:Qs,ElForm:_p,ElFormItem:Dp,ElInput:Qo,ElCheckbox:yl,ElButton:nn,CommandButton:Ue},props:{editor:{type:It,required:!0},initLinkAttrs:{type:Object,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}},data(){return{linkAttrs:this.initLinkAttrs,editLinkDialogVisible:!1}},computed:{placeholder(){var t,e;return(e=(t=this.editor.extensionManager.extensions.find(n=>n.name==="link"))==null?void 0:t.options)==null?void 0:e.editLinkPlaceholder}},methods:{updateLinkAttrs(){this.editor.commands.setLink(this.linkAttrs),this.closeEditLinkDialog()},openEditLinkDialog(){this.editLinkDialogVisible=!0},closeEditLinkDialog(){this.editLinkDialogVisible=!1}}});function UU(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-input"),c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-checkbox"),d=i.resolveComponent("el-form"),f=i.resolveComponent("el-button"),p=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{command:t.openEditLinkDialog,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Link.edit.tooltip"),icon:"edit","button-icon":t.buttonIcon},null,8,["command","enable-tooltip","tooltip","button-icon"]),i.createVNode(p,{title:t.t("editor.extensions.Link.edit.control.title"),modelValue:t.editLinkDialogVisible,"onUpdate:modelValue":e[3]||(e[3]=h=>t.editLinkDialogVisible=h),"append-to-body":!0,width:"400px",class:"el-tiptap-edit-link-dialog"},{footer:i.withCtx(()=>[i.createVNode(f,{size:"small",round:"",onClick:t.closeEditLinkDialog},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.edit.control.cancel")),1)]),_:1},8,["onClick"]),i.createVNode(f,{type:"primary",size:"small",round:"",onMousedown:e[2]||(e[2]=i.withModifiers(()=>{},["prevent"])),onClick:t.updateLinkAttrs},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.edit.control.confirm")),1)]),_:1},8,["onClick"])]),default:i.withCtx(()=>[i.createVNode(d,{model:t.linkAttrs,"label-position":"right",size:"small"},{default:i.withCtx(()=>[i.createVNode(c,{label:t.t("editor.extensions.Link.edit.control.href"),prop:"href"},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:t.linkAttrs.href,"onUpdate:modelValue":e[0]||(e[0]=h=>t.linkAttrs.href=h),autocomplete:"off",placeholder:t.placeholder},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i.createVNode(c,{prop:"openInNewTab"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.linkAttrs.openInNewTab,"onUpdate:modelValue":e[1]||(e[1]=h=>t.linkAttrs.openInNewTab=h)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.edit.control.open_in_new_tab")),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}var qU=tt(jU,[["render",UU]]);const WU=i.defineComponent({name:"UnlinkCommandButton",components:{CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}}});function KU(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createBlock(a,{command:()=>t.editor.commands.unsetLink(),"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Link.unlink.tooltip"),icon:"unlink","button-icon":t.buttonIcon},null,8,["command","enable-tooltip","tooltip","button-icon"])}var GU=tt(WU,[["render",KU]]),ese="";const JU=i.defineComponent({name:"LinkBubbleMenu",components:{OpenLinkCommandButton:HU,EditLinkCommandButton:qU,UnlinkCommandButton:GU},props:{editor:{type:It,required:!0}},computed:{linkAttrs(){return this.editor.getAttributes("link")}}}),XU={class:"link-bubble-menu"};function YU(t,e,n,r,o,s){const a=i.resolveComponent("open-link-command-button"),l=i.resolveComponent("edit-link-command-button"),c=i.resolveComponent("unlink-command-button");return i.openBlock(),i.createElementBlock("div",XU,[i.renderSlot(t.$slots,"prepend"),i.createVNode(a,{url:t.linkAttrs.href,editor:t.editor},null,8,["url","editor"]),i.createVNode(l,{editor:t.editor,"init-link-attrs":t.linkAttrs},null,8,["editor","init-link-attrs"]),i.createVNode(c,{editor:t.editor},null,8,["editor"])])}var ZU=tt(JU,[["render",YU]]);const QU=i.defineComponent({name:"MenuBubble",components:{BubbleMenu:Fx,LinkBubbleMenu:ZU,VIcon:D2},props:{editor:{type:It,required:!0},menuBubbleOptions:{type:Object,default:()=>({})}},data(){return{activeMenu:"none",isLinkBack:!1}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},computed:{bubbleMenuEnable(){return this.linkMenuEnable||this.textMenuEnable},linkMenuEnable(){const{schema:t}=this.editor;return!!t.marks.link},textMenuEnable(){return this.editor.extensionManager.extensions.some(e=>e.options.bubble)},isLinkSelection(){const{state:t}=this.editor,{tr:e}=t,{selection:n}=e;return this.$_isLinkSelection(n)}},watch:{"editor.state.selection":function(t){this.$_isLinkSelection(t)?this.isLinkBack||this.setMenuType("link"):(this.activeMenu=this.$_getCurrentMenuType(),this.isLinkBack=!1)}},methods:{generateCommandButtonComponentSpecs(){var e;return(e=this.editor.extensionManager.extensions.reduce((n,r)=>{if(!r.options.bubble)return n;const{button:o}=r.options;if(!o||typeof o!="function")return n;const s=o({editor:this.editor,t:this.t,extension:r});return Array.isArray(s)?[...n,...s.map(a=>({...a,priority:r.options.priority}))]:[...n,{...s,priority:r.options.priority}]},[]))==null?void 0:e.sort((n,r)=>r.priority-n.priority)},linkBack(){this.setMenuType("default"),this.isLinkBack=!0},setMenuType(t){this.activeMenu=t},$_isLinkSelection(t){const{schema:e}=this.editor,n=e.marks.link;if(!n||!t)return!1;const{$from:r,$to:o}=t,s=Pa(r,n);return s?s.to===o.pos:!1},$_getCurrentMenuType(){return this.isLinkSelection?"link":this.editor.state.selection instanceof Be||this.editor.state.selection instanceof vn?"default":"none"}}});function eq(t,e,n,r,o,s){const a=i.resolveComponent("v-icon"),l=i.resolveComponent("link-bubble-menu"),c=i.resolveComponent("bubble-menu");return t.editor?i.withDirectives((i.openBlock(),i.createBlock(c,{key:0,editor:t.editor},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-editor__menu-bubble--active":t.bubbleMenuEnable},"el-tiptap-editor__menu-bubble"])},[t.activeMenu==="link"?(i.openBlock(),i.createBlock(l,{key:0,editor:t.editor},{prepend:i.withCtx(()=>[t.textMenuEnable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"el-tiptap-editor__command-button",onMousedown:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),onClick:e[1]||(e[1]=(...u)=>t.linkBack&&t.linkBack(...u))},[i.createVNode(a,{name:"arrow-left"})],32)):i.createCommentVNode("",!0)]),_:1},8,["editor"])):t.activeMenu==="default"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.generateCommandButtonComponentSpecs(),(u,d)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.component),i.mergeProps({key:"command-button"+d,"enable-tooltip":t.enableTooltip},u.componentProps,{readonly:t.isCodeViewMode},i.toHandlers(u.componentEvents||{})),null,16,["enable-tooltip","readonly"]))),128)):i.createCommentVNode("",!0)],2)]),_:1},8,["editor"])),[[i.vShow,t.activeMenu!=="none"]]):i.createCommentVNode("",!0)}var tq=tt(QU,[["render",eq]]),tse="";const nq={class:"el-tiptap-editor__right-sidebar"},rq=i.createElementVNode("h2",{class:"outline__title"},"TABLE OF CONTENTS",-1),oq=i.defineComponent({__name:"MenuRightSidebar",props:{editor:{type:It,required:!0}},setup(t){const e=t,n=i.ref(!1),r=i.computed(()=>s.value.map(d=>d.id)),o=()=>{const u=[],d=e.editor;if(!d)return[];const f=d.state.tr;return f?(d.state.doc.descendants((p,h)=>{if(p.type.name==="heading"){const m=h,g=h+p.nodeSize,b=`heading-${u.length+1}`;p.attrs.id!==b&&f.setNodeMarkup(h,void 0,{...p.attrs,id:b}),u.push({node:p,pos:h,level:p.attrs.level,text:p.textContent,start:m,end:g,id:b})}}),f.setMeta("addToHistory",!1),f.setMeta("preventUpdate",!0),d.view.dispatch(f),u):[]},s=i.ref([]),a=u=>{const d=[];s.value=[];for(let f=0;f<u.length;f++){const p=u[f],{level:h,text:m,id:g}=p,b={id:g,label:m,children:[]};d.push(b);let y=!1;for(let S=f-1;S>=0;S--)if(u[S].level<h){d[S].children.push(b),y=!0;break}y||s.value.push(b)}},l=()=>{const u=o();a(u),s.value=s.value.slice(),n.value=!0},c=()=>{n.value=!1};return i.onMounted(()=>{o()}),(u,d)=>(i.openBlock(),i.createElementBlock("div",nq,[i.createElementVNode("div",{class:"trigger-area",onMouseover:l,onMouseleave:c},null,32),i.createElementVNode("div",{class:i.normalizeClass(["sidebar",{open:n.value}]),onMouseover:l,onMouseleave:c},[rq,i.createVNode(i.unref(sj),{class:"sidebarTree","node-key":"id","default-expanded-keys":r.value,data:s.value,props:{label:"label",children:"children"},height:650},null,8,["default-expanded-keys","data"])],34)]))}});var nse="",rse="";const iq={class:"el-tiptap-editor__left-sidebar"},sq={__name:"MenuLeftSidebar",setup(t){const e=i.ref(!1),n=i.ref([{id:1,label:"2023/9/15",children:[{id:2,label:"\u9879\u76EE\u7ED3\u6784"},{id:3,label:"\u603B\u4F53\u601D\u8DEF"}]},{id:4,label:"2023/9/17",children:[{id:5,label:"\u96BE\u70B9"},{id:6,label:"\u601D\u8DEF\uFF08\u4E00\uFF09"},{id:7,label:"\u601D\u8DEF\uFF08\u4E8C\uFF09"}]},{id:8,label:"2023/9/20",children:[{id:9,label:"\u91CD\u65B0\u67B6\u6784\u601D\u8DEF"}]}]),r=i.ref({label:"label",children:"children"}),o=i.ref([]),s=()=>{e.value=!0},a=()=>{e.value=!1};return i.onMounted(()=>{n.value.forEach(l=>{l.children&&o.value.push(l.id)})}),(l,c)=>(i.openBlock(),i.createElementBlock("div",iq,[i.createElementVNode("div",{class:"trigger-area",onMouseover:s,onMouseleave:a},null,32),i.createElementVNode("div",{class:i.normalizeClass(["sidebar",{open:e.value}]),onMouseover:s,onMouseleave:a},[i.createVNode(i.unref(Ej),{data:n.value,height:300,props:r.value,"default-expanded-keys":o.value},null,8,["data","props","default-expanded-keys"])],34)]))}};var ose="";const aq=i.defineComponent({name:"ElementTiptap",components:{MenuLeftSidebar:sq,MenuRightSidebar:oq,EditorContent:$x,MenuBar:hT,MenuBubble:tq},props:{content:{validator:t=>typeof t=="object"||typeof t=="string",default:""},extensions:{type:Array,default:()=>[]},placeholder:{type:String,default:""},lang:{type:String,default:"en"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0},output:{type:String,default:"html",validator(t){return["html","json"].includes(t)}},spellcheck:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},enableCharCount:{type:Boolean,default:!0},editorProps:{type:Object,default:()=>({})},charCountMax:{type:Number,default:void 0},editorClass:{type:[String,Array,Object],default:void 0},editorContentClass:{type:[String,Array,Object],default:void 0},editorMenubarClass:{type:[String,Array,Object],default:void 0},editorBubbleMenuClass:{type:[String,Array,Object],default:void 0},editorFooterClass:{type:[String,Array,Object],default:void 0}},setup(t,{emit:e}){const n=t.extensions.concat([Ux.configure({emptyEditorClass:"el-tiptap-editor--empty",emptyNodeClass:"el-tiptap-editor__placeholder",showOnlyCurrent:!1,placeholder:()=>t.placeholder}),t.enableCharCount?qx.configure({limit:t.charCountMax}):null]).filter(Boolean),r=({editor:k})=>{let C;t.output==="html"?C=k.getHTML():C=k.getJSON(),e("update:content",C),e("onUpdate",C,k)};let o=[];n.map(k=>{var C,_,E,T,M,D;(((_=(C=k==null?void 0:k.parent)==null?void 0:C.config)==null?void 0:_.nessesaryExtensions)||((E=k==null?void 0:k.config)==null?void 0:E.nessesaryExtensions))&&(o=[...o,...((M=(T=k==null?void 0:k.parent)==null?void 0:T.config)==null?void 0:M.nessesaryExtensions)||((D=k==null?void 0:k.config)==null?void 0:D.nessesaryExtensions)])});const s=[],a={};for(let k=0;k<o.length;k++){const C=o[k],_=C.name;a[_]||(a[_]=!0,s.push(C))}const l=[...n,...s],c=Hx({content:t.content,extensions:l.map((k,C)=>k.options.priority?k:k.configure({priority:l.length-C})),editable:!t.readonly,onCreate:k=>{e("onCreate",k)},onTransaction:k=>{e("onTransaction",k)},onFocus:k=>{e("onFocus",k)},onBlur:k=>{e("onBlur",k)},onDestroy:k=>{e("onDestroy",k)},onUpdate:r});i.watchEffect(()=>{var k;(k=i.unref(c))==null||k.setOptions({editorProps:{attributes:{spellcheck:String(t.spellcheck)},...t.editorProps},editable:!t.readonly})});const u=A2.buildI18nHandler(t.lang),d=(...k)=>u.apply(A2,k),f=i.ref(!1),p=k=>{f.value=k};i.provide("isFullscreen",f),i.provide("toggleFullscreen",p),i.provide("enableTooltip",t.tooltip);const{isCodeViewMode:h,cmTextAreaRef:m}=cT(c);i.provide("isCodeViewMode",h);const{characters:g}=lT(c),b=i.computed(()=>t.enableCharCount&&!i.unref(h));function y(k){c.value&&c.value.commands.setContent(k)}const S=uT({width:t.width,height:t.height});return i.provide("t",d),i.provide("et",this),{t:d,editor:c,characters:g,showFooter:b,isFullscreen:f,isCodeViewMode:h,cmTextAreaRef:m,editorStyle:S,setContent:y}}}),lq={ref:"cmTextAreaRef"},cq={class:"el-tiptap-editor__characters"};function uq(t,e,n,r,o,s){const a=i.resolveComponent("MenuRightSidebar"),l=i.resolveComponent("menu-bubble"),c=i.resolveComponent("menu-bar"),u=i.resolveComponent("editor-content");return t.editor?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(t.editorStyle),class:i.normalizeClass([{"el-tiptap-editor":!0,"el-tiptap-editor--fullscreen":t.isFullscreen,"el-tiptap-editor--with-footer":t.showFooter},t.editorClass])},[i.createElementVNode("div",null,[i.createVNode(a,{editor:t.editor},null,8,["editor"])]),i.createElementVNode("div",null,[i.createVNode(l,{editor:t.editor,class:i.normalizeClass(t.editorBubbleMenuClass)},null,8,["editor","class"])]),i.createElementVNode("div",null,[i.createVNode(c,{editor:t.editor,class:i.normalizeClass(t.editorMenubarClass)},null,8,["editor","class"])]),t.isCodeViewMode?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({"el-tiptap-editor__codemirror":!0,"border-bottom-radius":t.isCodeViewMode})},[i.createElementVNode("textarea",lq,null,512)],2)):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(u,{editor:t.editor,class:i.normalizeClass([{"el-tiptap-editor__content":!0},t.editorContentClass])},null,8,["editor","class"]),[[i.vShow,!t.isCodeViewMode]]),t.showFooter?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([{"el-tiptap-editor__footer":!0},t.editorFooterClass])},[i.createElementVNode("span",cq,i.toDisplayString(t.t("editor.characters"))+": "+i.toDisplayString(t.characters),1)],2)):i.createCommentVNode("",!0)],6)):i.createCommentVNode("",!0)}var hh=tt(aq,[["render",uq]]);const dq=({editor:t,query:e})=>t.extensionManager.extensions.flatMap(n=>{const r=n.options.commandList&&Object.values(n.options.commandList);return Array.isArray(r)?r:[]}).filter(n=>{var r,o;return((o=(r=n==null?void 0:n.title)==null?void 0:r.toLowerCase())==null?void 0:o.startsWith(e==null?void 0:e.toLowerCase()))&&(n==null?void 0:n.disabled)===!1}).slice(0,7),fq={props:{items:Array,command:Function,editor:It},data(){return{selectedIndex:0}},watch:{items(t,e){t!==e&&(this.selectedIndex=0)}},methods:{upHandler(){this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length},downHandler(){this.selectedIndex=(this.selectedIndex+1)%this.items.length},enterHandler(){this.selectItem(this.selectedIndex)},selectItem(t){const e=this.items[t];e&&this.command(e)},onKeyDown({event:t}){return t.key==="ArrowUp"?(this.upHandler(),!0):t.key==="ArrowDown"?(this.downHandler(),!0):t.key==="Enter"?(this.enterHandler(),!0):!1}}},pq={class:"command-list"};function hq(t,e,n,r,o,s){const a=i.resolveComponent("el-tag");return i.openBlock(),i.createElementBlock("div",pq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,c)=>(i.openBlock(),i.createBlock(a,{key:c,size:"small",effect:l.isActive(n.editor)&&c===o.selectedIndex?"dark":l.isActive(n.editor)?"light":c===o.selectedIndex?"plain":"light",type:l.isActive(n.editor)||c===o.selectedIndex?"":"info",class:i.normalizeClass({"command-list__selected-active":l.isActive(n.editor)&&c===o.selectedIndex}),onClick:u=>s.selectItem(c)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.element||l.title),1)]),_:2},1032,["effect","type","class","onClick"]))),128))])}var mq=tt(fq,[["render",hq]]);const gq=()=>{let t,e;return{onStart:n=>{t=new S2(mq,{props:n,editor:n.editor}),e=$i("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,theme:"command",trigger:"manual",placement:"bottom-start"})},onUpdate(n){t.updateProps(n),e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var r;return n.event.key==="Escape"?(e[0].hide(),!0):(r=t.ref)==null?void 0:r.onKeyDown(n)},onExit(){e[0].destroy(),t.destroy()}}},bq=ut.create({name:"text",group:"inline"}),yq=ut.create({name:"doc",topNode:!0,content:"block+"}),wq=ut.create({name:"title",content:"inline*",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),placeholder:""}},parseHTML(){return[{tag:"h1"}]},renderHTML({HTMLAttributes:t}){return["h1",Ye(t),0]}}),vq=yq.extend({addOptions(){return{title:!1}},content(){return this.options.title?"title block+":"block+"},addExtensions(){return this.options.title?[wq]:[]}}),Cq=ut.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kq=ut.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Ye(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},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=>Tc({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ise="",sse="",ase="",lse="";const Sq=i.defineComponent({name:"HeadingDropdown",components:{ElDropdown:wl,ElDropdownMenu:vl,ElDropdownItem:An,CommandButton:Ue},props:{editor:{type:Ra,required:!0},levels:{type:Array,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},methods:{toggleHeading(t){t>0?this.editor.commands.toggleHeading({level:t}):this.editor.commands.setParagraph()}}}),Eq={key:1};function xq(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-dropdown-item"),c=i.resolveComponent("el-dropdown-menu"),u=i.resolveComponent("el-dropdown");return i.openBlock(),i.createBlock(u,{placement:"bottom",trigger:"click","popper-class":"el-tiptap-dropdown-popper",onCommand:t.toggleHeading,"popper-options":{modifiers:[{name:"computeStyles",options:{adaptive:!1}}]}},{dropdown:i.withCtx(()=>[i.createVNode(c,{class:"el-tiptap-dropdown-menu"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([0,...t.levels],d=>(i.openBlock(),i.createBlock(l,{key:d,command:d},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-dropdown-menu__item--active":d>0?t.editor.isActive("heading",{level:d}):t.editor.isActive("paragraph")},"el-tiptap-dropdown-menu__item"])},[d>0?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("h"+d),{key:0,"data-item-type":"heading"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Heading.buttons.heading"))+" "+i.toDisplayString(d),1)]),_:2},1024)):(i.openBlock(),i.createElementBlock("span",Eq,i.toDisplayString(t.t("editor.extensions.Heading.buttons.paragraph")),1))],2)]),_:2},1032,["command"]))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,"is-active":t.editor.isActive("heading"),tooltip:t.t("editor.extensions.Heading.tooltip"),readonly:t.isCodeViewMode,"button-icon":t.buttonIcon,icon:"heading"},null,8,["enable-tooltip","is-active","tooltip","readonly","button-icon"])])]),_:1},8,["onCommand"])}var Tq=tt(Sq,[["render",xq]]);const Aq=kq.extend({addOptions(){var t,e,n;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:(n=(e=this.parent)==null?void 0:e.call(this))==null?void 0:n.levels.concat([0]).map(r=>({title:r>0?`h ${r}`:"paragraph",command:({editor:o,range:s})=>{r>0?o.chain().focus().deleteRange(s).toggleHeading({level:r}).run():o.chain().focus().deleteRange(s).setParagraph().run()},disabled:!1,isActive(o){return r>0?o.isActive("heading",{level:r}):o.isActive("paragraph")}})),button({editor:r,extension:o}){return{component:Tq,componentProps:{levels:o.options.levels,editor:r,buttonIcon:o.options.buttonIcon}}}}}}),_q=/^\s*>\s$/,Dq=ut.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Ye(this.options.HTMLAttributes,t),0]},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[Ds({find:_q,type:this.type})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"blockquote",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).toggleBlockquote().run()},disabled:!1,isActive(e){return e.isActive("blockquote")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleBlockquote()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("blockquote"),icon:"quote-right",tooltip:r("editor.extensions.Blockquote.tooltip")}}}}}}),Mq=/^```([a-z]+)?[\s\n]$/,Nq=/^~~~([a-z]+)?[\s\n]$/,U5=ut.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,s=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Ye(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const s=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(`
`);return!s||!a?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const l=o.after();return l===void 0||r.nodeAt(l)?!1:t.commands.exitCode()}}},addInputRules(){return[Tc({find:Mq,type:this.type,getAttributes:t=>({language:t[1]})}),Tc({find:Nq,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new wt({key:new Ot("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=o==null?void 0:o.mode;if(!n||!s)return!1;const{tr:a}=t.state;return a.replaceSelectionWith(this.type.create({language:s})),a.setSelection(Be.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.insertText(n.replace(/\r\n?/g,`
`)),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}}),Bq=U5.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"codeBlock",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleCodeBlock().run()},disabled:!1,isActive(e){return e.isActive("codeBlock")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleCodeBlock()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("codeBlock"),icon:"code",tooltip:r("editor.extensions.CodeBlock.tooltip")}}}}}});var mh={exports:{}};function gh(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];typeof n=="object"&&!Object.isFrozen(n)&&gh(n)}),t}mh.exports=gh,mh.exports.default=gh;class q5{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function W5(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ai(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const Oq="</span>",K5=t=>!!t.scope||t.sublanguage&&t.language,Iq=(t,{prefix:e})=>{if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class Pq{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=W5(e)}openNode(e){if(!K5(e))return;let n="";e.sublanguage?n=`language-${e.language}`:n=Iq(e.scope,{prefix:this.classPrefix}),this.span(n)}closeNode(e){!K5(e)||(this.buffer+=Oq)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const G5=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class bh{constructor(){this.rootNode=G5(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=G5({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&(!e.children||(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{bh._collapse(n)})))}}class Lq extends bh{constructor(e){super(),this.options=e}addKeyword(e,n){e!==""&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,n){const r=e.root;r.sublanguage=!0,r.language=n,this.add(r)}toHTML(){return new Pq(this,this.options).value()}finalize(){return!0}}function Sl(t){return t?typeof t=="string"?t:t.source:null}function J5(t){return Zi("(?=",t,")")}function Rq(t){return Zi("(?:",t,")*")}function zq(t){return Zi("(?:",t,")?")}function Zi(...t){return t.map(n=>Sl(n)).join("")}function Fq(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function yh(...t){const e=Fq(t);return"("+(e.capture?"":"?:")+t.map(r=>Sl(r)).join("|")+")"}function X5(t){return new RegExp(t.toString()+"|").exec("").length-1}function $q(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Vq=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function wh(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=Sl(r),a="";for(;s.length>0;){const l=Vq.exec(s);if(!l){a+=s;break}a+=s.substring(0,l.index),s=s.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?a+="\\"+String(Number(l[1])+o):(a+=l[0],l[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const Hq=/\b\B/,Y5="[a-zA-Z]\\w*",vh="[a-zA-Z_]\\w*",Z5="\\b\\d+(\\.\\d+)?",Q5="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e6="\\b(0b[01]+)",jq="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Uq=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Zi(e,/.*\b/,t.binary,/\b.*/)),ai({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},El={begin:"\\\\[\\s\\S]",relevance:0},qq={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[El]},Wq={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[El]},Kq={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Ou=function(t,e,n={}){const r=ai({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=yh("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Zi(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Gq=Ou("//","$"),Jq=Ou("/\\*","\\*/"),Xq=Ou("#","$"),Yq={scope:"number",begin:Z5,relevance:0},Zq={scope:"number",begin:Q5,relevance:0},Qq={scope:"number",begin:e6,relevance:0},eW={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[El,{begin:/\[/,end:/\]/,relevance:0,contains:[El]}]}]},tW={scope:"title",begin:Y5,relevance:0},nW={scope:"title",begin:vh,relevance:0},rW={begin:"\\.\\s*"+vh,relevance:0};var Iu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Hq,IDENT_RE:Y5,UNDERSCORE_IDENT_RE:vh,NUMBER_RE:Z5,C_NUMBER_RE:Q5,BINARY_NUMBER_RE:e6,RE_STARTERS_RE:jq,SHEBANG:Uq,BACKSLASH_ESCAPE:El,APOS_STRING_MODE:qq,QUOTE_STRING_MODE:Wq,PHRASAL_WORDS_MODE:Kq,COMMENT:Ou,C_LINE_COMMENT_MODE:Gq,C_BLOCK_COMMENT_MODE:Jq,HASH_COMMENT_MODE:Xq,NUMBER_MODE:Yq,C_NUMBER_MODE:Zq,BINARY_NUMBER_MODE:Qq,REGEXP_MODE:eW,TITLE_MODE:tW,UNDERSCORE_TITLE_MODE:nW,METHOD_GUARD:rW,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function oW(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function iW(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function sW(t,e){!e||!t.beginKeywords||(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=oW,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function aW(t,e){!Array.isArray(t.illegal)||(t.illegal=yh(...t.illegal))}function lW(t,e){if(!!t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function cW(t,e){t.relevance===void 0&&(t.relevance=1)}const uW=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Zi(n.beforeMatch,J5(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},dW=["of","and","for","in","not","or","if","then","parent","list","value"],fW="keyword";function t6(t,e,n=fW){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,t6(t[s],e,s))}),r;function o(s,a){e&&(a=a.map(l=>l.toLowerCase())),a.forEach(function(l){const c=l.split("|");r[c[0]]=[s,pW(c[0],c[1])]})}}function pW(t,e){return e?Number(e):hW(t)?0:1}function hW(t){return dW.includes(t.toLowerCase())}const n6={},Qi=t=>{console.error(t)},r6=(t,...e)=>{console.log(`WARN: ${t}`,...e)},ia=(t,e)=>{n6[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),n6[`${t}/${e}`]=!0)},Pu=new Error;function o6(t,e,{key:n}){let r=0;const o=t[n],s={},a={};for(let l=1;l<=e.length;l++)a[l+r]=o[l],s[l+r]=!0,r+=X5(e[l-1]);t[n]=a,t[n]._emit=s,t[n]._multi=!0}function mW(t){if(!!Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Qi("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Pu;if(typeof t.beginScope!="object"||t.beginScope===null)throw Qi("beginScope must be object"),Pu;o6(t,t.begin,{key:"beginScope"}),t.begin=wh(t.begin,{joinWith:""})}}function gW(t){if(!!Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Qi("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Pu;if(typeof t.endScope!="object"||t.endScope===null)throw Qi("endScope must be object"),Pu;o6(t,t.end,{key:"endScope"}),t.end=wh(t.end,{joinWith:""})}}function bW(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function yW(t){bW(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),mW(t),gW(t)}function wW(t){function e(a,l){return new RegExp(Sl(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(l?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,l]),this.matchAt+=X5(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(c=>c[1]);this.matcherRe=e(wh(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(l);if(!c)return null;const u=c.findIndex((f,p)=>p>0&&f!==void 0),d=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,d)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const c=new n;return this.rules.slice(l).forEach(([u,d])=>c.addRule(u,d)),c.compile(),this.multiRegexes[l]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,c){this.rules.push([l,c]),c.type==="begin"&&this.count++}exec(l){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(l);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,u=d.exec(l)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function o(a){const l=new r;return a.contains.forEach(c=>l.addRule(c.begin,{rule:c,type:"begin"})),a.terminatorEnd&&l.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&l.addRule(a.illegal,{type:"illegal"}),l}function s(a,l){const c=a;if(a.isCompiled)return c;[iW,lW,yW,uW].forEach(d=>d(a,l)),t.compilerExtensions.forEach(d=>d(a,l)),a.__beforeBegin=null,[sW,aW,cW].forEach(d=>d(a,l)),a.isCompiled=!0;let u=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),u=a.keywords.$pattern,delete a.keywords.$pattern),u=u||/\w+/,a.keywords&&(a.keywords=t6(a.keywords,t.case_insensitive)),c.keywordPatternRe=e(u,!0),l&&(a.begin||(a.begin=/\B|\b/),c.beginRe=e(c.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(c.endRe=e(c.end)),c.terminatorEnd=Sl(c.end)||"",a.endsWithParent&&l.terminatorEnd&&(c.terminatorEnd+=(a.end?"|":"")+l.terminatorEnd)),a.illegal&&(c.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(d){return vW(d==="self"?a:d)})),a.contains.forEach(function(d){s(d,c)}),a.starts&&s(a.starts,l),c.matcher=o(c),c}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ai(t.classNameAliases||{}),s(t)}function i6(t){return t?t.endsWithParent||i6(t.starts):!1}function vW(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ai(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:i6(t)?ai(t,{starts:t.starts?ai(t.starts):null}):Object.isFrozen(t)?ai(t):t}var CW="11.6.0";class kW extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Ch=W5,s6=ai,a6=Symbol("nomatch"),SW=7;var xl=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Lq};function c(I){return l.noHighlightRe.test(I)}function u(I){let B=I.className+" ";B+=I.parentNode?I.parentNode.className:"";const H=l.languageDetectRe.exec(B);if(H){const K=D(H[1]);return K||(r6(s.replace("{}",H[1])),r6("Falling back to no-highlight mode for this block.",I)),K?H[1]:"no-highlight"}return B.split(/\s+/).find(K=>c(K)||D(K))}function d(I,B,H){let K="",ae="";typeof B=="object"?(K=I,H=B.ignoreIllegals,ae=B.language):(ia("10.7.0","highlight(lang, code, ...args) has been deprecated."),ia("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),ae=I,K=B),H===void 0&&(H=!0);const ye={code:K,language:ae};ee("before:highlight",ye);const le=ye.result?ye.result:f(ye.language,ye.code,H);return le.code=ye.code,ee("after:highlight",le),le}function f(I,B,H,K){const ae=Object.create(null);function ye(R,G){return R.keywords[G]}function le(){if(!pe.keywords){Ve.addText(Ne);return}let R=0;pe.keywordPatternRe.lastIndex=0;let G=pe.keywordPatternRe.exec(Ne),me="";for(;G;){me+=Ne.substring(R,G.index);const ze=We.case_insensitive?G[0].toLowerCase():G[0],at=ye(pe,ze);if(at){const[yn,ki]=at;if(Ve.addText(me),me="",ae[ze]=(ae[ze]||0)+1,ae[ze]<=SW&&(Xe+=ki),yn.startsWith("_"))me+=G[0];else{const Si=We.classNameAliases[yn]||yn;Ve.addKeyword(G[0],Si)}}else me+=G[0];R=pe.keywordPatternRe.lastIndex,G=pe.keywordPatternRe.exec(Ne)}me+=Ne.substring(R),Ve.addText(me)}function re(){if(Ne==="")return;let R=null;if(typeof pe.subLanguage=="string"){if(!e[pe.subLanguage]){Ve.addText(Ne);return}R=f(pe.subLanguage,Ne,!0,kt[pe.subLanguage]),kt[pe.subLanguage]=R._top}else R=h(Ne,pe.subLanguage.length?pe.subLanguage:null);pe.relevance>0&&(Xe+=R.relevance),Ve.addSublanguage(R._emitter,R.language)}function de(){pe.subLanguage!=null?re():le(),Ne=""}function fe(R,G){let me=1;const ze=G.length-1;for(;me<=ze;){if(!R._emit[me]){me++;continue}const at=We.classNameAliases[R[me]]||R[me],yn=G[me];at?Ve.addKeyword(yn,at):(Ne=yn,le(),Ne=""),me++}}function Re(R,G){return R.scope&&typeof R.scope=="string"&&Ve.openNode(We.classNameAliases[R.scope]||R.scope),R.beginScope&&(R.beginScope._wrap?(Ve.addKeyword(Ne,We.classNameAliases[R.beginScope._wrap]||R.beginScope._wrap),Ne=""):R.beginScope._multi&&(fe(R.beginScope,G),Ne="")),pe=Object.create(R,{parent:{value:pe}}),pe}function Z(R,G,me){let ze=$q(R.endRe,me);if(ze){if(R["on:end"]){const at=new q5(R);R["on:end"](G,at),at.isMatchIgnored&&(ze=!1)}if(ze){for(;R.endsParent&&R.parent;)R=R.parent;return R}}if(R.endsWithParent)return Z(R.parent,G,me)}function z(R){return pe.matcher.regexIndex===0?(Ne+=R[0],1):($t=!0,0)}function ce(R){const G=R[0],me=R.rule,ze=new q5(me),at=[me.__beforeBegin,me["on:begin"]];for(const yn of at)if(!!yn&&(yn(R,ze),ze.isMatchIgnored))return z(G);return me.skip?Ne+=G:(me.excludeBegin&&(Ne+=G),de(),!me.returnBegin&&!me.excludeBegin&&(Ne=G)),Re(me,R),me.returnBegin?0:G.length}function ve(R){const G=R[0],me=B.substring(R.index),ze=Z(pe,R,me);if(!ze)return a6;const at=pe;pe.endScope&&pe.endScope._wrap?(de(),Ve.addKeyword(G,pe.endScope._wrap)):pe.endScope&&pe.endScope._multi?(de(),fe(pe.endScope,R)):at.skip?Ne+=G:(at.returnEnd||at.excludeEnd||(Ne+=G),de(),at.excludeEnd&&(Ne=G));do pe.scope&&Ve.closeNode(),!pe.skip&&!pe.subLanguage&&(Xe+=pe.relevance),pe=pe.parent;while(pe!==ze.parent);return ze.starts&&Re(ze.starts,R),at.returnEnd?0:G.length}function Ae(){const R=[];for(let G=pe;G!==We;G=G.parent)G.scope&&R.unshift(G.scope);R.forEach(G=>Ve.openNode(G))}let qe={};function rt(R,G){const me=G&&G[0];if(Ne+=R,me==null)return de(),0;if(qe.type==="begin"&&G.type==="end"&&qe.index===G.index&&me===""){if(Ne+=B.slice(G.index,G.index+1),!o){const ze=new Error(`0 width match regex (${I})`);throw ze.languageName=I,ze.badRule=qe.rule,ze}return 1}if(qe=G,G.type==="begin")return ce(G);if(G.type==="illegal"&&!H){const ze=new Error('Illegal lexeme "'+me+'" for mode "'+(pe.scope||"<unnamed>")+'"');throw ze.mode=pe,ze}else if(G.type==="end"){const ze=ve(G);if(ze!==a6)return ze}if(G.type==="illegal"&&me==="")return 1;if(Ft>1e5&&Ft>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ne+=me,me.length}const We=D(I);if(!We)throw Qi(s.replace("{}",I)),new Error('Unknown language: "'+I+'"');const ot=wW(We);let ht="",pe=K||ot;const kt={},Ve=new l.__emitter(l);Ae();let Ne="",Xe=0,st=0,Ft=0,$t=!1;try{for(pe.matcher.considerAll();;){Ft++,$t?$t=!1:pe.matcher.considerAll(),pe.matcher.lastIndex=st;const R=pe.matcher.exec(B);if(!R)break;const G=B.substring(st,R.index),me=rt(G,R);st=R.index+me}return rt(B.substring(st)),Ve.closeAllNodes(),Ve.finalize(),ht=Ve.toHTML(),{language:I,value:ht,relevance:Xe,illegal:!1,_emitter:Ve,_top:pe}}catch(R){if(R.message&&R.message.includes("Illegal"))return{language:I,value:Ch(B),illegal:!0,relevance:0,_illegalBy:{message:R.message,index:st,context:B.slice(st-100,st+100),mode:R.mode,resultSoFar:ht},_emitter:Ve};if(o)return{language:I,value:Ch(B),illegal:!1,relevance:0,errorRaised:R,_emitter:Ve,_top:pe};throw R}}function p(I){const B={value:Ch(I),illegal:!1,relevance:0,_top:a,_emitter:new l.__emitter(l)};return B._emitter.addText(I),B}function h(I,B){B=B||l.languages||Object.keys(e);const H=p(I),K=B.filter(D).filter($).map(de=>f(de,I,!1));K.unshift(H);const ae=K.sort((de,fe)=>{if(de.relevance!==fe.relevance)return fe.relevance-de.relevance;if(de.language&&fe.language){if(D(de.language).supersetOf===fe.language)return 1;if(D(fe.language).supersetOf===de.language)return-1}return 0}),[ye,le]=ae,re=ye;return re.secondBest=le,re}function m(I,B,H){const K=B&&n[B]||H;I.classList.add("hljs"),I.classList.add(`language-${K}`)}function g(I){let B=null;const H=u(I);if(c(H))return;if(ee("before:highlightElement",{el:I,language:H}),I.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(I)),l.throwUnescapedHTML))throw new kW("One of your code blocks includes unescaped HTML.",I.innerHTML);B=I;const K=B.textContent,ae=H?d(K,{language:H,ignoreIllegals:!0}):h(K);I.innerHTML=ae.value,m(I,H,ae.language),I.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(I.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),ee("after:highlightElement",{el:I,result:ae,text:K})}function b(I){l=s6(l,I)}const y=()=>{C(),ia("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){C(),ia("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let k=!1;function C(){if(document.readyState==="loading"){k=!0;return}document.querySelectorAll(l.cssSelector).forEach(g)}function _(){k&&C()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function E(I,B){let H=null;try{H=B(t)}catch(K){if(Qi("Language definition for '{}' could not be registered.".replace("{}",I)),o)Qi(K);else throw K;H=a}H.name||(H.name=I),e[I]=H,H.rawDefinition=B.bind(null,t),H.aliases&&L(H.aliases,{languageName:I})}function T(I){delete e[I];for(const B of Object.keys(n))n[B]===I&&delete n[B]}function M(){return Object.keys(e)}function D(I){return I=(I||"").toLowerCase(),e[I]||e[n[I]]}function L(I,{languageName:B}){typeof I=="string"&&(I=[I]),I.forEach(H=>{n[H.toLowerCase()]=B})}function $(I){const B=D(I);return B&&!B.disableAutodetect}function V(I){I["before:highlightBlock"]&&!I["before:highlightElement"]&&(I["before:highlightElement"]=B=>{I["before:highlightBlock"](Object.assign({block:B.el},B))}),I["after:highlightBlock"]&&!I["after:highlightElement"]&&(I["after:highlightElement"]=B=>{I["after:highlightBlock"](Object.assign({block:B.el},B))})}function W(I){V(I),r.push(I)}function ee(I,B){const H=I;r.forEach(function(K){K[H]&&K[H](B)})}function J(I){return ia("10.7.0","highlightBlock will be removed entirely in v12.0"),ia("10.7.0","Please use highlightElement now."),g(I)}Object.assign(t,{highlight:d,highlightAuto:h,highlightAll:C,highlightElement:g,highlightBlock:J,configure:b,initHighlighting:y,initHighlightingOnLoad:S,registerLanguage:E,unregisterLanguage:T,listLanguages:M,getLanguage:D,registerAliases:L,autoDetection:$,inherit:s6,addPlugin:W}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=CW,t.regex={concat:Zi,lookahead:J5,either:yh,optional:zq,anyNumberOfTimes:Rq};for(const I in Iu)typeof Iu[I]=="object"&&mh.exports(Iu[I]);return Object.assign(t,Iu),t}({}),EW=xl;xl.HighlightJS=xl,xl.default=xl;var xW=EW;function l6(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?l6(n.children,r):{text:n.value,classes:r}}).flat()}function c6(t){return t.value||t.children||[]}function TW(t){return Boolean(xW.getLanguage(t))}function u6({doc:t,name:e,lowlight:n,defaultLanguage:r}){const o=[];return tf(t,s=>s.type.name===e).forEach(s=>{let a=s.pos+1;const l=s.node.attrs.language||r,c=n.listLanguages(),u=l&&(c.includes(l)||TW(l))?c6(n.highlight(l,s.node.textContent)):c6(n.highlightAuto(s.node.textContent));l6(u).forEach(d=>{const f=a+d.text.length;if(d.classes.length){const p=Yt.inline(a,f,{class:d.classes.join(" ")});o.push(p)}a=f})}),mt.create(t,o)}function AW(t){return typeof t=="function"}function _W({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(o=>AW(e[o])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new wt({key:new Ot("lowlight"),state:{init:(o,{doc:s})=>u6({doc:s,name:t,lowlight:e,defaultLanguage:n}),apply:(o,s,a,l)=>{const c=a.selection.$head.parent.type.name,u=l.selection.$head.parent.type.name,d=tf(a.doc,p=>p.type.name===t),f=tf(l.doc,p=>p.type.name===t);return o.docChanged&&([c,u].includes(t)||f.length!==d.length||o.steps.some(p=>p.from!==void 0&&p.to!==void 0&&d.some(h=>h.pos>=p.from&&h.pos+h.node.nodeSize<=p.to)))?u6({doc:o.doc,name:t,lowlight:e,defaultLanguage:n}):s.map(o.mapping,o.doc)}},props:{decorations(o){return r.getState(o)}}});return r}var DW=U5.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{},defaultLanguage:null}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],_W({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),lowlight:{},defaultLanguage:null,buttonIcon:"",commandList:[{title:"codeBlock",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleCodeBlock().run()},disabled:!1,isActive(e){return e.isActive("codeBlock")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleCodeBlock()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("codeBlock"),icon:"code",tooltip:r("editor.extensions.CodeBlock.tooltip")}}}}}});const MW=ut.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ye(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),d6=kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=In(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),f6=/^\s*([-+*])\s$/,NW=ut.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(MW.name,this.editor.getAttributes(d6.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ds({find:f6,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ds({find:f6,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(d6.name),editor:this.editor})),[t]}}),p6=ut.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ye(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),BW=NW.extend({nessesaryExtensions:[p6],addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"bulletList",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleBulletList().run()},disabled:!1,isActive(e){return e.isActive("bulletList")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleBulletList()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("bulletList"),icon:"list-ul",tooltip:r("editor.extensions.BulletList.tooltip")}}}}}}),OW=ut.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ye(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),h6=kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=In(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),m6=/^(\d+)\.\s$/,IW=ut.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Ye(this.options.HTMLAttributes,n),0]:["ol",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(OW.name,this.editor.getAttributes(h6.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ds({find:m6,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ds({find:m6,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(h6.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}).extend({nessesaryExtensions:[p6],addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"orderedList",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleOrderedList().run()},disabled:!1,isActive(e){return e.isActive("orderedList")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleOrderedList()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("orderedList"),icon:"list-ol",tooltip:r("editor.extensions.OrderedList.tooltip")}}}}}}),PW=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,LW=ut.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Ye(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[R4({find:PW,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}});var hse="",mse="",gse="",bse="",yse="";const RW=i.defineComponent({name:"ImageCommandButton",components:{ElDialog:Qs,ElUpload:L5,ElPopover:oi,CommandButton:Ue},props:{editor:{type:Ra,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},data(){return{imageUploadDialogVisible:!1,uploading:!1}},computed:{imageNodeOptions(){return this.editor.extensionManager.extensions.find(t=>t.name==="image").options}},methods:{openUrlPrompt(){H5.prompt("",this.t("editor.extensions.Image.control.insert_by_url.title"),{confirmButtonText:this.t("editor.extensions.Image.control.insert_by_url.confirm"),cancelButtonText:this.t("editor.extensions.Image.control.insert_by_url.cancel"),inputPlaceholder:this.t("editor.extensions.Image.control.insert_by_url.placeholder"),inputPattern:this.imageNodeOptions.urlPattern,inputErrorMessage:this.t("editor.extensions.Image.control.insert_by_url.invalid_url"),roundButton:!0}).then(({value:t})=>{this.editor.commands.setImage({src:t})}).catch(t=>{Wa.error(String(t))})},async uploadImage(t){const{file:e}=t,n=this.imageNodeOptions.uploadRequest,r=aU.service({target:".el-tiptap-upload"});try{const o=await(n?n(e):LU(e));this.editor.commands.setImage({src:o}),this.imageUploadDialogVisible=!1}catch(o){Wa.error(String(o))}finally{this.$nextTick(()=>{r.close()})}}}}),zW={class:"el-tiptap-popper__menu"},FW=i.createElementVNode("div",{class:"el-tiptap-upload__icon"},[i.createElementVNode("i",{class:"fa fa-upload"})],-1),$W={class:"el-tiptap-upload__text"};function VW(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-popover"),c=i.resolveComponent("el-upload"),u=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(l,{disabled:t.isCodeViewMode,placement:"bottom",trigger:"click","popper-class":"el-tiptap-popper"},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Image.buttons.insert_image.tooltip"),readonly:t.isCodeViewMode,icon:"image","button-icon":t.buttonIcon},null,8,["enable-tooltip","tooltip","readonly","button-icon"])])]),default:i.withCtx(()=>[i.createElementVNode("div",zW,[i.createElementVNode("div",{class:"el-tiptap-popper__menu__item",onClick:e[0]||(e[0]=(...d)=>t.openUrlPrompt&&t.openUrlPrompt(...d))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Image.buttons.insert_image.external")),1)]),i.createElementVNode("div",{class:"el-tiptap-popper__menu__item",onClick:e[1]||(e[1]=d=>t.imageUploadDialogVisible=!0)},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Image.buttons.insert_image.upload")),1)])])]),_:1},8,["disabled"]),i.createVNode(u,{modelValue:t.imageUploadDialogVisible,"onUpdate:modelValue":e[2]||(e[2]=d=>t.imageUploadDialogVisible=d),title:t.t("editor.extensions.Image.control.upload_image.title"),"append-to-body":!0},{default:i.withCtx(()=>[i.createVNode(c,{"http-request":t.uploadImage,"show-file-list":!1,class:"el-tiptap-upload",action:"#",drag:"",accept:"image/*"},{default:i.withCtx(()=>[FW,i.createElementVNode("div",$W,i.toDisplayString(t.t("editor.extensions.Image.control.upload_image.button")),1)]),_:1},8,["http-request"])]),_:1},8,["modelValue","title"])])}var HW=tt(RW,[["render",VW]]),es=[],jW=function(){return es.some(function(t){return t.activeTargets.length>0})},UW=function(){return es.some(function(t){return t.skippedTargets.length>0})},g6="ResizeObserver loop completed with undelivered notifications.",qW=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:g6}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=g6),window.dispatchEvent(t)},Tl;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Tl||(Tl={}));var ts=function(t){return Object.freeze(t)},WW=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,ts(this)}return t}(),b6=function(){function t(e,n,r,o){return this.x=e,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ts(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,o=e.top,s=e.right,a=e.bottom,l=e.left,c=e.width,u=e.height;return{x:n,y:r,top:o,right:s,bottom:a,left:l,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),kh=function(t){return t instanceof SVGElement&&"getBBox"in t},y6=function(t){if(kh(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var o=t,s=o.offsetWidth,a=o.offsetHeight;return!(s||a||t.getClientRects().length)},w6=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},KW=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Al=typeof window!="undefined"?window:{},Lu=new WeakMap,v6=/auto|scroll/,GW=/^tb|vertical/,JW=/msie|trident/i.test(Al.navigator&&Al.navigator.userAgent),Gr=function(t){return parseFloat(t||"0")},sa=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new WW((n?e:t)||0,(n?t:e)||0)},C6=ts({devicePixelContentBoxSize:sa(),borderBoxSize:sa(),contentBoxSize:sa(),contentRect:new b6(0,0,0,0)}),k6=function(t,e){if(e===void 0&&(e=!1),Lu.has(t)&&!e)return Lu.get(t);if(y6(t))return Lu.set(t,C6),C6;var n=getComputedStyle(t),r=kh(t)&&t.ownerSVGElement&&t.getBBox(),o=!JW&&n.boxSizing==="border-box",s=GW.test(n.writingMode||""),a=!r&&v6.test(n.overflowY||""),l=!r&&v6.test(n.overflowX||""),c=r?0:Gr(n.paddingTop),u=r?0:Gr(n.paddingRight),d=r?0:Gr(n.paddingBottom),f=r?0:Gr(n.paddingLeft),p=r?0:Gr(n.borderTopWidth),h=r?0:Gr(n.borderRightWidth),m=r?0:Gr(n.borderBottomWidth),g=r?0:Gr(n.borderLeftWidth),b=f+u,y=c+d,S=g+h,k=p+m,C=l?t.offsetHeight-k-t.clientHeight:0,_=a?t.offsetWidth-S-t.clientWidth:0,E=o?b+S:0,T=o?y+k:0,M=r?r.width:Gr(n.width)-E-_,D=r?r.height:Gr(n.height)-T-C,L=M+b+_+S,$=D+y+C+k,V=ts({devicePixelContentBoxSize:sa(Math.round(M*devicePixelRatio),Math.round(D*devicePixelRatio),s),borderBoxSize:sa(L,$,s),contentBoxSize:sa(M,D,s),contentRect:new b6(f,c,M,D)});return Lu.set(t,V),V},S6=function(t,e,n){var r=k6(t,n),o=r.borderBoxSize,s=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Tl.DEVICE_PIXEL_CONTENT_BOX:return a;case Tl.BORDER_BOX:return o;default:return s}},XW=function(){function t(e){var n=k6(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=ts([n.borderBoxSize]),this.contentBoxSize=ts([n.contentBoxSize]),this.devicePixelContentBoxSize=ts([n.devicePixelContentBoxSize])}return t}(),E6=function(t){if(y6(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},YW=function(){var t=1/0,e=[];es.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new XW(u.target),f=E6(u.target);l.push(d),u.lastReportedSize=S6(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var o=r[n];o()}return t},x6=function(t){es.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(E6(o.target)>t?n.activeTargets.push(o):n.skippedTargets.push(o))})})},ZW=function(){var t=0;for(x6(t);jW();)t=YW(),x6(t);return UW()&&qW(),t>0},Sh,T6=[],QW=function(){return T6.splice(0).forEach(function(t){return t()})},eK=function(t){if(!Sh){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return QW()}).observe(n,r),Sh=function(){n.textContent="".concat(e?e--:e++)}}T6.push(t),Sh()},tK=function(t){eK(function(){requestAnimationFrame(t)})},Ru=0,nK=function(){return!!Ru},rK=250,oK={attributes:!0,characterData:!0,childList:!0,subtree:!0},A6=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_6=function(t){return t===void 0&&(t=0),Date.now()+t},Eh=!1,iK=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=rK),!Eh){Eh=!0;var r=_6(e);tK(function(){var o=!1;try{o=ZW()}finally{if(Eh=!1,e=r-_6(),!nK())return;o?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,oK)};document.body?n():Al.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),A6.forEach(function(n){return Al.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),A6.forEach(function(n){return Al.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),xh=new iK,D6=function(t){!Ru&&t>0&&xh.start(),Ru+=t,!Ru&&xh.stop()},sK=function(t){return!kh(t)&&!KW(t)&&getComputedStyle(t).display==="inline"},aK=function(){function t(e,n){this.target=e,this.observedBox=n||Tl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=S6(this.target,this.observedBox,!0);return sK(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),lK=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),zu=new WeakMap,M6=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Fu=function(){function t(){}return t.connect=function(e,n){var r=new lK(e,n);zu.set(e,r)},t.observe=function(e,n,r){var o=zu.get(e),s=o.observationTargets.length===0;M6(o.observationTargets,n)<0&&(s&&es.push(o),o.observationTargets.push(new aK(n,r&&r.box)),D6(1),xh.schedule())},t.unobserve=function(e,n){var r=zu.get(e),o=M6(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&es.splice(es.indexOf(r),1),r.observationTargets.splice(o,1),D6(-1))},t.disconnect=function(e){var n=this,r=zu.get(e);r.observationTargets.slice().forEach(function(o){return n.unobserve(e,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),cK=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Fu.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w6(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Fu.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w6(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Fu.unobserve(this,e)},t.prototype.disconnect=function(){Fu.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const uK=i.defineComponent({name:"ImageDisplayCommandButton",components:{ElPopover:oi,CommandButton:Ue},props:{node:Ln.node,updateAttrs:Ln.updateAttributes,buttonIcon:{default:"",type:String}},data(){return{displayCollection:[mr.INLINE,mr.BREAK_TEXT,mr.FLOAT_LEFT,mr.FLOAT_RIGHT]}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}},computed:{currDisplay(){return this.node.attrs.display}},methods:{hidePopover(){var t;(t=this.$refs.popoverRef)==null||t.hide()}}}),dK={class:"el-tiptap-popper__menu"},fK=["onClick"];function pK(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(l,{placement:"top",trigger:"click","popper-class":"el-tiptap-popper",ref:"popoverRef"},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Image.buttons.display.tooltip"),icon:"image-align","button-icon":t.buttonIcon},null,8,["enable-tooltip","tooltip","button-icon"])])]),default:i.withCtx(()=>[i.createElementVNode("div",dK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.displayCollection,c=>(i.openBlock(),i.createElementBlock("div",{key:c,class:i.normalizeClass([{"el-tiptap-popper__menu__item--active":c===t.currDisplay},"el-tiptap-popper__menu__item"]),onMousedown:e[0]||(e[0]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:u=>t.updateAttrs({display:c})},[i.createElementVNode("span",null,i.toDisplayString(t.t(`editor.extensions.Image.buttons.display.${c}`)),1)],42,fK))),128))])]),_:1},512)}var hK=tt(uK,[["render",pK]]),wse="";const mK=i.defineComponent({components:{ElDialog:Qs,ElForm:_p,ElFormItem:Dp,ElInput:Qo,ElCol:M$,ElButton:nn,CommandButton:Ue},props:{node:Ln.node,updateAttrs:Ln.updateAttributes,buttonIcon:{default:"",type:String}},data(){return{editImageDialogVisible:!1,imageAttrs:this.getImageAttrs()}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}},methods:{syncImageAttrs(){this.imageAttrs=this.getImageAttrs()},getImageAttrs(){return{src:this.node.attrs.src,alt:this.node.attrs.alt,width:this.node.attrs.width,height:this.node.attrs.height}},updateImageAttrs(){let{width:t,height:e}=this.imageAttrs;t=parseInt(t,10),e=parseInt(e,10),this.updateAttrs({alt:this.imageAttrs.alt,width:t>=0?t:null,height:e>=0?e:null}),this.closeEditImageDialog()},openEditImageDialog(){this.editImageDialogVisible=!0},closeEditImageDialog(){this.editImageDialogVisible=!1}}});function gK(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-input"),c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-col"),d=i.resolveComponent("el-form"),f=i.resolveComponent("el-button"),p=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{command:t.openEditImageDialog,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Image.buttons.image_options.tooltip"),icon:"ellipsis-h","button-icon":t.buttonIcon},null,8,["command","enable-tooltip","tooltip","button-icon"]),i.createVNode(p,{modelValue:t.editImageDialogVisible,"onUpdate:modelValue":e[3]||(e[3]=h=>t.editImageDialogVisible=h),title:t.t("editor.extensions.Image.control.edit_image.title"),"append-to-body":!0,width:"400px",class:"el-tiptap-edit-image-dialog",onOpen:t.syncImageAttrs},{footer:i.withCtx(()=>[i.createVNode(f,{size:"small",round:"",onClick:t.closeEditImageDialog},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Image.control.edit_image.cancel")),1)]),_:1},8,["onClick"]),i.createVNode(f,{type:"primary",size:"small",round:"",onClick:t.updateImageAttrs},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Image.control.edit_image.confirm")),1)]),_:1},8,["onClick"])]),default:i.withCtx(()=>[i.createVNode(d,{model:t.imageAttrs,"label-position":"top",size:"small"},{default:i.withCtx(()=>[i.createVNode(c,{label:t.t("editor.extensions.Image.control.edit_image.form.src")},{default:i.withCtx(()=>[i.createVNode(l,{value:t.imageAttrs.src,autocomplete:"off",disabled:""},null,8,["value"])]),_:1},8,["label"]),i.createVNode(c,{label:t.t("editor.extensions.Image.control.edit_image.form.alt")},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:t.imageAttrs.alt,"onUpdate:modelValue":e[0]||(e[0]=h=>t.imageAttrs.alt=h),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),i.createVNode(c,null,{default:i.withCtx(()=>[i.createVNode(u,{span:11},{default:i.withCtx(()=>[i.createVNode(c,{label:t.t("editor.extensions.Image.control.edit_image.form.width")},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:t.imageAttrs.width,"onUpdate:modelValue":e[1]||(e[1]=h=>t.imageAttrs.width=h),type:"number"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),i.createVNode(u,{span:11,push:2},{default:i.withCtx(()=>[i.createVNode(c,{label:t.t("editor.extensions.Image.control.edit_image.form.height")},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:t.imageAttrs.height,"onUpdate:modelValue":e[2]||(e[2]=h=>t.imageAttrs.height=h),type:"number"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title","onOpen"])])}var bK=tt(mK,[["render",gK]]);const yK=i.defineComponent({name:"RemoveImageCommandButton",components:{CommandButton:Ue},props:{editor:Ln.editor,buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0);return{t,enableTooltip:e}},methods:{removeImage(){var t;(t=this.editor)==null||t.commands.deleteSelection()}}});function wK(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{command:t.removeImage,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Image.buttons.remove_image.tooltip"),icon:"trash-alt","button-icon":t.buttonIcon},null,8,["command","enable-tooltip","tooltip","button-icon"])])}var vK=tt(yK,[["render",wK]]),vse="",Cse="",kse="",Sse="";function N6(t,e){return function(){return t.apply(e,arguments)}}const{toString:CK}=Object.prototype,{getPrototypeOf:Th}=Object,$u=(t=>e=>{const n=CK.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Er=t=>(t=t.toLowerCase(),e=>$u(e)===t),Vu=t=>e=>typeof e===t,{isArray:aa}=Array,_l=Vu("undefined");function kK(t){return t!==null&&!_l(t)&&t.constructor!==null&&!_l(t.constructor)&&nr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const B6=Er("ArrayBuffer");function SK(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&B6(t.buffer),e}const EK=Vu("string"),nr=Vu("function"),O6=Vu("number"),Hu=t=>t!==null&&typeof t=="object",xK=t=>t===!0||t===!1,ju=t=>{if($u(t)!=="object")return!1;const e=Th(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},TK=Er("Date"),AK=Er("File"),_K=Er("Blob"),DK=Er("FileList"),MK=t=>Hu(t)&&nr(t.pipe),NK=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||nr(t.append)&&((e=$u(t))==="formdata"||e==="object"&&nr(t.toString)&&t.toString()==="[object FormData]"))},BK=Er("URLSearchParams"),[OK,IK,PK,LK]=["ReadableStream","Request","Response","Headers"].map(Er),RK=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,o;if(typeof t!="object"&&(t=[t]),aa(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let l;for(r=0;r<a;r++)l=s[r],e.call(null,t[l],l,t)}}function I6(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const P6=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),L6=t=>!_l(t)&&t!==P6;function Ah(){const{caseless:t}=L6(this)&&this||{},e={},n=(r,o)=>{const s=t&&I6(e,o)||o;ju(e[s])&&ju(r)?e[s]=Ah(e[s],r):ju(r)?e[s]=Ah({},r):aa(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Dl(arguments[r],n);return e}const zK=(t,e,n,{allOwnKeys:r}={})=>(Dl(e,(o,s)=>{n&&nr(o)?t[s]=N6(o,n):t[s]=o},{allOwnKeys:r}),t),FK=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),$K=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},VK=(t,e,n,r)=>{let o,s,a;const l={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=n!==!1&&Th(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},HK=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},jK=t=>{if(!t)return null;if(aa(t))return t;let e=t.length;if(!O6(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},UK=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Th(Uint8Array)),qK=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},WK=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},KK=Er("HTMLFormElement"),GK=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),R6=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),JK=Er("RegExp"),z6=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Dl(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},XK=t=>{z6(t,(e,n)=>{if(nr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(!!nr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},YK=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return aa(t)?r(t):r(String(t).split(e)),n},ZK=()=>{},QK=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,_h="abcdefghijklmnopqrstuvwxyz",F6="0123456789",$6={DIGIT:F6,ALPHA:_h,ALPHA_DIGIT:_h+_h.toUpperCase()+F6},eG=(t=16,e=$6.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tG(t){return!!(t&&nr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nG=t=>{const e=new Array(10),n=(r,o)=>{if(Hu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=aa(r)?[]:{};return Dl(r,(a,l)=>{const c=n(a,o+1);!_l(c)&&(s[l]=c)}),e[o]=void 0,s}}return r};return n(t,0)},rG=Er("AsyncFunction");var U={isArray:aa,isArrayBuffer:B6,isBuffer:kK,isFormData:NK,isArrayBufferView:SK,isString:EK,isNumber:O6,isBoolean:xK,isObject:Hu,isPlainObject:ju,isReadableStream:OK,isRequest:IK,isResponse:PK,isHeaders:LK,isUndefined:_l,isDate:TK,isFile:AK,isBlob:_K,isRegExp:JK,isFunction:nr,isStream:MK,isURLSearchParams:BK,isTypedArray:UK,isFileList:DK,forEach:Dl,merge:Ah,extend:zK,trim:RK,stripBOM:FK,inherits:$K,toFlatObject:VK,kindOf:$u,kindOfTest:Er,endsWith:HK,toArray:jK,forEachEntry:qK,matchAll:WK,isHTMLForm:KK,hasOwnProperty:R6,hasOwnProp:R6,reduceDescriptors:z6,freezeMethods:XK,toObjectSet:YK,toCamelCase:GK,noop:ZK,toFiniteNumber:QK,findKey:I6,global:P6,isContextDefined:L6,ALPHABET:$6,generateString:eG,isSpecCompliantForm:tG,toJSONObject:nG,isAsyncFn:rG,isThenable:t=>t&&(Hu(t)||nr(t))&&nr(t.then)&&nr(t.catch)};function $e(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}U.inherits($e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V6=$e.prototype,H6={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{H6[t]={value:t}}),Object.defineProperties($e,H6),Object.defineProperty(V6,"isAxiosError",{value:!0}),$e.from=(t,e,n,r,o,s)=>{const a=Object.create(V6);return U.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),$e.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};var oG=null;function Dh(t){return U.isPlainObject(t)||U.isArray(t)}function j6(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function U6(t,e,n){return t?t.concat(e).map(function(o,s){return o=j6(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function iG(t){return U.isArray(t)&&!t.some(Dh)}const sG=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});function Uu(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!U.isUndefined(b[g])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(U.isDate(m))return m.toISOString();if(!c&&U.isBlob(m))throw new $e("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(m)||U.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,b){let y=m;if(m&&!b&&typeof m=="object"){if(U.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(U.isArray(m)&&iG(m)||(U.isFileList(m)||U.endsWith(g,"[]"))&&(y=U.toArray(m)))return g=j6(g),y.forEach(function(k,C){!(U.isUndefined(k)||k===null)&&e.append(a===!0?U6([g],C,s):a===null?g:g+"[]",u(k))}),!1}return Dh(m)?!0:(e.append(U6(b,g,s),u(m)),!1)}const f=[],p=Object.assign(sG,{defaultVisitor:d,convertValue:u,isVisitable:Dh});function h(m,g){if(!U.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),U.forEach(m,function(y,S){(!(U.isUndefined(y)||y===null)&&o.call(e,y,U.isString(S)?S.trim():S,g,p))===!0&&h(y,g?g.concat(S):[S])}),f.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return h(t),e}function q6(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Mh(t,e){this._pairs=[],t&&Uu(t,this,e)}const W6=Mh.prototype;W6.append=function(e,n){this._pairs.push([e,n])},W6.toString=function(e){const n=e?function(r){return e.call(this,r,q6)}:q6;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function aG(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function K6(t,e,n){if(!e)return t;const r=n&&n.encode||aG,o=n&&n.serialize;let s;if(o?s=o(e,n):s=U.isURLSearchParams(e)?e.toString():new Mh(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class lG{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){U.forEach(this.handlers,function(r){r!==null&&e(r)})}}var G6=lG,J6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cG=typeof URLSearchParams!="undefined"?URLSearchParams:Mh,uG=typeof FormData!="undefined"?FormData:null,dG=typeof Blob!="undefined"?Blob:null,fG={isBrowser:!0,classes:{URLSearchParams:cG,FormData:uG,Blob:dG},protocols:["http","https","file","blob","url","data"]};const Nh=typeof window!="undefined"&&typeof document!="undefined",pG=(t=>Nh&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator!="undefined"&&navigator.product),hG=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mG=Nh&&window.location.href||"http://localhost";var gG=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nh,hasStandardBrowserWebWorkerEnv:hG,hasStandardBrowserEnv:pG,origin:mG},Symbol.toStringTag,{value:"Module"})),xr={...gG,...fG};function bG(t,e){return Uu(t,new xr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return xr.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function yG(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wG(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function X6(t){function e(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&U.isArray(o)?o.length:a,c?(U.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!U.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&U.isArray(o[a])&&(o[a]=wG(o[a])),!l)}if(U.isFormData(t)&&U.isFunction(t.entries)){const n={};return U.forEachEntry(t,(r,o)=>{e(yG(r),o,n,0)}),n}return null}function vG(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Bh={transitional:J6,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=U.isObject(e);if(s&&U.isHTMLForm(e)&&(e=new FormData(e)),U.isFormData(e))return o?JSON.stringify(X6(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e)||U.isReadableStream(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bG(e,this.formSerializer).toString();if((l=U.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Uu(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),vG(e)):e}],transformResponse:[function(e){const n=this.transitional||Bh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(U.isResponse(e)||U.isReadableStream(e))return e;if(e&&U.isString(e)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?$e.from(l,$e.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],t=>{Bh.headers[t]={}});var Oh=Bh;const CG=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var kG=t=>{const e={};let n,r,o;return t&&t.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&CG[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};const Y6=Symbol("internals");function Ml(t){return t&&String(t).trim().toLowerCase()}function qu(t){return t===!1||t==null?t:U.isArray(t)?t.map(qu):String(t)}function SG(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const EG=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ih(t,e,n,r,o){if(U.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!U.isString(e)){if(U.isString(r))return e.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(e)}}function xG(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function TG(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}class Wu{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(l,c,u){const d=Ml(c);if(!d)throw new Error("header name must be a non-empty string");const f=U.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=qu(l))}const a=(l,c)=>U.forEach(l,(u,d)=>s(u,d,c));if(U.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(U.isString(e)&&(e=e.trim())&&!EG(e))a(kG(e),n);else if(U.isHeaders(e))for(const[l,c]of e.entries())s(c,l,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Ml(e),e){const r=U.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return SG(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ml(e),e){const r=U.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ih(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(a){if(a=Ml(a),a){const l=U.findKey(r,a);l&&(!n||Ih(r,r[l],l,n))&&(delete r[l],o=!0)}}return U.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Ih(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return U.forEach(this,(o,s)=>{const a=U.findKey(r,s);if(a){n[a]=qu(o),delete n[s];return}const l=e?xG(s):String(s).trim();l!==s&&delete n[s],n[l]=qu(o),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Y6]=this[Y6]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=Ml(a);r[l]||(TG(o,a),r[l]=!0)}return U.isArray(e)?e.forEach(s):s(e),this}}Wu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(Wu.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),U.freezeMethods(Wu);var Tr=Wu;function Ph(t,e){const n=this||Oh,r=e||n,o=Tr.from(r.headers);let s=r.data;return U.forEach(t,function(l){s=l.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Z6(t){return!!(t&&t.__CANCEL__)}function la(t,e,n){$e.call(this,t==null?"canceled":t,$e.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(la,$e,{__CANCEL__:!0});function Q6(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new $e("Request failed with status code "+n.status,[$e.ERR_BAD_REQUEST,$e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AG(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function _G(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];a||(a=u),n[o]=c,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const h=d&&u-d;return h?Math.round(p*1e3/h):void 0}}function DG(t,e){let n=0;const r=1e3/e;let o=null;return function(){const a=this===!0,l=Date.now();if(a||l-n>r)return o&&(clearTimeout(o),o=null),n=l,t.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),t.apply(null,arguments)),r-(l-n)))}}var Ku=(t,e,n=3)=>{let r=0;const o=_G(50,250);return DG(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,u=o(c),d=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-a)/u:void 0,event:s,lengthComputable:l!=null};f[e?"download":"upload"]=!0,t(f)},n)},MG=xr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=U.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),NG=xr.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];U.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),U.isString(r)&&a.push("path="+r),U.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BG(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function OG(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function e8(t,e){return t&&!BG(e)?OG(t,e):e}const t8=t=>t instanceof Tr?{...t}:t;function ns(t,e){e=e||{};const n={};function r(u,d,f){return U.isPlainObject(u)&&U.isPlainObject(d)?U.merge.call({caseless:f},u,d):U.isPlainObject(d)?U.merge({},d):U.isArray(d)?d.slice():d}function o(u,d,f){if(U.isUndefined(d)){if(!U.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function s(u,d){if(!U.isUndefined(d))return r(void 0,d)}function a(u,d){if(U.isUndefined(d)){if(!U.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in e)return r(u,d);if(f in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,d)=>o(t8(u),t8(d),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||o,p=f(t[d],e[d],d);U.isUndefined(p)&&f!==l||(n[d]=p)}),n}var n8=t=>{const e=ns({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=e;e.headers=a=Tr.from(a),e.url=K6(e8(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(U.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(xr.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(e)),r||r!==!1&&MG(e.url))){const u=o&&s&&NG.read(s);u&&a.set(o,u)}return e},IG=typeof XMLHttpRequest!="undefined"&&function(t){return new Promise(function(n,r){const o=n8(t);let s=o.data;const a=Tr.from(o.headers).normalize();let{responseType:l}=o,c;function u(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const h=Tr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:t,request:d};Q6(function(y){n(y),u()},function(y){r(y),u()},g),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){!d||(r(new $e("Request aborted",$e.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new $e("Network Error",$e.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let m=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const g=o.transitional||J6;o.timeoutErrorMessage&&(m=o.timeoutErrorMessage),r(new $e(m,g.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,o,d)),d=null},s===void 0&&a.setContentType(null),"setRequestHeader"in d&&U.forEach(a.toJSON(),function(m,g){d.setRequestHeader(g,m)}),U.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",Ku(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ku(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=h=>{!d||(r(!h||h.type?new la(null,t,d):h),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const p=AG(o.url);if(p&&xr.protocols.indexOf(p)===-1){r(new $e("Unsupported protocol "+p+":",$e.ERR_BAD_REQUEST,t));return}d.send(s||null)})},PG=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof $e?u:new la(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new $e(`timeout ${e} of ms exceeded`,$e.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=a,[l,()=>{s&&clearTimeout(s),s=null}]};const LG=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},RG=async function*(t,e,n){for await(const r of t)yield*LG(ArrayBuffer.isView(r)?r:await n(String(r)),e)},r8=(t,e,n,r,o)=>{const s=RG(t,e,o);let a=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await s.next();if(c){l.close(),r();return}let d=u.byteLength;n&&n(a+=d),l.enqueue(new Uint8Array(u))},cancel(l){return r(l),s.return()}},{highWaterMark:2})},o8=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},Gu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",i8=Gu&&typeof ReadableStream=="function",Lh=Gu&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),zG=i8&&(()=>{let t=!1;const e=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),s8=64*1024,Rh=i8&&!!(()=>{try{return U.isReadableStream(new Response("").body)}catch{}})(),Ju={stream:Rh&&(t=>t.body)};Gu&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ju[e]&&(Ju[e]=U.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,r)})})})(new Response);const FG=async t=>{if(t==null)return 0;if(U.isBlob(t))return t.size;if(U.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(U.isArrayBufferView(t))return t.byteLength;if(U.isURLSearchParams(t)&&(t=t+""),U.isString(t))return(await Lh(t)).byteLength},$G=async(t,e)=>{const n=U.toFiniteNumber(t.getContentLength());return n==null?FG(e):n};var VG=Gu&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=n8(t);u=u?(u+"").toLowerCase():"text";let[h,m]=o||s||a?PG([o,s],a):[],g,b;const y=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let S;try{if(c&&zG&&n!=="get"&&n!=="head"&&(S=await $G(d,r))!==0){let E=new Request(e,{method:"POST",body:r,duplex:"half"}),T;U.isFormData(r)&&(T=E.headers.get("content-type"))&&d.setContentType(T),E.body&&(r=r8(E.body,s8,o8(S,Ku(c)),null,Lh))}U.isString(f)||(f=f?"cors":"omit"),b=new Request(e,{...p,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let k=await fetch(b);const C=Rh&&(u==="stream"||u==="response");if(Rh&&(l||C)){const E={};["status","statusText","headers"].forEach(M=>{E[M]=k[M]});const T=U.toFiniteNumber(k.headers.get("content-length"));k=new Response(r8(k.body,s8,l&&o8(T,Ku(l,!0)),C&&y,Lh),E)}u=u||"text";let _=await Ju[U.findKey(Ju,u)||"text"](k,t);return!C&&y(),m&&m(),await new Promise((E,T)=>{Q6(E,T,{data:_,headers:Tr.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:b})})}catch(k){throw y(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new $e("Network Error",$e.ERR_NETWORK,t,b),{cause:k.cause||k}):$e.from(k,k&&k.code,t,b)}});const zh={http:oG,xhr:IG,fetch:VG};U.forEach(zh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const a8=t=>`- ${t}`,HG=t=>U.isFunction(t)||t===null||t===!1;var l8={getAdapter:t=>{t=U.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!HG(n)&&(r=zh[(a=String(n)).toLowerCase()],r===void 0))throw new $e(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+s]=r}if(!r){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
`+s.map(a8).join(`
`):" "+a8(s[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:zh};function Fh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new la(null,t)}function c8(t){return Fh(t),t.headers=Tr.from(t.headers),t.data=Ph.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),l8.getAdapter(t.adapter||Oh.adapter)(t).then(function(r){return Fh(t),r.data=Ph.call(t,t.transformResponse,r),r.headers=Tr.from(r.headers),r},function(r){return Z6(r)||(Fh(t),r&&r.response&&(r.response.data=Ph.call(t,t.transformResponse,r.response),r.response.headers=Tr.from(r.response.headers))),Promise.reject(r)})}const u8="1.7.2",$h={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{$h[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const d8={};$h.transitional=function(e,n,r){function o(s,a){return"[Axios v"+u8+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(e===!1)throw new $e(o(a," has been removed"+(n?" in "+n:"")),$e.ERR_DEPRECATED);return n&&!d8[a]&&(d8[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,l):!0}};function jG(t,e,n){if(typeof t!="object")throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=e[s];if(a){const l=t[s],c=l===void 0||a(l,s,t);if(c!==!0)throw new $e("option "+s+" must be "+c,$e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $e("Unknown option "+s,$e.ERR_BAD_OPTION)}}var Vh={assertOptions:jG,validators:$h};const li=Vh.validators;class Xu{constructor(e){this.defaults=e,this.interceptors={request:new G6,response:new G6}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ns(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Vh.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),o!=null&&(U.isFunction(o)?n.paramsSerializer={serialize:o}:Vh.assertOptions(o,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&U.merge(s.common,s[n.method]);s&&U.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=Tr.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,p;if(!c){const m=[c8.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),p=m.length,d=Promise.resolve(n);f<p;)d=d.then(m[f++],m[f++]);return d}p=l.length;let h=n;for(f=0;f<p;){const m=l[f++],g=l[f++];try{h=m(h)}catch(b){g.call(this,b);break}}try{d=c8.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=ns(this.defaults,e);const n=e8(e.baseURL,e.url);return K6(n,e.params,e.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(e){Xu.prototype[e]=function(n,r){return this.request(ns(r||{},{method:e,url:n,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,l){return this.request(ns(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Xu.prototype[e]=n(),Xu.prototype[e+"Form"]=n(!0)});var Yu=Xu;class Hh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,l){r.reason||(r.reason=new la(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Hh(function(o){e=o}),cancel:e}}}var UG=Hh;function qG(t){return function(n){return t.apply(null,n)}}function WG(t){return U.isObject(t)&&t.isAxiosError===!0}const jh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jh).forEach(([t,e])=>{jh[e]=t});var KG=jh;function f8(t){const e=new Yu(t),n=N6(Yu.prototype.request,e);return U.extend(n,Yu.prototype,e,{allOwnKeys:!0}),U.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return f8(ns(t,o))},n}const Rt=f8(Oh);Rt.Axios=Yu,Rt.CanceledError=la,Rt.CancelToken=UG,Rt.isCancel=Z6,Rt.VERSION=u8,Rt.toFormData=Uu,Rt.AxiosError=$e,Rt.Cancel=Rt.CanceledError,Rt.all=function(e){return Promise.all(e)},Rt.spread=qG,Rt.isAxiosError=WG,Rt.mergeConfig=ns,Rt.AxiosHeaders=Tr,Rt.formToJSON=t=>X6(U.isHTMLForm(t)?new FormData(t):t),Rt.getAdapter=l8.getAdapter,Rt.HttpStatusCode=KG,Rt.default=Rt;var GG=Rt;console.log("process env",{ACSvcPort:"17532",ALLUSERSPROFILE:"C:\\ProgramData",APPCODE_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\appcode.vmoptions",APPDATA:"C:\\Users\\Niyuta\\AppData\\Roaming",Aqua:"D:\\Program Files\\JetBrains\\Aqua 2024.1.2\\bin;","asl.log":"Destination=file",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:"133583370293063579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_26552_ZKQYQLZEPSJWXLVX",CLion:"C:\\Program Files\\JetBrains\\CLion 2023.2.1\\bin;",CLION_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\clion.vmoptions",CODE:"C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"NIYUTA",ComSpec:"C:\\Windows\\system32\\cmd.exe",CONDA_BAT:"C:\\Users\\Niyuta\\miniconda3\\condabin\\conda.bat",CONDA_EXE:"C:\\Users\\Niyuta\\miniconda3\\Scripts\\conda.exe",CONDA_ROOT:"C:\\Users\\Niyuta\\miniconda3",CONDA_SHLVL:"0",CPLUS_INCLUDE_PATH:"D:\\Scoop\\apps\\gcc\\current\\include",CPOLAR_HOME:"D:\\Program Files\\cpolar\\",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3",CUDA_PATH_V12_3:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3",C_INCLUDE_PATH:"D:\\Scoop\\apps\\gcc\\current\\include",DataGrip:"D:\\Program Files\\JetBrains\\DataGrip 2024.1.4\\bin;",DATAGRIP_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\datagrip.vmoptions",DATASPELL_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\dataspell.vmoptions",DEVECOSTUDIO_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\devecostudio.vmoptions",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\Windows\\notepad.exe",EDIVATOR_BACKEND_API:"http://localhost:8000/",EFC_3544:"1",EnableLog:"INFO",ERLANG_HOME:"D:\\Scoop_Global\\apps\\erlang\\current",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GATEWAY_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\gateway.vmoptions",GIT_ASKPASS:"c:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",GIT_INSTALL_ROOT:"D:\\Scoop\\apps\\git\\current",GoLand:"C:\\Program Files\\JetBrains\\GoLand 2023.3\\bin;",GOLAND_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\goland.vmoptions",HOME:"C:\\Users\\Niyuta",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\Niyuta",IDEA_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\idea.vmoptions",INIT_CWD:"D:\\Projects\\Edivator\\element-tiptap-vue3-niyuta","IntelliJ IDEA":"D:\\Program Files\\JetBrains\\IntelliJ IDEA 2024.1.4\\bin;",JAVA_HOME:"D:\\Scoop\\apps\\openjdk21\\current","JetBrains Rider":"C:\\Program Files\\JetBrains\\JetBrains Rider 2023.3.2\\bin;",JETBRAINSCLIENT_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\jetbrainsclient.vmoptions",JETBRAINS_CLIENT_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\jetbrains_client.vmoptions",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\Niyuta\\AppData\\Local",LOGONSERVER:"\\\\NIYUTA",MAVEN_HOME:"D:\\Scoop\\apps\\maven\\current",NODE:"D:\\Scoop\\apps\\nodejs-lts\\current\\node.exe",NODE_ENV:"production",NODE_EXE:"D:\\Scoop\\apps\\nodejs-lts\\current\\\\node.exe",NODE_TLS_REJECT_UNAUTHORIZED:"0",NPM_CLI_JS:"D:\\Scoop\\apps\\nodejs-lts\\current\\\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_access:"public",npm_config_cache:"D:\\Scoop\\persist\\nodejs-lts\\cache",npm_config_globalconfig:"D:\\Scoop\\persist\\nodejs-lts\\bin\\etc\\npmrc",npm_config_global_prefix:"D:\\Scoop\\persist\\nodejs-lts\\bin",npm_config_init_module:"C:\\Users\\Niyuta\\.npm-init.js",npm_config_legacy_peer_deps:"true",npm_config_local_prefix:"D:\\Projects\\Edivator\\element-tiptap-vue3-niyuta",npm_config_message:"release: \u{1F516} %s",npm_config_node_gyp:"D:\\Scoop\\apps\\nodejs-lts\\20.13.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.5.2",npm_config_prefix:"D:\\Scoop\\persist\\nodejs-lts\\bin",npm_config_tag_version_prefix:"",npm_config_userconfig:"C:\\Users\\Niyuta\\.npmrc",npm_config_user_agent:"npm/10.5.2 node/v20.13.1 win32 x64 workspaces/false",npm_execpath:"D:\\Scoop\\apps\\nodejs-lts\\20.13.1\\node_modules\\npm\\bin\\npm-cli.js",npm_lifecycle_event:"build:lib",npm_lifecycle_script:"vite build",npm_node_execpath:"D:\\Scoop\\apps\\nodejs-lts\\current\\node.exe",npm_package_json:"D:\\Projects\\Edivator\\element-tiptap-vue3-niyuta\\package.json",npm_package_name:"element-tiptap-vue3-niyuta",npm_package_version:"0.0.7",NPM_PREFIX_JS:"D:\\Scoop\\apps\\nodejs-lts\\current\\\\node_modules\\npm\\bin\\npm-prefix.js",NPM_PREFIX_NPM_CLI_JS:"D:\\Scoop\\persist\\nodejs-lts\\bin\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"16",OneDrive:"C:\\Users\\Niyuta\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\Projects\\Edivator\\element-tiptap-vue3-niyuta\\node_modules\\.bin;D:\\Projects\\Edivator\\node_modules\\.bin;D:\\Projects\\node_modules\\.bin;D:\\node_modules\\.bin;D:\\Scoop\\apps\\nodejs-lts\\20.13.1\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Users\\Niyuta\\miniconda3\\condabin;C:\\Users\\Niyuta\\miniconda3;C:\\Users\\Niyuta\\miniconda3\\Library\\mingw-w64\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\usr\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\bin;C:\\Users\\Niyuta\\miniconda3\\Scripts;C:\\Users\\Niyuta\\miniconda3\\bin;D:\\Scoop_Global\\shims;D:\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn;C:\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C:\\Program Files\\Bandizip;C:\\Program Files\\mingw64\\bin;\\bin;\\jre\\bin;\\bin;\\jre\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1;C:\\Program Files\\dotnet;C:\\Program Files\\Mozilla Firefox;D:\\Program Files\\texlive\\2023\\bin\\windows;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\Wbem;C:\\ProgramData\\chocolatey\\bin;D:\\Program Files\\sqlite;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\nginx-1.25.5;C:\\Program Files\\Docker\\Docker\\resources\\bin;D:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit;D:\\Scoop\\apps\\openjdk21\\current\\bin;D:\\Scoop\\apps\\maven\\current\\bin;D:\\Scoop\\apps\\yarn\\current\\global\\node_modules\\.bin;D:\\Scoop\\apps\\yarn\\current\\bin;D:\\Scoop\\apps\\nodejs\\current\\bin;D:\\Scoop\\apps\\nodejs\\current;D:\\Scoop\\shims;C:\\Users\\Niyuta\\AppData\\Local\\.meteor;C:\\Users\\Niyuta\\miniconda3;C:\\Users\\Niyuta\\miniconda3\\Library\\mingw-w64\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\usr\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\bin;C:\\Users\\Niyuta\\miniconda3\\Scripts;C:\\Users\\Niyuta\\miniconda3\\bin;C:\\Users\\Niyuta\\miniconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn;C:\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C:\\Program Files\\Bandizip;C:\\Program Files\\mingw64\\bin;C:\\User;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\Program Files\\cpolar;D:\\Program Files\\JetBrains\\IntelliJ IDEA 2024.1.4\\bin;.;D:\\Program Files\\JetBrains\\PyCharm 2024.1.4\\bin;.;D:\\Program Files\\JetBrains\\WebStorm 2024.1.5\\bin;.;D:\\Program Files\\JetBrains\\Aqua 2024.1.2\\bin;.;D:\\Program Files\\JetBrains\\DataGrip 2024.1.4\\bin;.;D:\\Scoop_Global\\shims;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C:\\Program Files\\Bandizip\\;%JAVA_HOME_20%\\bin;%JAVA_HOME_20%\\jre\\bin;%JAVA_HOME_17%\\bin;%JAVA_HOME_17%\\jre\\bin;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Mozilla Firefox;D:\\Program Files\\texlive\\2023\\bin\\windows;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\Wbem;C:\\ProgramData\\chocolatey\\bin;D:\\Program Files\\sqlite;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\nginx-1.25.5;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;D:\\Scoop\\apps\\nodejs-lts\\current\\bin;D:\\Scoop\\apps\\nodejs-lts\\current;C:\\Users\\Niyuta\\.cargo\\bin;D:\\Scoop\\apps\\gcc\\current\\bin;D:\\Scoop\\apps\\openjdk21\\current\\bin;D:\\Scoop\\apps\\maven\\current\\bin;D:\\Scoop\\shims;C:\\Users\\Niyuta\\AppData\\Local\\.meteor/;C:\\Users\\Niyuta\\miniconda3;C:\\Users\\Niyuta\\miniconda3\\Library\\mingw-w64\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\usr\\bin;C:\\Users\\Niyuta\\miniconda3\\Library\\bin;C:\\Users\\Niyuta\\miniconda3\\Scripts;C:\\Users\\Niyuta\\miniconda3\\bin;C:\\Users\\Niyuta\\miniconda3\\condabin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn;C:\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C:\\Program Files\\Bandizip;C:\\Program Files\\mingw64\\bin;C:\\User;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\Program Files\\cpolar\\;D:\\Program Files\\JetBrains\\IntelliJ IDEA 2024.1.4\\bin;;D:\\Program Files\\JetBrains\\PyCharm 2024.1.4\\bin;;D:\\Program Files\\JetBrains\\WebStorm 2024.1.5\\bin;;D:\\Program Files\\JetBrains\\Aqua 2024.1.2\\bin;;D:\\Program Files\\JetBrains\\DataGrip 2024.1.4\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PHPSTORM_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\phpstorm.vmoptions",POSH_INSTALLER:"scoop",POSH_THEMES_PATH:"C:\\Users\\Niyuta\\AppData\\Local\\Programs\\oh-my-posh\\themes",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"AMD64 Family 25 Model 68 Stepping 1, AuthenticAMD",PROCESSOR_LEVEL:"25",PROCESSOR_REVISION:"4401",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJ_DATA:"C:\\Users\\Niyuta\\miniconda3\\Library\\share\\proj",PROJ_NETWORK:"ON",PROMPT:"(base) $P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PyCharm:"D:\\Program Files\\JetBrains\\PyCharm 2024.1.4\\bin;",PYCHARM_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\pycharm.vmoptions",RABBITMQ_SERVER:"D:\\Scoop_Global\\apps\\rabbitmq\\current",RIDER_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\rider.vmoptions",RlsSvcPort:"22112",RUBYMINE_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\rubymine.vmoptions",SCOOP:"D:\\Scoop",SCOOP_GLOBAL:"D:\\Scoop_Global",SESSIONNAME:"Console",SQLITE_PATH:"D:\\Program Files\\sqlite",STUDIO_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\studio.vmoptions",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"C:\\Users\\Niyuta\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.92.0",TMP:"C:\\Users\\Niyuta\\AppData\\Local\\Temp",USERDOMAIN:"NIYUTA",USERDOMAIN_ROAMINGPROFILE:"NIYUTA",USERNAME:"Niyuta",USERPROFILE:"C:\\Users\\Niyuta",VBOX_MSI_INSTALL_PATH:"D:\\Program Files\\Oracle\\VirtualBox\\",VSCODE_ENV_PREPEND:"PATH=C\\x3a\\Users\\Niyuta\\miniconda3;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\mingw-w64\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\usr\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Scripts;C\\x3a\\Users\\Niyuta\\miniconda3\\bin;D\\x3a\\Scoop_Global\\shims;D\\x3a\\Program Files (x86)\\VMware\\VMware Workstation\\bin;C\\x3a\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C\\x3a\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C\\x3a\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C\\x3a\\Windows\\system32;C\\x3a\\Windows;C\\x3a\\Windows\\System32\\Wbem;C\\x3a\\Windows\\System32\\WindowsPowerShell\\v1.0;C\\x3a\\Windows\\System32\\OpenSSH;C\\x3a\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C\\x3a\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn;C\\x3a\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C\\x3a\\Program Files\\Bandizip;C\\x3a\\Program Files\\mingw64\\bin;\\bin;\\jre\\bin;\\bin;\\jre\\bin;C\\x3a\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C\\x3a\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1;C\\x3a\\Program Files\\dotnet;C\\x3a\\Program Files\\Mozilla Firefox;D\\x3a\\Program Files\\texlive\\2023\\bin\\windows;C\\x3a\\Windows\\system32;C\\x3a\\Windows;C\\x3a\\Windows\\System32\\WindowsPowerShell\\v1.0;C\\x3a\\Windows\\System32\\Wbem;C\\x3a\\ProgramData\\chocolatey\\bin;D\\x3a\\Program Files\\sqlite;C\\x3a\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D\\x3a\\nginx-1.25.5;C\\x3a\\Program Files\\Docker\\Docker\\resources\\bin;D\\x3a\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit;D\\x3a\\Scoop\\apps\\openjdk21\\current\\bin;D\\x3a\\Scoop\\apps\\maven\\current\\bin;D\\x3a\\Scoop\\apps\\yarn\\current\\global\\node_modules\\.bin;D\\x3a\\Scoop\\apps\\yarn\\current\\bin;D\\x3a\\Scoop\\apps\\nodejs\\current\\bin;D\\x3a\\Scoop\\apps\\nodejs\\current;D\\x3a\\Scoop\\shims;C\\x3a\\Users\\Niyuta\\AppData\\Local\\.meteor;C\\x3a\\Users\\Niyuta\\miniconda3;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\mingw-w64\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\usr\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\Scripts;C\\x3a\\Users\\Niyuta\\miniconda3\\bin;C\\x3a\\Users\\Niyuta\\miniconda3\\condabin;C\\x3a\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C\\x3a\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C\\x3a\\Windows\\system32;C\\x3a\\Windows;C\\x3a\\Windows\\System32\\Wbem;C\\x3a\\Windows\\System32\\WindowsPowerShell\\v1.0;C\\x3a\\Windows\\System32\\OpenSSH;C\\x3a\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C\\x3a\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn;C\\x3a\\Program Files\\MySQL\\MySQL Server 8.1\\bin;C\\x3a\\Program Files\\Bandizip;C\\x3a\\Program Files\\mingw64\\bin;C\\x3a\\User;C\\x3a\\Users\\Niyuta\\AppData\\Local\\Programs\\oh-my-posh\\bin;C\\x3a\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D\\x3a\\Program Files\\cpolar;D\\x3a\\Program Files\\JetBrains\\IntelliJ IDEA 2024.1.4\\bin;.;D\\x3a\\Program Files\\JetBrains\\PyCharm 2024.1.4\\bin;.;D\\x3a\\Program Files\\JetBrains\\WebStorm 2024.1.5\\bin;.;D\\x3a\\Program Files\\JetBrains\\Aqua 2024.1.2\\bin;.;D\\x3a\\Program Files\\JetBrains\\DataGrip 2024.1.4\\bin;.;",VSCODE_ENV_REPLACE:"CONDA_EXE=C\\x3a\\Users\\Niyuta\\miniconda3\\condabin\\..\\Scripts\\conda.exe:PROJ_DATA=C\\x3a\\Users\\Niyuta\\miniconda3\\Library\\share\\proj:PROJ_NETWORK=ON:PROMPT=(base) $P$G:_CONDA_OLD_CHCP=65001:CONDA_ROOT=C\\x3a\\Users\\Niyuta\\miniconda3",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\Niyuta\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-af4a1dba2a-sock",WEBIDE_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\webide.vmoptions",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2024.1.5\\bin;",WEBSTORM_VM_OPTIONS:"C:\\Users\\Niyuta\\Downloads\\Win\\win\\jetbra\\vmoptions\\webstorm.vmoptions",windir:"C:\\Windows",_CONDA_OLD_CHCP:"65001"});const JG="http://101.201.173.118/api/",rr=GG.create({baseURL:JG,withCredentials:!1,timeout:5e4});function XG(t){return new Promise(e=>setTimeout(e,t))}var Ar={abstract:async function(t){return(await rr.post("ai/chat/summarize/",t)).data.summary},polish:async function(t){return(await rr.post("ai/chat/polish/",t)).data.polished},translate:async function(t){return(await rr.post("ai/chat/translate/",t)).data.translated},continueWrite:async function(t){return(await rr.post("ai/chat/continue_write/",t)).data.continued},correct:async function(t){return(await rr.post("ai/correct/",t)).data.response},generateTable:async function(t){return(await rr.post("ai/chat/form/",t)).data.res},generateImage:async function(t){const n=(await rr.post("ai/pictures/generate/",t)).data.data.primaryTaskId;return await XG(5e3),(await rr.post("ai/pictures/get_img/",{taskId:n})).data.img},voiceRecognize:async function(t){return await rr.post("ai/speeches/recognize/",t)},objectDetect:async function(t){return await rr.post("ai/ocr/pattern/",t)},OCR:async function(t){return await rr.post("ai/ocr/infer/",t)},generateText:async function(t){return(await rr.post("ai/chat/styled_ggenerate/",t)).data.response}},Ase="";const YG={class:"el-tiptap-popper__menu"},ZG=["onClick"],QG={class:"el-tiptap__ocr-dialog-visible"},eJ={class:"dialog-content"},tJ={class:"ocr-content"},nJ=["src"],rJ=["innerHTML"],oJ={class:"dialog-footer"},iJ={class:"el-tiptap__od-dialog-visible"},sJ={class:"ocr-content"},aJ={class:"ocr-item-header"},lJ={class:"ocr-score"},cJ={class:"ocr-keyword"},uJ={key:0,class:"ocr-item-content"},dJ=["href"],fJ=["href"],pJ={key:2},hJ={class:"dialog-footer"},mJ=i.defineComponent({__name:"ImageAiButton",props:{node:Ln.node,updateAttrs:Ln.updateAttributes,buttonIcon:{type:String,default:""}},setup(t){const e=t,n=i.ref({image:"",text:""}),r=i.ref([]),o=()=>{navigator.clipboard.writeText(n.value.text).then(()=>{Dn.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}).catch(g=>{console.error("\u590D\u5236\u5931\u8D25",g),Dn.success("\u{1F62D}\u590D\u5236\u5931\u8D25\u4E86\uFF0C\u7A0D\u540E\u91CD\u8BD5\u4E00\u4E0B\u5427\uFF01")}).finally(()=>{c.value=!1,n.value={image:"",text:""}})},s=()=>{a.value=!1,r.value=[]},a=i.ref(!1),l=i.ref(!1),c=i.ref(!1),u=i.inject("t"),d=i.inject("enableTooltip",!0),f=i.ref(null),p=i.ref(""),h=i.ref([{key:"ocr",name:u("editor.extensions.Ai.image.ocr")},{key:"od",name:u("editor.extensions.Ai.image.od")}]),m=g=>{p.value=g,l.value=!0;const b=e.node;if(g.key==="ocr"){const y=b.attrs.src;fetch(y).then(S=>S.blob()).then(S=>{const k=new FileReader;k.onloadend=async()=>{const C=k.result.split(",")[1];try{const _=await Ar.OCR({base64_img:C}),E=_.data.image_url,T=_.data.texts.join(", ");n.value.image=E,n.value.text=T}catch(_){console.error("OCR \u8BC6\u522B\u5931\u8D25:",_),c.value=!1}},k.readAsDataURL(S),c.value=!0}).finally(()=>{l.value=!1})}else if(g.key==="od"){const y=b.attrs.src;fetch(y).then(S=>S.blob()).then(S=>{const k=new FileReader;k.onloadend=async()=>{const C=k.result.split(",")[1];try{const _=await Ar.objectDetect({base64_img:C});r.value=_.data.result}catch(_){console.error("OCR \u8BC6\u522B\u5931\u8D25:",_)}},k.readAsDataURL(S),a.value=!0}).finally(()=>{l.value=!1})}};return(g,b)=>{const y=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(oi),{placement:"bottom",trigger:"click","popper-class":"el-tiptap-popper",ref_key:"popoverRef",ref:f},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(Ue,{"enable-tooltip":i.unref(d),tooltip:i.unref(u)("editor.extensions.Ai.tooltip"),icon:"ai","button-icon":t.buttonIcon},null,8,["enable-tooltip","tooltip","button-icon"])])]),default:i.withCtx(()=>[i.createElementVNode("div",YG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,S=>(i.openBlock(),i.createElementBlock("div",{key:S.key,class:"el-tiptap-popper__menu__item",onClick:k=>m(S)},[i.createElementVNode("span",null,i.toDisplayString(S.name),1)],8,ZG))),128))])]),_:1},512),i.withDirectives(i.createElementVNode("div",QG,[i.createVNode(i.unref(Qs),{title:"OCR\u7ED3\u679C",modelValue:c.value,"onUpdate:modelValue":b[1]||(b[1]=S=>c.value=S)},{default:i.withCtx(()=>[i.createElementVNode("div",eJ,[i.createVNode(i.unref(Kr),{loading:l.value,animated:""},{template:i.withCtx(()=>[i.createVNode(i.unref(ii),{variant:"image",style:{width:"240px",height:"240px"}}),i.createVNode(i.unref(Kr),{rows:3})]),default:i.withCtx(()=>[i.createElementVNode("div",tJ,[i.createElementVNode("img",{src:n.value.image,alt:"OCR Image",class:"ocr-image"},null,8,nJ),i.createElementVNode("div",{class:"text-container",innerHTML:n.value.text},null,8,rJ)])]),_:1},8,["loading"])]),i.createElementVNode("div",oJ,[i.createVNode(y,{onClick:o},{default:i.withCtx(()=>[i.createTextVNode("Copy")]),_:1}),i.createVNode(y,{type:"danger",round:"",onClick:b[0]||(b[0]=S=>c.value=!1)},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])]),_:1},8,["modelValue"])],512),[[i.vShow,c.value]]),i.withDirectives(i.createElementVNode("div",iJ,[i.createVNode(i.unref(Qs),{title:"\u76EE\u6807\u68C0\u6D4B\u7ED3\u679C",modelValue:a.value,"onUpdate:modelValue":b[2]||(b[2]=S=>a.value=S)},{default:i.withCtx(()=>[i.createVNode(i.unref(Kr),{loading:l.value,animated:""},{template:i.withCtx(()=>[i.createVNode(i.unref(Kr),{rows:10})]),default:i.withCtx(()=>[i.createElementVNode("div",sJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(S,k)=>(i.openBlock(),i.createElementBlock("div",{key:k,class:"ocr-item"},[i.createElementVNode("div",aJ,[i.createElementVNode("span",lJ,"Score: "+i.toDisplayString(S.score),1),i.createElementVNode("span",cJ,i.toDisplayString(S.keyword),1)]),S.baike_info.baike_url||S.baike_info.image_url?(i.openBlock(),i.createElementBlock("div",uJ,[S.baike_info.baike_url?(i.openBlock(),i.createElementBlock("a",{key:0,href:S.baike_info.baike_url,target:"_blank"},"\u767E\u79D1\u94FE\u63A5",8,dJ)):i.createCommentVNode("",!0),S.baike_info.image_url?(i.openBlock(),i.createElementBlock("a",{key:1,style:{"margin-left":"5px"},href:S.baike_info.image_url},"\u56FE\u7247\u94FE\u63A5",8,fJ)):i.createCommentVNode("",!0),S.baike_info.description?(i.openBlock(),i.createElementBlock("p",pJ,i.toDisplayString(S.baike_info.description),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)]))),128))])]),_:1},8,["loading"]),i.createElementVNode("div",hJ,[i.createVNode(y,{round:"",type:"danger",onClick:s},{default:i.withCtx(()=>[i.createTextVNode("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue"])],512),[[i.vShow,a.value]])],64)}}});var gJ=tt(mJ,[["__scopeId","data-v-492c46e8"]]);const bJ=i.defineComponent({components:{ImageDisplayCommandButton:hK,EditImageCommandButton:bK,RemoveImageCommandButton:vK,ImageAiButton:gJ},props:{editor:Ln.editor,node:Ln.node,updateAttrs:Ln.updateAttributes}}),yJ={class:"image-bubble-menu"};function wJ(t,e,n,r,o,s){const a=i.resolveComponent("image-ai-button"),l=i.resolveComponent("image-display-command-button"),c=i.resolveComponent("edit-image-command-button"),u=i.resolveComponent("remove-image-command-button");return i.openBlock(),i.createElementBlock("div",yJ,[i.createVNode(a,{node:t.node,"update-attrs":t.updateAttrs},null,8,["node","update-attrs"]),i.createVNode(l,{node:t.node,"update-attrs":t.updateAttrs},null,8,["node","update-attrs"]),i.createVNode(c,{node:t.node,"update-attrs":t.updateAttrs},null,8,["node","update-attrs"]),i.createVNode(u,{editor:t.editor},null,8,["editor"])])}var vJ=tt(bJ,[["render",wJ]]);const Zu=20,p8=1e5,CJ=i.defineComponent({name:"ImageView",components:{ElPopover:oi,NodeViewWrapper:Ef,ImageBubbleMenu:vJ},props:Ln,data(){return{maxSize:{width:p8,height:p8},isDragging:!1,originalSize:{width:0,height:0},resizeDirections:["tl","tr","bl","br"],resizing:!1,resizerState:{x:0,y:0,w:0,h:0,dir:""}}},computed:{src(){return this.node.attrs.src},width(){return this.node.attrs.width},height(){return this.node.attrs.height},display(){return this.node.attrs.display},imageViewClass(){return["image-view",`image-view--${this.display}`]}},async created(){const t=await Wx(this.src);t.complete||(t.width=Zu,t.height=Zu),this.originalSize={width:t.width,height:t.height}},mounted(){this.resizeOb=new cK(()=>{this.getMaxSize()}),this.resizeOb.observe(this.editor.view.dom)},beforeUnmount(){this.resizeOb.disconnect()},methods:{startDragging(){this.isDragging=!0,this.editor.commands.blur()},selectImage(){var t;this.isDragging=!1,(t=this.editor)==null||t.commands.setNodeSelection(this.getPos())},getMaxSize(){const{width:t}=getComputedStyle(this.editor.view.dom);this.maxSize.width=parseInt(t,10)},onMouseDown(t,e){t.preventDefault(),t.stopPropagation(),this.resizerState.x=t.clientX,this.resizerState.y=t.clientY;const n=this.originalSize.width,r=this.originalSize.height,o=n/r;let{width:s,height:a}=this.node.attrs;const l=this.maxSize.width;s&&!a?(s=s>l?l:s,a=Math.round(s/o)):a&&!s?(s=Math.round(a*o),s=s>l?l:s):!s&&!a?(s=n>l?l:n,a=Math.round(s/o)):s=s>l?l:s,this.resizerState.w=s,this.resizerState.h=a,this.resizerState.dir=e,this.resizing=!0,this.onEvents()},onMouseMove(t){var c;if(t.preventDefault(),t.stopPropagation(),!this.resizing)return;const{x:e,y:n,w:r,h:o,dir:s}=this.resizerState,a=(t.clientX-e)*(/l/.test(s)?-1:1),l=(t.clientY-n)*(/t/.test(s)?-1:1);(c=this.updateAttributes)==null||c.call(this,{width:j5(r+a,Zu,this.maxSize.width),height:Math.max(o+l,Zu)})},onMouseUp(t){t.preventDefault(),t.stopPropagation(),this.resizing&&(this.resizing=!1,this.resizerState={x:0,y:0,w:0,h:0,dir:""},this.offEvents(),this.selectImage())},onEvents(){document.addEventListener("mousemove",this.onMouseMove,!0),document.addEventListener("mouseup",this.onMouseUp,!0)},offEvents(){document.removeEventListener("mousemove",this.onMouseMove,!0),document.removeEventListener("mouseup",this.onMouseUp,!0)}}}),kJ=["src","title","alt","width","height"],SJ=["data-drag-handle"],EJ={key:1,class:"image-resizer drag-handle"},xJ=["onMousedown"],TJ=i.createElementVNode("div",{class:"image-view__body__placeholder"},null,-1);function AJ(t,e,n,r,o,s){const a=i.resolveComponent("image-bubble-menu"),l=i.resolveComponent("el-popover"),c=i.resolveComponent("node-view-wrapper");return i.openBlock(),i.createBlock(c,{as:"span",class:i.normalizeClass(t.imageViewClass)},{default:i.withCtx(()=>{var u,d,f,p,h;return[i.createElementVNode("div",{class:i.normalizeClass({"image-view__body--focused":t.selected&&((u=t.editor)==null?void 0:u.isEditable)&&!t.isDragging,"image-view__body--resizing":t.resizing&&((d=t.editor)==null?void 0:d.isEditable)&&!t.isDragging,"image-view__body":(f=t.editor)==null?void 0:f.isEditable})},[i.createElementVNode("img",{contenteditable:"false",draggable:"false",ref:"content",src:t.src,title:t.node.attrs.title,alt:t.node.attrs.alt,width:t.width,height:t.height,class:"image-view__body__image",onClick:e[0]||(e[0]=(...m)=>t.selectImage&&t.selectImage(...m))},null,8,kJ),t.node.attrs.draggable?(i.openBlock(),i.createElementBlock("span",{key:0,class:"mover-button","data-drag-handle":t.node.attrs.draggable,onMousedown:e[1]||(e[1]=i.withModifiers(m=>t.startDragging(),["left"]))}," \u2725 ",40,SJ)):i.createCommentVNode("",!0),(p=t.editor)!=null&&p.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("div",EJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.resizeDirections,m=>(i.openBlock(),i.createElementBlock("span",{key:m,class:i.normalizeClass([`image-resizer__handler--${m}`,"image-resizer__handler"]),onMousedown:g=>t.onMouseDown(g,m)},null,42,xJ))),128))],512)),[[i.vShow,(t.selected||t.resizing)&&!t.isDragging]]):i.createCommentVNode("",!0),i.createVNode(l,{visible:t.selected&&!t.isDragging,disabled:!((h=t.editor)!=null&&h.isEditable),"show-arrow":!1,placement:"top","popper-class":"el-tiptap-image-popper"},{reference:i.withCtx(()=>[TJ]),default:i.withCtx(()=>[i.createVNode(a,{node:t.node,editor:t.editor,"update-attrs":t.updateAttributes},null,8,["node","editor","update-attrs"])]),_:1},8,["visible","disabled"])],2)]}),_:1},8,["class"])}var _J=tt(CJ,[["render",AJ]]);const DJ=LW.extend({inline(){return!0},group(){return"inline"},addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),width:{default:this.options.defaultWidth,parseHTML:e=>{const n=e.style.width||e.getAttribute("width")||null;return n==null?null:parseInt(n,10)},renderHTML:e=>({width:e.width})},height:{default:null,parseHTML:e=>{const n=e.style.height||e.getAttribute("height")||null;return n==null?null:parseInt(n,10)},renderHTML:e=>({height:e.height})},display:{default:Jx,parseHTML:e=>{const{cssFloat:n,display:r}=e.style;let o=e.getAttribute("data-display")||e.getAttribute("display");return o?o=/(inline|block|left|right)/.test(o)?o:mr.INLINE:n==="left"&&!r?o=mr.FLOAT_LEFT:n==="right"&&!r?o=mr.FLOAT_RIGHT:!n&&r==="block"?o=mr.BREAK_TEXT:o=mr.INLINE,o},renderHTML:e=>({"data-display":e.display})},draggable:{default:this.options.draggable}}},addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),inline:!0,buttonIcon:"",defaultWidth:Gx,uploadRequest:null,urlPattern:Kx,draggable:!1,button({editor:e,extension:n}){return{component:HW,componentProps:{editor:e,buttonIcon:n.options.buttonIcon}}}}},addNodeView(){return xf(_J)},parseHTML(){return[{tag:"img[src]"}]}}),MJ=ut.create({name:"taskList",addOptions(){return{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",Ye(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),NJ=/^\s*(\[([( |x])?\])\s$/,BJ=ut.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{}}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>t.getAttribute("data-checked")==="true",renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Ye(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const 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:r})=>{const o=document.createElement("li"),s=document.createElement("label"),a=document.createElement("span"),l=document.createElement("input"),c=document.createElement("div");return s.contentEditable="false",l.type="checkbox",l.addEventListener("change",u=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}const{checked:d}=u.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{const p=n(),h=f.doc.nodeAt(p);return f.setNodeMarkup(p,void 0,{...h==null?void 0:h.attrs,checked:d}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,d)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,d])=>{o.setAttribute(u,d)}),o.dataset.checked=t.attrs.checked,t.attrs.checked&&l.setAttribute("checked","checked"),s.append(l,a),o.append(s,c),Object.entries(e).forEach(([u,d])=>{o.setAttribute(u,d)}),{dom:o,contentDOM:c,update:u=>u.type!==this.type?!1:(o.dataset.checked=u.attrs.checked,u.attrs.checked?l.setAttribute("checked","checked"):l.removeAttribute("checked"),!0)}}},addInputRules(){return[Ds({find:NJ,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),OJ=i.defineComponent({name:"TaskItemView",components:{NodeViewWrapper:Ef,NodeViewContent:Vx,ElCheckbox:yl},props:Ln,computed:{done:{get(){var t;return(t=this.node)==null?void 0:t.attrs.done},set(t){var e;(e=this.updateAttributes)==null||e.call(this,{done:t})}}}}),IJ=["data-type","data-done"],PJ={contenteditable:"false"};function LJ(t,e,n,r,o,s){const a=i.resolveComponent("el-checkbox"),l=i.resolveComponent("node-view-content"),c=i.resolveComponent("node-view-wrapper");return i.openBlock(),i.createBlock(c,{class:"task-item-wrapper"},{default:i.withCtx(()=>{var u;return[i.createElementVNode("li",{"data-type":(u=t.node)==null?void 0:u.type.name,"data-done":t.done.toString(),"data-drag-handle":""},[i.createElementVNode("span",PJ,[i.createVNode(a,{modelValue:t.done,"onUpdate:modelValue":e[0]||(e[0]=d=>t.done=d)},null,8,["modelValue"])]),i.createVNode(l,{class:"todo-content"})],8,IJ)]}),_:1})}var RJ=tt(OJ,[["render",LJ]]);const zJ=BJ.extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),done:{default:!1,keepOnSplit:!1,parseHTML:e=>e.getAttribute("data-done")==="true",renderHTML:e=>({"data-done":e.done})}}},renderHTML(t){const{done:e}=t.node.attrs;return["li",Ye(this.options.HTMLAttributes,t.HTMLAttributes,{"data-type":this.name}),["span",{contenteditable:"false"},["span",{class:`el-checkbox ${e?"is-checked":""}`,style:"pointer-events: none;"},["span",{class:`el-checkbox__input ${e?"is-checked":""}`},["span",{class:"el-checkbox__inner"}]]]],["div",{class:"todo-content"},0]]},addNodeView(){return xf(RJ)}}),FJ=MJ.extend({addOptions(){var t;return{buttonIcon:"",...(t=this.parent)==null?void 0:t.call(this),commandList:[{title:"taskList",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleTaskList().run()},disabled:!1,isActive(e){return e.isActive("taskList")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleTaskList()},isActive:e.isActive("taskList"),buttonIcon:n.options.buttonIcon,icon:"tasks",tooltip:r("editor.extensions.TodoList.tooltip")}}}}},addExtensions(){return[zJ]}});var Uh,qh;if(typeof WeakMap!="undefined"){let t=new WeakMap;Uh=e=>t.get(e),qh=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;Uh=r=>{for(let o=0;o<t.length;o+=2)if(t[o]==r)return t[o+1]},qh=(r,o)=>(n==10&&(n=0),t[n++]=r,t[n++]=o)}var Dt=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,o=e/this.width|0;let s=r+1,a=o+1;for(let l=1;s<this.width&&this.map[e+l]==n;l++)s++;for(let l=1;a<this.height&&this.map[e+this.width*l]==n;l++)a++;return{left:r,top:o,right:s,bottom:a}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:o,top:s,bottom:a}=this.findCell(t);return e=="horiz"?(n<0?r==0:o==this.width)?null:this.map[s*this.width+(n<0?r-1:o)]:(n<0?s==0:a==this.height)?null:this.map[r+this.width*(n<0?s-1:a)]}rectBetween(t,e){const{left:n,right:r,top:o,bottom:s}=this.findCell(t),{left:a,right:l,top:c,bottom:u}=this.findCell(e);return{left:Math.min(n,a),top:Math.min(o,c),right:Math.max(r,l),bottom:Math.max(s,u)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let o=t.left;o<t.right;o++){const s=r*this.width+o,a=this.map[s];n[a]||(n[a]=!0,!(o==t.left&&o&&this.map[s-1]==a||r==t.top&&r&&this.map[s-this.width]==a)&&e.push(a))}return e}positionAt(t,e,n){for(let r=0,o=0;;r++){const s=o+n.child(r).nodeSize;if(r==t){let a=e+t*this.width;const l=(t+1)*this.width;for(;a<l&&this.map[a]<o;)a++;return a==l?s-1:this.map[a]}o=s}}static get(t){return Uh(t)||qh(t,$J(t))}};function $J(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=VJ(t),n=t.childCount,r=[];let o=0,s=null;const a=[];for(let u=0,d=e*n;u<d;u++)r[u]=0;for(let u=0,d=0;u<n;u++){const f=t.child(u);d++;for(let m=0;;m++){for(;o<r.length&&r[o]!=0;)o++;if(m==f.childCount)break;const g=f.child(m),{colspan:b,rowspan:y,colwidth:S}=g.attrs;for(let k=0;k<y;k++){if(k+u>=n){(s||(s=[])).push({type:"overlong_rowspan",pos:d,n:y-k});break}const C=o+k*e;for(let _=0;_<b;_++){r[C+_]==0?r[C+_]=d:(s||(s=[])).push({type:"collision",row:u,pos:d,n:b-_});const E=S&&S[_];if(E){const T=(C+_)%e*2,M=a[T];M==null||M!=E&&a[T+1]==1?(a[T]=E,a[T+1]=1):M==E&&a[T+1]++}}}o+=b,d+=g.nodeSize}const p=(u+1)*e;let h=0;for(;o<p;)r[o++]==0&&h++;h&&(s||(s=[])).push({type:"missing",row:u,n:h}),d++}const l=new Dt(e,n,r,s);let c=!1;for(let u=0;!c&&u<a.length;u+=2)a[u]!=null&&a[u+1]<n&&(c=!0);return c&&HJ(l,a,t),l}function VJ(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const o=t.child(r);let s=0;if(n)for(let a=0;a<r;a++){const l=t.child(a);for(let c=0;c<l.childCount;c++){const u=l.child(c);a+u.attrs.rowspan>r&&(s+=u.attrs.colspan)}}for(let a=0;a<o.childCount;a++){const l=o.child(a);s+=l.attrs.colspan,l.attrs.rowspan>1&&(n=!0)}e==-1?e=s:e!=s&&(e=Math.max(e,s))}return e}function HJ(t,e,n){t.problems||(t.problems=[]);const r={};for(let o=0;o<t.map.length;o++){const s=t.map[o];if(r[s])continue;r[s]=!0;const a=n.nodeAt(s);if(!a)throw new RangeError(`No cell with offset ${s} found`);let l=null;const c=a.attrs;for(let u=0;u<c.colspan;u++){const d=(o+u)%t.width,f=e[d*2];f!=null&&(!c.colwidth||c.colwidth[u]!=f)&&((l||(l=jJ(c)))[u]=f)}l&&t.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function jJ(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function cn(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],o=r.spec.tableRole;o&&(e[o]=r)}}return e}var ci=new Ot("selectingCells");function ca(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function UJ(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function _r(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function Qu(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=ca(e.$head)||qJ(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function qJ(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function Wh(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function WJ(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function Kh(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function h8(t,e,n){const r=t.node(-1),o=Dt.get(r),s=t.start(-1),a=o.nextCell(t.pos-s,e,n);return a==null?null:t.node(0).resolve(s+a)}function rs(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(o=>o>0)||(r.colwidth=null)),r}function m8(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let o=0;o<n;o++)r.colwidth.splice(e,0,0)}return r}function KJ(t,e,n){const r=cn(e.type.schema).header_cell;for(let o=0;o<t.height;o++)if(e.nodeAt(t.map[n+o*t.width]).type!=r)return!1;return!0}var Ze=class extends Ie{constructor(t,e=t){const n=t.node(-1),r=Dt.get(n),o=t.start(-1),s=r.rectBetween(t.pos-o,e.pos-o),a=t.node(0),l=r.cellsInRect(s).filter(u=>u!=e.pos-o);l.unshift(e.pos-o);const c=l.map(u=>{const d=n.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const f=o+u+1;return new X1(a.resolve(f),a.resolve(f+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){const n=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(Wh(n)&&Wh(r)&&Kh(n,r)){const o=this.$anchorCell.node(-1)!=n.node(-1);return o&&this.isRowSelection()?Ze.rowSelection(n,r):o&&this.isColSelection()?Ze.colSelection(n,r):new Ze(n,r)}return Be.between(n,r)}content(){const t=this.$anchorCell.node(-1),e=Dt.get(t),n=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},s=[];for(let l=r.top;l<r.bottom;l++){const c=[];for(let u=l*e.width+r.left,d=r.left;d<r.right;d++,u++){const f=e.map[u];if(o[f])continue;o[f]=!0;const p=e.findCell(f);let h=t.nodeAt(f);if(!h)throw RangeError(`No cell with offset ${f} found`);const m=r.left-p.left,g=p.right-r.right;if(m>0||g>0){let b=h.attrs;if(m>0&&(b=rs(b,0,m)),g>0&&(b=rs(b,b.colspan-g,g)),p.left<r.left){if(h=h.type.createAndFill(b),!h)throw RangeError(`Could not create cell with attrs ${JSON.stringify(b)}`)}else h=h.type.create(b,h.content)}if(p.top<r.top||p.bottom>r.bottom){const b={...h.attrs,rowspan:Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top)};p.top<r.top?h=h.type.createAndFill(b):h=h.type.create(b,h.content)}c.push(h)}s.push(t.child(l).copy(Y.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?t:s;return new ue(Y.from(a),1,1)}replace(t,e=ue.empty){const n=t.steps.length,r=this.ranges;for(let s=0;s<r.length;s++){const{$from:a,$to:l}=r[s],c=t.mapping.slice(n);t.replace(c.map(a.pos),c.map(l.pos),s?ue.empty:e)}const o=Ie.findFrom(t.doc.resolve(t.mapping.slice(n).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,e){this.replace(t,new ue(Y.from(e),0,0))}forEachCell(t){const e=this.$anchorCell.node(-1),n=Dt.get(e),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let s=0;s<o.length;s++)t(e.nodeAt(o[s]),r+o[s])}isColSelection(){const t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(Math.min(t,e)>0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,r=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){const n=t.node(-1),r=Dt.get(n),o=t.start(-1),s=r.findCell(t.pos-o),a=r.findCell(e.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+r.map[s.left])),a.bottom<r.height&&(e=l.resolve(o+r.map[r.width*(r.height-1)+a.right-1]))):(a.top>0&&(e=l.resolve(o+r.map[a.left])),s.bottom<r.height&&(t=l.resolve(o+r.map[r.width*(r.height-1)+s.right-1]))),new Ze(t,e)}isRowSelection(){const t=this.$anchorCell.node(-1),e=Dt.get(t),n=this.$anchorCell.start(-1),r=e.colCount(this.$anchorCell.pos-n),o=e.colCount(this.$headCell.pos-n);if(Math.min(r,o)>0)return!1;const s=r+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==e.width}eq(t){return t instanceof Ze&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){const n=t.node(-1),r=Dt.get(n),o=t.start(-1),s=r.findCell(t.pos-o),a=r.findCell(e.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+r.map[s.top*r.width])),a.right<r.width&&(e=l.resolve(o+r.map[r.width*(a.top+1)-1]))):(a.left>0&&(e=l.resolve(o+r.map[a.top*r.width])),s.right<r.width&&(t=l.resolve(o+r.map[r.width*(s.top+1)-1]))),new Ze(t,e)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,e){return new Ze(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){return new Ze(t.resolve(e),t.resolve(n))}getBookmark(){return new g8(this.$anchorCell.pos,this.$headCell.pos)}};Ze.prototype.visible=!1,Ie.jsonID("cell",Ze);var g8=class{constructor(t,e){this.anchor=t,this.head=e}map(t){return new g8(t.map(this.anchor),t.map(this.head))}resolve(t){const e=t.resolve(this.anchor),n=t.resolve(this.head);return e.parent.type.spec.tableRole=="row"&&n.parent.type.spec.tableRole=="row"&&e.index()<e.parent.childCount&&n.index()<n.parent.childCount&&Kh(e,n)?new Ze(e,n):Ie.near(n,1)}};function GJ(t){if(!(t.selection instanceof Ze))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push(Yt.node(r,r+n.nodeSize,{class:"selectedCell"}))}),mt.create(t.doc,e)}function JJ({$from:t,$to:e}){if(t.pos==e.pos||t.pos<t.pos-6)return!1;let n=t.pos,r=e.pos,o=t.depth;for(;o>=0&&!(t.after(o+1)<t.end(o));o--,n++);for(let s=e.depth;s>=0&&!(e.before(s+1)>e.start(s));s--,r--);return n==r&&/row|table/.test(t.node(o).type.spec.tableRole)}function XJ({$from:t,$to:e}){let n,r;for(let o=t.depth;o>0;o--){const s=t.node(o);if(s.type.spec.tableRole==="cell"||s.type.spec.tableRole==="header_cell"){n=s;break}}for(let o=e.depth;o>0;o--){const s=e.node(o);if(s.type.spec.tableRole==="cell"||s.type.spec.tableRole==="header_cell"){r=s;break}}return n!==r&&e.parentOffset===0}function YJ(t,e,n){const r=(e||t).selection,o=(e||t).doc;let s,a;if(r instanceof _e&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")s=Ze.create(o,r.from);else if(a=="row"){const l=o.resolve(r.from+1);s=Ze.rowSelection(l,l)}else if(!n){const l=Dt.get(r.node),c=r.from+1,u=c+l.map[l.width*l.height-1];s=Ze.create(o,c+1,u)}}else r instanceof Be&&JJ(r)?s=Be.create(o,r.from):r instanceof Be&&XJ(r)&&(s=Be.create(o,r.$from.start(),r.$from.end()));return s&&(e||(e=t.tr)).setSelection(s),e}var ZJ=new Ot("fix-tables");function b8(t,e,n,r){const o=t.childCount,s=e.childCount;e:for(let a=0,l=0;a<s;a++){const c=e.child(a);for(let u=l,d=Math.min(o,a+3);u<d;u++)if(t.child(u)==c){l=u+1,n+=c.nodeSize;continue e}r(c,n),l<o&&t.child(l).sameMarkup(c)?b8(t.child(l),c,n+1,r):c.nodesBetween(0,c.content.size,r,n+1),n+=c.nodeSize}}function y8(t,e){let n;const r=(o,s)=>{o.type.spec.tableRole=="table"&&(n=QJ(t,o,s,n))};return e?e.doc!=t.doc&&b8(e.doc,t.doc,0,r):t.doc.descendants(r),n}function QJ(t,e,n,r){const o=Dt.get(e);if(!o.problems)return r;r||(r=t.tr);const s=[];for(let c=0;c<o.height;c++)s.push(0);for(let c=0;c<o.problems.length;c++){const u=o.problems[c];if(u.type=="collision"){const d=e.nodeAt(u.pos);if(!d)continue;const f=d.attrs;for(let p=0;p<f.rowspan;p++)s[u.row+p]+=u.n;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,rs(f,f.colspan-u.n,u.n))}else if(u.type=="missing")s[u.row]+=u.n;else if(u.type=="overlong_rowspan"){const d=e.nodeAt(u.pos);if(!d)continue;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,{...d.attrs,rowspan:d.attrs.rowspan-u.n})}else if(u.type=="colwidth mismatch"){const d=e.nodeAt(u.pos);if(!d)continue;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,{...d.attrs,colwidth:u.colwidth})}}let a,l;for(let c=0;c<s.length;c++)s[c]&&(a==null&&(a=c),l=c);for(let c=0,u=n+1;c<o.height;c++){const d=e.child(c),f=u+d.nodeSize,p=s[c];if(p>0){let h="cell";d.firstChild&&(h=d.firstChild.type.spec.tableRole);const m=[];for(let b=0;b<p;b++){const y=cn(t.schema)[h].createAndFill();y&&m.push(y)}const g=(c==0||a==c-1)&&l==c?u+1:f-1;r.insert(r.mapping.map(g),m)}u=f}return r.setMeta(ZJ,{fixTables:!0})}function eX(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const o=e.child(0),s=o.type.spec.tableRole,a=o.type.schema,l=[];if(s=="row")for(let c=0;c<e.childCount;c++){let u=e.child(c).content;const d=c?0:Math.max(0,n-1),f=c<e.childCount-1?0:Math.max(0,r-1);(d||f)&&(u=Gh(cn(a).row,new ue(u,d,f)).content),l.push(u)}else if(s=="cell"||s=="header_cell")l.push(n||r?Gh(cn(a).row,new ue(e,n,r)).content:e);else return null;return tX(a,l)}function tX(t,e){const n=[];for(let o=0;o<e.length;o++){const s=e[o];for(let a=s.childCount-1;a>=0;a--){const{rowspan:l,colspan:c}=s.child(a).attrs;for(let u=o;u<o+l;u++)n[u]=(n[u]||0)+c}}let r=0;for(let o=0;o<n.length;o++)r=Math.max(r,n[o]);for(let o=0;o<n.length;o++)if(o>=e.length&&e.push(Y.empty),n[o]<r){const s=cn(t).cell.createAndFill(),a=[];for(let l=n[o];l<r;l++)a.push(s);e[o]=e[o].append(Y.from(a))}return{height:e.length,width:r,rows:e}}function Gh(t,e){const n=t.createAndFill();return new g0(n).replace(0,n.content.size,e).doc}function nX({width:t,height:e,rows:n},r,o){if(t!=r){const s=[],a=[];for(let l=0;l<n.length;l++){const c=n[l],u=[];for(let d=s[l]||0,f=0;d<r;f++){let p=c.child(f%c.childCount);d+p.attrs.colspan>r&&(p=p.type.createChecked(rs(p.attrs,p.attrs.colspan,d+p.attrs.colspan-r),p.content)),u.push(p),d+=p.attrs.colspan;for(let h=1;h<p.attrs.rowspan;h++)s[l+h]=(s[l+h]||0)+p.attrs.colspan}a.push(Y.from(u))}n=a,t=r}if(e!=o){const s=[];for(let a=0,l=0;a<o;a++,l++){const c=[],u=n[l%e];for(let d=0;d<u.childCount;d++){let f=u.child(d);a+f.attrs.rowspan>o&&(f=f.type.create({...f.attrs,rowspan:Math.max(1,o-f.attrs.rowspan)},f.content)),c.push(f)}s.push(Y.from(c))}n=s,e=o}return{width:t,height:e,rows:n}}function rX(t,e,n,r,o,s,a){const l=t.doc.type.schema,c=cn(l);let u,d;if(o>e.width)for(let f=0,p=0;f<e.height;f++){const h=n.child(f);p+=h.nodeSize;const m=[];let g;h.lastChild==null||h.lastChild.type==c.cell?g=u||(u=c.cell.createAndFill()):g=d||(d=c.header_cell.createAndFill());for(let b=e.width;b<o;b++)m.push(g);t.insert(t.mapping.slice(a).map(p-1+r),m)}if(s>e.height){const f=[];for(let m=0,g=(e.height-1)*e.width;m<Math.max(e.width,o);m++){const b=m>=e.width?!1:n.nodeAt(e.map[g+m]).type==c.header_cell;f.push(b?d||(d=c.header_cell.createAndFill()):u||(u=c.cell.createAndFill()))}const p=c.row.create(null,Y.from(f)),h=[];for(let m=e.height;m<s;m++)h.push(p);t.insert(t.mapping.slice(a).map(r+n.nodeSize-2),h)}return!!(u||d)}function w8(t,e,n,r,o,s,a,l){if(a==0||a==e.height)return!1;let c=!1;for(let u=o;u<s;u++){const d=a*e.width+u,f=e.map[d];if(e.map[d-e.width]==f){c=!0;const p=n.nodeAt(f),{top:h,left:m}=e.findCell(f);t.setNodeMarkup(t.mapping.slice(l).map(f+r),null,{...p.attrs,rowspan:a-h}),t.insert(t.mapping.slice(l).map(e.positionAt(a,m,n)),p.type.createAndFill({...p.attrs,rowspan:h+p.attrs.rowspan-a})),u+=p.attrs.colspan-1}}return c}function v8(t,e,n,r,o,s,a,l){if(a==0||a==e.width)return!1;let c=!1;for(let u=o;u<s;u++){const d=u*e.width+a,f=e.map[d];if(e.map[d-1]==f){c=!0;const p=n.nodeAt(f),h=e.colCount(f),m=t.mapping.slice(l).map(f+r);t.setNodeMarkup(m,null,rs(p.attrs,a-h,p.attrs.colspan-(a-h))),t.insert(m+p.nodeSize,p.type.createAndFill(rs(p.attrs,0,a-h))),u+=p.attrs.rowspan-1}}return c}function C8(t,e,n,r,o){let s=n?t.doc.nodeAt(n-1):t.doc;if(!s)throw new Error("No table found");let a=Dt.get(s);const{top:l,left:c}=r,u=c+o.width,d=l+o.height,f=t.tr;let p=0;function h(){if(s=n?f.doc.nodeAt(n-1):f.doc,!s)throw new Error("No table found");a=Dt.get(s),p=f.mapping.maps.length}rX(f,a,s,n,u,d,p)&&h(),w8(f,a,s,n,c,u,l,p)&&h(),w8(f,a,s,n,c,u,d,p)&&h(),v8(f,a,s,n,l,d,c,p)&&h(),v8(f,a,s,n,l,d,u,p)&&h();for(let m=l;m<d;m++){const g=a.positionAt(m,c,s),b=a.positionAt(m,u,s);f.replace(f.mapping.slice(p).map(g+n),f.mapping.slice(p).map(b+n),new ue(o.rows[m-l],0,0))}h(),f.setSelection(new Ze(f.doc.resolve(n+a.positionAt(l,c,s)),f.doc.resolve(n+a.positionAt(d-1,u-1,s)))),e(f)}var oX=K0({ArrowLeft:td("horiz",-1),ArrowRight:td("horiz",1),ArrowUp:td("vert",-1),ArrowDown:td("vert",1),"Shift-ArrowLeft":nd("horiz",-1),"Shift-ArrowRight":nd("horiz",1),"Shift-ArrowUp":nd("vert",-1),"Shift-ArrowDown":nd("vert",1),Backspace:rd,"Mod-Backspace":rd,Delete:rd,"Mod-Delete":rd});function ed(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function td(t,e){return(n,r,o)=>{if(!o)return!1;const s=n.selection;if(s instanceof Ze)return ed(n,r,Ie.near(s.$headCell,e));if(t!="horiz"&&!s.empty)return!1;const a=k8(o,t,e);if(a==null)return!1;if(t=="horiz")return ed(n,r,Ie.near(n.doc.resolve(s.head+e),e));{const l=n.doc.resolve(a),c=h8(l,t,e);let u;return c?u=Ie.near(c,1):e<0?u=Ie.near(n.doc.resolve(l.before(-1)),-1):u=Ie.near(n.doc.resolve(l.after(-1)),1),ed(n,r,u)}}}function nd(t,e){return(n,r,o)=>{if(!o)return!1;const s=n.selection;let a;if(s instanceof Ze)a=s;else{const c=k8(o,t,e);if(c==null)return!1;a=new Ze(n.doc.resolve(c))}const l=h8(a.$headCell,t,e);return l?ed(n,r,new Ze(a.$anchorCell,l)):!1}}function rd(t,e){const n=t.selection;if(!(n instanceof Ze))return!1;if(e){const r=t.tr,o=cn(t.schema).cell.createAndFill().content;n.forEachCell((s,a)=>{s.content.eq(o)||r.replace(r.mapping.map(a+1),r.mapping.map(a+s.nodeSize-1),new ue(o,0,0))}),r.docChanged&&e(r)}return!0}function iX(t,e){const n=t.state.doc,r=ca(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Ze(r))),!0):!1}function sX(t,e,n){if(!_r(t.state))return!1;let r=eX(n);const o=t.state.selection;if(o instanceof Ze){r||(r={width:1,height:1,rows:[Y.from(Gh(cn(t.state.schema).cell,n))]});const s=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),l=Dt.get(s).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return r=nX(r,l.right-l.left,l.bottom-l.top),C8(t.state,t.dispatch,a,l,r),!0}else if(r){const s=Qu(t.state),a=s.start(-1);return C8(t.state,t.dispatch,a,Dt.get(s.node(-1)).findCell(s.pos-a),r),!0}else return!1}function aX(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=S8(t,e.target);let o;if(e.shiftKey&&t.state.selection instanceof Ze)s(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(o=ca(t.state.selection.$anchor))!=null&&((n=Jh(t,e))==null?void 0:n.pos)!=o.pos)s(o,e),e.preventDefault();else if(!r)return;function s(c,u){let d=Jh(t,u);const f=ci.getState(t.state)==null;if(!d||!Kh(c,d))if(f)d=c;else return;const p=new Ze(c,d);if(f||!t.state.selection.eq(p)){const h=t.state.tr.setSelection(p);f&&h.setMeta(ci,c.pos),t.dispatch(h)}}function a(){t.root.removeEventListener("mouseup",a),t.root.removeEventListener("dragstart",a),t.root.removeEventListener("mousemove",l),ci.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(ci,-1))}function l(c){const u=c,d=ci.getState(t.state);let f;if(d!=null)f=t.state.doc.resolve(d);else if(S8(t,u.target)!=r&&(f=Jh(t,e),!f))return a();f&&s(f,u)}t.root.addEventListener("mouseup",a),t.root.addEventListener("dragstart",a),t.root.addEventListener("mousemove",l)}function k8(t,e,n){if(!(t.state.selection instanceof Be))return null;const{$head:r}=t.state.selection;for(let o=r.depth-1;o>=0;o--){const s=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:s.childCount))return null;if(s.type.spec.tableRole=="cell"||s.type.spec.tableRole=="header_cell"){const l=r.before(o),c=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(c)?l:null}}return null}function S8(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function Jh(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?ca(t.state.doc.resolve(n.pos)):null}var lX=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Xh(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,Xh(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function Xh(t,e,n,r,o,s){var a;let l=0,c=!0,u=e.firstChild;const d=t.firstChild;if(!!d){for(let f=0,p=0;f<d.childCount;f++){const{colspan:h,colwidth:m}=d.child(f).attrs;for(let g=0;g<h;g++,p++){const b=o==p?s:m&&m[g],y=b?b+"px":"";l+=b||r,b||(c=!1),u?(u.style.width!=y&&(u.style.width=y),u=u.nextSibling):e.appendChild(document.createElement("col")).style.width=y}}for(;u;){const f=u.nextSibling;(a=u.parentNode)==null||a.removeChild(u),u=f}c?(n.style.width=l+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=l+"px")}}var or=new Ot("tableColumnResizing");function cX({handleWidth:t=5,cellMinWidth:e=25,View:n=lX,lastColumnResizable:r=!0}={}){const o=new wt({key:or,state:{init(s,a){return o.spec.props.nodeViews[cn(a.schema).table.name]=(l,c)=>new n(l,e,c),new od(-1,!1)},apply(s,a){return a.apply(s)}},props:{attributes:s=>{const a=or.getState(s);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,a)=>{uX(s,a,t,e,r)},mouseleave:s=>{dX(s)},mousedown:(s,a)=>{fX(s,a,e)}},decorations:s=>{const a=or.getState(s);if(a&&a.activeHandle>-1)return yX(s,a.activeHandle)},nodeViews:{}}});return o}var od=class{constructor(t,e){this.activeHandle=t,this.dragging=e}apply(t){const e=this,n=t.getMeta(or);if(n&&n.setHandle!=null)return new od(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new od(e.activeHandle,n.setDragging);if(e.activeHandle>-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);return Wh(t.doc.resolve(r))||(r=-1),new od(r,e.dragging)}return e}};function uX(t,e,n,r,o){const s=or.getState(t.state);if(!!s&&!s.dragging){const a=hX(e.target);let l=-1;if(a){const{left:c,right:u}=a.getBoundingClientRect();e.clientX-c<=n?l=E8(t,e,"left",n):u-e.clientX<=n&&(l=E8(t,e,"right",n))}if(l!=s.activeHandle){if(!o&&l!==-1){const c=t.state.doc.resolve(l),u=c.node(-1),d=Dt.get(u),f=c.start(-1);if(d.colCount(c.pos-f)+c.nodeAfter.attrs.colspan-1==d.width-1)return}T8(t,l)}}}function dX(t){const e=or.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&T8(t,-1)}function fX(t,e,n){const r=or.getState(t.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const o=t.state.doc.nodeAt(r.activeHandle),s=pX(t,r.activeHandle,o.attrs);t.dispatch(t.state.tr.setMeta(or,{setDragging:{startX:e.clientX,startWidth:s}}));function a(c){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",l);const u=or.getState(t.state);u!=null&&u.dragging&&(mX(t,u.activeHandle,x8(u.dragging,c,n)),t.dispatch(t.state.tr.setMeta(or,{setDragging:null})))}function l(c){if(!c.which)return a(c);const u=or.getState(t.state);if(!!u&&u.dragging){const d=x8(u.dragging,c,n);gX(t,u.activeHandle,d,n)}}return window.addEventListener("mouseup",a),window.addEventListener("mousemove",l),e.preventDefault(),!0}function pX(t,e,{colspan:n,colwidth:r}){const o=r&&r[r.length-1];if(o)return o;const s=t.domAtPos(e);let l=s.node.childNodes[s.offset].offsetWidth,c=n;if(r)for(let u=0;u<n;u++)r[u]&&(l-=r[u],c--);return l/c}function hX(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function E8(t,e,n,r){const o=n=="right"?-r:r,s=t.posAtCoords({left:e.clientX+o,top:e.clientY});if(!s)return-1;const{pos:a}=s,l=ca(t.state.doc.resolve(a));if(!l)return-1;if(n=="right")return l.pos;const c=Dt.get(l.node(-1)),u=l.start(-1),d=c.map.indexOf(l.pos-u);return d%c.width==0?-1:u+c.map[d-1]}function x8(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function T8(t,e){t.dispatch(t.state.tr.setMeta(or,{setHandle:e}))}function mX(t,e,n){const r=t.state.doc.resolve(e),o=r.node(-1),s=Dt.get(o),a=r.start(-1),l=s.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,c=t.state.tr;for(let u=0;u<s.height;u++){const d=u*s.width+l;if(u&&s.map[d]==s.map[d-s.width])continue;const f=s.map[d],p=o.nodeAt(f).attrs,h=p.colspan==1?0:l-s.colCount(f);if(p.colwidth&&p.colwidth[h]==n)continue;const m=p.colwidth?p.colwidth.slice():bX(p.colspan);m[h]=n,c.setNodeMarkup(a+f,null,{...p,colwidth:m})}c.docChanged&&t.dispatch(c)}function gX(t,e,n,r){const o=t.state.doc.resolve(e),s=o.node(-1),a=o.start(-1),l=Dt.get(s).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1;let c=t.domAtPos(o.start(-1)).node;for(;c&&c.nodeName!="TABLE";)c=c.parentNode;!c||Xh(s,c.firstChild,c,r,l,n)}function bX(t){return Array(t).fill(0)}function yX(t,e){const n=[],r=t.doc.resolve(e),o=r.node(-1);if(!o)return mt.empty;const s=Dt.get(o),a=r.start(-1),l=s.colCount(r.pos-a)+r.nodeAfter.attrs.colspan;for(let c=0;c<s.height;c++){const u=l+c*s.width-1;if((l==s.width||s.map[u]!=s.map[u+1])&&(c==0||s.map[u]!=s.map[u-s.width])){const d=s.map[u],f=a+d+o.nodeAt(d).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Yt.widget(f,p))}}return mt.create(t.doc,n)}function Jr(t){const e=t.selection,n=Qu(t),r=n.node(-1),o=n.start(-1),s=Dt.get(r);return{...e instanceof Ze?s.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):s.findCell(n.pos-o),tableStart:o,map:s,table:r}}function A8(t,{map:e,tableStart:n,table:r},o){let s=o>0?-1:0;KJ(e,r,o+s)&&(s=o==0||o==e.width?null:0);for(let a=0;a<e.height;a++){const l=a*e.width+o;if(o>0&&o<e.width&&e.map[l-1]==e.map[l]){const c=e.map[l],u=r.nodeAt(c);t.setNodeMarkup(t.mapping.map(n+c),null,m8(u.attrs,o-e.colCount(c))),a+=u.attrs.rowspan-1}else{const c=s==null?cn(r.type.schema).cell:r.nodeAt(e.map[l+s]).type,u=e.positionAt(a,o,r);t.insert(t.mapping.map(n+u),c.createAndFill())}}return t}function wX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t);e(A8(t.tr,n,n.left))}return!0}function vX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t);e(A8(t.tr,n,n.right))}return!0}function CX(t,{map:e,table:n,tableStart:r},o){const s=t.mapping.maps.length;for(let a=0;a<e.height;){const l=a*e.width+o,c=e.map[l],u=n.nodeAt(c),d=u.attrs;if(o>0&&e.map[l-1]==c||o<e.width-1&&e.map[l+1]==c)t.setNodeMarkup(t.mapping.slice(s).map(r+c),null,rs(d,o-e.colCount(c)));else{const f=t.mapping.slice(s).map(r+c);t.delete(f,f+u.nodeSize)}a+=d.rowspan}}function kX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let o=n.right-1;CX(r,n,o),o!=n.left;o--){const s=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!s)throw RangeError("No table found");n.table=s,n.map=Dt.get(s)}e(r)}return!0}function SX(t,e,n){var r;const o=cn(e.type.schema).header_cell;for(let s=0;s<t.width;s++)if(((r=e.nodeAt(t.map[s+n*t.width]))==null?void 0:r.type)!=o)return!1;return!0}function _8(t,{map:e,tableStart:n,table:r},o){var s;let a=n;for(let u=0;u<o;u++)a+=r.child(u).nodeSize;const l=[];let c=o>0?-1:0;SX(e,r,o+c)&&(c=o==0||o==e.height?null:0);for(let u=0,d=e.width*o;u<e.width;u++,d++)if(o>0&&o<e.height&&e.map[d]==e.map[d-e.width]){const f=e.map[d],p=r.nodeAt(f).attrs;t.setNodeMarkup(n+f,null,{...p,rowspan:p.rowspan+1}),u+=p.colspan-1}else{const f=c==null?cn(r.type.schema).cell:(s=r.nodeAt(e.map[d+c*e.width]))==null?void 0:s.type,p=f==null?void 0:f.createAndFill();p&&l.push(p)}return t.insert(a,cn(r.type.schema).row.create(null,l)),t}function EX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t);e(_8(t.tr,n,n.top))}return!0}function xX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t);e(_8(t.tr,n,n.bottom))}return!0}function TX(t,{map:e,table:n,tableStart:r},o){let s=0;for(let c=0;c<o;c++)s+=n.child(c).nodeSize;const a=s+n.child(o).nodeSize,l=t.mapping.maps.length;t.delete(s+r,a+r);for(let c=0,u=o*e.width;c<e.width;c++,u++){const d=e.map[u];if(o>0&&d==e.map[u-e.width]){const f=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(l).map(d+r),null,{...f,rowspan:f.rowspan-1}),c+=f.colspan-1}else if(o<e.width&&d==e.map[u+e.width]){const f=n.nodeAt(d),p=f.attrs,h=f.type.create({...p,rowspan:f.attrs.rowspan-1},f.content),m=e.positionAt(o+1,c,n);t.insert(t.mapping.slice(l).map(r+m),h),c+=p.colspan-1}}}function AX(t,e){if(!_r(t))return!1;if(e){const n=Jr(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let o=n.bottom-1;TX(r,n,o),o!=n.top;o--){const s=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!s)throw RangeError("No table found");n.table=s,n.map=Dt.get(n.table)}e(r)}return!0}function D8(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function _X({width:t,height:e,map:n},r){let o=r.top*t+r.left,s=o,a=(r.bottom-1)*t+r.left,l=o+(r.right-r.left-1);for(let c=r.top;c<r.bottom;c++){if(r.left>0&&n[s]==n[s-1]||r.right<t&&n[l]==n[l+1])return!0;s+=t,l+=t}for(let c=r.left;c<r.right;c++){if(r.top>0&&n[o]==n[o-t]||r.bottom<e&&n[a]==n[a+t])return!0;o++,a++}return!1}function Yh(t,e){const n=t.selection;if(!(n instanceof Ze)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=Jr(t),{map:o}=r;if(_X(o,r))return!1;if(e){const s=t.tr,a={};let l=Y.empty,c,u;for(let d=r.top;d<r.bottom;d++)for(let f=r.left;f<r.right;f++){const p=o.map[d*o.width+f],h=r.table.nodeAt(p);if(!(a[p]||!h))if(a[p]=!0,c==null)c=p,u=h;else{D8(h)||(l=l.append(h.content));const m=s.mapping.map(p+r.tableStart);s.delete(m,m+h.nodeSize)}}if(c==null||u==null)return!0;if(s.setNodeMarkup(c+r.tableStart,null,{...m8(u.attrs,u.attrs.colspan,r.right-r.left-u.attrs.colspan),rowspan:r.bottom-r.top}),l.size){const d=c+1+u.content.size,f=D8(u)?c+1:d;s.replaceWith(f+r.tableStart,d+r.tableStart,l)}s.setSelection(new Ze(s.doc.resolve(c+r.tableStart))),e(s)}return!0}function Zh(t,e){const n=cn(t.schema);return DX(({node:r})=>n[r.type.spec.tableRole])(t,e)}function DX(t){return(e,n)=>{var r;const o=e.selection;let s,a;if(o instanceof Ze){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;s=o.$anchorCell.nodeAfter,a=o.$anchorCell.pos}else{if(s=UJ(o.$from),!s)return!1;a=(r=ca(o.$from))==null?void 0:r.pos}if(s==null||a==null||s.attrs.colspan==1&&s.attrs.rowspan==1)return!1;if(n){let l=s.attrs;const c=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});const d=Jr(e),f=e.tr;for(let h=0;h<d.right-d.left;h++)c.push(u?{...l,colwidth:u&&u[h]?[u[h]]:null}:l);let p;for(let h=d.top;h<d.bottom;h++){let m=d.map.positionAt(h,d.left,d.table);h==d.top&&(m+=s.nodeSize);for(let g=d.left,b=0;g<d.right;g++,b++)g==d.left&&h==d.top||f.insert(p=f.mapping.map(m+d.tableStart,1),t({node:s,row:h,col:g}).createAndFill(c[b]))}f.setNodeMarkup(a,t({node:s,row:d.top,col:d.left}),c[0]),o instanceof Ze&&f.setSelection(new Ze(f.doc.resolve(o.$anchorCell.pos),p?f.doc.resolve(p):void 0)),n(f)}return!0}}function MX(t,e){return function(n,r){if(!_r(n))return!1;const o=Qu(n);if(o.nodeAfter.attrs[t]===e)return!1;if(r){const s=n.tr;n.selection instanceof Ze?n.selection.forEachCell((a,l)=>{a.attrs[t]!==e&&s.setNodeMarkup(l,null,{...a.attrs,[t]:e})}):s.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[t]:e}),r(s)}return!0}}function NX(t){return function(e,n){if(!_r(e))return!1;if(n){const r=cn(e.schema),o=Jr(e),s=e.tr,a=o.map.cellsInRect(t=="column"?{left:o.left,top:0,right:o.right,bottom:o.map.height}:t=="row"?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),l=a.map(c=>o.table.nodeAt(c));for(let c=0;c<a.length;c++)l[c].type==r.header_cell&&s.setNodeMarkup(o.tableStart+a[c],r.cell,l[c].attrs);if(s.steps.length==0)for(let c=0;c<a.length;c++)s.setNodeMarkup(o.tableStart+a[c],r.header_cell,l[c].attrs);n(s)}return!0}}function M8(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let o=0;o<r.length;o++){const s=e.table.nodeAt(r[o]);if(s&&s.type!==n.header_cell)return!1}return!0}function Nl(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?NX(t):function(n,r){if(!_r(n))return!1;if(r){const o=cn(n.schema),s=Jr(n),a=n.tr,l=M8("row",s,o),c=M8("column",s,o),d=(t==="column"?l:t==="row"?c:!1)?1:0,f=t=="column"?{left:0,top:d,right:1,bottom:s.map.height}:t=="row"?{left:d,top:0,right:s.map.width,bottom:1}:s,p=t=="column"?c?o.cell:o.header_cell:t=="row"?l?o.cell:o.header_cell:o.cell;s.map.cellsInRect(f).forEach(h=>{const m=h+s.tableStart,g=a.doc.nodeAt(m);g&&a.setNodeMarkup(m,p,g.attrs)}),r(a)}return!0}}Nl("row",{useDeprecatedLogic:!0}),Nl("column",{useDeprecatedLogic:!0});var BX=Nl("cell",{useDeprecatedLogic:!0});function OX(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,o=t.before();r>=0;r--){const s=t.node(-1).child(r),a=s.lastChild;if(a)return o-1-a.nodeSize;o-=s.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),o=t.after();r<n.childCount;r++){const s=n.child(r);if(s.childCount)return o+1;o+=s.nodeSize}}return null}function N8(t){return function(e,n){if(!_r(e))return!1;const r=OX(Qu(e),t);if(r==null)return!1;if(n){const o=e.doc.resolve(r);n(e.tr.setSelection(Be.between(o,WJ(o))).scrollIntoView())}return!0}}function IX(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function PX({allowTableNodeSelection:t=!1}={}){return new wt({key:ci,state:{init(){return null},apply(e,n){const r=e.getMeta(ci);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:o,pos:s}=e.mapping.mapResult(n);return o?null:s}},props:{decorations:GJ,handleDOMEvents:{mousedown:aX},createSelectionBetween(e){return ci.getState(e.state)!=null?e.state.selection:null},handleTripleClick:iX,handleKeyDown:oX,handlePaste:sX},appendTransaction(e,n,r){return YJ(r,y8(r,n),t)}})}function B8(t,e,n,r,o,s){let a=0,l=!0,c=e.firstChild;const u=t.firstChild;for(let d=0,f=0;d<u.childCount;d+=1){const{colspan:p,colwidth:h}=u.child(d).attrs;for(let m=0;m<p;m+=1,f+=1){const g=o===f?s:h&&h[m],b=g?`${g}px`:"";a+=g||r,g||(l=!1),c?(c.style.width!==b&&(c.style.width=b),c=c.nextSibling):e.appendChild(document.createElement("col")).style.width=b}}for(;c;){const d=c.nextSibling;c.parentNode.removeChild(c),c=d}l?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class LX{constructor(e,n){this.node=e,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),B8(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,B8(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}}function O8(t,e){return e?t.createChecked(null,e):t.createAndFill()}function RX(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(n=>{const r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function zX(t,e,n,r,o){const s=RX(t),a=[],l=[];for(let u=0;u<n;u+=1){const d=O8(s.cell,o);if(d&&l.push(d),r){const f=O8(s.header_cell,o);f&&a.push(f)}}const c=[];for(let u=0;u<e;u+=1)c.push(s.row.createChecked(null,r&&u===0?a:l));return s.table.createChecked(null,c)}function FX(t){return t instanceof Ze}const id=({editor:t})=>{const{selection:e}=t.state;if(!FX(e))return!1;let n=0;const r=O4(e.ranges[0].$from,s=>s.type.name==="table");return r==null||r.node.descendants(s=>{if(s.type.name==="table")return!1;["tableCell","tableHeader"].includes(s.type.name)&&(n+=1)}),n===e.ranges.length?(t.commands.deleteTable(),!0):!1},$X=ut.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:LX,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({HTMLAttributes:t}){return["table",Ye(this.options.HTMLAttributes,t),["tbody",0]]},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:s})=>{const a=zX(s.schema,t,e,n);if(o){const l=r.selection.anchor+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(Be.near(r.doc.resolve(l)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>wX(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>vX(t,e),deleteColumn:()=>({state:t,dispatch:e})=>kX(t,e),addRowBefore:()=>({state:t,dispatch:e})=>EX(t,e),addRowAfter:()=>({state:t,dispatch:e})=>xX(t,e),deleteRow:()=>({state:t,dispatch:e})=>AX(t,e),deleteTable:()=>({state:t,dispatch:e})=>IX(t,e),mergeCells:()=>({state:t,dispatch:e})=>Yh(t,e),splitCell:()=>({state:t,dispatch:e})=>Zh(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>Nl("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>Nl("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>BX(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Yh(t,e)?!0:Zh(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>MX(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>N8(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>N8(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&y8(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const r=Ze.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:id,"Mod-Backspace":id,Delete:id,"Mod-Delete":id}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[cX({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],PX({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:He(Ce(t,"tableRole",e))}}}),VX=ut.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Ye(this.options.HTMLAttributes,t),0]}}),HX=ut.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Ye(this.options.HTMLAttributes,t),0]}}),jX=ut.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Ye(this.options.HTMLAttributes,t),0]}});function Qh(t){const{selection:e,doc:n}=t,{from:r,to:o}=e;let s=!0,a=!1;return n.nodesBetween(r,o,l=>{const c=l.type.name;return s&&(c==="table"||c==="table_row"||c==="table_column"||c==="table_cell")&&(s=!1,a=!0),s}),a}function UX(t){return Qh(t)&&Yh(t)}function qX(t){return Qh(t)&&Zh(t)}const sd=5,I8=10,ad=2,WX=i.defineComponent({name:"CreateTablePopover",components:{ElPopover:oi},setup(t,{emit:e}){const n=i.inject("t"),r=i.ref(),o=i.ref(!1);return{t:n,popoverVisible:o,popoverRef:r,confirmCreateTable:(a,l)=>{i.unref(r).hide(),e("createTable",{row:a,col:l})}}},data(){return{tableGridSize:{row:sd,col:sd},selectedTableGridSize:{row:ad,col:ad}}},methods:{selectTableGridSize(t,e){t===this.tableGridSize.row&&(this.tableGridSize.row=Math.min(t+1,I8)),e===this.tableGridSize.col&&(this.tableGridSize.col=Math.min(e+1,I8)),this.selectedTableGridSize.row=t,this.selectedTableGridSize.col=e},resetTableGridSize(){this.tableGridSize={row:sd,col:sd},this.selectedTableGridSize={row:ad,col:ad}}}}),KX={class:"table-grid-size-editor"},GX={class:"table-grid-size-editor__body"},JX=["onMouseover","onMousedown"],XX=[i.createElementVNode("div",{class:"table-grid-size-editor__cell__inner"},null,-1)],YX={class:"table-grid-size-editor__footer"};function ZX(t,e,n,r,o,s){const a=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(a,{ref:"popoverRef",modelValue:t.popoverVisible,"onUpdate:modelValue":e[0]||(e[0]=l=>t.popoverVisible=l),placement:"right",trigger:"hover","popper-class":"el-tiptap-popper",onAfterLeave:t.resetTableGridSize},{reference:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.insert_table")),1)]),default:i.withCtx(()=>[i.createElementVNode("div",KX,[i.createElementVNode("div",GX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tableGridSize.row,l=>(i.openBlock(),i.createElementBlock("div",{key:"r"+l,class:"table-grid-size-editor__row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tableGridSize.col,c=>(i.openBlock(),i.createElementBlock("div",{key:"c"+c,class:i.normalizeClass([{"table-grid-size-editor__cell--selected":c<=t.selectedTableGridSize.col&&l<=t.selectedTableGridSize.row},"table-grid-size-editor__cell"]),onMouseover:u=>t.selectTableGridSize(l,c),onMousedown:u=>t.confirmCreateTable(l,c)},XX,42,JX))),128))]))),128))]),i.createElementVNode("div",YX,i.toDisplayString(t.selectedTableGridSize.row)+" X "+i.toDisplayString(t.selectedTableGridSize.col),1)])]),_:1},8,["modelValue","onAfterLeave"])}var QX=tt(WX,[["render",ZX]]);const eY=i.defineComponent({name:"TablePopover",components:{ElPopover:oi,CommandButton:Ue,CreateTablePopover:QX},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1),r=i.ref();return{t,enableTooltip:e,isCodeViewMode:n,popoverRef:r,hidePopover:()=>{i.unref(r).hide()}}},computed:{isTableActive(){return Qh(this.editor.state)},enableMergeCells(){return UX(this.editor.state)},enableSplitCell(){return qX(this.editor.state)}},methods:{createTable({row:t,col:e}){this.editor.commands.insertTable({rows:t,cols:e,withHeaderRow:!0}),setTimeout(()=>{document.querySelector(".ProseMirror").innerHTML+="<p></p>"},400),this.hidePopover()}}}),tY={class:"el-tiptap-popper__menu"},nY={class:"el-tiptap-popper__menu__item"},rY=i.createElementVNode("div",{class:"el-tiptap-popper__menu__item__separator"},null,-1),oY=i.createElementVNode("div",{class:"el-tiptap-popper__menu__item__separator"},null,-1),iY=i.createElementVNode("div",{class:"el-tiptap-popper__menu__item__separator"},null,-1),sY=i.createElementVNode("div",{class:"el-tiptap-popper__menu__item__separator"},null,-1);function aY(t,e,n,r,o,s){const a=i.resolveComponent("create-table-popover"),l=i.resolveComponent("command-button"),c=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(c,{disabled:t.isCodeViewMode,placement:"bottom",trigger:"click","popper-class":"el-tiptap-popper",ref:"popoverRef"},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(l,{"is-active":t.isTableActive,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Table.tooltip"),readonly:t.isCodeViewMode,icon:"table","button-icon":t.buttonIcon},null,8,["is-active","enable-tooltip","tooltip","readonly","button-icon"])])]),default:i.withCtx(()=>[i.createElementVNode("div",tY,[i.createElementVNode("div",nY,[i.createVNode(a,{onCreateTable:t.createTable},null,8,["onCreateTable"])]),rY,i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[0]||(e[0]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[1]||(e[1]=(...u)=>t.editor.commands.addColumnBefore&&t.editor.commands.addColumnBefore(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.add_column_before")),1)],34),i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[2]||(e[2]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[3]||(e[3]=(...u)=>t.editor.commands.addColumnAfter&&t.editor.commands.addColumnAfter(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.add_column_after")),1)],34),i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[4]||(e[4]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[5]||(e[5]=(...u)=>t.editor.commands.deleteColumn&&t.editor.commands.deleteColumn(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.delete_column")),1)],34),oY,i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[6]||(e[6]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[7]||(e[7]=(...u)=>t.editor.commands.addRowBefore&&t.editor.commands.addRowBefore(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.add_row_before")),1)],34),i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[8]||(e[8]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[9]||(e[9]=(...u)=>t.editor.commands.addRowAfter&&t.editor.commands.addRowAfter(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.add_row_after")),1)],34),i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[10]||(e[10]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[11]||(e[11]=(...u)=>t.editor.commands.deleteRow&&t.editor.commands.deleteRow(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.delete_row")),1)],34),iY,i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.enableMergeCells},"el-tiptap-popper__menu__item"]),onMousedown:e[12]||(e[12]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[13]||(e[13]=(...u)=>t.editor.commands.mergeCells&&t.editor.commands.mergeCells(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.merge_cells")),1)],34),i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.enableSplitCell},"el-tiptap-popper__menu__item"]),onMousedown:e[14]||(e[14]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[15]||(e[15]=(...u)=>t.editor.commands.splitCell&&t.editor.commands.splitCell(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.split_cell")),1)],34),sY,i.createElementVNode("div",{class:i.normalizeClass([{"el-tiptap-popper__menu__item--disabled":!t.isTableActive},"el-tiptap-popper__menu__item"]),onMousedown:e[16]||(e[16]=(...u)=>t.hidePopover&&t.hidePopover(...u)),onClick:e[17]||(e[17]=(...u)=>t.editor.commands.deleteTable&&t.editor.commands.deleteTable(...u))},[i.createElementVNode("span",null,i.toDisplayString(t.t("editor.extensions.Table.buttons.delete_table")),1)],34)])]),_:1},8,["disabled"])}var lY=tt(eY,[["render",aY]]);const cY=$X.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",button({editor:e,extension:n}){return{component:lY,componentProps:{editor:e,buttonIcon:n.options.buttonIcon}}}}},addExtensions(){return[VX,HX,jX]}}),uY=i.defineComponent({name:"IframeCommandButton",components:{CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},methods:{async openInsertVideoControl(){const{value:t}=await H5.prompt("",this.t("editor.extensions.Iframe.control.title"),{confirmButtonText:this.t("editor.extensions.Iframe.control.confirm"),cancelButtonText:this.t("editor.extensions.Iframe.control.cancel"),inputPlaceholder:this.t("editor.extensions.Iframe.control.placeholder"),roundButton:!0});this.editor.commands.setIframe({src:t})}}});function dY(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createBlock(a,{command:t.openInsertVideoControl,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Iframe.tooltip"),readonly:t.isCodeViewMode,"button-icon":t.buttonIcon,icon:"video"},null,8,["command","enable-tooltip","tooltip","readonly","button-icon"])}var fY=tt(uY,[["render",dY]]);const pY=i.defineComponent({name:"IframeView",components:{NodeViewWrapper:Ef},props:Ln}),hY=["src"];function mY(t,e,n,r,o,s){const a=i.resolveComponent("node-view-wrapper");return i.openBlock(),i.createBlock(a,{as:"div",class:"iframe"},{default:i.withCtx(()=>[i.createElementVNode("iframe",{class:"iframe__embed",src:t.node.attrs.src},null,8,hY)]),_:1})}var gY=tt(pY,[["render",mY]]);const bY=ut.create({name:"iframe",group:"block",selectable:!1,addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),src:{default:null,parseHTML:e=>e.getAttribute("src")}}},parseHTML(){return[{tag:"iframe"}]},renderHTML({HTMLAttributes:t}){return["iframe",Ye(t,{frameborder:0,allowfullscreen:"true"})]},addCommands(){return{setIframe:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addOptions(){return{buttonIcon:"",button({editor:t,extension:e}){return{component:fY,componentProps:{editor:t,buttonIcon:e.options.buttonIcon}}}}},addNodeView(){return xf(gY)}}),yY=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,wY=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,vY=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,CY=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,kY=kn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Ye(this.options.HTMLAttributes,t),0]},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[Li({find:yY,type:this.type}),Li({find:vY,type:this.type})]},addPasteRules(){return[jo({find:wY,type:this.type}),jo({find:CY,type:this.type})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"bold",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).toggleBold().run()},disabled:!1,isActive(e){return e.isActive("bold")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleBold()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("bold"),icon:"bold",tooltip:r("editor.extensions.Bold.tooltip")}}}}}}),SY=kn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Ye(this.options.HTMLAttributes,t),0]},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()}}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"underline",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleUnderline().run()},disabled:!1,isActive(e){return e.isActive("underline")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleUnderline()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("underline"),icon:"underline",tooltip:r("editor.extensions.Underline.tooltip")}}}}}}),EY=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,xY=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,TY=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,AY=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,_Y=kn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Ye(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)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Li({find:EY,type:this.type}),Li({find:TY,type:this.type})]},addPasteRules(){return[jo({find:xY,type:this.type}),jo({find:AY,type:this.type})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"italic",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleItalic().run()},disabled:!1,isActive(e){return e.isActive("italic")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleItalic()},isActive:e.isActive("italic"),icon:"italic",buttonIcon:n.options.buttonIcon,tooltip:r("editor.extensions.Italic.tooltip")}}}}}}),DY=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,MY=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,NY=kn.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Ye(this.options.HTMLAttributes,t),0]},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-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Li({find:DY,type:this.type})]},addPasteRules(){return[jo({find:MY,type:this.type})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"strike",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).run(),e.chain().focus().toggleStrike().run()},disabled:!1,isActive(e){return e.isActive("strike")}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.toggleStrike()},buttonIcon:n.options.buttonIcon,isActive:e.isActive("strike"),icon:"strikethrough",tooltip:r("editor.extensions.Strike.tooltip")}}}}}}),BY="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",OY="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u062A\u0635\u0627\u0644\u0627\u062A6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",ua=(t,e)=>{for(const n in e)t[n]=e[n];return t},em="numeric",tm="ascii",nm="alpha",ld="asciinumeric",cd="alphanumeric",rm="domain",P8="emoji",IY="scheme",PY="slashscheme",L8="whitespace";function LY(t,e){return t in e||(e[t]=[]),e[t]}function is(t,e,n){e[em]&&(e[ld]=!0,e[cd]=!0),e[tm]&&(e[ld]=!0,e[nm]=!0),e[ld]&&(e[cd]=!0),e[nm]&&(e[cd]=!0),e[cd]&&(e[rm]=!0),e[P8]&&(e[rm]=!0);for(const r in e){const o=LY(r,n);o.indexOf(t)<0&&o.push(t)}}function RY(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Mn(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}Mn.groups={},Mn.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],s=e.jr[r][1];if(s&&o.test(t))return s}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Mn.groups;let o;return e&&e.j?o=e:(o=new Mn(e),n&&r&&is(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const s=t.length;if(!s)return o;for(let a=0;a<s-1;a++)o=o.tt(t[a]);return o.tt(t[s-1],e,n,r)},tt(t,e,n,r){r=r||Mn.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const s=e;let a,l=o.go(t);if(l?(a=new Mn,ua(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new Mn,s){if(r)if(a.t&&typeof a.t=="string"){const c=ua(RY(a.t,r),n);is(s,c,r)}else n&&is(s,n,r);a.t=s}return o.j[t]=a,a}};const Se=(t,e,n,r,o)=>t.ta(e,n,r,o),ir=(t,e,n,r,o)=>t.tr(e,n,r,o),R8=(t,e,n,r,o)=>t.ts(e,n,r,o),ie=(t,e,n,r,o)=>t.tt(e,n,r,o),ko="WORD",om="UWORD",Bl="LOCALHOST",im="TLD",sm="UTLD",ud="SCHEME",da="SLASH_SCHEME",am="NUM",z8="WS",lm="NL",fa="OPENBRACE",Ol="OPENBRACKET",Il="OPENANGLEBRACKET",Pl="OPENPAREN",ss="CLOSEBRACE",pa="CLOSEBRACKET",ha="CLOSEANGLEBRACKET",as="CLOSEPAREN",dd="AMPERSAND",fd="APOSTROPHE",pd="ASTERISK",ui="AT",hd="BACKSLASH",md="BACKTICK",gd="CARET",di="COLON",cm="COMMA",bd="DOLLAR",Xr="DOT",yd="EQUALS",um="EXCLAMATION",Yr="HYPHEN",wd="PERCENT",vd="PIPE",Cd="PLUS",kd="POUND",Sd="QUERY",dm="QUOTE",fm="SEMI",Zr="SLASH",Ll="TILDE",Ed="UNDERSCORE",F8="EMOJI",xd="SYM";var $8=Object.freeze({__proto__:null,WORD:ko,UWORD:om,LOCALHOST:Bl,TLD:im,UTLD:sm,SCHEME:ud,SLASH_SCHEME:da,NUM:am,WS:z8,NL:lm,OPENBRACE:fa,OPENBRACKET:Ol,OPENANGLEBRACKET:Il,OPENPAREN:Pl,CLOSEBRACE:ss,CLOSEBRACKET:pa,CLOSEANGLEBRACKET:ha,CLOSEPAREN:as,AMPERSAND:dd,APOSTROPHE:fd,ASTERISK:pd,AT:ui,BACKSLASH:hd,BACKTICK:md,CARET:gd,COLON:di,COMMA:cm,DOLLAR:bd,DOT:Xr,EQUALS:yd,EXCLAMATION:um,HYPHEN:Yr,PERCENT:wd,PIPE:vd,PLUS:Cd,POUND:kd,QUERY:Sd,QUOTE:dm,SEMI:fm,SLASH:Zr,TILDE:Ll,UNDERSCORE:Ed,EMOJI:F8,SYM:xd});const ma=/[a-z]/,pm=/\p{L}/u,hm=/\p{Emoji}/u,mm=/\d/,V8=/\s/,H8=`
`,zY="\uFE0F",FY="\u200D";let Td=null,Ad=null;function $Y(t){t===void 0&&(t=[]);const e={};Mn.groups=e;const n=new Mn;Td==null&&(Td=j8(BY)),Ad==null&&(Ad=j8(OY)),ie(n,"'",fd),ie(n,"{",fa),ie(n,"[",Ol),ie(n,"<",Il),ie(n,"(",Pl),ie(n,"}",ss),ie(n,"]",pa),ie(n,">",ha),ie(n,")",as),ie(n,"&",dd),ie(n,"*",pd),ie(n,"@",ui),ie(n,"`",md),ie(n,"^",gd),ie(n,":",di),ie(n,",",cm),ie(n,"$",bd),ie(n,".",Xr),ie(n,"=",yd),ie(n,"!",um),ie(n,"-",Yr),ie(n,"%",wd),ie(n,"|",vd),ie(n,"+",Cd),ie(n,"#",kd),ie(n,"?",Sd),ie(n,'"',dm),ie(n,"/",Zr),ie(n,";",fm),ie(n,"~",Ll),ie(n,"_",Ed),ie(n,"\\",hd);const r=ir(n,mm,am,{[em]:!0});ir(r,mm,r);const o=ir(n,ma,ko,{[tm]:!0});ir(o,ma,o);const s=ir(n,pm,om,{[nm]:!0});ir(s,ma),ir(s,pm,s);const a=ir(n,V8,z8,{[L8]:!0});ie(n,H8,lm,{[L8]:!0}),ie(a,H8),ir(a,V8,a);const l=ir(n,hm,F8,{[P8]:!0});ir(l,hm,l),ie(l,zY,l);const c=ie(l,FY);ir(c,hm,l);const u=[[ma,o]],d=[[ma,null],[pm,s]];for(let f=0;f<Td.length;f++)fi(n,Td[f],im,ko,u);for(let f=0;f<Ad.length;f++)fi(n,Ad[f],sm,om,d);is(im,{tld:!0,ascii:!0},e),is(sm,{utld:!0,alpha:!0},e),fi(n,"file",ud,ko,u),fi(n,"mailto",ud,ko,u),fi(n,"http",da,ko,u),fi(n,"https",da,ko,u),fi(n,"ftp",da,ko,u),fi(n,"ftps",da,ko,u),is(ud,{scheme:!0,ascii:!0},e),is(da,{slashscheme:!0,ascii:!0},e),t=t.sort((f,p)=>f[0]>p[0]?1:-1);for(let f=0;f<t.length;f++){const p=t[f][0],m=t[f][1]?{[IY]:!0}:{[PY]:!0};p.indexOf("-")>=0?m[rm]=!0:ma.test(p)?mm.test(p)?m[ld]=!0:m[tm]=!0:m[em]=!0,R8(n,p,p,m)}return R8(n,"localhost",Bl,{ascii:!0}),n.jd=new Mn(xd),{start:n,tokens:ua({groups:e},$8)}}function VY(t,e){const n=HY(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[];let s=0,a=0;for(;a<r;){let l=t,c=null,u=0,d=null,f=-1,p=-1;for(;a<r&&(c=l.go(n[a]));)l=c,l.accepts()?(f=0,p=0,d=l):f>=0&&(f+=n[a].length,p++),u+=n[a].length,s+=n[a].length,a++;s-=f,a-=p,u-=f,o.push({t:d.t,v:e.slice(s-u,s),s:s-u,e:s})}return o}function HY(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),s,a=o<55296||o>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?t[r]:t.slice(r,r+2);e.push(a),r+=a.length}return e}function fi(t,e,n,r,o){let s;const a=e.length;for(let l=0;l<a-1;l++){const c=e[l];t.j[c]?s=t.j[c]:(s=new Mn(r),s.jr=o.slice(),t.j[c]=s),t=s}return s=new Mn(n),s.jr=o.slice(),t.j[e[a-1]]=s,s}function j8(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let s=0;for(;o.indexOf(t[r+s])>=0;)s++;if(s>0){e.push(n.join(""));for(let a=parseInt(t.substring(r,r+s),10);a>0;a--)n.pop();r+=s}else n.push(t[r]),r++}return e}const Rl={defaultProtocol:"http",events:null,format:U8,formatHref:U8,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gm(t,e){e===void 0&&(e=null);let n=ua({},Rl);t&&(n=ua(n,t instanceof gm?t.o:t));const r=n.ignoreTags,o=[];for(let s=0;s<r.length;s++)o.push(r[s].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}gm.prototype={o:Rl,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Rl[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function U8(t){return t}function q8(t,e){this.t="token",this.v=t,this.tk=e}q8.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},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){return t===void 0&&(t=Rl.defaultProtocol),{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){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),s=this.toFormattedString(t),a={},l=t.get("className",n,e),c=t.get("target",n,e),u=t.get("rel",n,e),d=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return a.href=r,l&&(a.class=l),c&&(a.target=c),u&&(a.rel=u),d&&ua(a,d),{tagName:o,attributes:a,content:s,eventListeners:f}}};function _d(t,e){class n extends q8{constructor(o,s){super(o,s),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const W8=_d("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),K8=_d("text"),jY=_d("nl"),ls=_d("url",{isLink:!0,toHref(t){return t===void 0&&(t=Rl.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Bl&&t[1].t===di}}),Kt=t=>new Mn(t);function UY(t){let{groups:e}=t;const n=e.domain.concat([dd,pd,ui,hd,md,gd,bd,yd,Yr,am,wd,vd,Cd,kd,Zr,xd,Ll,Ed]),r=[fd,ha,ss,pa,as,di,cm,Xr,um,Il,fa,Ol,Pl,Sd,dm,fm],o=[dd,fd,pd,hd,md,gd,ss,bd,yd,Yr,fa,wd,vd,Cd,kd,Sd,Zr,xd,Ll,Ed],s=Kt(),a=ie(s,Ll);Se(a,o,a),Se(a,e.domain,a);const l=Kt(),c=Kt(),u=Kt();Se(s,e.domain,l),Se(s,e.scheme,c),Se(s,e.slashscheme,u),Se(l,o,a),Se(l,e.domain,l);const d=ie(l,ui);ie(a,ui,d),ie(c,ui,d),ie(u,ui,d);const f=ie(a,Xr);Se(f,o,a),Se(f,e.domain,a);const p=Kt();Se(d,e.domain,p),Se(p,e.domain,p);const h=ie(p,Xr);Se(h,e.domain,p);const m=Kt(W8);Se(h,e.tld,m),Se(h,e.utld,m),ie(d,Bl,m);const g=ie(p,Yr);Se(g,e.domain,p),Se(m,e.domain,p),ie(m,Xr,h),ie(m,Yr,g);const b=ie(m,di);Se(b,e.numeric,W8);const y=ie(l,Yr),S=ie(l,Xr);Se(y,e.domain,l),Se(S,o,a),Se(S,e.domain,l);const k=Kt(ls);Se(S,e.tld,k),Se(S,e.utld,k),Se(k,e.domain,l),Se(k,o,a),ie(k,Xr,S),ie(k,Yr,y),ie(k,ui,d);const C=ie(k,di),_=Kt(ls);Se(C,e.numeric,_);const E=Kt(ls),T=Kt();Se(E,n,E),Se(E,r,T),Se(T,n,E),Se(T,r,T),ie(k,Zr,E),ie(_,Zr,E);const M=ie(c,di),D=ie(u,di),L=ie(D,Zr),$=ie(L,Zr);Se(c,e.domain,l),ie(c,Xr,S),ie(c,Yr,y),Se(u,e.domain,l),ie(u,Xr,S),ie(u,Yr,y),Se(M,e.domain,E),ie(M,Zr,E),Se($,e.domain,E),Se($,n,E),ie($,Zr,E);const V=ie(E,fa),W=ie(E,Ol),ee=ie(E,Il),J=ie(E,Pl);ie(T,fa,V),ie(T,Ol,W),ie(T,Il,ee),ie(T,Pl,J),ie(V,ss,E),ie(W,pa,E),ie(ee,ha,E),ie(J,as,E),ie(V,ss,E);const I=Kt(ls),B=Kt(ls),H=Kt(ls),K=Kt(ls);Se(V,n,I),Se(W,n,B),Se(ee,n,H),Se(J,n,K);const ae=Kt(),ye=Kt(),le=Kt(),re=Kt();return Se(V,r),Se(W,r),Se(ee,r),Se(J,r),Se(I,n,I),Se(B,n,B),Se(H,n,H),Se(K,n,K),Se(I,r,I),Se(B,r,B),Se(H,r,H),Se(K,r,K),Se(ae,n,ae),Se(ye,n,B),Se(le,n,H),Se(re,n,K),Se(ae,r,ae),Se(ye,r,ye),Se(le,r,le),Se(re,r,re),ie(B,pa,E),ie(H,ha,E),ie(K,as,E),ie(I,ss,E),ie(ye,pa,E),ie(le,ha,E),ie(re,as,E),ie(ae,as,E),ie(s,Bl,k),ie(s,lm,jY),{start:s,tokens:$8}}function qY(t,e,n){let r=n.length,o=0,s=[],a=[];for(;o<r;){let l=t,c=null,u=null,d=0,f=null,p=-1;for(;o<r&&!(c=l.go(n[o].t));)a.push(n[o++]);for(;o<r&&(u=c||l.go(n[o].t));)c=null,l=u,l.accepts()?(p=0,f=l):p>=0&&p++,o++,d++;if(p<0)o-=d,o<r&&(a.push(n[o]),o++);else{a.length>0&&(s.push(bm(K8,e,a)),a=[]),o-=p,d-=p;const h=f.t,m=n.slice(o-d,o);s.push(bm(h,e,m))}}return a.length>0&&s.push(bm(K8,e,a)),s}function bm(t,e,n){const r=n[0].s,o=n[n.length-1].e,s=e.slice(r,o);return new t(s,n)}const WY=typeof console!="undefined"&&console&&console.warn||(()=>{}),KY="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Et={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function GY(){Mn.groups={},Et.scanner=null,Et.parser=null,Et.tokenQueue=[],Et.pluginQueue=[],Et.customSchemes=[],Et.initialized=!1}function G8(t,e){if(e===void 0&&(e=!1),Et.initialized&&WY(`linkifyjs: already initialized - will not register custom scheme "${t}" ${KY}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);Et.customSchemes.push([t,e])}function JY(){Et.scanner=$Y(Et.customSchemes);for(let t=0;t<Et.tokenQueue.length;t++)Et.tokenQueue[t][1]({scanner:Et.scanner});Et.parser=UY(Et.scanner.tokens);for(let t=0;t<Et.pluginQueue.length;t++)Et.pluginQueue[t][1]({scanner:Et.scanner,parser:Et.parser});Et.initialized=!0}function J8(t){return Et.initialized||JY(),qY(Et.parser.start,t,VY(Et.scanner.start,t))}function ym(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new gm(n),o=J8(t),s=[];for(let a=0;a<o.length;a++){const l=o[a];l.isLink&&(!e||l.t===e)&&s.push(l.toFormattedObject(r))}return s}function X8(t,e){e===void 0&&(e=null);const n=J8(t);return n.length===1&&n[0].isLink&&(!e||n[0].t===e)}function XY(t){return new wt({key:new Ot("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),s=e.some(d=>d.getMeta("preventAutolink"));if(!o||s)return;const{tr:a}=r,l=MS(n.doc,[...e]),{mapping:c}=l;if(zS(l).forEach(({oldRange:d,newRange:f})=>{Ec(d.from,d.to,n.doc).filter(g=>g.mark.type===t.type).forEach(g=>{const b=c.map(g.from),y=c.map(g.to),S=Ec(b,y,r.doc).filter(M=>M.mark.type===t.type);if(!S.length)return;const k=S[0],C=n.doc.textBetween(g.from,g.to,void 0," "),_=r.doc.textBetween(k.from,k.to,void 0," "),E=X8(C),T=X8(_);E&&!T&&a.removeMark(k.from,k.to,t.type)});const p=BS(r.doc,f,g=>g.isTextblock);let h,m;if(p.length>1?(h=p[0],m=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):p.length&&r.doc.textBetween(f.from,f.to," "," ").endsWith(" ")&&(h=p[0],m=r.doc.textBetween(h.pos,f.to,void 0," ")),h&&m){const g=m.split(" ").filter(S=>S!=="");if(g.length<=0)return!1;const b=g[g.length-1],y=h.pos+m.lastIndexOf(b);if(!b)return!1;ym(b).filter(S=>S.isLink).filter(S=>t.validate?t.validate(S.value):!0).map(S=>({...S,from:y+S.start+1,to:y+S.end+1})).forEach(S=>{a.addMark(S.from,S.to,t.type.create({href:S.href}))})}}),!!a.steps.length)return a}})}function YY(t){return new wt({key:new Ot("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,s,a;if(r.button!==0)return!1;const l=I4(e.state,t.type.name),c=(o=r.target)===null||o===void 0?void 0:o.closest("a"),u=(s=c==null?void 0:c.href)!==null&&s!==void 0?s:l.href,d=(a=c==null?void 0:c.target)!==null&&a!==void 0?a:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function ZY(t){return new wt({key:new Ot("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:s}=o,{empty:a}=s;if(a)return!1;let l="";r.content.forEach(u=>{l+=u.textContent});const c=ym(l).find(u=>u.isLink&&u.value===l);return!l||!c?!1:(t.editor.commands.setMark(t.type,{href:c.href}),!0)}}})}const QY=kn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){G8(t);return}G8(t.scheme,t.optionalSlashes)})},onDestroy(){GY()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>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[jo({find:t=>ym(t).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(XY({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(YY({type:this.type})),this.options.linkOnPaste&&t.push(ZY({editor:this.editor,type:this.type})),t}}),eZ=i.defineComponent({name:"AddLinkCommandButton",components:{ElDialog:Qs,ElForm:_p,ElFormItem:Dp,ElInput:Qo,ElCheckbox:yl,ElButton:nn,CommandButton:Ue},props:{editor:{type:Ra,required:!0},buttonIcon:{default:"",type:String},placeholder:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!0);return{t,enableTooltip:e,isCodeViewMode:n}},data(){return{linkAttrs:{href:"",openInNewTab:!0},addLinkDialogVisible:!1}},watch:{addLinkDialogVisible(){this.linkAttrs={href:"",openInNewTab:!0}}},methods:{openAddLinkDialog(){this.addLinkDialogVisible=!0},closeAddLinkDialog(){this.addLinkDialogVisible=!1},addLink(){this.linkAttrs.openInNewTab?this.editor.commands.setLink({href:this.linkAttrs.href,target:"_blank"}):this.editor.commands.setLink({href:this.linkAttrs.href}),this.closeAddLinkDialog()}}});function tZ(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-input"),c=i.resolveComponent("el-form-item"),u=i.resolveComponent("el-checkbox"),d=i.resolveComponent("el-form"),f=i.resolveComponent("el-button"),p=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{"is-active":t.editor.isActive("link"),readonly:t.isCodeViewMode,command:t.openAddLinkDialog,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.Link.add.tooltip"),icon:"link","button-icon":t.buttonIcon},null,8,["is-active","readonly","command","enable-tooltip","tooltip","button-icon"]),i.createVNode(p,{modelValue:t.addLinkDialogVisible,"onUpdate:modelValue":e[3]||(e[3]=h=>t.addLinkDialogVisible=h),title:t.t("editor.extensions.Link.add.control.title"),"append-to-body":!0,width:"400px",class:"el-tiptap-edit-link-dialog"},{footer:i.withCtx(()=>[i.createVNode(f,{size:"small",round:"",onClick:t.closeAddLinkDialog},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.add.control.cancel")),1)]),_:1},8,["onClick"]),i.createVNode(f,{type:"primary",size:"small",round:"",onMousedown:e[2]||(e[2]=i.withModifiers(()=>{},["prevent"])),onClick:t.addLink},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.add.control.confirm")),1)]),_:1},8,["onClick"])]),default:i.withCtx(()=>[i.createVNode(d,{model:t.linkAttrs,"label-position":"right",size:"small"},{default:i.withCtx(()=>[i.createVNode(c,{label:t.t("editor.extensions.Link.add.control.href"),prop:"href"},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:t.linkAttrs.href,"onUpdate:modelValue":e[0]||(e[0]=h=>t.linkAttrs.href=h),autocomplete:"off",placeholder:t.placeholder},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i.createVNode(c,{prop:"openInNewTab"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:t.linkAttrs.openInNewTab,"onUpdate:modelValue":e[1]||(e[1]=h=>t.linkAttrs.openInNewTab=h)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.t("editor.extensions.Link.add.control.open_in_new_tab")),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}var nZ=tt(eZ,[["render",tZ]]);const rZ=QY.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",addLinkPlaceholder:"",editLinkPlaceholder:"",button({editor:e,extension:n}){return{component:nZ,componentProps:{editor:e,buttonIcon:n.options.buttonIcon,placeholder:n.options.addLinkPlaceholder}}}}},addProseMirrorPlugins(){return[new wt({props:{handleClick(t,e){const{schema:n,doc:r,tr:o}=t.state,s=Pa(r.resolve(e),n.marks.link);if(!s)return!1;const a=r.resolve(s.from),l=r.resolve(s.to),c=o.setSelection(new Be(a,l));return t.dispatch(c),!0}}})]}}),Dd=kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=In(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),oZ=it.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Y8=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#000000"],iZ=i.defineComponent({name:"ColorPopover",components:{ElButton:nn,ElPopover:oi,ElInput:Qo,CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(t){const e=i.inject("t"),n=i.inject("enableTooltip",!0),r=i.inject("isCodeViewMode",!1),o=i.ref(),s=i.ref("");function a(c){c?t.editor.commands.setColor(c):t.editor.commands.unsetColor(),i.unref(o).hide()}const l=i.computed(()=>In(t.editor.state,"textStyle").color||"");return i.watch(l,c=>{s.value=c}),{t:e,enableTooltip:n,isCodeViewMode:r,popoverRef:o,colorText:s,selectedColor:l,confirmColor:a}},computed:{colorSet(){return this.editor.extensionManager.extensions.find(e=>e.name==="color").options.colors}}}),sZ={class:"color-set"},aZ=["onClick"],lZ={class:"color__wrapper"},cZ={class:"color-hex"};function uZ(t,e,n,r,o,s){const a=i.resolveComponent("el-input"),l=i.resolveComponent("el-button"),c=i.resolveComponent("command-button"),u=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(u,{disabled:t.isCodeViewMode,placement:"bottom",trigger:"click","popper-class":"el-tiptap-popper",ref:"popoverRef"},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(c,{"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.TextColor.tooltip"),icon:"font-color","button-icon":t.buttonIcon,readonly:t.isCodeViewMode},null,8,["enable-tooltip","tooltip","button-icon","readonly"])])]),default:i.withCtx(()=>[i.createElementVNode("div",sZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.colorSet,d=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"color__wrapper"},[i.createElementVNode("div",{style:i.normalizeStyle({"background-color":d}),class:i.normalizeClass([{"color--selected":t.selectedColor===d},"color"]),onMousedown:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),onClick:i.withModifiers(f=>t.confirmColor(d),["stop"])},null,46,aZ)]))),128)),i.createElementVNode("div",lZ,[i.createElementVNode("div",{class:"color color--remove",onMousedown:e[1]||(e[1]=i.withModifiers(()=>{},["prevent"])),onClick:e[2]||(e[2]=i.withModifiers(d=>t.confirmColor(),["stop"]))},null,32)])]),i.createElementVNode("div",cZ,[i.createVNode(a,{modelValue:t.colorText,"onUpdate:modelValue":e[3]||(e[3]=d=>t.colorText=d),placeholder:"HEX",autofocus:"true",maxlength:"7",size:"small",class:"color-hex__input"},null,8,["modelValue"]),i.createVNode(l,{text:"",type:"primary",size:"small",class:"color-hex__button",onClick:e[4]||(e[4]=d=>t.confirmColor(t.colorText))},{default:i.withCtx(()=>[i.createTextVNode(" OK ")]),_:1})])]),_:1},8,["disabled"])}var dZ=tt(iZ,[["render",uZ]]);const fZ=oZ.extend({nessesaryExtensions:[Dd],addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",colors:Y8,button({editor:e,extension:n}){return{component:dZ,componentProps:{editor:e,buttonIcon:n.options.buttonIcon}}}}}}),pZ=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,hZ=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,mZ=kn.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Li({find:pZ,type:this.type})]},addPasteRules(){return[jo({find:hZ,type:this.type})]}}),gZ=i.defineComponent({name:"HighlightPopover",components:{ElPopover:oi,CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(t){const e=i.inject("t"),n=i.inject("enableTooltip",!0),r=i.inject("isCodeViewMode",!1),o=i.ref(),s=i.ref(!1);function a(c){c?t.editor.commands.setHighlight({color:c}):t.editor.commands.unsetHighlight(),i.unref(o).hide()}const l=i.computed(()=>In(t.editor.state,"highlight").color||"");return{t:e,enableTooltip:n,isCodeViewMode:r,popoverRef:o,selectedColor:l,popoverVisible:s,confirmColor:a}},computed:{colorSet(){return this.editor.extensionManager.extensions.find(e=>e.name==="highlight").options.colors}}}),bZ={class:"color-set"},yZ=["onClick"],wZ={class:"color__wrapper"};function vZ(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(l,{disabled:t.isCodeViewMode,placement:"bottom",trigger:"click","popper-class":"el-tiptap-popper",ref:"popoverRef"},{reference:i.withCtx(()=>[i.createElementVNode("span",null,[i.createVNode(a,{"button-icon":t.buttonIcon,"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.TextHighlight.tooltip"),icon:"highlight",readonly:t.isCodeViewMode},null,8,["button-icon","enable-tooltip","tooltip","readonly"])])]),default:i.withCtx(()=>[i.createElementVNode("div",bZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.colorSet,c=>(i.openBlock(),i.createElementBlock("div",{key:c,class:"color__wrapper"},[i.createElementVNode("div",{style:i.normalizeStyle({"background-color":c}),class:i.normalizeClass([{"color--selected":t.selectedColor===c},"color"]),onMousedown:e[0]||(e[0]=i.withModifiers(()=>{},["prevent"])),onClick:i.withModifiers(u=>t.confirmColor(c),["stop"])},null,46,yZ)]))),128)),i.createElementVNode("div",wZ,[i.createElementVNode("div",{class:"color color--remove",onMousedown:e[1]||(e[1]=i.withModifiers(()=>{},["prevent"])),onClick:e[2]||(e[2]=i.withModifiers(c=>t.confirmColor(),["stop"]))},null,32)])])]),_:1},8,["disabled"])}var CZ=tt(gZ,[["render",vZ]]);const kZ=mZ.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",multicolor:!0,colors:Y8,button({editor:e,extension:n}){return{component:CZ,componentProps:{editor:e,buttonIcon:n.options.buttonIcon}}}}}}),Z8=["Arial","Arial Black","Georgia","Impact","Tahoma","Times New Roman","Verdana","Courier New","Lucida Console","Monaco","monospace"].reduce((t,e)=>(t[e]=e,t),{}),SZ=i.defineComponent({name:"FontFamilyDropdown",components:{ElDropdown:wl,ElDropdownMenu:vl,ElDropdownItem:An,CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},computed:{fontFamilies(){return this.editor.extensionManager.extensions.find(e=>e.name==="fontFamily").options.fontFamilyMap},activeFontFamily(){return In(this.editor.state,"textStyle").fontFamily||""}},methods:{toggleFontType(t){t===this.activeFontFamily?this.editor.commands.unsetFontFamily():this.editor.commands.setFontFamily(t)}}}),EZ=["data-font"];function xZ(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-dropdown-item"),c=i.resolveComponent("el-dropdown-menu"),u=i.resolveComponent("el-dropdown");return i.openBlock(),i.createBlock(u,{placement:"bottom",trigger:"click",onCommand:t.toggleFontType,"popper-class":"my-dropdown","popper-options":{modifiers:[{name:"computeStyles",options:{adaptive:!1}}]}},{dropdown:i.withCtx(()=>[i.createVNode(c,{class:"el-tiptap-dropdown-menu"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.fontFamilies,d=>(i.openBlock(),i.createBlock(l,{key:d,command:d,class:i.normalizeClass([{"el-tiptap-dropdown-menu__item--active":d===t.activeFontFamily},"el-tiptap-dropdown-menu__item"])},{default:i.withCtx(()=>[i.createElementVNode("span",{"data-font":d,style:i.normalizeStyle({"font-family":d})},i.toDisplayString(d),13,EZ)]),_:2},1032,["command","class"]))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.FontType.tooltip"),readonly:t.isCodeViewMode,icon:"font-family","button-icon":t.buttonIcon},null,8,["enable-tooltip","tooltip","readonly","button-icon"])])]),_:1},8,["onCommand"])}var TZ=tt(SZ,[["render",xZ]]);const AZ=it.create({name:"fontFamily",addOptions(){return{types:["textStyle"],fontFamilyMap:Z8,buttonIcon:"",commandList:Object.keys(Z8).map(t=>({title:`fontFamily ${t}`,command:({editor:e,range:n})=>{t===In(e.state,"textStyle").fontFamily?e.chain().focus().deleteRange(n).unsetFontFamily().run():e.chain().focus().deleteRange(n).setFontFamily(t).run()},disabled:!1,isActive(e){return t===In(e.state,"textStyle").fontFamily||""}})),button({editor:t,extension:e}){return{component:TZ,componentProps:{editor:t,buttonIcon:e.options.buttonIcon}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily.replace(/['"]/g,""),renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}},nessesaryExtensions:[Dd]}).extend({}),Q8=["8","10","12","14","16","18","20","24","30","36","48","60","72"],e7="default",_Z=/([\d.]+)px/i;function DZ(t){const e=t.match(_Z);if(!e)return"";const n=e[1];return n||""}const MZ=i.defineComponent({name:"FontSizeDropdown",components:{ElDropdown:wl,ElDropdownMenu:vl,ElDropdownItem:An,CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n,defaultSize:e7}},computed:{fontSizes(){return this.editor.extensionManager.extensions.find(e=>e.name==="fontSize").options.fontSizes},activeFontSize(){return In(this.editor.state,"textStyle").fontSize||""}},methods:{toggleFontSize(t){t===this.activeFontSize?this.editor.commands.unsetFontSize():this.editor.commands.setFontSize(t)}}}),NZ={"data-font-size":"default"},BZ=["data-font-size"];function OZ(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-dropdown-item"),c=i.resolveComponent("el-dropdown-menu"),u=i.resolveComponent("el-dropdown");return i.openBlock(),i.createBlock(u,{placement:"bottom",trigger:"click","popper-class":"my-dropdown","popper-options":{modifiers:[{name:"computeStyles",options:{adaptive:!1}}]},onCommand:t.toggleFontSize},{dropdown:i.withCtx(()=>[i.createVNode(c,{class:"el-tiptap-dropdown-menu"},{default:i.withCtx(()=>[i.createVNode(l,{command:t.defaultSize,class:i.normalizeClass([{"el-tiptap-dropdown-menu__item--active":t.activeFontSize===t.defaultSize},"el-tiptap-dropdown-menu__item"])},{default:i.withCtx(()=>[i.createElementVNode("span",NZ,i.toDisplayString(t.t("editor.extensions.FontSize.default")),1)]),_:1},8,["command","class"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.fontSizes,d=>(i.openBlock(),i.createBlock(l,{key:d,command:d,class:i.normalizeClass([{"el-tiptap-dropdown-menu__item--active":d===t.activeFontSize},"el-tiptap-dropdown-menu__item"])},{default:i.withCtx(()=>[i.createElementVNode("span",{"data-font-size":d},i.toDisplayString(d),9,BZ)]),_:2},1032,["command","class"]))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.FontSize.tooltip"),readonly:t.isCodeViewMode,"button-icon":t.buttonIcon,icon:"font-size"},null,8,["enable-tooltip","tooltip","readonly","button-icon"])])]),_:1},8,["onCommand"])}var IZ=tt(MZ,[["render",OZ]]);const PZ=it.create({name:"fontSize",addOptions(){return{types:["textStyle"],fontSizes:Q8,buttonIcon:"",commandList:Q8.map(t=>({title:`fontSize ${t}`,command:({editor:e,range:n})=>{t===In(e.state,"textStyle").fontSize?e.chain().focus().deleteRange(n).unsetFontSize().run():e.chain().focus().deleteRange(n).setFontSize(t).run()},disabled:!1,isActive(e){return t===In(e.state,"textStyle").fontSize||""}})),button({editor:t,extension:e}){return{component:IZ,componentProps:{editor:t,buttonIcon:e.options.buttonIcon}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>DZ(t.style.fontSize)||"",renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}px`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:e7}).removeEmptyTextStyle().run()}},nessesaryExtensions:[Dd]}),LZ=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,RZ=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,zZ=kn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Ye(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Li({find:LZ,type:this.type})]},addPasteRules(){return[jo({find:RZ,type:this.type})]}}),FZ=ut.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ye(this.options.HTMLAttributes,t)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:s}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:l}=r.extensionManager,c=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&c&&a){const f=c.filter(p=>l.includes(p.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),$Z=ut.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Ye(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t})=>t().insertContent({type:this.name}).command(({tr:e,dispatch:n})=>{var r;if(n){const{$to:o}=e.selection,s=o.end();if(o.nodeAfter)e.setSelection(Be.create(e.doc,o.pos));else{const a=(r=o.parent.type.contentMatch.defaultType)===null||r===void 0?void 0:r.create();a&&(e.insert(s,a),e.setSelection(Be.create(e.doc,s)))}e.scrollIntoView()}return!0}).run()}},addInputRules(){return[R4({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",commandList:[{title:"horizontalRule",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setHorizontalRule().run()},disabled:!1,isActive(e){return!1}}],button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.setHorizontalRule()},buttonIcon:n.options.buttonIcon,icon:"horizontal-rule",tooltip:r("editor.extensions.HorizontalRule.tooltip")}}}}}});var Md=200,Gt=function(){};Gt.prototype.append=function(e){return e.length?(e=Gt.from(e),!this.length&&e||e.length<Md&&this.leafAppend(e)||this.length<Md&&e.leafPrepend(this)||this.appendInner(e)):this},Gt.prototype.prepend=function(e){return e.length?Gt.from(e).append(this):this},Gt.prototype.appendInner=function(e){return new VZ(this,e)},Gt.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Gt.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Gt.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Gt.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Gt.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(s,a){return o.push(e(s,a))},n,r),o},Gt.from=function(e){return e instanceof Gt?e:e&&e.length?new t7(e):Gt.empty};var t7=function(t){function e(r){t.call(this),this.values=r}t&&(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(o,s){return o==0&&s==this.length?this:new e(this.values.slice(o,s))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,s,a,l){for(var c=s;c<a;c++)if(o(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(o,s,a,l){for(var c=s-1;c>=a;c--)if(o(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Md)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Md)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Gt);Gt.empty=new t7([]);var VZ=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(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(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,s,a){var l=this.left.length;if(o<l&&this.left.forEachInner(r,o,Math.min(s,l),a)===!1||s>l&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,s)-l,a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,s,a){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(s,l)-l,a+l)===!1||s<l&&this.left.forEachInvertedInner(r,Math.min(o,l),s,a)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var s=this.left.length;return o<=s?this.left.slice(r,o):r>=s?this.right.slice(r-s,o-s):this.left.slice(r,s).append(this.right.slice(0,o-s))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Gt);const HZ=500;class Dr{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,s;n&&(o=this.remapping(r,this.items.length),s=o.maps.length);let a=e.tr,l,c,u=[],d=[];return this.items.forEach((f,p)=>{if(!f.step){o||(o=this.remapping(r,p+1),s=o.maps.length),s--,d.push(f);return}if(o){d.push(new Qr(f.map));let h=f.step.map(o.slice(s)),m;h&&a.maybeStep(h).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],u.push(new Qr(m,void 0,void 0,u.length+d.length))),s--,m&&o.appendMap(m,s)}else a.maybeStep(f.step);if(f.selection)return l=o?f.selection.map(o.slice(s)):f.selection,c=new Dr(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:l}}addTransform(e,n,r,o){let s=[],a=this.eventCount,l=this.items,c=!o&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),p=new Qr(e.mapping.maps[d],f,n),h;(h=c&&c.merge(p))&&(p=h,d?s.pop():l=l.slice(0,l.length-1)),s.push(p),n&&(a++,n=void 0),o||(c=p)}let u=a-r.depth;return u>UZ&&(l=jZ(l,u),a-=u),new Dr(l.append(s),a)}remapping(e,n){let r=new hs;return this.items.forEach((o,s)=>{let a=o.mirrorOffset!=null&&s-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},e,n),r}addMaps(e){return this.eventCount==0?this:new Dr(this.items.append(e.map(n=>new Qr(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),s=e.mapping,a=e.steps.length,l=this.eventCount;this.items.forEach(p=>{p.selection&&l--},o);let c=n;this.items.forEach(p=>{let h=s.getMirror(--c);if(h==null)return;a=Math.min(a,h);let m=s.maps[h];if(p.step){let g=e.steps[h].invert(e.docs[h]),b=p.selection&&p.selection.map(s.slice(c+1,h));b&&l++,r.push(new Qr(m,g,b))}else r.push(new Qr(m))},o);let u=[];for(let p=n;p<a;p++)u.push(new Qr(s.maps[p]));let d=this.items.slice(0,o).append(u).append(r),f=new Dr(d,l);return f.emptyItemCount()>HZ&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],s=0;return this.items.forEach((a,l)=>{if(l>=e)o.push(a),a.selection&&s++;else if(a.step){let c=a.step.map(n.slice(r)),u=c&&c.getMap();if(r--,u&&n.appendMap(u,r),c){let d=a.selection&&a.selection.map(n.slice(r));d&&s++;let f=new Qr(u.invert(),c,d),p,h=o.length-1;(p=o.length&&o[h].merge(f))?o[h]=p:o.push(f)}}else a.map&&r--},this.items.length,0),new Dr(Gt.from(o.reverse()),s)}}Dr.empty=new Dr(Gt.empty,0);function jZ(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Qr{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Qr(n.getMap().invert(),n,this.selection)}}}class pi{constructor(e,n,r,o,s){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=s}}const UZ=20;function qZ(t,e,n,r){let o=n.getMeta(hi),s;if(o)return o.historyState;n.getMeta(KZ)&&(t=new pi(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(hi))return a.getMeta(hi).redo?new pi(t.done.addTransform(n,void 0,r,Nd(e)),t.undone,n7(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new pi(t.done,t.undone.addTransform(n,void 0,r,Nd(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),c=t.prevTime==0||!a&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!WZ(n,t.prevRanges)),u=a?wm(t.prevRanges,n.mapping):n7(n.mapping.maps[n.steps.length-1]);return new pi(t.done.addTransform(n,c?e.selection.getBookmark():void 0,r,Nd(e)),Dr.empty,u,n.time,l==null?t.prevComposition:l)}else return(s=n.getMeta("rebased"))?new pi(t.done.rebased(n,s),t.undone.rebased(n,s),wm(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new pi(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),wm(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function WZ(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let s=0;s<e.length;s+=2)r<=e[s+1]&&o>=e[s]&&(n=!0)}),n}function n7(t){let e=[];return t.forEach((n,r,o,s)=>e.push(o,s)),e}function wm(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),s=e.map(t[r+1],-1);o<=s&&n.push(o,s)}return n}function r7(t,e,n,r){let o=Nd(e),s=hi.get(e).spec.config,a=(r?t.undone:t.done).popEvent(e,o);if(!a)return;let l=a.selection.resolve(a.transform.doc),c=(r?t.done:t.undone).addTransform(a.transform,e.selection.getBookmark(),s,o),u=new pi(r?c:a.remaining,r?a.remaining:c,null,0,-1);n(a.transform.setSelection(l).setMeta(hi,{redo:r,historyState:u}).scrollIntoView())}let vm=!1,o7=null;function Nd(t){let e=t.plugins;if(o7!=e){vm=!1,o7=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){vm=!0;break}}return vm}const hi=new Ot("history"),KZ=new Ot("closeHistory");function GZ(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new wt({key:hi,state:{init(){return new pi(Dr.empty,Dr.empty,null,0,-1)},apply(e,n,r){return qZ(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?i7:r=="historyRedo"?s7:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}const i7=(t,e)=>{let n=hi.getState(t);return!n||n.done.eventCount==0?!1:(e&&r7(n,t,e,!1),!0)},s7=(t,e)=>{let n=hi.getState(t);return!n||n.undone.eventCount==0?!1:(e&&r7(n,t,e,!0),!0)},JZ=it.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>i7(t,e),redo:()=>({state:t,dispatch:e})=>s7(t,e)}},addProseMirrorPlugins(){return[GZ(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044F":()=>this.editor.commands.undo(),"Shift-Mod-\u044F":()=>this.editor.commands.redo()}}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:["",""],button({editor:e,extension:n,t:r}){var o,s;return[{component:Ue,componentProps:{command:()=>{e.commands.undo()},disabled:!e.can().chain().focus().undo().run(),icon:"undo",buttonIcon:(o=n.options.buttonIcon)==null?void 0:o[0],tooltip:r("editor.extensions.History.tooltip.undo")}},{component:Ue,componentProps:{command:()=>{e.commands.redo()},disabled:!e.can().chain().focus().redo().run(),icon:"redo",buttonIcon:(s=n.options.buttonIcon)==null?void 0:s[1],tooltip:r("editor.extensions.History.tooltip.redo")}}]}}}}),XZ=it.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.every(n=>e.updateAttributes(n,{textAlign:t})):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.every(e=>t.resetAttributes(e,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}).extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:["","","",""],types:["heading","paragraph","list_item","title"],button({editor:e,extension:n,t:r}){return n.options.alignments.reduce((o,s)=>{var a;return o.concat({component:Ue,componentProps:{command:()=>{e.isActive({textAlign:s})?e.commands.unsetTextAlign():e.commands.setTextAlign(s)},isActive:s==="left"?!1:e.isActive({textAlign:s}),icon:`align-${s}`,buttonIcon:(a=n.options.buttonIcon)==null?void 0:a[o.length],tooltip:r(`editor.extensions.TextAlign.buttons.align_${s}.tooltip`)}})},[])}}}});var zl=(t=>(t[t.max=7]="max",t[t.min=0]="min",t[t.more=1]="more",t[t.less=-1]="less",t))(zl||{});function YZ(t,e,n,r){const{doc:o,selection:s}=t;if(!o||!s||!(s instanceof Be||s instanceof vn))return t;const{from:a,to:l}=s;return o.nodesBetween(a,l,(c,u)=>{const d=c.type;return n.includes(d.name)?(t=ZZ(t,u,e),!1):!of(c.type.name,r.extensionManager.extensions)}),t}function ZZ(t,e,n){if(!t.doc)return t;const r=t.doc.nodeAt(e);if(!r)return t;const o=0,s=7,a=j5((r.attrs.indent||0)+n,o,s);if(a===r.attrs.indent)return t;const l={...r.attrs,indent:a};return t.setNodeMarkup(e,r.type,l,r.marks)}function a7({delta:t,types:e}){return({state:n,dispatch:r,editor:o})=>{const{selection:s}=n;let{tr:a}=n;return a=a.setSelection(s),a=YZ(a,t,e,o),a.docChanged?(r&&r(a),!0):!1}}const QZ=it.create({name:"indent",addOptions(){return{buttonIcon:["",""],types:["paragraph","heading","blockquote"],minIndent:zl.min,maxIndent:zl.max,button({editor:t,extension:e,t:n}){var r,o;return[{component:Ue,componentProps:{command:()=>{t.commands.indent()},buttonIcon:(r=e.options.buttonIcon)==null?void 0:r[0],icon:"indent",tooltip:n("editor.extensions.Indent.buttons.indent.tooltip")}},{component:Ue,componentProps:{command:()=>{t.commands.outdent()},icon:"outdent",buttonIcon:(o=e.options.buttonIcon)==null?void 0:o[1],tooltip:n("editor.extensions.Indent.buttons.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:t=>{const e=t.getAttribute("data-indent");return(e?parseInt(e,10):0)||0},renderHTML:t=>t.indent?{"data-indent":t.indent}:{}}}}]},addCommands(){return{indent:()=>a7({delta:zl.more,types:this.options.types}),outdent:()=>a7({delta:zl.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}}),l7=["paragraph","heading","list_item","todo_item"],c7=/^\d+(.\d+)?$/;function Cm(t,e){const{selection:n,doc:r}=t,{from:o,to:s}=n;let a=!0,l=!1;return r.nodesBetween(o,s,c=>{const u=c.type,d=c.attrs.lineHeight||Ic;return l7.includes(u.name)?a&&e===d?(a=!1,l=!0,!1):u.name!=="list_item"&&u.name!=="todo_item":a}),l}function eQ(t){if(!t)return"";let e=String(t);if(c7.test(e)){const n=parseFloat(e);e=String(Math.round(n*100))+"%"}return parseFloat(e)*x2+"%"}function tQ(t){if(!t||t===Ic)return"";let e=t;if(c7.test(t)){const n=parseFloat(t);if(e=String(Math.round(n*100))+"%",e===Ic)return""}return parseFloat(e)/x2+"%"}function nQ(t,e){const{selection:n,doc:r}=t;if(!n||!r||!(n instanceof Be||n instanceof vn))return t;const{from:o,to:s}=n,a=[],l=e&&e!==Ic?e:null;return r.nodesBetween(o,s,(c,u)=>{const d=c.type;return l7.includes(d.name)?((c.attrs.lineHeight||null)!==l&&a.push({node:c,pos:u,nodeType:d}),d.name!=="list_item"&&d.name!=="todo_item"):!0}),a.length&&a.forEach(c=>{const{node:u,pos:d,nodeType:f}=c;let{attrs:p}=u;p={...p,lineHeight:l},t=t.setNodeMarkup(d,f,p,u.marks)}),t}function rQ(t){return({state:e,dispatch:n})=>{const{selection:r}=e;let{tr:o}=e;return o=o.setSelection(r),o=nQ(o,t),o.docChanged?(n&&n(o),!0):!1}}const oQ=i.defineComponent({name:"LineHeightDropdown",components:{ElDropdown:wl,ElDropdownMenu:vl,ElDropdownItem:An,CommandButton:Ue},props:{editor:{type:It,required:!0},buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1);return{t,enableTooltip:e,isCodeViewMode:n}},computed:{lineHeights(){return this.editor.extensionManager.extensions.find(e=>e.name==="lineHeight").options.lineHeights}},methods:{isLineHeightActive(t){return Cm(this.editor.state,t)}}});function iQ(t,e,n,r,o,s){const a=i.resolveComponent("command-button"),l=i.resolveComponent("el-dropdown-item"),c=i.resolveComponent("el-dropdown-menu"),u=i.resolveComponent("el-dropdown");return i.openBlock(),i.createBlock(u,{placement:"bottom",trigger:"click",onCommand:e[0]||(e[0]=d=>t.editor.commands.setLineHeight(d)),"popper-class":"my-dropdown","popper-options":{modifiers:[{name:"computeStyles",options:{adaptive:!1}}]}},{dropdown:i.withCtx(()=>[i.createVNode(c,{class:"el-tiptap-dropdown-menu"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.lineHeights,d=>(i.openBlock(),i.createBlock(l,{key:d,command:d,class:i.normalizeClass([{"el-tiptap-dropdown-menu__item--active":t.isLineHeightActive(d)},"el-tiptap-dropdown-menu__item"])},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(d),1)]),_:2},1032,["command","class"]))),128))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(a,{"enable-tooltip":t.enableTooltip,"button-icon":t.buttonIcon,tooltip:t.t("editor.extensions.LineHeight.tooltip"),readonly:t.isCodeViewMode,icon:"text-height"},null,8,["enable-tooltip","button-icon","tooltip","readonly"])])]),_:1})}var sQ=tt(oQ,[["render",iQ]]);const aQ=it.create({name:"lineHeight",addOptions(){return{buttonIcon:"",types:["paragraph","heading","list_item","todo_item"],lineHeights:["100%","115%","150%","200%","250%","300%"],commandList:["100%","115%","150%","200%","250%","300%"].map(t=>({title:`lineHeight ${t}`,command:({editor:e,range:n})=>{Cm(e.state,t)?e.chain().focus().deleteRange(n).unsetLineHeight().run():e.chain().focus().deleteRange(n).setLineHeight(t).run()},disabled:!1,isActive(e){return Cm(e.state,t)||""}})),button({editor:t,extension:e}){return{component:sQ,componentProps:{editor:t,buttonIcon:e.options.buttonIcon}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>tQ(t.style.lineHeight)||null,renderHTML:t=>t.lineHeight?{style:`line-height: ${eQ(t.lineHeight)};`}:{}}}}]},addCommands(){return{setLineHeight:t=>rQ(t),unsetLineHeight:()=>({commands:t})=>this.options.types.every(e=>t.resetAttributes(e,"lineHeight"))}}}),lQ=it.create({name:"formatClear",addCommands(){const t={bold:"unsetBold",italic:"unsetItalic",underline:"unsetUnderline",strike:"unsetStrike",link:"unsetLink",fontFamily:"unsetFontFamily",fontSize:"unsetFontSize",color:"unsetColor",highlight:"unsetHighlight",textAlign:"unsetTextAlign",lineHeight:"unsetLineHeight"};return{formatClear:()=>({editor:e,chain:n})=>(Object.entries(t).reduce((r,[o,s])=>e.extensionManager.extensions.find(l=>l.name===o)?r[s]():r,n()),n().focus().run())}},addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.commands.formatClear()},buttonIcon:n.options.buttonIcon,icon:"clear-format",tooltip:r("editor.extensions.FormatClear.tooltip")}}}}}}),cQ=i.defineComponent({name:"FullscreenCommandButton",components:{CommandButton:Ue},props:{buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isFullscreen",!1),r=i.inject("toggleFullscreen");return{t,enableTooltip:e,isFullscreen:n,toggleFullscreen:r}},computed:{buttonTooltip(){return this.isFullscreen?this.t("editor.extensions.Fullscreen.tooltip.exit_fullscreen"):this.t("editor.extensions.Fullscreen.tooltip.fullscreen")}}});function uQ(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{command:()=>t.toggleFullscreen(!t.isFullscreen),"enable-tooltip":t.enableTooltip,tooltip:t.buttonTooltip,"button-icon":t.buttonIcon,icon:t.isFullscreen?"compress":"expand","is-active":t.isFullscreen},null,8,["command","enable-tooltip","tooltip","button-icon","icon","is-active"])])}var dQ=tt(cQ,[["render",uQ]]);const fQ=it.create({name:"fullscreen",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",button({extension:e}){return{component:dQ,componentProps:{buttonIcon:e.options.buttonIcon}}}}}});function pQ(t){const n=Array.from(document.querySelectorAll("style, link")).reduce((a,l)=>a+l.outerHTML,"")+t.outerHTML,r=document.createElement("iframe");r.id="el-tiptap-iframe",r.setAttribute("style","position: absolute; width: 0; height: 0; top: -10px; left: -10px;"),document.body.appendChild(r);const o=r.contentWindow,s=r.contentDocument||r.contentWindow&&r.contentWindow.document;s&&(s.open(),s.write(n),s.close()),o&&(r.onload=function(){try{setTimeout(()=>{o.focus();try{o.document.execCommand("print",!1)||o.print()}catch{o.print()}o.close()},10)}catch(a){Wa.error(a)}setTimeout(function(){document.body.removeChild(r)},100)})}function hQ(t){const e=t.dom.closest(".el-tiptap-editor__content");return e?(pQ(e),!0):!1}const mQ=it.create({name:"print",addOptions(){return{buttonIcon:"",button({editor:t,extension:e,t:n}){return{component:Ue,componentProps:{command:()=>{t.commands.print()},buttonIcon:e.options.buttonIcon,icon:"print",tooltip:n("editor.extensions.Print.tooltip")}}}}},addCommands(){return{print:()=>({view:t})=>hQ(t)}},addKeyboardShortcuts(){return{"Mod-p":()=>this.editor.commands.print()}}}),gQ=it.create({name:"selectAll",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",button({editor:e,extension:n,t:r}){return{component:Ue,componentProps:{command:()=>{e.chain().focus(),e.commands.selectAll()},buttonIcon:n.options.buttonIcon,icon:"select-all",tooltip:r("editor.extensions.SelectAll.tooltip")}}}}}}),bQ=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;function yQ(t){t.extendMode("xml",{newlineAfterToken:function(e,n,r,o){let s=!1;return this.configuration==="html"&&(s=o.context?bQ.test(o.context.tagName):!1),!s&&(e==="tag"&&/>$/.test(n)&&o.context||/^</.test(r))}}),t.defineExtension("autoFormatRange",function(e,n){const r=this,o=r.getMode(),s=r.getRange(e,n).split(`
`),a=t.copyState(o,r.getTokenAt(e).state),l=r.getOption("tabSize");let c="",u=0,d=e.ch===0;function f(){c+=`
`,d=!0,++u}for(let p=0;p<s.length;++p){const h=new t.StringStream(s[p],l);for(;!h.eol();){const m=t.innerMode(o,a),g=o.token(h,a),b=h.current();h.start=h.pos,(!d||/\S/.test(b))&&(c+=b,d=!1),!d&&m.mode.newlineAfterToken&&m.mode.newlineAfterToken(g,b,h.string.slice(h.pos)||s[p+1]||"",m.state)&&f()}!h.pos&&o.blankLine&&o.blankLine(a),!d&&p<s.length-1&&f()}r.operation(function(){r.replaceRange(c,e,n);for(let p=e.line+1,h=e.line+u;p<=h;++p)r.indentLine(p,"smart");r.setSelection(e,r.getCursor(!1))})})}const wQ=i.defineComponent({name:"CodeViewCommandButton",components:{CommandButton:Ue},props:{buttonIcon:{default:"",type:String}},setup(){const t=i.inject("t"),e=i.inject("enableTooltip",!0),n=i.inject("isCodeViewMode",!1),r=i.inject("toggleIsCodeViewMode");return{t,enableTooltip:e,isCodeViewMode:n,toggleIsCodeViewMode:r}}});function vQ(t,e,n,r,o,s){const a=i.resolveComponent("command-button");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(a,{command:()=>t.toggleIsCodeViewMode(!t.isCodeViewMode),"enable-tooltip":t.enableTooltip,tooltip:t.t("editor.extensions.CodeView.tooltip"),icon:"file-code","button-icon":t.buttonIcon,"is-active":t.isCodeViewMode},null,8,["command","enable-tooltip","tooltip","button-icon","is-active"])])}var CQ=tt(wQ,[["render",vQ]]);const kQ={lineNumbers:!0,lineWrapping:!0,tabSize:2,tabMode:"indent",mode:"text/html"},SQ=it.create({name:"codeView",onBeforeCreate(){if(!this.options.codemirror){Wa.warn('"CodeView" extension requires the CodeMirror library.');return}yQ(this.options.codemirror),this.options.codemirrorOptions={...kQ,...this.options.codemirrorOptions}},addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),buttonIcon:"",button({extension:e}){return{component:CQ,componentProps:{buttonIcon:e.options.buttonIcon}}}}}});class Mt extends Ie{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Mt.valid(r)?new Mt(r):Ie.near(r)}content(){return ue.empty}eq(e){return e instanceof Mt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Mt(e.resolve(n.pos))}getBookmark(){return new km(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!EQ(e)||!xQ(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Mt.valid(e))return e;let o=e.pos,s=null;for(let a=e.depth;;a--){let l=e.node(a);if(n>0?e.indexAfter(a)<l.childCount:e.index(a)>0){s=l.child(n>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;o+=n;let c=e.doc.resolve(o);if(Mt.valid(c))return c}for(;;){let a=n>0?s.firstChild:s.lastChild;if(!a){if(s.isAtom&&!s.isText&&!_e.isSelectable(s)){e=e.doc.resolve(o+s.nodeSize*n),r=!1;continue e}break}s=a,o+=n;let l=e.doc.resolve(o);if(Mt.valid(l))return l}return null}}}Mt.prototype.visible=!1,Mt.findFrom=Mt.findGapCursorFrom,Ie.jsonID("gapcursor",Mt);class km{constructor(e){this.pos=e}map(e){return new km(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Mt.valid(n)?new Mt(n):Ie.near(n)}}function EQ(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function xQ(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function TQ(){return new wt({props:{decorations:MQ,createSelectionBetween(t,e,n){return e.pos==n.pos&&Mt.valid(n)?new Mt(n):null},handleClick:_Q,handleKeyDown:AQ,handleDOMEvents:{beforeinput:DQ}}})}const AQ=K0({ArrowLeft:Bd("horiz",-1),ArrowRight:Bd("horiz",1),ArrowUp:Bd("vert",-1),ArrowDown:Bd("vert",1)});function Bd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,s){let a=r.selection,l=e>0?a.$to:a.$from,c=a.empty;if(a instanceof Be){if(!s.endOfTextblock(n)||l.depth==0)return!1;c=!1,l=r.doc.resolve(e>0?l.after():l.before())}let u=Mt.findGapCursorFrom(l,e,c);return u?(o&&o(r.tr.setSelection(new Mt(u))),!0):!1}}function _Q(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Mt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&_e.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Mt(r))),!0)}function DQ(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Mt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=Y.empty;for(let a=r.length-1;a>=0;a--)o=Y.from(r[a].createAndFill(null,o));let s=t.state.tr.replace(n.pos,n.pos,new ue(o,0,0));return s.setSelection(Be.near(s.doc.resolve(n.pos+1))),t.dispatch(s),!1}function MQ(t){if(!(t.selection instanceof Mt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",mt.create(t.doc,[Yt.widget(t.selection.head,e,{key:"gapcursor"})])}const NQ=it.create({name:"gapCursor",addProseMirrorPlugins(){return[TQ()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=He(Ce(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}});function BQ(t={}){return new wt({view(e){return new OQ(e,t)}})}class OQ{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let s=a=>{this[o](a)};return e.dom.addEventListener(o,s),{name:o,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let l=e.nodeBefore,c=e.nodeAfter;if(l||c){let u=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=l?d.bottom:d.top;l&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let l=this.editorView.coordsAtPos(this.cursorPos);r={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.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",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let s,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")s=-pageXOffset,a=-pageYOffset;else{let l=o.getBoundingClientRect();s=l.left-o.scrollLeft,a=l.top-o.scrollTop}this.element.style.left=r.left-s+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,s=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!s){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=q1(this.editorView.state.doc,a,this.editorView.dragging.slice);l!=null&&(a=l)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const IQ=it.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[BQ(this.options)]}});function PQ(t){var e;const{char:n,allowSpaces:r,allowedPrefixes:o,startOfLine:s,$position:a}=t,l=aE(n),c=new RegExp(`\\s${l}$`),u=s?"^":"",d=r?new RegExp(`${u}${l}.*?(?=\\s${l}|$)`,"gm"):new RegExp(`${u}(?:^)?${l}[^\\s${l}]*`,"gm"),f=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!f)return null;const p=a.pos-f.length,h=Array.from(f.matchAll(d)).pop();if(!h||h.input===void 0||h.index===void 0)return null;const m=h.input.slice(Math.max(0,h.index-1),h.index),g=new RegExp(`^[${o==null?void 0:o.join("")}\0]?$`).test(m);if(o!==null&&!g)return null;const b=p+h.index;let y=b+h[0].length;return r&&c.test(f.slice(y-1,y+1))&&(h[0]+=" ",y+=1),b<a.pos&&y>=a.pos?{range:{from:b,to:y},query:h[0].slice(n.length),text:h[0]}:null}const LQ=new Ot("suggestion");function RQ({pluginKey:t=LQ,editor:e,char:n="@",allowSpaces:r=!1,allowedPrefixes:o=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",command:c=()=>null,items:u=()=>[],render:d=()=>({}),allow:f=()=>!0}){let p;const h=d==null?void 0:d(),m=new wt({key:t,view(){return{update:async(g,b)=>{var y,S,k,C,_,E,T;const M=(y=this.key)===null||y===void 0?void 0:y.getState(b),D=(S=this.key)===null||S===void 0?void 0:S.getState(g.state),L=M.active&&D.active&&M.range.from!==D.range.from,$=!M.active&&D.active,V=M.active&&!D.active,W=!$&&!V&&M.query!==D.query,ee=$||L,J=W&&!L,I=V||L;if(!ee&&!J&&!I)return;const B=I&&!ee?M:D,H=g.dom.querySelector(`[data-decoration-id="${B.decorationId}"]`);p={editor:e,range:B.range,query:B.query,text:B.text,items:[],command:K=>{c({editor:e,range:B.range,props:K})},decorationNode:H,clientRect:H?()=>{var K;const{decorationId:ae}=(K=this.key)===null||K===void 0?void 0:K.getState(e.state),ye=g.dom.querySelector(`[data-decoration-id="${ae}"]`);return(ye==null?void 0:ye.getBoundingClientRect())||null}:null},ee&&((k=h==null?void 0:h.onBeforeStart)===null||k===void 0||k.call(h,p)),J&&((C=h==null?void 0:h.onBeforeUpdate)===null||C===void 0||C.call(h,p)),(J||ee)&&(p.items=await u({editor:e,query:B.query})),I&&((_=h==null?void 0:h.onExit)===null||_===void 0||_.call(h,p)),J&&((E=h==null?void 0:h.onUpdate)===null||E===void 0||E.call(h,p)),ee&&((T=h==null?void 0:h.onStart)===null||T===void 0||T.call(h,p))},destroy:()=>{var g;!p||(g=h==null?void 0:h.onExit)===null||g===void 0||g.call(h,p)}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(g,b,y,S){const{isEditable:k}=e,{composing:C}=e.view,{selection:_}=g,{empty:E,from:T}=_,M={...b};if(M.composing=C,k&&(E||e.view.composing)){(T<b.range.from||T>b.range.to)&&!C&&!b.composing&&(M.active=!1);const D=PQ({char:n,allowSpaces:r,allowedPrefixes:o,startOfLine:s,$position:_.$from}),L=`id_${Math.floor(Math.random()*4294967295)}`;D&&f({editor:e,state:S,range:D.range})?(M.active=!0,M.decorationId=b.decorationId?b.decorationId:L,M.range=D.range,M.query=D.query,M.text=D.text):M.active=!1}else M.active=!1;return M.active||(M.decorationId=null,M.range={from:0,to:0},M.query=null,M.text=null),M}},props:{handleKeyDown(g,b){var y;const{active:S,range:k}=m.getState(g.state);return S&&((y=h==null?void 0:h.onKeyDown)===null||y===void 0?void 0:y.call(h,{view:g,event:b,range:k}))||!1},decorations(g){const{active:b,range:y,decorationId:S}=m.getState(g);return b?mt.create(g.doc,[Yt.inline(y.from,y.to,{nodeName:a,class:l,"data-decoration-id":S})]):null}}});return m}const zQ=it.create({name:"mention",addOptions(){return{suggestion:{char:"/",startOfLine:!1,command:({editor:t,range:e,props:n})=>{n.command({editor:t,range:e,props:n})}}}},addProseMirrorPlugins(){return[RQ({editor:this.editor,...this.options.suggestion})]}});var Rse="";const FQ={class:"el-tiptap-editor__ai-text"},$Q={class:"left-right"},VQ=i.defineComponent({__name:"ElementAiDialog",props:{editor:{type:It,required:!0},text:{type:String,required:!0}},emits:["onClose","onCopy","onAccept"],setup(t,{emit:e}){const n=t;i.inject("t");const r=i.computed(()=>n.text==="");return(o,s)=>{const a=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock("div",FQ,[i.createVNode(i.unref(Kr),{loading:r.value,style:{width:"100%","margin-bottom":"20px"},animated:""},{template:i.withCtx(()=>[i.createVNode(i.unref(Kr),{rows:5,animated:""})]),default:i.withCtx(()=>[i.createVNode(i.unref(bl),{"body-style":{padding:"0px",marginBottom:"5px"}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.text),1)]),_:1})]),_:1},8,["loading"]),i.createElementVNode("div",$Q,[r.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(a,{key:0,round:"",style:{width:"auto"},onClick:s[0]||(s[0]=l=>e("onAccept",t.text))},{default:i.withCtx(()=>[i.createTextVNode("Accept Text")]),_:1})),r.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(a,{key:1,round:"",style:{width:"auto"},onClick:s[1]||(s[1]=l=>e("onCopy",t.text))},{default:i.withCtx(()=>[i.createTextVNode("Copy Text")]),_:1})),i.createVNode(a,{type:"danger",round:"",style:{width:"auto"},onClick:s[2]||(s[2]=l=>e("onClose"))},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])])}}});for(var rn=[],Sm=0;Sm<256;++Sm)rn.push((Sm+256).toString(16).slice(1));function HQ(t,e=0){return(rn[t[e+0]]+rn[t[e+1]]+rn[t[e+2]]+rn[t[e+3]]+"-"+rn[t[e+4]]+rn[t[e+5]]+"-"+rn[t[e+6]]+rn[t[e+7]]+"-"+rn[t[e+8]]+rn[t[e+9]]+"-"+rn[t[e+10]]+rn[t[e+11]]+rn[t[e+12]]+rn[t[e+13]]+rn[t[e+14]]+rn[t[e+15]]).toLowerCase()}var Od,jQ=new Uint8Array(16);function UQ(){if(!Od&&(Od=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Od))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Od(jQ)}var qQ=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),u7={randomUUID:qQ};function WQ(t,e,n){if(u7.randomUUID&&!e&&!t)return u7.randomUUID();t=t||{};var r=t.random||(t.rng||UQ)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return HQ(r)}var zse="";const d7=t=>(i.pushScopeId("data-v-c3780eae"),t=t(),i.popScopeId(),t),KQ={class:"el-tiptap-editor__voice-recognition"},GQ={key:0,class:"voice-recognition"},JQ=d7(()=>i.createElementVNode("div",{title:"click to upload",class:"el-upload__text"},[i.createTextVNode("Drop file here or "),i.createElementVNode("em",null,"click to upload")],-1)),XQ=d7(()=>i.createElementVNode("div",{class:"tip"},"The maximum size per file is 5 MB. Allowed formats: .pcm, .wav, .amr, .m4a",-1)),YQ={key:1},ZQ=i.defineComponent({__name:"VoiceRecognition",props:{onUpdate:{type:Function},editor:{},content:{}},emits:["onClose"],setup(t,{emit:e}){const n=t,r=i.ref(!1),o=i.ref(""),s=async p=>{const h=WQ();localStorage.setItem(h,JSON.stringify(p));try{const m=p.file,b=(await a(m)).split(",")[1],y=await Ar.voiceRecognize({file_format:"pcm",dev_pid:"1537",speech:b,uuid:h});l(y)}catch(m){c(m)}},a=p=>new Promise((h,m)=>{const g=new FileReader;g.readAsDataURL(p),g.onload=()=>h(g.result),g.onerror=b=>m(b)}),l=p=>{Dn.success("File uploaded successfully"),o.value=p.data.result.join(" "),r.value=!0,editor.commands.focus(),d(o.value)},c=p=>{Dn.error(`File upload failed: ${p}`)},u=p=>{const h=p.size/1024/1024<5;return h||Dn.error("File size must be less than 5MB!"),h},d=p=>{const{state:h,view:m}=n.editor,g=h.tr,{from:b,to:y}=h.selection,S=h.schema.text(p);g.replaceWith(b,y,S),m.dispatch(g)},f=()=>{e("onClose")};return(p,h)=>{const m=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock("div",KQ,[r.value?(i.openBlock(),i.createElementBlock("p",YQ,i.toDisplayString(o.value),1)):(i.openBlock(),i.createElementBlock("div",GQ,[i.createVNode(i.unref(L5),{class:"upload-demo",action:"","http-request":s,"on-success":l,"on-error":c,"before-upload":u,drag:"",accept:".pcm,.wav,.amr,.m4a"},{default:i.withCtx(()=>[JQ,XQ]),_:1})])),i.createVNode(m,{class:"close-button",icon:i.unref(qi),onClick:f},null,8,["icon"])])}}});var QQ=tt(ZQ,[["__scopeId","data-v-c3780eae"]]),Fse="",$se="",Vse="",Hse="";const eee={class:"el-tiptap-editor__ai-image"},tee={style:{"margin-bottom":"15px"}},nee={style:{padding:"14px"}},ree={style:{display:"flex","align-items":"center","margin-top":"16px",height:"16px"}},oee=["src"],iee={class:"left-right"},see=i.defineComponent({__name:"AiImage",props:{editor:{type:It,required:!0}},emits:["onClose"],setup(t,{emit:e}){const n=t,r=()=>{e("onClose")},o=i.ref(!1),s=i.inject("t"),a=i.ref(""),l=i.ref(["\u4E8C\u6B21\u5143","\u5199\u5B9E\u98CE\u683C","\u53E4\u98CE","\u8D5B\u535A\u670B\u514B","\u6C34\u5F69\u753B","\u6CB9\u753B","\u5361\u901A\u753B"]),c=i.ref(""),u=i.ref(!0),d=i.ref(""),f=()=>{n.editor.commands.insertContent(`<img src="${d.value}" alt="" />`)},p=()=>{o.value=!0,Ar.generateImage({text:a.value,style:c.value,resolution:"512*512"}).then(h=>{u.value=!1,d.value=h})};return(h,m)=>(i.openBlock(),i.createElementBlock("div",eee,[i.createElementVNode("div",tee,i.toDisplayString(i.unref(s)("editor.extensions.Ai.chat.prompt")),1),o.value?(i.openBlock(),i.createBlock(i.unref(Kr),{key:0,loading:u.value,style:{width:"240px","margin-bottom":"20px"},animated:""},{template:i.withCtx(()=>[i.createVNode(i.unref(ii),{variant:"image",style:{width:"240px",height:"240px"}}),i.createElementVNode("div",nee,[i.createVNode(i.unref(ii),{variant:"h3",style:{width:"50%"}}),i.createElementVNode("div",ree,[i.createVNode(i.unref(ii),{variant:"text",style:{"margin-right":"16px"}}),i.createVNode(i.unref(ii),{variant:"text",style:{width:"30%"}})])])]),default:i.withCtx(()=>[i.createVNode(i.unref(bl),{"body-style":{padding:"0px",marginBottom:"1px"}},{default:i.withCtx(()=>[i.createElementVNode("img",{src:d.value,class:"image"},null,8,oee)]),_:1})]),_:1},8,["loading"])):i.createCommentVNode("",!0),i.createVNode(i.unref(Qo),{type:"textarea",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=g=>a.value=g),class:"el-tiptap-editor__ai-image__input",placeholder:i.unref(s)("editor.extensions.Ai.chat.imageGen_prompt")},null,8,["modelValue","placeholder"]),i.createElementVNode("div",iee,[i.createVNode(i.unref(Gp),{modelValue:c.value,"onUpdate:modelValue":m[1]||(m[1]=g=>c.value=g),placeholder:"Style",style:{"margin-right":"20px"},onClick:m[2]||(m[2]=g=>t.editor.commands.blur())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,g=>(i.openBlock(),i.createBlock(i.unref(Jp),{key:g,label:g,value:g},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.value?(i.openBlock(),i.createBlock(i.unref(nn),{key:1,round:"",onClick:f},{default:i.withCtx(()=>[i.createTextVNode("Accept image ")]),_:1})):(i.openBlock(),i.createBlock(i.unref(nn),{key:0,round:"",onClick:p},{default:i.withCtx(()=>[i.createTextVNode("Generate image ")]),_:1})),i.createVNode(i.unref(nn),{type:"danger",round:"",onClick:r},{default:i.withCtx(()=>[i.createTextVNode("Close ")]),_:1})])]))}}),aee={class:"el-tiptap-editor__ai-text",style:{width:"650px"}},lee={style:{"margin-bottom":"15px"}},cee={class:"left-right"},uee=i.defineComponent({__name:"AiPromptWriter",props:{editor:{type:It,required:!0}},emits:["onClose"],setup(t,{emit:e}){const n=t,r=i.ref(!1),o=i.inject("t"),s=i.ref(""),a=i.ref(["\u5B66\u672F","\u5546\u4E1A","\u5E7D\u9ED8","\u4E13\u4E1A","\u7CBE\u7B80","\u8BE6\u5C3D","\u6B63\u5F0F"]),l=i.ref(""),c=i.ref(!0),u=i.ref(""),d=()=>{n.editor.commands.insertContent(u.value)},f=()=>{r.value=!0,c.value=!0,Ar.generateText({content:s.value,style:l.value}).then(p=>{u.value=p}).catch(p=>{Dn.error("Failed to generate text",p)}).finally(()=>{c.value=!1})};return(p,h)=>(i.openBlock(),i.createElementBlock("div",aee,[i.createElementVNode("div",lee,i.toDisplayString(i.unref(o)("editor.extensions.Ai.chat.prompt")),1),r.value?(i.openBlock(),i.createBlock(i.unref(Kr),{key:0,loading:c.value,style:{width:"100%","margin-bottom":"20px"},animated:""},{template:i.withCtx(()=>[i.createVNode(i.unref(Kr),{rows:5,animated:""})]),default:i.withCtx(()=>[i.createVNode(i.unref(bl),{"body-style":{padding:"0px",marginBottom:"5px"}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(u.value),1)]),_:1})]),_:1},8,["loading"])):i.createCommentVNode("",!0),i.createVNode(i.unref(Qo),{type:"textarea",modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m),class:"el-tiptap-editor__ai-text__input",maxlength:"50",placeholder:i.unref(o)("editor.extensions.Ai.chat.promptWriting_prompt")},null,8,["modelValue","placeholder"]),i.createElementVNode("div",cee,[i.createVNode(i.unref(Gp),{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=m=>l.value=m),placeholder:"Tone style",onClick:h[2]||(h[2]=m=>t.editor.commands.blur())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,m=>(i.openBlock(),i.createBlock(i.unref(Jp),{key:m,label:m,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),r.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(nn),{key:0,round:"",style:{width:"auto","margin-left":"100px"},onClick:f},{default:i.withCtx(()=>[i.createTextVNode("Generate Text")]),_:1})),r.value&&!c.value?(i.openBlock(),i.createBlock(i.unref(nn),{key:1,round:"",style:{width:"auto","margin-left":"100px"},onClick:d},{default:i.withCtx(()=>[i.createTextVNode("Accept Text")]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(nn),{type:"danger",round:"",style:{width:"auto","margin-left":"10px"},onClick:h[3]||(h[3]=m=>e("onClose"))},{default:i.withCtx(()=>[i.createTextVNode("Close ")]),_:1})])]))}}),dee={class:"el-tiptap-editor__ai-image"},fee=i.createElementVNode("div",{style:{"margin-bottom":"15px"}},"\u9009\u62E9\u7FFB\u8BD1\u8BED\u8A00",-1),pee={style:{padding:"14px"}},hee={style:{display:"flex","align-items":"center","margin-top":"16px",height:"16px"}},mee={class:"left-right"},gee=i.defineComponent({__name:"AiTranslate",props:{editor:{type:It,required:!0}},emits:["onClose","onAccept","onCopy"],setup(t,{emit:e}){const n=t,r=()=>{e("onClose")},o=i.ref(!1);i.inject("t");const s=i.ref(["\u82F1\u8BED","\u6C49\u8BED","\u5FB7\u8BED","\u6CD5\u8BED","\u65E5\u8BED","\u4FC4\u8BED","\u610F\u5927\u5229\u8BED"]),a=i.ref(""),l=i.ref(!0),c=i.ref(""),u=i.computed(()=>{const h=n.editor.state;let m="";if(h){const{selection:g}=h;m=h.doc.textBetween(g.from,g.to)}return m}),d=()=>{o.value=!0,l.value=!0,Ar.translate({content:u.value,language:a.value}).then(h=>{c.value=h}).finally(()=>{l.value=!1})},f=h=>{e("onCopy",h)},p=h=>{e("onAccept",h)};return(h,m)=>(i.openBlock(),i.createElementBlock("div",dee,[fee,o.value?(i.openBlock(),i.createBlock(i.unref(Kr),{key:0,loading:l.value,style:{width:"240px","margin-bottom":"20px"},animated:""},{template:i.withCtx(()=>[i.createElementVNode("div",pee,[i.createVNode(i.unref(ii),{variant:"h3",style:{width:"50%"}}),i.createElementVNode("div",hee,[i.createVNode(i.unref(ii),{variant:"text",style:{"margin-right":"16px"}}),i.createVNode(i.unref(ii),{variant:"text",style:{width:"30%"}})])])]),default:i.withCtx(()=>[i.createVNode(i.unref(bl),{"body-style":{padding:"0px",marginBottom:"1px"}},{default:i.withCtx(()=>[i.createVNode(i.unref(bl),{"body-style":{padding:"0px",marginBottom:"5px"}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.value),1)]),_:1})]),_:1})]),_:1},8,["loading"])):i.createCommentVNode("",!0),i.createElementVNode("div",mee,[i.createVNode(i.unref(Gp),{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=g=>a.value=g),placeholder:"\u76EE\u6807\u8BED\u8A00",style:{"margin-right":"20px"},onClick:m[1]||(m[1]=g=>t.editor.commands.blur())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,g=>(i.openBlock(),i.createBlock(i.unref(Jp),{key:g,label:g,value:g},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(nn),{key:0,round:"",onClick:d},{default:i.withCtx(()=>[i.createTextVNode("\u7FFB\u8BD1")]),_:1})),o.value?(i.openBlock(),i.createBlock(i.unref(nn),{key:1,round:"",onClick:m[2]||(m[2]=g=>p(c.value))},{default:i.withCtx(()=>[i.createTextVNode("\u63A5\u53D7")]),_:1})):i.createCommentVNode("",!0),o.value?(i.openBlock(),i.createBlock(i.unref(nn),{key:2,round:"",onClick:m[3]||(m[3]=g=>f(c.value))},{default:i.withCtx(()=>[i.createTextVNode("\u590D\u5236")]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(nn),{type:"danger",round:"",onClick:r},{default:i.withCtx(()=>[i.createTextVNode("\u5173\u95ED")]),_:1})])]))}}),bee=i.defineComponent({__name:"AiDropDown",props:{enableTooltip:{type:Boolean,required:!1,default:!0},readonly:{type:Boolean,required:!1,default:!1},editor:{type:It,required:!0},buttonIcon:{default:"ai",type:String}},setup(t){const e=t,n=()=>{l.value="",u.value=""},r=i.ref(!1),o=i.ref(!1),s=i.ref(!1),a=i.ref(!1),l=i.ref(""),c=i.ref(!1),u=i.ref(""),d=i.inject("t"),f=i.inject("enableTooltip",!0),p=i.inject("isCodeViewMode",!1),h=i.computed(()=>{const E=e.editor.state;let T="";if(E){const{selection:M}=E;T=E.doc.textBetween(M.from,M.to)}return T}),m=()=>{c.value=!1,n()},g=()=>{a.value=!1,n()},b=()=>{s.value=!1,n()},y=()=>{r.value=!1,n()},S=()=>{o.value=!1,n()},k=E=>{navigator.clipboard.writeText(E).then(()=>{Dn.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}).catch(T=>{console.error("\u590D\u5236\u5931\u8D25",T),Dn.error("\u{1F62D}\u590D\u5236\u5931\u8D25\u4E86\uFF0C\u7A0D\u540E\u91CD\u8BD5\u4E00\u4E0B\u5427\uFF01")}).finally(()=>{c.value=!1,n()})},C=E=>{e.editor.commands.insertContent(E),u.value="",c.value=!1},_=E=>{switch(e.editor.commands.blur(),E){case"summarize":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}c.value=!0,Ar.abstract({content:h.value}).then(T=>{u.value=T});break;case"polish":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}c.value=!0,Ar.polish({content:h.value}).then(T=>{u.value=T});break;case"translate":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}r.value=!0;break;case"correct":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}c.value=!0,Ar.correct({content:h.value}).then(T=>{u.value=T});break;case"continuation":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}c.value=!0,Ar.continueWrite({content:h.value}).then(T=>{u.value=T});break;case"voiceRecognition":a.value=!0;break;case"imageGen":s.value=!0;break;case"promptWriting":o.value=!0;break;case"generateTable":if(h.value===""){Dn.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5904\u7406\u7684\u5185\u5BB9\uFF01");return}c.value=!0,Ar.generateTable({content:h.value}).then(T=>{u.value=T});break;default:console.error("Unknown command:",E)}};return(E,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(wl),{placement:"bottom",onCommand:_,trigger:"click"},{dropdown:i.withCtx(()=>[i.createVNode(i.unref(vl),null,{default:i.withCtx(()=>[i.createVNode(i.unref(An),{icon:i.unref(DB),command:"summarize"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.summarize")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(VI),command:"polish"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.polish")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(KI),command:"translate"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.translate")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(LO),command:"correct"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.correct")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(MO),command:"continuation"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.continuation")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{divided:""}),i.createVNode(i.unref(An),{icon:i.unref(dI),command:"voiceRecognition"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.asr")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(EI),command:"imageGen"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.imageGen")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(MI),command:"promptWriting"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.promptWriting")),1)]),_:1},8,["icon"]),i.createVNode(i.unref(An),{icon:i.unref(iI),command:"generateTable"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(d)("editor.extensions.Ai.chat.generateTable")),1)]),_:1},8,["icon"])]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(Ue,{"enable-tooltip":i.unref(f),tooltip:i.unref(d)("editor.extensions.Ai.tooltip"),readonly:i.unref(p),icon:"ai","button-icon":t.buttonIcon},null,8,["enable-tooltip","tooltip","readonly","button-icon"])])]),_:1}),c.value?(i.openBlock(),i.createBlock(VQ,{key:0,ref:"aiDialog",text:u.value,editor:t.editor,onOnClose:m,onOnCopy:k,onOnAccept:C},null,8,["text","editor"])):i.createCommentVNode("",!0),a.value?(i.openBlock(),i.createBlock(QQ,{key:1,ref:"voiceRecognition",onOnClose:g,editor:t.editor,content:l.value},null,8,["editor","content"])):i.createCommentVNode("",!0),s.value?(i.openBlock(),i.createBlock(see,{key:2,ref:"aiImage",onOnClose:b,editor:t.editor},null,8,["editor"])):i.createCommentVNode("",!0),o.value?(i.openBlock(),i.createBlock(uee,{key:3,ref:"aiPromptWriter",onOnClose:S,editor:t.editor},null,8,["editor"])):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createBlock(gee,{key:4,onOnClose:y,onOnCopy:k,onOnAccept:C,editor:t.editor},null,8,["editor"])):i.createCommentVNode("",!0)],64))}}),yee=it.create({name:"ai",onTransaction({transaction:t}){},onFocus({event:t}){},onBlur({event:t}){document.querySelector(".el-select")||this.editor.commands.focus()},addOptions(){return{types:["textStyle"],buttonIcon:"",commandList:[{title:"Summarize",command:({editor:t,range:e})=>{t.chain().focus().deleteRange(e).summarize().run()},disabled:!1,isActive:()=>!1},{title:"Polish",command:({editor:t,range:e})=>{t.chain().focus().deleteRange(e).polish().run()},disabled:!1,isActive:()=>!1},{title:"Translate",command:({editor:t,range:e})=>{t.chain().focus().deleteRange(e).translate().run()},disabled:!1,isActive:()=>!1},{title:"Correct",command:({editor:t,range:e})=>{t.chain().focus().deleteRange(e).correct().run()},disabled:!1,isActive:()=>!1},{title:"Continuation",command:({editor:t,range:e})=>{t.chain().focus().deleteRange(e).continuation().run()},disabled:!1,isActive:()=>!1}],button({editor:t,extension:e}){return{component:bee,componentProps:{editor:t,buttonIcon:e.options.buttonIcon}}}}},addCommands(){return{summarize:()=>({chain:t})=>t().run(),polish:()=>({chain:t})=>t().run(),translate:()=>({chain:t})=>t().run(),correct:()=>({chain:t})=>t().run(),continuation:()=>({chain:t})=>t().run()}},addGlobalAttributes(){return[{types:this.options.types,attributes:{aiCommand:{default:null,parseHTML:t=>t.getAttribute("data-ai-command")||"",renderHTML:t=>t.aiCommand?{"data-ai-command":t.aiCommand}:{}}}}]},addExtensions(){return[Dd]}});class Vn{constructor(e,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=n,this.end=r}static range(e,n){return n?!e||!e.loc||!n.loc||e.loc.lexer!==n.loc.lexer?null:new Vn(e.loc.lexer,e.loc.start,n.loc.end):e&&e.loc}}class sr{constructor(e,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=n}range(e,n){return new sr(n,Vn.range(this,e))}}class oe{constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,o,s,a=n&&n.loc;if(a&&a.start<=a.end){var l=a.lexer.input;o=a.start,s=a.end,o===l.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var c=l.slice(o,s).replace(/[^]/g,"$&\u0332"),u;o>15?u="\u2026"+l.slice(o-15,o):u=l.slice(0,o);var d;s+15<l.length?d=l.slice(s,s+15)+"\u2026":d=l.slice(s),r+=u+c+d}var f=new Error(r);return f.name="ParseError",f.__proto__=oe.prototype,f.position=o,o!=null&&s!=null&&(f.length=s-o),f.rawMessage=e,f}}oe.prototype.__proto__=Error.prototype;var wee=function(e,n){return e.indexOf(n)!==-1},vee=function(e,n){return e===void 0?n:e},Cee=/([A-Z])/g,kee=function(e){return e.replace(Cee,"-$1").toLowerCase()},See={"&":"&",">":">","<":"<",'"':""","'":"'"},Eee=/[&><"']/g;function xee(t){return String(t).replace(Eee,e=>See[e])}var f7=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},Tee=function(e){var n=f7(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Aee=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},_ee=function(e){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Te={contains:wee,deflt:vee,escape:xee,hyphenate:kee,getBaseElem:f7,isCharacterBox:Tee,protocolFromUrl:_ee},Id={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Dee(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Em{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var n in Id)if(Id.hasOwnProperty(n)){var r=Id[n];this[n]=e[n]!==void 0?r.processor?r.processor(e[n]):e[n]:Dee(r)}}reportNonstrict(e,n,r){var o=this.strict;if(typeof o=="function"&&(o=o(e,n,r)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new oe("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),r);o==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,r){var o=this.strict;if(typeof o=="function")try{o=o(e,n,r)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var n=Te.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}var r=typeof this.trust=="function"?this.trust(e):this.trust;return Boolean(r)}}class mi{constructor(e,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=r}sup(){return eo[Mee[this.id]]}sub(){return eo[Nee[this.id]]}fracNum(){return eo[Bee[this.id]]}fracDen(){return eo[Oee[this.id]]}cramp(){return eo[Iee[this.id]]}text(){return eo[Pee[this.id]]}isTight(){return this.size>=2}}var xm=0,Pd=1,ga=2,So=3,Fl=4,ar=5,ba=6,mn=7,eo=[new mi(xm,0,!1),new mi(Pd,0,!0),new mi(ga,1,!1),new mi(So,1,!0),new mi(Fl,2,!1),new mi(ar,2,!0),new mi(ba,3,!1),new mi(mn,3,!0)],Mee=[Fl,ar,Fl,ar,ba,mn,ba,mn],Nee=[ar,ar,ar,ar,mn,mn,mn,mn],Bee=[ga,So,Fl,ar,ba,mn,ba,mn],Oee=[So,So,ar,ar,mn,mn,mn,mn],Iee=[Pd,Pd,So,So,ar,ar,mn,mn],Pee=[xm,Pd,ga,So,ga,So,ga,So],De={DISPLAY:eo[xm],TEXT:eo[ga],SCRIPT:eo[Fl],SCRIPTSCRIPT:eo[ba]},Tm=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Lee(t){for(var e=0;e<Tm.length;e++)for(var n=Tm[e],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(t>=o[0]&&t<=o[1])return n.name}return null}var Ld=[];Tm.forEach(t=>t.blocks.forEach(e=>Ld.push(...e)));function p7(t){for(var e=0;e<Ld.length;e+=2)if(t>=Ld[e]&&t<=Ld[e+1])return!0;return!1}var ya=80,Ree=function(e,n){return"M95,"+(622+e+n)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},zee=function(e,n){return"M263,"+(601+e+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},Fee=function(e,n){return"M983 "+(10+e+n)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},$ee=function(e,n){return"M424,"+(2398+e+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+n+`
h400000v`+(40+e)+"h-400000z"},Vee=function(e,n){return"M473,"+(2713+e+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+n+"h400000v"+(40+e)+"H1017.7z"},Hee=function(e){var n=e/2;return"M400000 "+e+" H0 L"+n+" 0 l65 45 L145 "+(e-80)+" H400000z"},jee=function(e,n,r){var o=r-54-n-e;return"M702 "+(e+n)+"H400000"+(40+e)+`
H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+e)+"H742z"},Uee=function(e,n,r){n=1e3*n;var o="";switch(e){case"sqrtMain":o=Ree(n,ya);break;case"sqrtSize1":o=zee(n,ya);break;case"sqrtSize2":o=Fee(n,ya);break;case"sqrtSize3":o=$ee(n,ya);break;case"sqrtSize4":o=Vee(n,ya);break;case"sqrtTall":o=jee(n,ya,r)}return o},qee=function(e,n){switch(e){case"\u239C":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"\u2223":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"\u2225":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"\u239F":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"\u23A2":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"\u23A5":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"\u23AA":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"\u23D0":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"\u2016":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},h7={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Wee=function(e,n){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class $l{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Te.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){for(var e="",n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e}toText(){var e=n=>n.toText();return this.children.map(e).join("")}}var to={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Rd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},m7={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Kee(t,e){to[t]=e}function Am(t,e,n){if(!to[e])throw new Error("Font metrics not found for font: "+e+".");var r=t.charCodeAt(0),o=to[e][r];if(!o&&t[0]in m7&&(r=m7[t[0]].charCodeAt(0),o=to[e][r]),!o&&n==="text"&&p7(r)&&(o=to[e][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var _m={};function Gee(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!_m[e]){var n=_m[e]={cssEmPerMu:Rd.quad[e]/18};for(var r in Rd)Rd.hasOwnProperty(r)&&(n[r]=Rd[r][e])}return _m[e]}var Jee=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],g7=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],b7=function(e,n){return n.size<2?e:Jee[e-1][n.size-1]};class Eo{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Eo.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=g7[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new Eo(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:b7(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:g7[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=b7(Eo.BASESIZE,e);return this.size===n&&this.textSize===Eo.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Eo.BASESIZE?["sizing","reset-size"+this.size,"size"+Eo.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Gee(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Eo.BASESIZE=6;var Dm={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Xee={ex:!0,em:!0,mu:!0},y7=function(e){return typeof e!="string"&&(e=e.unit),e in Dm||e in Xee||e==="ex"},xt=function(e,n){var r;if(e.unit in Dm)r=Dm[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,e.unit==="ex")r=o.fontMetrics().xHeight;else if(e.unit==="em")r=o.fontMetrics().quad;else throw new oe("Invalid unit: '"+e.unit+"'");o!==n&&(r*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*r,n.maxSize)},se=function(e){return+e.toFixed(4)+"em"},gi=function(e){return e.filter(n=>n).join(" ")},w7=function(e,n,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},v7=function(e){var n=document.createElement(e);n.className=gi(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&n.setAttribute(o,this.attributes[o]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},C7=function(e){var n="<"+e;this.classes.length&&(n+=' class="'+Te.escape(gi(this.classes))+'"');var r="";for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=Te.hyphenate(o)+":"+this.style[o]+";");r&&(n+=' style="'+Te.escape(r)+'"');for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&(n+=" "+s+'="'+Te.escape(this.attributes[s])+'"');n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+="</"+e+">",n};class Vl{constructor(e,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,w7.call(this,e,r,o),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return Te.contains(this.classes,e)}toNode(){return v7.call(this,"span")}toMarkup(){return C7.call(this,"span")}}class Mm{constructor(e,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,w7.call(this,n,o),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return Te.contains(this.classes,e)}toNode(){return v7.call(this,"a")}toMarkup(){return C7.call(this,"a")}}class Yee{constructor(e,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Te.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e='<img src="'+Te.escape(this.src)+'"'+(' alt="'+Te.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Te.hyphenate(r)+":"+this.style[r]+";");return n&&(e+=' style="'+Te.escape(n)+'"'),e+="'/>",e}}var Zee={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class lr{constructor(e,n,r,o,s,a,l,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=n||0,this.depth=r||0,this.italic=o||0,this.skew=s||0,this.width=a||0,this.classes=l||[],this.style=c||{},this.maxFontSize=0;var u=Lee(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Zee[this.text])}hasClass(e){return Te.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=gi(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="<span";this.classes.length&&(e=!0,n+=' class="',n+=Te.escape(gi(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=Te.hyphenate(o)+":"+this.style[o]+";");r&&(e=!0,n+=' style="'+Te.escape(r)+'"');var s=Te.escape(this.text);return e?(n+=">",n+=s,n+="</span>",n):s}}class xo{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+Te.escape(this.attributes[n])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>",e}}class bi{constructor(e,n){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=n}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",h7[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Te.escape(this.alternate)+'"/>':'<path d="'+Te.escape(h7[this.pathName])+'"/>'}}class Nm{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var e="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+Te.escape(this.attributes[n])+'"');return e+="/>",e}}function k7(t){if(t instanceof lr)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Qee(t){if(t instanceof Vl)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var ete={bin:1,close:1,inner:1,open:1,punct:1,rel:1},tte={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},pt={math:{},text:{}};function w(t,e,n,r,o,s){pt[t][o]={font:e,group:n,replace:r},s&&r&&(pt[t][r]=pt[t][o])}var v="math",Q="text",x="main",N="ams",Ct="accent-token",ge="bin",gn="close",wa="inner",Me="mathord",zt="op-token",Hn="open",zd="punct",O="rel",To="spacing",P="textord";w(v,x,O,"\u2261","\\equiv",!0),w(v,x,O,"\u227A","\\prec",!0),w(v,x,O,"\u227B","\\succ",!0),w(v,x,O,"\u223C","\\sim",!0),w(v,x,O,"\u22A5","\\perp"),w(v,x,O,"\u2AAF","\\preceq",!0),w(v,x,O,"\u2AB0","\\succeq",!0),w(v,x,O,"\u2243","\\simeq",!0),w(v,x,O,"\u2223","\\mid",!0),w(v,x,O,"\u226A","\\ll",!0),w(v,x,O,"\u226B","\\gg",!0),w(v,x,O,"\u224D","\\asymp",!0),w(v,x,O,"\u2225","\\parallel"),w(v,x,O,"\u22C8","\\bowtie",!0),w(v,x,O,"\u2323","\\smile",!0),w(v,x,O,"\u2291","\\sqsubseteq",!0),w(v,x,O,"\u2292","\\sqsupseteq",!0),w(v,x,O,"\u2250","\\doteq",!0),w(v,x,O,"\u2322","\\frown",!0),w(v,x,O,"\u220B","\\ni",!0),w(v,x,O,"\u221D","\\propto",!0),w(v,x,O,"\u22A2","\\vdash",!0),w(v,x,O,"\u22A3","\\dashv",!0),w(v,x,O,"\u220B","\\owns"),w(v,x,zd,".","\\ldotp"),w(v,x,zd,"\u22C5","\\cdotp"),w(v,x,P,"#","\\#"),w(Q,x,P,"#","\\#"),w(v,x,P,"&","\\&"),w(Q,x,P,"&","\\&"),w(v,x,P,"\u2135","\\aleph",!0),w(v,x,P,"\u2200","\\forall",!0),w(v,x,P,"\u210F","\\hbar",!0),w(v,x,P,"\u2203","\\exists",!0),w(v,x,P,"\u2207","\\nabla",!0),w(v,x,P,"\u266D","\\flat",!0),w(v,x,P,"\u2113","\\ell",!0),w(v,x,P,"\u266E","\\natural",!0),w(v,x,P,"\u2663","\\clubsuit",!0),w(v,x,P,"\u2118","\\wp",!0),w(v,x,P,"\u266F","\\sharp",!0),w(v,x,P,"\u2662","\\diamondsuit",!0),w(v,x,P,"\u211C","\\Re",!0),w(v,x,P,"\u2661","\\heartsuit",!0),w(v,x,P,"\u2111","\\Im",!0),w(v,x,P,"\u2660","\\spadesuit",!0),w(v,x,P,"\xA7","\\S",!0),w(Q,x,P,"\xA7","\\S"),w(v,x,P,"\xB6","\\P",!0),w(Q,x,P,"\xB6","\\P"),w(v,x,P,"\u2020","\\dag"),w(Q,x,P,"\u2020","\\dag"),w(Q,x,P,"\u2020","\\textdagger"),w(v,x,P,"\u2021","\\ddag"),w(Q,x,P,"\u2021","\\ddag"),w(Q,x,P,"\u2021","\\textdaggerdbl"),w(v,x,gn,"\u23B1","\\rmoustache",!0),w(v,x,Hn,"\u23B0","\\lmoustache",!0),w(v,x,gn,"\u27EF","\\rgroup",!0),w(v,x,Hn,"\u27EE","\\lgroup",!0),w(v,x,ge,"\u2213","\\mp",!0),w(v,x,ge,"\u2296","\\ominus",!0),w(v,x,ge,"\u228E","\\uplus",!0),w(v,x,ge,"\u2293","\\sqcap",!0),w(v,x,ge,"\u2217","\\ast"),w(v,x,ge,"\u2294","\\sqcup",!0),w(v,x,ge,"\u25EF","\\bigcirc",!0),w(v,x,ge,"\u2219","\\bullet",!0),w(v,x,ge,"\u2021","\\ddagger"),w(v,x,ge,"\u2240","\\wr",!0),w(v,x,ge,"\u2A3F","\\amalg"),w(v,x,ge,"&","\\And"),w(v,x,O,"\u27F5","\\longleftarrow",!0),w(v,x,O,"\u21D0","\\Leftarrow",!0),w(v,x,O,"\u27F8","\\Longleftarrow",!0),w(v,x,O,"\u27F6","\\longrightarrow",!0),w(v,x,O,"\u21D2","\\Rightarrow",!0),w(v,x,O,"\u27F9","\\Longrightarrow",!0),w(v,x,O,"\u2194","\\leftrightarrow",!0),w(v,x,O,"\u27F7","\\longleftrightarrow",!0),w(v,x,O,"\u21D4","\\Leftrightarrow",!0),w(v,x,O,"\u27FA","\\Longleftrightarrow",!0),w(v,x,O,"\u21A6","\\mapsto",!0),w(v,x,O,"\u27FC","\\longmapsto",!0),w(v,x,O,"\u2197","\\nearrow",!0),w(v,x,O,"\u21A9","\\hookleftarrow",!0),w(v,x,O,"\u21AA","\\hookrightarrow",!0),w(v,x,O,"\u2198","\\searrow",!0),w(v,x,O,"\u21BC","\\leftharpoonup",!0),w(v,x,O,"\u21C0","\\rightharpoonup",!0),w(v,x,O,"\u2199","\\swarrow",!0),w(v,x,O,"\u21BD","\\leftharpoondown",!0),w(v,x,O,"\u21C1","\\rightharpoondown",!0),w(v,x,O,"\u2196","\\nwarrow",!0),w(v,x,O,"\u21CC","\\rightleftharpoons",!0),w(v,N,O,"\u226E","\\nless",!0),w(v,N,O,"\uE010","\\@nleqslant"),w(v,N,O,"\uE011","\\@nleqq"),w(v,N,O,"\u2A87","\\lneq",!0),w(v,N,O,"\u2268","\\lneqq",!0),w(v,N,O,"\uE00C","\\@lvertneqq"),w(v,N,O,"\u22E6","\\lnsim",!0),w(v,N,O,"\u2A89","\\lnapprox",!0),w(v,N,O,"\u2280","\\nprec",!0),w(v,N,O,"\u22E0","\\npreceq",!0),w(v,N,O,"\u22E8","\\precnsim",!0),w(v,N,O,"\u2AB9","\\precnapprox",!0),w(v,N,O,"\u2241","\\nsim",!0),w(v,N,O,"\uE006","\\@nshortmid"),w(v,N,O,"\u2224","\\nmid",!0),w(v,N,O,"\u22AC","\\nvdash",!0),w(v,N,O,"\u22AD","\\nvDash",!0),w(v,N,O,"\u22EA","\\ntriangleleft"),w(v,N,O,"\u22EC","\\ntrianglelefteq",!0),w(v,N,O,"\u228A","\\subsetneq",!0),w(v,N,O,"\uE01A","\\@varsubsetneq"),w(v,N,O,"\u2ACB","\\subsetneqq",!0),w(v,N,O,"\uE017","\\@varsubsetneqq"),w(v,N,O,"\u226F","\\ngtr",!0),w(v,N,O,"\uE00F","\\@ngeqslant"),w(v,N,O,"\uE00E","\\@ngeqq"),w(v,N,O,"\u2A88","\\gneq",!0),w(v,N,O,"\u2269","\\gneqq",!0),w(v,N,O,"\uE00D","\\@gvertneqq"),w(v,N,O,"\u22E7","\\gnsim",!0),w(v,N,O,"\u2A8A","\\gnapprox",!0),w(v,N,O,"\u2281","\\nsucc",!0),w(v,N,O,"\u22E1","\\nsucceq",!0),w(v,N,O,"\u22E9","\\succnsim",!0),w(v,N,O,"\u2ABA","\\succnapprox",!0),w(v,N,O,"\u2246","\\ncong",!0),w(v,N,O,"\uE007","\\@nshortparallel"),w(v,N,O,"\u2226","\\nparallel",!0),w(v,N,O,"\u22AF","\\nVDash",!0),w(v,N,O,"\u22EB","\\ntriangleright"),w(v,N,O,"\u22ED","\\ntrianglerighteq",!0),w(v,N,O,"\uE018","\\@nsupseteqq"),w(v,N,O,"\u228B","\\supsetneq",!0),w(v,N,O,"\uE01B","\\@varsupsetneq"),w(v,N,O,"\u2ACC","\\supsetneqq",!0),w(v,N,O,"\uE019","\\@varsupsetneqq"),w(v,N,O,"\u22AE","\\nVdash",!0),w(v,N,O,"\u2AB5","\\precneqq",!0),w(v,N,O,"\u2AB6","\\succneqq",!0),w(v,N,O,"\uE016","\\@nsubseteqq"),w(v,N,ge,"\u22B4","\\unlhd"),w(v,N,ge,"\u22B5","\\unrhd"),w(v,N,O,"\u219A","\\nleftarrow",!0),w(v,N,O,"\u219B","\\nrightarrow",!0),w(v,N,O,"\u21CD","\\nLeftarrow",!0),w(v,N,O,"\u21CF","\\nRightarrow",!0),w(v,N,O,"\u21AE","\\nleftrightarrow",!0),w(v,N,O,"\u21CE","\\nLeftrightarrow",!0),w(v,N,O,"\u25B3","\\vartriangle"),w(v,N,P,"\u210F","\\hslash"),w(v,N,P,"\u25BD","\\triangledown"),w(v,N,P,"\u25CA","\\lozenge"),w(v,N,P,"\u24C8","\\circledS"),w(v,N,P,"\xAE","\\circledR"),w(Q,N,P,"\xAE","\\circledR"),w(v,N,P,"\u2221","\\measuredangle",!0),w(v,N,P,"\u2204","\\nexists"),w(v,N,P,"\u2127","\\mho"),w(v,N,P,"\u2132","\\Finv",!0),w(v,N,P,"\u2141","\\Game",!0),w(v,N,P,"\u2035","\\backprime"),w(v,N,P,"\u25B2","\\blacktriangle"),w(v,N,P,"\u25BC","\\blacktriangledown"),w(v,N,P,"\u25A0","\\blacksquare"),w(v,N,P,"\u29EB","\\blacklozenge"),w(v,N,P,"\u2605","\\bigstar"),w(v,N,P,"\u2222","\\sphericalangle",!0),w(v,N,P,"\u2201","\\complement",!0),w(v,N,P,"\xF0","\\eth",!0),w(Q,x,P,"\xF0","\xF0"),w(v,N,P,"\u2571","\\diagup"),w(v,N,P,"\u2572","\\diagdown"),w(v,N,P,"\u25A1","\\square"),w(v,N,P,"\u25A1","\\Box"),w(v,N,P,"\u25CA","\\Diamond"),w(v,N,P,"\xA5","\\yen",!0),w(Q,N,P,"\xA5","\\yen",!0),w(v,N,P,"\u2713","\\checkmark",!0),w(Q,N,P,"\u2713","\\checkmark"),w(v,N,P,"\u2136","\\beth",!0),w(v,N,P,"\u2138","\\daleth",!0),w(v,N,P,"\u2137","\\gimel",!0),w(v,N,P,"\u03DD","\\digamma",!0),w(v,N,P,"\u03F0","\\varkappa"),w(v,N,Hn,"\u250C","\\@ulcorner",!0),w(v,N,gn,"\u2510","\\@urcorner",!0),w(v,N,Hn,"\u2514","\\@llcorner",!0),w(v,N,gn,"\u2518","\\@lrcorner",!0),w(v,N,O,"\u2266","\\leqq",!0),w(v,N,O,"\u2A7D","\\leqslant",!0),w(v,N,O,"\u2A95","\\eqslantless",!0),w(v,N,O,"\u2272","\\lesssim",!0),w(v,N,O,"\u2A85","\\lessapprox",!0),w(v,N,O,"\u224A","\\approxeq",!0),w(v,N,ge,"\u22D6","\\lessdot"),w(v,N,O,"\u22D8","\\lll",!0),w(v,N,O,"\u2276","\\lessgtr",!0),w(v,N,O,"\u22DA","\\lesseqgtr",!0),w(v,N,O,"\u2A8B","\\lesseqqgtr",!0),w(v,N,O,"\u2251","\\doteqdot"),w(v,N,O,"\u2253","\\risingdotseq",!0),w(v,N,O,"\u2252","\\fallingdotseq",!0),w(v,N,O,"\u223D","\\backsim",!0),w(v,N,O,"\u22CD","\\backsimeq",!0),w(v,N,O,"\u2AC5","\\subseteqq",!0),w(v,N,O,"\u22D0","\\Subset",!0),w(v,N,O,"\u228F","\\sqsubset",!0),w(v,N,O,"\u227C","\\preccurlyeq",!0),w(v,N,O,"\u22DE","\\curlyeqprec",!0),w(v,N,O,"\u227E","\\precsim",!0),w(v,N,O,"\u2AB7","\\precapprox",!0),w(v,N,O,"\u22B2","\\vartriangleleft"),w(v,N,O,"\u22B4","\\trianglelefteq"),w(v,N,O,"\u22A8","\\vDash",!0),w(v,N,O,"\u22AA","\\Vvdash",!0),w(v,N,O,"\u2323","\\smallsmile"),w(v,N,O,"\u2322","\\smallfrown"),w(v,N,O,"\u224F","\\bumpeq",!0),w(v,N,O,"\u224E","\\Bumpeq",!0),w(v,N,O,"\u2267","\\geqq",!0),w(v,N,O,"\u2A7E","\\geqslant",!0),w(v,N,O,"\u2A96","\\eqslantgtr",!0),w(v,N,O,"\u2273","\\gtrsim",!0),w(v,N,O,"\u2A86","\\gtrapprox",!0),w(v,N,ge,"\u22D7","\\gtrdot"),w(v,N,O,"\u22D9","\\ggg",!0),w(v,N,O,"\u2277","\\gtrless",!0),w(v,N,O,"\u22DB","\\gtreqless",!0),w(v,N,O,"\u2A8C","\\gtreqqless",!0),w(v,N,O,"\u2256","\\eqcirc",!0),w(v,N,O,"\u2257","\\circeq",!0),w(v,N,O,"\u225C","\\triangleq",!0),w(v,N,O,"\u223C","\\thicksim"),w(v,N,O,"\u2248","\\thickapprox"),w(v,N,O,"\u2AC6","\\supseteqq",!0),w(v,N,O,"\u22D1","\\Supset",!0),w(v,N,O,"\u2290","\\sqsupset",!0),w(v,N,O,"\u227D","\\succcurlyeq",!0),w(v,N,O,"\u22DF","\\curlyeqsucc",!0),w(v,N,O,"\u227F","\\succsim",!0),w(v,N,O,"\u2AB8","\\succapprox",!0),w(v,N,O,"\u22B3","\\vartriangleright"),w(v,N,O,"\u22B5","\\trianglerighteq"),w(v,N,O,"\u22A9","\\Vdash",!0),w(v,N,O,"\u2223","\\shortmid"),w(v,N,O,"\u2225","\\shortparallel"),w(v,N,O,"\u226C","\\between",!0),w(v,N,O,"\u22D4","\\pitchfork",!0),w(v,N,O,"\u221D","\\varpropto"),w(v,N,O,"\u25C0","\\blacktriangleleft"),w(v,N,O,"\u2234","\\therefore",!0),w(v,N,O,"\u220D","\\backepsilon"),w(v,N,O,"\u25B6","\\blacktriangleright"),w(v,N,O,"\u2235","\\because",!0),w(v,N,O,"\u22D8","\\llless"),w(v,N,O,"\u22D9","\\gggtr"),w(v,N,ge,"\u22B2","\\lhd"),w(v,N,ge,"\u22B3","\\rhd"),w(v,N,O,"\u2242","\\eqsim",!0),w(v,x,O,"\u22C8","\\Join"),w(v,N,O,"\u2251","\\Doteq",!0),w(v,N,ge,"\u2214","\\dotplus",!0),w(v,N,ge,"\u2216","\\smallsetminus"),w(v,N,ge,"\u22D2","\\Cap",!0),w(v,N,ge,"\u22D3","\\Cup",!0),w(v,N,ge,"\u2A5E","\\doublebarwedge",!0),w(v,N,ge,"\u229F","\\boxminus",!0),w(v,N,ge,"\u229E","\\boxplus",!0),w(v,N,ge,"\u22C7","\\divideontimes",!0),w(v,N,ge,"\u22C9","\\ltimes",!0),w(v,N,ge,"\u22CA","\\rtimes",!0),w(v,N,ge,"\u22CB","\\leftthreetimes",!0),w(v,N,ge,"\u22CC","\\rightthreetimes",!0),w(v,N,ge,"\u22CF","\\curlywedge",!0),w(v,N,ge,"\u22CE","\\curlyvee",!0),w(v,N,ge,"\u229D","\\circleddash",!0),w(v,N,ge,"\u229B","\\circledast",!0),w(v,N,ge,"\u22C5","\\centerdot"),w(v,N,ge,"\u22BA","\\intercal",!0),w(v,N,ge,"\u22D2","\\doublecap"),w(v,N,ge,"\u22D3","\\doublecup"),w(v,N,ge,"\u22A0","\\boxtimes",!0),w(v,N,O,"\u21E2","\\dashrightarrow",!0),w(v,N,O,"\u21E0","\\dashleftarrow",!0),w(v,N,O,"\u21C7","\\leftleftarrows",!0),w(v,N,O,"\u21C6","\\leftrightarrows",!0),w(v,N,O,"\u21DA","\\Lleftarrow",!0),w(v,N,O,"\u219E","\\twoheadleftarrow",!0),w(v,N,O,"\u21A2","\\leftarrowtail",!0),w(v,N,O,"\u21AB","\\looparrowleft",!0),w(v,N,O,"\u21CB","\\leftrightharpoons",!0),w(v,N,O,"\u21B6","\\curvearrowleft",!0),w(v,N,O,"\u21BA","\\circlearrowleft",!0),w(v,N,O,"\u21B0","\\Lsh",!0),w(v,N,O,"\u21C8","\\upuparrows",!0),w(v,N,O,"\u21BF","\\upharpoonleft",!0),w(v,N,O,"\u21C3","\\downharpoonleft",!0),w(v,x,O,"\u22B6","\\origof",!0),w(v,x,O,"\u22B7","\\imageof",!0),w(v,N,O,"\u22B8","\\multimap",!0),w(v,N,O,"\u21AD","\\leftrightsquigarrow",!0),w(v,N,O,"\u21C9","\\rightrightarrows",!0),w(v,N,O,"\u21C4","\\rightleftarrows",!0),w(v,N,O,"\u21A0","\\twoheadrightarrow",!0),w(v,N,O,"\u21A3","\\rightarrowtail",!0),w(v,N,O,"\u21AC","\\looparrowright",!0),w(v,N,O,"\u21B7","\\curvearrowright",!0),w(v,N,O,"\u21BB","\\circlearrowright",!0),w(v,N,O,"\u21B1","\\Rsh",!0),w(v,N,O,"\u21CA","\\downdownarrows",!0),w(v,N,O,"\u21BE","\\upharpoonright",!0),w(v,N,O,"\u21C2","\\downharpoonright",!0),w(v,N,O,"\u21DD","\\rightsquigarrow",!0),w(v,N,O,"\u21DD","\\leadsto"),w(v,N,O,"\u21DB","\\Rrightarrow",!0),w(v,N,O,"\u21BE","\\restriction"),w(v,x,P,"\u2018","`"),w(v,x,P,"$","\\$"),w(Q,x,P,"$","\\$"),w(Q,x,P,"$","\\textdollar"),w(v,x,P,"%","\\%"),w(Q,x,P,"%","\\%"),w(v,x,P,"_","\\_"),w(Q,x,P,"_","\\_"),w(Q,x,P,"_","\\textunderscore"),w(v,x,P,"\u2220","\\angle",!0),w(v,x,P,"\u221E","\\infty",!0),w(v,x,P,"\u2032","\\prime"),w(v,x,P,"\u25B3","\\triangle"),w(v,x,P,"\u0393","\\Gamma",!0),w(v,x,P,"\u0394","\\Delta",!0),w(v,x,P,"\u0398","\\Theta",!0),w(v,x,P,"\u039B","\\Lambda",!0),w(v,x,P,"\u039E","\\Xi",!0),w(v,x,P,"\u03A0","\\Pi",!0),w(v,x,P,"\u03A3","\\Sigma",!0),w(v,x,P,"\u03A5","\\Upsilon",!0),w(v,x,P,"\u03A6","\\Phi",!0),w(v,x,P,"\u03A8","\\Psi",!0),w(v,x,P,"\u03A9","\\Omega",!0),w(v,x,P,"A","\u0391"),w(v,x,P,"B","\u0392"),w(v,x,P,"E","\u0395"),w(v,x,P,"Z","\u0396"),w(v,x,P,"H","\u0397"),w(v,x,P,"I","\u0399"),w(v,x,P,"K","\u039A"),w(v,x,P,"M","\u039C"),w(v,x,P,"N","\u039D"),w(v,x,P,"O","\u039F"),w(v,x,P,"P","\u03A1"),w(v,x,P,"T","\u03A4"),w(v,x,P,"X","\u03A7"),w(v,x,P,"\xAC","\\neg",!0),w(v,x,P,"\xAC","\\lnot"),w(v,x,P,"\u22A4","\\top"),w(v,x,P,"\u22A5","\\bot"),w(v,x,P,"\u2205","\\emptyset"),w(v,N,P,"\u2205","\\varnothing"),w(v,x,Me,"\u03B1","\\alpha",!0),w(v,x,Me,"\u03B2","\\beta",!0),w(v,x,Me,"\u03B3","\\gamma",!0),w(v,x,Me,"\u03B4","\\delta",!0),w(v,x,Me,"\u03F5","\\epsilon",!0),w(v,x,Me,"\u03B6","\\zeta",!0),w(v,x,Me,"\u03B7","\\eta",!0),w(v,x,Me,"\u03B8","\\theta",!0),w(v,x,Me,"\u03B9","\\iota",!0),w(v,x,Me,"\u03BA","\\kappa",!0),w(v,x,Me,"\u03BB","\\lambda",!0),w(v,x,Me,"\u03BC","\\mu",!0),w(v,x,Me,"\u03BD","\\nu",!0),w(v,x,Me,"\u03BE","\\xi",!0),w(v,x,Me,"\u03BF","\\omicron",!0),w(v,x,Me,"\u03C0","\\pi",!0),w(v,x,Me,"\u03C1","\\rho",!0),w(v,x,Me,"\u03C3","\\sigma",!0),w(v,x,Me,"\u03C4","\\tau",!0),w(v,x,Me,"\u03C5","\\upsilon",!0),w(v,x,Me,"\u03D5","\\phi",!0),w(v,x,Me,"\u03C7","\\chi",!0),w(v,x,Me,"\u03C8","\\psi",!0),w(v,x,Me,"\u03C9","\\omega",!0),w(v,x,Me,"\u03B5","\\varepsilon",!0),w(v,x,Me,"\u03D1","\\vartheta",!0),w(v,x,Me,"\u03D6","\\varpi",!0),w(v,x,Me,"\u03F1","\\varrho",!0),w(v,x,Me,"\u03C2","\\varsigma",!0),w(v,x,Me,"\u03C6","\\varphi",!0),w(v,x,ge,"\u2217","*",!0),w(v,x,ge,"+","+"),w(v,x,ge,"\u2212","-",!0),w(v,x,ge,"\u22C5","\\cdot",!0),w(v,x,ge,"\u2218","\\circ",!0),w(v,x,ge,"\xF7","\\div",!0),w(v,x,ge,"\xB1","\\pm",!0),w(v,x,ge,"\xD7","\\times",!0),w(v,x,ge,"\u2229","\\cap",!0),w(v,x,ge,"\u222A","\\cup",!0),w(v,x,ge,"\u2216","\\setminus",!0),w(v,x,ge,"\u2227","\\land"),w(v,x,ge,"\u2228","\\lor"),w(v,x,ge,"\u2227","\\wedge",!0),w(v,x,ge,"\u2228","\\vee",!0),w(v,x,P,"\u221A","\\surd"),w(v,x,Hn,"\u27E8","\\langle",!0),w(v,x,Hn,"\u2223","\\lvert"),w(v,x,Hn,"\u2225","\\lVert"),w(v,x,gn,"?","?"),w(v,x,gn,"!","!"),w(v,x,gn,"\u27E9","\\rangle",!0),w(v,x,gn,"\u2223","\\rvert"),w(v,x,gn,"\u2225","\\rVert"),w(v,x,O,"=","="),w(v,x,O,":",":"),w(v,x,O,"\u2248","\\approx",!0),w(v,x,O,"\u2245","\\cong",!0),w(v,x,O,"\u2265","\\ge"),w(v,x,O,"\u2265","\\geq",!0),w(v,x,O,"\u2190","\\gets"),w(v,x,O,">","\\gt",!0),w(v,x,O,"\u2208","\\in",!0),w(v,x,O,"\uE020","\\@not"),w(v,x,O,"\u2282","\\subset",!0),w(v,x,O,"\u2283","\\supset",!0),w(v,x,O,"\u2286","\\subseteq",!0),w(v,x,O,"\u2287","\\supseteq",!0),w(v,N,O,"\u2288","\\nsubseteq",!0),w(v,N,O,"\u2289","\\nsupseteq",!0),w(v,x,O,"\u22A8","\\models"),w(v,x,O,"\u2190","\\leftarrow",!0),w(v,x,O,"\u2264","\\le"),w(v,x,O,"\u2264","\\leq",!0),w(v,x,O,"<","\\lt",!0),w(v,x,O,"\u2192","\\rightarrow",!0),w(v,x,O,"\u2192","\\to"),w(v,N,O,"\u2271","\\ngeq",!0),w(v,N,O,"\u2270","\\nleq",!0),w(v,x,To,"\xA0","\\ "),w(v,x,To,"\xA0","\\space"),w(v,x,To,"\xA0","\\nobreakspace"),w(Q,x,To,"\xA0","\\ "),w(Q,x,To,"\xA0"," "),w(Q,x,To,"\xA0","\\space"),w(Q,x,To,"\xA0","\\nobreakspace"),w(v,x,To,null,"\\nobreak"),w(v,x,To,null,"\\allowbreak"),w(v,x,zd,",",","),w(v,x,zd,";",";"),w(v,N,ge,"\u22BC","\\barwedge",!0),w(v,N,ge,"\u22BB","\\veebar",!0),w(v,x,ge,"\u2299","\\odot",!0),w(v,x,ge,"\u2295","\\oplus",!0),w(v,x,ge,"\u2297","\\otimes",!0),w(v,x,P,"\u2202","\\partial",!0),w(v,x,ge,"\u2298","\\oslash",!0),w(v,N,ge,"\u229A","\\circledcirc",!0),w(v,N,ge,"\u22A1","\\boxdot",!0),w(v,x,ge,"\u25B3","\\bigtriangleup"),w(v,x,ge,"\u25BD","\\bigtriangledown"),w(v,x,ge,"\u2020","\\dagger"),w(v,x,ge,"\u22C4","\\diamond"),w(v,x,ge,"\u22C6","\\star"),w(v,x,ge,"\u25C3","\\triangleleft"),w(v,x,ge,"\u25B9","\\triangleright"),w(v,x,Hn,"{","\\{"),w(Q,x,P,"{","\\{"),w(Q,x,P,"{","\\textbraceleft"),w(v,x,gn,"}","\\}"),w(Q,x,P,"}","\\}"),w(Q,x,P,"}","\\textbraceright"),w(v,x,Hn,"{","\\lbrace"),w(v,x,gn,"}","\\rbrace"),w(v,x,Hn,"[","\\lbrack",!0),w(Q,x,P,"[","\\lbrack",!0),w(v,x,gn,"]","\\rbrack",!0),w(Q,x,P,"]","\\rbrack",!0),w(v,x,Hn,"(","\\lparen",!0),w(v,x,gn,")","\\rparen",!0),w(Q,x,P,"<","\\textless",!0),w(Q,x,P,">","\\textgreater",!0),w(v,x,Hn,"\u230A","\\lfloor",!0),w(v,x,gn,"\u230B","\\rfloor",!0),w(v,x,Hn,"\u2308","\\lceil",!0),w(v,x,gn,"\u2309","\\rceil",!0),w(v,x,P,"\\","\\backslash"),w(v,x,P,"\u2223","|"),w(v,x,P,"\u2223","\\vert"),w(Q,x,P,"|","\\textbar",!0),w(v,x,P,"\u2225","\\|"),w(v,x,P,"\u2225","\\Vert"),w(Q,x,P,"\u2225","\\textbardbl"),w(Q,x,P,"~","\\textasciitilde"),w(Q,x,P,"\\","\\textbackslash"),w(Q,x,P,"^","\\textasciicircum"),w(v,x,O,"\u2191","\\uparrow",!0),w(v,x,O,"\u21D1","\\Uparrow",!0),w(v,x,O,"\u2193","\\downarrow",!0),w(v,x,O,"\u21D3","\\Downarrow",!0),w(v,x,O,"\u2195","\\updownarrow",!0),w(v,x,O,"\u21D5","\\Updownarrow",!0),w(v,x,zt,"\u2210","\\coprod"),w(v,x,zt,"\u22C1","\\bigvee"),w(v,x,zt,"\u22C0","\\bigwedge"),w(v,x,zt,"\u2A04","\\biguplus"),w(v,x,zt,"\u22C2","\\bigcap"),w(v,x,zt,"\u22C3","\\bigcup"),w(v,x,zt,"\u222B","\\int"),w(v,x,zt,"\u222B","\\intop"),w(v,x,zt,"\u222C","\\iint"),w(v,x,zt,"\u222D","\\iiint"),w(v,x,zt,"\u220F","\\prod"),w(v,x,zt,"\u2211","\\sum"),w(v,x,zt,"\u2A02","\\bigotimes"),w(v,x,zt,"\u2A01","\\bigoplus"),w(v,x,zt,"\u2A00","\\bigodot"),w(v,x,zt,"\u222E","\\oint"),w(v,x,zt,"\u222F","\\oiint"),w(v,x,zt,"\u2230","\\oiiint"),w(v,x,zt,"\u2A06","\\bigsqcup"),w(v,x,zt,"\u222B","\\smallint"),w(Q,x,wa,"\u2026","\\textellipsis"),w(v,x,wa,"\u2026","\\mathellipsis"),w(Q,x,wa,"\u2026","\\ldots",!0),w(v,x,wa,"\u2026","\\ldots",!0),w(v,x,wa,"\u22EF","\\@cdots",!0),w(v,x,wa,"\u22F1","\\ddots",!0),w(v,x,P,"\u22EE","\\varvdots"),w(v,x,Ct,"\u02CA","\\acute"),w(v,x,Ct,"\u02CB","\\grave"),w(v,x,Ct,"\xA8","\\ddot"),w(v,x,Ct,"~","\\tilde"),w(v,x,Ct,"\u02C9","\\bar"),w(v,x,Ct,"\u02D8","\\breve"),w(v,x,Ct,"\u02C7","\\check"),w(v,x,Ct,"^","\\hat"),w(v,x,Ct,"\u20D7","\\vec"),w(v,x,Ct,"\u02D9","\\dot"),w(v,x,Ct,"\u02DA","\\mathring"),w(v,x,Me,"\uE131","\\@imath"),w(v,x,Me,"\uE237","\\@jmath"),w(v,x,P,"\u0131","\u0131"),w(v,x,P,"\u0237","\u0237"),w(Q,x,P,"\u0131","\\i",!0),w(Q,x,P,"\u0237","\\j",!0),w(Q,x,P,"\xDF","\\ss",!0),w(Q,x,P,"\xE6","\\ae",!0),w(Q,x,P,"\u0153","\\oe",!0),w(Q,x,P,"\xF8","\\o",!0),w(Q,x,P,"\xC6","\\AE",!0),w(Q,x,P,"\u0152","\\OE",!0),w(Q,x,P,"\xD8","\\O",!0),w(Q,x,Ct,"\u02CA","\\'"),w(Q,x,Ct,"\u02CB","\\`"),w(Q,x,Ct,"\u02C6","\\^"),w(Q,x,Ct,"\u02DC","\\~"),w(Q,x,Ct,"\u02C9","\\="),w(Q,x,Ct,"\u02D8","\\u"),w(Q,x,Ct,"\u02D9","\\."),w(Q,x,Ct,"\xB8","\\c"),w(Q,x,Ct,"\u02DA","\\r"),w(Q,x,Ct,"\u02C7","\\v"),w(Q,x,Ct,"\xA8",'\\"'),w(Q,x,Ct,"\u02DD","\\H"),w(Q,x,Ct,"\u25EF","\\textcircled");var S7={"--":!0,"---":!0,"``":!0,"''":!0};w(Q,x,P,"\u2013","--",!0),w(Q,x,P,"\u2013","\\textendash"),w(Q,x,P,"\u2014","---",!0),w(Q,x,P,"\u2014","\\textemdash"),w(Q,x,P,"\u2018","`",!0),w(Q,x,P,"\u2018","\\textquoteleft"),w(Q,x,P,"\u2019","'",!0),w(Q,x,P,"\u2019","\\textquoteright"),w(Q,x,P,"\u201C","``",!0),w(Q,x,P,"\u201C","\\textquotedblleft"),w(Q,x,P,"\u201D","''",!0),w(Q,x,P,"\u201D","\\textquotedblright"),w(v,x,P,"\xB0","\\degree",!0),w(Q,x,P,"\xB0","\\degree"),w(Q,x,P,"\xB0","\\textdegree",!0),w(v,x,P,"\xA3","\\pounds"),w(v,x,P,"\xA3","\\mathsterling",!0),w(Q,x,P,"\xA3","\\pounds"),w(Q,x,P,"\xA3","\\textsterling",!0),w(v,N,P,"\u2720","\\maltese"),w(Q,N,P,"\u2720","\\maltese");for(var E7='0123456789/@."',Bm=0;Bm<E7.length;Bm++){var x7=E7.charAt(Bm);w(v,x,P,x7,x7)}for(var T7='0123456789!@*()-=+";:?/.,',Om=0;Om<T7.length;Om++){var A7=T7.charAt(Om);w(Q,x,P,A7,A7)}for(var Fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Im=0;Im<Fd.length;Im++){var $d=Fd.charAt(Im);w(v,x,Me,$d,$d),w(Q,x,P,$d,$d)}w(v,N,P,"C","\u2102"),w(Q,N,P,"C","\u2102"),w(v,N,P,"H","\u210D"),w(Q,N,P,"H","\u210D"),w(v,N,P,"N","\u2115"),w(Q,N,P,"N","\u2115"),w(v,N,P,"P","\u2119"),w(Q,N,P,"P","\u2119"),w(v,N,P,"Q","\u211A"),w(Q,N,P,"Q","\u211A"),w(v,N,P,"R","\u211D"),w(Q,N,P,"R","\u211D"),w(v,N,P,"Z","\u2124"),w(Q,N,P,"Z","\u2124"),w(v,x,Me,"h","\u210E"),w(Q,x,Me,"h","\u210E");for(var Le="",bn=0;bn<Fd.length;bn++){var Nt=Fd.charAt(bn);Le=String.fromCharCode(55349,56320+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56372+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56424+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56580+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56684+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56736+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56788+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56840+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56944+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),bn<26&&(Le=String.fromCharCode(55349,56632+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le),Le=String.fromCharCode(55349,56476+bn),w(v,x,Me,Nt,Le),w(Q,x,P,Nt,Le))}Le=String.fromCharCode(55349,56668),w(v,x,Me,"k",Le),w(Q,x,P,"k",Le);for(var cs=0;cs<10;cs++){var yi=cs.toString();Le=String.fromCharCode(55349,57294+cs),w(v,x,Me,yi,Le),w(Q,x,P,yi,Le),Le=String.fromCharCode(55349,57314+cs),w(v,x,Me,yi,Le),w(Q,x,P,yi,Le),Le=String.fromCharCode(55349,57324+cs),w(v,x,Me,yi,Le),w(Q,x,P,yi,Le),Le=String.fromCharCode(55349,57334+cs),w(v,x,Me,yi,Le),w(Q,x,P,yi,Le)}for(var Pm="\xD0\xDE\xFE",Lm=0;Lm<Pm.length;Lm++){var Vd=Pm.charAt(Lm);w(v,x,Me,Vd,Vd),w(Q,x,P,Vd,Vd)}var Hd=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],_7=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],nte=function(e,n){var r=e.charCodeAt(0),o=e.charCodeAt(1),s=(r-55296)*1024+(o-56320)+65536,a=n==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[Hd[l][2],Hd[l][a]]}else if(120782<=s&&s<=120831){var c=Math.floor((s-120782)/10);return[_7[c][2],_7[c][a]]}else{if(s===120485||s===120486)return[Hd[0][2],Hd[0][a]];if(120486<s&&s<120782)return["",""];throw new oe("Unsupported character: "+e)}},jd=function(e,n,r){return pt[r][e]&&pt[r][e].replace&&(e=pt[r][e].replace),{value:e,metrics:Am(e,n,r)}},Mr=function(e,n,r,o,s){var a=jd(e,n,r),l=a.metrics;e=a.value;var c;if(l){var u=l.italic;(r==="text"||o&&o.font==="mathit")&&(u=0),c=new lr(e,l.height,l.depth,u,l.skew,l.width,s)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+e+"' in style '"+n+"' and mode '"+r+"'")),c=new lr(e,0,0,0,0,0,s);if(o){c.maxFontSize=o.sizeMultiplier,o.style.isTight()&&c.classes.push("mtight");var d=o.getColor();d&&(c.style.color=d)}return c},rte=function(e,n,r,o){return o===void 0&&(o=[]),r.font==="boldsymbol"&&jd(e,"Main-Bold",n).metrics?Mr(e,"Main-Bold",n,r,o.concat(["mathbf"])):e==="\\"||pt[n][e].font==="main"?Mr(e,"Main-Regular",n,r,o):Mr(e,"AMS-Regular",n,r,o.concat(["amsrm"]))},ote=function(e,n,r,o,s){return s!=="textord"&&jd(e,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ite=function(e,n,r){var o=e.mode,s=e.text,a=["mord"],l=o==="math"||o==="text"&&n.font,c=l?n.font:n.fontFamily,u="",d="";if(s.charCodeAt(0)===55349&&([u,d]=nte(s,o)),u.length>0)return Mr(s,u,o,n,a.concat(d));if(c){var f,p;if(c==="boldsymbol"){var h=ote(s,o,n,a,r);f=h.fontName,p=[h.fontClass]}else l?(f=N7[c].fontName,p=[c]):(f=Ud(c,n.fontWeight,n.fontShape),p=[c,n.fontWeight,n.fontShape]);if(jd(s,f,o).metrics)return Mr(s,f,o,n,a.concat(p));if(S7.hasOwnProperty(s)&&f.slice(0,10)==="Typewriter"){for(var m=[],g=0;g<s.length;g++)m.push(Mr(s[g],f,o,n,a.concat(p)));return M7(m)}}if(r==="mathord")return Mr(s,"Math-Italic",o,n,a.concat(["mathnormal"]));if(r==="textord"){var b=pt[o][s]&&pt[o][s].font;if(b==="ams"){var y=Ud("amsrm",n.fontWeight,n.fontShape);return Mr(s,y,o,n,a.concat("amsrm",n.fontWeight,n.fontShape))}else if(b==="main"||!b){var S=Ud("textrm",n.fontWeight,n.fontShape);return Mr(s,S,o,n,a.concat(n.fontWeight,n.fontShape))}else{var k=Ud(b,n.fontWeight,n.fontShape);return Mr(s,k,o,n,a.concat(k,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},ste=(t,e)=>{if(gi(t.classes)!==gi(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var o in e.style)if(e.style.hasOwnProperty(o)&&t.style[o]!==e.style[o])return!1;return!0},ate=t=>{for(var e=0;e<t.length-1;e++){var n=t[e],r=t[e+1];n instanceof lr&&r instanceof lr&&ste(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,t.splice(e+1,1),e--)}return t},Rm=function(e){for(var n=0,r=0,o=0,s=0;s<e.children.length;s++){var a=e.children[s];a.height>n&&(n=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>o&&(o=a.maxFontSize)}e.height=n,e.depth=r,e.maxFontSize=o},Nn=function(e,n,r,o){var s=new Vl(e,n,r,o);return Rm(s),s},D7=(t,e,n,r)=>new Vl(t,e,n,r),lte=function(e,n,r){var o=Nn([e],[],n);return o.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=se(o.height),o.maxFontSize=1,o},cte=function(e,n,r,o){var s=new Mm(e,n,r,o);return Rm(s),s},M7=function(e){var n=new $l(e);return Rm(n),n},ute=function(e,n){return e instanceof $l?Nn([],[e],n):e},dte=function(e){if(e.positionType==="individualShift"){for(var n=e.children,r=[n[0]],o=-n[0].shift-n[0].elem.depth,s=o,a=1;a<n.length;a++){var l=-n[a].shift-s-n[a].elem.depth,c=l-(n[a-1].elem.height+n[a-1].elem.depth);s=s+l,r.push({type:"kern",size:c}),r.push(n[a])}return{children:r,depth:o}}var u;if(e.positionType==="top"){for(var d=e.positionData,f=0;f<e.children.length;f++){var p=e.children[f];d-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}u=d}else if(e.positionType==="bottom")u=-e.positionData;else{var h=e.children[0];if(h.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")u=-h.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")u=-h.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:u}},fte=function(e,n){for(var{children:r,depth:o}=dte(e),s=0,a=0;a<r.length;a++){var l=r[a];if(l.type==="elem"){var c=l.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var u=Nn(["pstrut"],[]);u.style.height=se(s);for(var d=[],f=o,p=o,h=o,m=0;m<r.length;m++){var g=r[m];if(g.type==="kern")h+=g.size;else{var b=g.elem,y=g.wrapperClasses||[],S=g.wrapperStyle||{},k=Nn(y,[u,b],void 0,S);k.style.top=se(-s-h-b.depth),g.marginLeft&&(k.style.marginLeft=g.marginLeft),g.marginRight&&(k.style.marginRight=g.marginRight),d.push(k),h+=b.height+b.depth}f=Math.min(f,h),p=Math.max(p,h)}var C=Nn(["vlist"],d);C.style.height=se(p);var _;if(f<0){var E=Nn([],[]),T=Nn(["vlist"],[E]);T.style.height=se(-f);var M=Nn(["vlist-s"],[new lr("\u200B")]);_=[Nn(["vlist-r"],[C,M]),Nn(["vlist-r"],[T])]}else _=[Nn(["vlist-r"],[C])];var D=Nn(["vlist-t"],_);return _.length===2&&D.classes.push("vlist-t2"),D.height=p,D.depth=-f,D},pte=(t,e)=>{var n=Nn(["mspace"],[],e),r=xt(t,e);return n.style.marginRight=se(r),n},Ud=function(e,n,r){var o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}var s;return n==="textbf"&&r==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",o+"-"+s},N7={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},B7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},hte=function(e,n){var[r,o,s]=B7[e],a=new bi(r),l=new xo([a],{width:se(o),height:se(s),style:"width:"+se(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=D7(["overlay"],[l],n);return c.height=s,c.style.height=se(s),c.style.width=se(o),c},F={fontMap:N7,makeSymbol:Mr,mathsym:rte,makeSpan:Nn,makeSvgSpan:D7,makeLineSpan:lte,makeAnchor:cte,makeFragment:M7,wrapFragment:ute,makeVList:fte,makeOrd:ite,makeGlue:pte,staticSvg:hte,svgData:B7,tryCombineChars:ate},Tt={number:3,unit:"mu"},us={number:4,unit:"mu"},Ao={number:5,unit:"mu"},mte={mord:{mop:Tt,mbin:us,mrel:Ao,minner:Tt},mop:{mord:Tt,mop:Tt,mrel:Ao,minner:Tt},mbin:{mord:us,mop:us,mopen:us,minner:us},mrel:{mord:Ao,mop:Ao,mopen:Ao,minner:Ao},mopen:{},mclose:{mop:Tt,mbin:us,mrel:Ao,minner:Tt},mpunct:{mord:Tt,mop:Tt,mrel:Ao,mopen:Tt,mclose:Tt,mpunct:Tt,minner:Tt},minner:{mord:Tt,mop:Tt,mbin:us,mrel:Ao,mopen:Tt,mpunct:Tt,minner:Tt}},gte={mord:{mop:Tt},mop:{mord:Tt,mop:Tt},mbin:{},mrel:{},mopen:{},mclose:{mop:Tt},mpunct:{},minner:{mop:Tt}},O7={},qd={},Wd={};function he(t){for(var{type:e,names:n,props:r,handler:o,htmlBuilder:s,mathmlBuilder:a}=t,l={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},c=0;c<n.length;++c)O7[n[c]]=l;e&&(s&&(qd[e]=s),a&&(Wd[e]=a))}function ds(t){var{type:e,htmlBuilder:n,mathmlBuilder:r}=t;he({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Kd=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Bt=function(e){return e.type==="ordgroup"?e.body:[e]},_o=F.makeSpan,bte=["leftmost","mbin","mopen","mrel","mop","mpunct"],yte=["rightmost","mrel","mclose","mpunct"],wte={display:De.DISPLAY,text:De.TEXT,script:De.SCRIPT,scriptscript:De.SCRIPTSCRIPT},vte={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},jt=function(e,n,r,o){o===void 0&&(o=[null,null]);for(var s=[],a=0;a<e.length;a++){var l=et(e[a],n);if(l instanceof $l){var c=l.children;s.push(...c)}else s.push(l)}if(F.tryCombineChars(s),!r)return s;var u=n;if(e.length===1){var d=e[0];d.type==="sizing"?u=n.havingSize(d.size):d.type==="styling"&&(u=n.havingStyle(wte[d.style]))}var f=_o([o[0]||"leftmost"],[],n),p=_o([o[1]||"rightmost"],[],n),h=r==="root";return I7(s,(m,g)=>{var b=g.classes[0],y=m.classes[0];b==="mbin"&&Te.contains(yte,y)?g.classes[0]="mord":y==="mbin"&&Te.contains(bte,b)&&(m.classes[0]="mord")},{node:f},p,h),I7(s,(m,g)=>{var b=zm(g),y=zm(m),S=b&&y?m.hasClass("mtight")?gte[b][y]:mte[b][y]:null;if(S)return F.makeGlue(S,u)},{node:f},p,h),s},I7=function t(e,n,r,o,s){o&&e.push(o);for(var a=0;a<e.length;a++){var l=e[a],c=P7(l);if(c){t(c.children,n,r,null,s);continue}var u=!l.hasClass("mspace");if(u){var d=n(l,r.node);d&&(r.insertAfter?r.insertAfter(d):(e.unshift(d),a++))}u?r.node=l:s&&l.hasClass("newline")&&(r.node=_o(["leftmost"])),r.insertAfter=(f=>p=>{e.splice(f+1,0,p),a++})(a)}o&&e.pop()},P7=function(e){return e instanceof $l||e instanceof Mm||e instanceof Vl&&e.hasClass("enclosing")?e:null},Cte=function t(e,n){var r=P7(e);if(r){var o=r.children;if(o.length){if(n==="right")return t(o[o.length-1],"right");if(n==="left")return t(o[0],"left")}}return e},zm=function(e,n){return e?(n&&(e=Cte(e,n)),vte[e.classes[0]]||null):null},Hl=function(e,n){var r=["nulldelimiter"].concat(e.baseSizingClasses());return _o(n.concat(r))},et=function(e,n,r){if(!e)return _o();if(qd[e.type]){var o=qd[e.type](e,n);if(r&&n.size!==r.size){o=_o(n.sizingClasses(r),[o],n);var s=n.sizeMultiplier/r.sizeMultiplier;o.height*=s,o.depth*=s}return o}else throw new oe("Got group of unknown type: '"+e.type+"'")};function Gd(t,e){var n=_o(["base"],t,e),r=_o(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Fm(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var r=jt(t,e,"root"),o;r.length===2&&r[1].hasClass("tag")&&(o=r.pop());for(var s=[],a=[],l=0;l<r.length;l++)if(a.push(r[l]),r[l].hasClass("mbin")||r[l].hasClass("mrel")||r[l].hasClass("allowbreak")){for(var c=!1;l<r.length-1&&r[l+1].hasClass("mspace")&&!r[l+1].hasClass("newline");)l++,a.push(r[l]),r[l].hasClass("nobreak")&&(c=!0);c||(s.push(Gd(a,e)),a=[])}else r[l].hasClass("newline")&&(a.pop(),a.length>0&&(s.push(Gd(a,e)),a=[]),s.push(r[l]));a.length>0&&s.push(Gd(a,e));var u;n?(u=Gd(jt(n,e,!0)),u.classes=["tag"],s.push(u)):o&&s.push(o);var d=_o(["katex-html"],s);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=se(d.height+d.depth),d.depth&&(f.style.verticalAlign=se(-d.depth))}return d}function L7(t){return new $l(t)}class cr{constructor(e,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=gi(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="',e+=Te.escape(this.attributes[n]),e+='"');this.classes.length>0&&(e+=' class ="'+Te.escape(gi(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class jl{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Te.escape(this.toText())}toText(){return this.text}}class kte{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",se(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+se(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var te={MathNode:cr,TextNode:jl,SpaceNode:kte,newDocumentFragment:L7},ur=function(e,n,r){return pt[n][e]&&pt[n][e].replace&&e.charCodeAt(0)!==55349&&!(S7.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=pt[n][e].replace),new te.TextNode(e)},$m=function(e){return e.length===1?e[0]:new te.MathNode("mrow",e)},Vm=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var o=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=e.text;if(Te.contains(["\\imath","\\jmath"],s))return null;pt[o][s]&&pt[o][s].replace&&(s=pt[o][s].replace);var a=F.fontMap[r].fontName;return Am(s,a,o)?F.fontMap[r].variant:null},Bn=function(e,n,r){if(e.length===1){var o=ct(e[0],n);return r&&o instanceof cr&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var s=[],a,l=0;l<e.length;l++){var c=ct(e[l],n);if(c instanceof cr&&a instanceof cr){if(c.type==="mtext"&&a.type==="mtext"&&c.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...c.children);continue}else if(c.type==="mn"&&a.type==="mn"){a.children.push(...c.children);continue}else if(c.type==="mi"&&c.children.length===1&&a.type==="mn"){var u=c.children[0];if(u instanceof jl&&u.text==="."){a.children.push(...c.children);continue}}else if(a.type==="mi"&&a.children.length===1){var d=a.children[0];if(d instanceof jl&&d.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var f=c.children[0];f instanceof jl&&f.text.length>0&&(f.text=f.text.slice(0,1)+"\u0338"+f.text.slice(1),s.pop())}}}s.push(c),a=c}return s},wi=function(e,n,r){return $m(Bn(e,n,r))},ct=function(e,n){if(!e)return new te.MathNode("mrow");if(Wd[e.type]){var r=Wd[e.type](e,n);return r}else throw new oe("Got group of unknown type: '"+e.type+"'")};function R7(t,e,n,r,o){var s=Bn(t,n),a;s.length===1&&s[0]instanceof cr&&Te.contains(["mrow","mtable"],s[0].type)?a=s[0]:a=new te.MathNode("mrow",s);var l=new te.MathNode("annotation",[new te.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var c=new te.MathNode("semantics",[a,l]),u=new te.MathNode("math",[c]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=o?"katex":"katex-mathml";return F.makeSpan([d],[u])}var z7=function(e){return new Eo({style:e.displayMode?De.DISPLAY:De.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},F7=function(e,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),e=F.makeSpan(r,[e])}return e},Ste=function(e,n,r){var o=z7(r),s;if(r.output==="mathml")return R7(e,n,o,r.displayMode,!0);if(r.output==="html"){var a=Fm(e,o);s=F.makeSpan(["katex"],[a])}else{var l=R7(e,n,o,r.displayMode,!1),c=Fm(e,o);s=F.makeSpan(["katex"],[l,c])}return F7(s,r)},Ete=function(e,n,r){var o=z7(r),s=Fm(e,o),a=F.makeSpan(["katex"],[s]);return F7(a,r)},xte={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Tte=function(e){var n=new te.MathNode("mo",[new te.TextNode(xte[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Ate={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},_te=function(e){return e.type==="ordgroup"?e.body.length:1},Dte=function(e,n){function r(){var l=4e5,c=e.label.slice(1);if(Te.contains(["widehat","widecheck","widetilde","utilde"],c)){var u=e,d=_te(u.base),f,p,h;if(d>5)c==="widehat"||c==="widecheck"?(f=420,l=2364,h=.42,p=c+"4"):(f=312,l=2340,h=.34,p="tilde4");else{var m=[1,1,2,2,3,3][d];c==="widehat"||c==="widecheck"?(l=[0,1062,2364,2364,2364][m],f=[0,239,300,360,420][m],h=[0,.24,.3,.3,.36,.42][m],p=c+m):(l=[0,600,1033,2339,2340][m],f=[0,260,286,306,312][m],h=[0,.26,.286,.3,.306,.34][m],p="tilde"+m)}var g=new bi(p),b=new xo([g],{width:"100%",height:se(h),viewBox:"0 0 "+l+" "+f,preserveAspectRatio:"none"});return{span:F.makeSvgSpan([],[b],n),minWidth:0,height:h}}else{var y=[],S=Ate[c],[k,C,_]=S,E=_/1e3,T=k.length,M,D;if(T===1){var L=S[3];M=["hide-tail"],D=[L]}else if(T===2)M=["halfarrow-left","halfarrow-right"],D=["xMinYMin","xMaxYMin"];else if(T===3)M=["brace-left","brace-center","brace-right"],D=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+T+" children.");for(var $=0;$<T;$++){var V=new bi(k[$]),W=new xo([V],{width:"400em",height:se(E),viewBox:"0 0 "+l+" "+_,preserveAspectRatio:D[$]+" slice"}),ee=F.makeSvgSpan([M[$]],[W],n);if(T===1)return{span:ee,minWidth:C,height:E};ee.style.height=se(E),y.push(ee)}return{span:F.makeSpan(["stretchy"],y,n),minWidth:C,height:E}}}var{span:o,minWidth:s,height:a}=r();return o.height=a,o.style.height=se(a),s>0&&(o.style.minWidth=se(s)),o},Mte=function(e,n,r,o,s){var a,l=e.height+e.depth+r+o;if(/fbox|color|angl/.test(n)){if(a=F.makeSpan(["stretchy",n],[],s),n==="fbox"){var c=s.color&&s.getColor();c&&(a.style.borderColor=c)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new Nm({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new Nm({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new xo(u,{width:"100%",height:se(l)});a=F.makeSvgSpan([],[d],s)}return a.height=l,a.style.height=se(l),a},Do={encloseSpan:Mte,mathMLnode:Tte,svgSpan:Dte};function je(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Hm(t){var e=Jd(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Jd(t){return t&&(t.type==="atom"||tte.hasOwnProperty(t.type))?t:null}var jm=(t,e)=>{var n,r,o;t&&t.type==="supsub"?(r=je(t.base,"accent"),n=r.base,t.base=n,o=Qee(et(t,e)),t.base=r):(r=je(t,"accent"),n=r.base);var s=et(n,e.havingCrampedStyle()),a=r.isShifty&&Te.isCharacterBox(n),l=0;if(a){var c=Te.getBaseElem(n),u=et(c,e.havingCrampedStyle());l=k7(u).skew}var d=r.label==="\\c",f=d?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),p;if(r.isStretchy)p=Do.svgSpan(r,e),p=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+se(2*l)+")",marginLeft:se(2*l)}:void 0}]},e);else{var h,m;r.label==="\\vec"?(h=F.staticSvg("vec",e),m=F.svgData.vec[1]):(h=F.makeOrd({mode:r.mode,text:r.label},e,"textord"),h=k7(h),h.italic=0,m=h.width,d&&(f+=h.depth)),p=F.makeSpan(["accent-body"],[h]);var g=r.label==="\\textcircled";g&&(p.classes.push("accent-full"),f=s.height);var b=l;g||(b-=m/2),p.style.left=se(b),r.label==="\\textcircled"&&(p.style.top=".2em"),p=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-f},{type:"elem",elem:p}]},e)}var y=F.makeSpan(["mord","accent"],[p],e);return o?(o.children[0]=y,o.height=Math.max(y.height,o.height),o.classes[0]="mord",o):y},$7=(t,e)=>{var n=t.isStretchy?Do.mathMLnode(t.label):new te.MathNode("mo",[ur(t.label,t.mode)]),r=new te.MathNode("mover",[ct(t.base,e),n]);return r.setAttribute("accent","true"),r},Nte=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));he({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var n=Kd(e[0]),r=!Nte.test(t.funcName),o=!r||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:jm,mathmlBuilder:$7}),he({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],r=t.parser.mode;return r==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:jm,mathmlBuilder:$7}),he({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(t,e)=>{var n=et(t.base,e),r=Do.svgSpan(t,e),o=t.label==="\\utilde"?.12:0,s=F.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},e);return F.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(t,e)=>{var n=Do.mathMLnode(t.label),r=new te.MathNode("munder",[ct(t.base,e),n]);return r.setAttribute("accentunder","true"),r}});var Xd=t=>{var e=new te.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};he({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r,funcName:o}=t;return{type:"xArrow",mode:r.mode,label:o,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,r=e.havingStyle(n.sup()),o=F.wrapFragment(et(t.body,r,e),e),s=t.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var a;t.below&&(r=e.havingStyle(n.sub()),a=F.wrapFragment(et(t.below,r,e),e),a.classes.push(s+"-arrow-pad"));var l=Do.svgSpan(t,e),c=-e.fontMetrics().axisHeight+.5*l.height,u=-e.fontMetrics().axisHeight-.5*l.height-.111;(o.depth>.25||t.label==="\\xleftequilibrium")&&(u-=o.depth);var d;if(a){var f=-e.fontMetrics().axisHeight+a.height+.5*l.height+.111;d=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:a,shift:f}]},e)}else d=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),F.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var n=Do.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(t.body){var o=Xd(ct(t.body,e));if(t.below){var s=Xd(ct(t.below,e));r=new te.MathNode("munderover",[n,s,o])}else r=new te.MathNode("mover",[n,o])}else if(t.below){var a=Xd(ct(t.below,e));r=new te.MathNode("munder",[n,a])}else r=Xd(),r=new te.MathNode("mover",[n,r]);return r}});var Bte=F.makeSpan;function V7(t,e){var n=jt(t.body,e,!0);return Bte([t.mclass],n,e)}function H7(t,e){var n,r=Bn(t.body,e);return t.mclass==="minner"?n=new te.MathNode("mpadded",r):t.mclass==="mord"?t.isCharacterBox?(n=r[0],n.type="mi"):n=new te.MathNode("mi",r):(t.isCharacterBox?(n=r[0],n.type="mo"):n=new te.MathNode("mo",r),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}he({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:r}=t,o=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Bt(o),isCharacterBox:Te.isCharacterBox(o)}},htmlBuilder:V7,mathmlBuilder:H7});var Yd=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};he({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:n}=t;return{type:"mclass",mode:n.mode,mclass:Yd(e[0]),body:Bt(e[1]),isCharacterBox:Te.isCharacterBox(e[1])}}}),he({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:r}=t,o=e[1],s=e[0],a;r!=="\\stackrel"?a=Yd(o):a="mrel";var l={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Bt(o)},c={type:"supsub",mode:s.mode,base:l,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:a,body:[c],isCharacterBox:Te.isCharacterBox(c)}},htmlBuilder:V7,mathmlBuilder:H7}),he({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:Yd(e[0]),body:Bt(e[0])}},htmlBuilder(t,e){var n=jt(t.body,e,!0),r=F.makeSpan([t.mclass],n,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(t,e){var n=Bn(t.body,e),r=new te.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Ote={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},j7=()=>({type:"styling",body:[],mode:"math",style:"display"}),U7=t=>t.type==="textord"&&t.text==="@",Ite=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Pte(t,e,n){var r=Ote[t];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[s],[]),l=n.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[o,a,l]};return n.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Lte(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new oe("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var r=[],o=[r],s=0;s<e.length;s++){for(var a=e[s],l=j7(),c=0;c<a.length;c++)if(!U7(a[c]))l.body.push(a[c]);else{r.push(l),c+=1;var u=Hm(a[c]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,h=c+1;h<a.length;h++){if(Ite(a[h],u)){p=!1,c=h;break}if(U7(a[h]))throw new oe("Missing a "+u+" character to complete a CD arrow.",a[h]);d[f].body.push(a[h])}if(p)throw new oe("Missing a "+u+" character to complete a CD arrow.",a[c])}else throw new oe('Expected one of "<>AV=|." after @',a[c]);var m=Pte(u,d,t),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),l=j7()}s%2===0?r.push(l):r.shift(),r=[],o.push(r)}t.gullet.endGroup(),t.gullet.endGroup();var b=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}he({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),r=F.wrapFragment(et(t.label,n,e),e);return r.classes.push("cd-label-"+t.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(t,e){var n=new te.MathNode("mrow",[ct(t.label,e)]);return n=new te.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new te.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),he({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=F.wrapFragment(et(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(t,e){return new te.MathNode("mrow",[ct(t.fragment,e)])}}),he({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:n}=t,r=je(e[0],"ordgroup"),o=r.body,s="",a=0;a<o.length;a++){var l=je(o[a],"textord");s+=l.text}var c=parseInt(s),u;if(isNaN(c))throw new oe("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new oe("\\@char with invalid code point "+s);return c<=65535?u=String.fromCharCode(c):(c-=65536,u=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var q7=(t,e)=>{var n=jt(t.body,e.withColor(t.color),!1);return F.makeFragment(n)},W7=(t,e)=>{var n=Bn(t.body,e.withColor(t.color)),r=new te.MathNode("mstyle",n);return r.setAttribute("mathcolor",t.color),r};he({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,r=je(e[0],"color-token").color,o=e[1];return{type:"color",mode:n.mode,color:r,body:Bt(o)}},htmlBuilder:q7,mathmlBuilder:W7}),he({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:r}=t,o=je(e[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:q7,mathmlBuilder:W7}),he({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:r}=t,o=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:o&&je(o,"size").value}},htmlBuilder(t,e){var n=F.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=se(xt(t.size,e)))),n},mathmlBuilder(t,e){var n=new te.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",se(xt(t.size,e)))),n}});var Um={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},K7=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new oe("Expected a control sequence",t);return e},Rte=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},G7=(t,e,n,r)=>{var o=t.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,o,r)};he({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var r=e.fetch();if(Um[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Um[r.text]),je(e.parseFunction(),"internal");throw new oe("Invalid token after macro prefix",r)}}),he({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=e.gullet.popToken(),o=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new oe("Expected a control sequence",r);for(var s=0,a,l=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){a=e.gullet.future(),l[s].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new oe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new oe('Argument number "'+r.text+'" out of order');s++,l.push([])}else{if(r.text==="EOF")throw new oe("Expected a macro definition");l[s].push(r.text)}var{tokens:c}=e.gullet.consumeArg();return a&&c.unshift(a),(n==="\\edef"||n==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(o,{tokens:c,numArgs:s,delimiters:l},n===Um[n]),{type:"internal",mode:e.mode}}}),he({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=K7(e.gullet.popToken());e.gullet.consumeSpaces();var o=Rte(e);return G7(e,r,o,n==="\\\\globallet"),{type:"internal",mode:e.mode}}}),he({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=K7(e.gullet.popToken()),o=e.gullet.popToken(),s=e.gullet.popToken();return G7(e,r,s,n==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(o),{type:"internal",mode:e.mode}}});var Ul=function(e,n,r){var o=pt.math[e]&&pt.math[e].replace,s=Am(o||e,n,r);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return s},qm=function(e,n,r,o){var s=r.havingBaseStyle(n),a=F.makeSpan(o.concat(s.sizingClasses(r)),[e],r),l=s.sizeMultiplier/r.sizeMultiplier;return a.height*=l,a.depth*=l,a.maxFontSize=s.sizeMultiplier,a},J7=function(e,n,r){var o=n.havingBaseStyle(r),s=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=se(s),e.height-=s,e.depth+=s},zte=function(e,n,r,o,s,a){var l=F.makeSymbol(e,"Main-Regular",s,o),c=qm(l,n,o,a);return r&&J7(c,o,n),c},Fte=function(e,n,r,o){return F.makeSymbol(e,"Size"+n+"-Regular",r,o)},X7=function(e,n,r,o,s,a){var l=Fte(e,n,s,o),c=qm(F.makeSpan(["delimsizing","size"+n],[l],o),De.TEXT,o,a);return r&&J7(c,o,De.TEXT),c},Wm=function(e,n,r){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=F.makeSpan(["delimsizinginner",o],[F.makeSpan([],[F.makeSymbol(e,n,r)])]);return{type:"elem",elem:s}},Km=function(e,n,r){var o=to["Size4-Regular"][e.charCodeAt(0)]?to["Size4-Regular"][e.charCodeAt(0)][4]:to["Size1-Regular"][e.charCodeAt(0)][4],s=new bi("inner",qee(e,Math.round(1e3*n))),a=new xo([s],{width:se(o),height:se(n),style:"width:"+se(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),l=F.makeSvgSpan([],[a],r);return l.height=n,l.style.height=se(n),l.style.width=se(o),{type:"elem",elem:l}},Gm=.008,Zd={type:"kern",size:-1*Gm},$te=["|","\\lvert","\\rvert","\\vert"],Vte=["\\|","\\lVert","\\rVert","\\Vert"],Y7=function(e,n,r,o,s,a){var l,c,u,d,f="",p=0;l=u=d=e,c=null;var h="Size1-Regular";e==="\\uparrow"?u=d="\u23D0":e==="\\Uparrow"?u=d="\u2016":e==="\\downarrow"?l=u="\u23D0":e==="\\Downarrow"?l=u="\u2016":e==="\\updownarrow"?(l="\\uparrow",u="\u23D0",d="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",u="\u2016",d="\\Downarrow"):Te.contains($te,e)?(u="\u2223",f="vert",p=333):Te.contains(Vte,e)?(u="\u2225",f="doublevert",p=556):e==="["||e==="\\lbrack"?(l="\u23A1",u="\u23A2",d="\u23A3",h="Size4-Regular",f="lbrack",p=667):e==="]"||e==="\\rbrack"?(l="\u23A4",u="\u23A5",d="\u23A6",h="Size4-Regular",f="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(u=l="\u23A2",d="\u23A3",h="Size4-Regular",f="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(l="\u23A1",u=d="\u23A2",h="Size4-Regular",f="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(u=l="\u23A5",d="\u23A6",h="Size4-Regular",f="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(l="\u23A4",u=d="\u23A5",h="Size4-Regular",f="rceil",p=667):e==="("||e==="\\lparen"?(l="\u239B",u="\u239C",d="\u239D",h="Size4-Regular",f="lparen",p=875):e===")"||e==="\\rparen"?(l="\u239E",u="\u239F",d="\u23A0",h="Size4-Regular",f="rparen",p=875):e==="\\{"||e==="\\lbrace"?(l="\u23A7",c="\u23A8",d="\u23A9",u="\u23AA",h="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="\u23AB",c="\u23AC",d="\u23AD",u="\u23AA",h="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(l="\u23A7",d="\u23A9",u="\u23AA",h="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(l="\u23AB",d="\u23AD",u="\u23AA",h="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(l="\u23A7",d="\u23AD",u="\u23AA",h="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(l="\u23AB",d="\u23A9",u="\u23AA",h="Size4-Regular");var m=Ul(l,h,s),g=m.height+m.depth,b=Ul(u,h,s),y=b.height+b.depth,S=Ul(d,h,s),k=S.height+S.depth,C=0,_=1;if(c!==null){var E=Ul(c,h,s);C=E.height+E.depth,_=2}var T=g+k+C,M=Math.max(0,Math.ceil((n-T)/(_*y))),D=T+M*_*y,L=o.fontMetrics().axisHeight;r&&(L*=o.sizeMultiplier);var $=D/2-L,V=[];if(f.length>0){var W=D-g-k,ee=Math.round(D*1e3),J=Wee(f,Math.round(W*1e3)),I=new bi(f,J),B=(p/1e3).toFixed(3)+"em",H=(ee/1e3).toFixed(3)+"em",K=new xo([I],{width:B,height:H,viewBox:"0 0 "+p+" "+ee}),ae=F.makeSvgSpan([],[K],o);ae.height=ee/1e3,ae.style.width=B,ae.style.height=H,V.push({type:"elem",elem:ae})}else{if(V.push(Wm(d,h,s)),V.push(Zd),c===null){var ye=D-g-k+2*Gm;V.push(Km(u,ye,o))}else{var le=(D-g-k-C)/2+2*Gm;V.push(Km(u,le,o)),V.push(Zd),V.push(Wm(c,h,s)),V.push(Zd),V.push(Km(u,le,o))}V.push(Zd),V.push(Wm(l,h,s))}var re=o.havingBaseStyle(De.TEXT),de=F.makeVList({positionType:"bottom",positionData:$,children:V},re);return qm(F.makeSpan(["delimsizing","mult"],[de],re),De.TEXT,o,a)},Jm=80,Xm=.08,Ym=function(e,n,r,o,s){var a=Uee(e,o,r),l=new bi(e,a),c=new xo([l],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return F.makeSvgSpan(["hide-tail"],[c],s)},Hte=function(e,n){var r=n.havingBaseSizing(),o=tw("\\surd",e*r.sizeMultiplier,ew,r),s=r.sizeMultiplier,a=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),l,c=0,u=0,d=0,f;return o.type==="small"?(d=1e3+1e3*a+Jm,e<1?s=1:e<1.4&&(s=.7),c=(1+a+Xm)/s,u=(1+a)/s,l=Ym("sqrtMain",c,d,a,n),l.style.minWidth="0.853em",f=.833/s):o.type==="large"?(d=(1e3+Jm)*ql[o.size],u=(ql[o.size]+a)/s,c=(ql[o.size]+a+Xm)/s,l=Ym("sqrtSize"+o.size,c,d,a,n),l.style.minWidth="1.02em",f=1/s):(c=e+a+Xm,u=e+a,d=Math.floor(1e3*e+a)+Jm,l=Ym("sqrtTall",c,d,a,n),l.style.minWidth="0.742em",f=1.056),l.height=u,l.style.height=se(c),{span:l,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+a)*s}},Z7=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],jte=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Q7=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ql=[0,1.2,1.8,2.4,3],Ute=function(e,n,r,o,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Te.contains(Z7,e)||Te.contains(Q7,e))return X7(e,n,!1,r,o,s);if(Te.contains(jte,e))return Y7(e,ql[n],!1,r,o,s);throw new oe("Illegal delimiter: '"+e+"'")},qte=[{type:"small",style:De.SCRIPTSCRIPT},{type:"small",style:De.SCRIPT},{type:"small",style:De.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Wte=[{type:"small",style:De.SCRIPTSCRIPT},{type:"small",style:De.SCRIPT},{type:"small",style:De.TEXT},{type:"stack"}],ew=[{type:"small",style:De.SCRIPTSCRIPT},{type:"small",style:De.SCRIPT},{type:"small",style:De.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Kte=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},tw=function(e,n,r,o){for(var s=Math.min(2,3-o.style.size),a=s;a<r.length&&r[a].type!=="stack";a++){var l=Ul(e,Kte(r[a]),"math"),c=l.height+l.depth;if(r[a].type==="small"){var u=o.havingBaseStyle(r[a].style);c*=u.sizeMultiplier}if(c>n)return r[a]}return r[r.length-1]},nw=function(e,n,r,o,s,a){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var l;Te.contains(Q7,e)?l=qte:Te.contains(Z7,e)?l=ew:l=Wte;var c=tw(e,n,l,o);return c.type==="small"?zte(e,c.style,r,o,s,a):c.type==="large"?X7(e,c.size,r,o,s,a):Y7(e,n,r,o,s,a)},Gte=function(e,n,r,o,s,a){var l=o.fontMetrics().axisHeight*o.sizeMultiplier,c=901,u=5/o.fontMetrics().ptPerEm,d=Math.max(n-l,r+l),f=Math.max(d/500*c,2*d-u);return nw(e,f,!0,o,s,a)},Mo={sqrtImage:Hte,sizedDelim:Ute,sizeToMaxHeight:ql,customSizedDelim:nw,leftRightDelim:Gte},rw={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Jte=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Qd(t,e){var n=Jd(t);if(n&&Te.contains(Jte,n.text))return n;throw n?new oe("Invalid delimiter '"+n.text+"' after '"+e.funcName+"'",t):new oe("Invalid delimiter type '"+t.type+"'",t)}he({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var n=Qd(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:rw[t.funcName].size,mclass:rw[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>t.delim==="."?F.makeSpan([t.mclass]):Mo.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(ur(t.delim,t.mode));var n=new te.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se(Mo.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function ow(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}he({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new oe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Qd(e[0],t).text,color:n}}}),he({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=Qd(e[0],t),r=t.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=je(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(t,e)=>{ow(t);for(var n=jt(t.body,e,!0,["mopen","mclose"]),r=0,o=0,s=!1,a=0;a<n.length;a++)n[a].isMiddle?s=!0:(r=Math.max(n[a].height,r),o=Math.max(n[a].depth,o));r*=e.sizeMultiplier,o*=e.sizeMultiplier;var l;if(t.left==="."?l=Hl(e,["mopen"]):l=Mo.leftRightDelim(t.left,r,o,e,t.mode,["mopen"]),n.unshift(l),s)for(var c=1;c<n.length;c++){var u=n[c],d=u.isMiddle;d&&(n[c]=Mo.leftRightDelim(d.delim,r,o,d.options,t.mode,[]))}var f;if(t.right===".")f=Hl(e,["mclose"]);else{var p=t.rightColor?e.withColor(t.rightColor):e;f=Mo.leftRightDelim(t.right,r,o,p,t.mode,["mclose"])}return n.push(f),F.makeSpan(["minner"],n,e)},mathmlBuilder:(t,e)=>{ow(t);var n=Bn(t.body,e);if(t.left!=="."){var r=new te.MathNode("mo",[ur(t.left,t.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(t.right!=="."){var o=new te.MathNode("mo",[ur(t.right,t.mode)]);o.setAttribute("fence","true"),t.rightColor&&o.setAttribute("mathcolor",t.rightColor),n.push(o)}return $m(n)}}),he({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=Qd(e[0],t);if(!t.parser.leftrightDepth)throw new oe("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=Hl(e,[]);else{n=Mo.sizedDelim(t.delim,1,e,t.mode,[]);var r={delim:t.delim,options:e};n.isMiddle=r}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?ur("|","text"):ur(t.delim,t.mode),r=new te.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Zm=(t,e)=>{var n=F.wrapFragment(et(t.body,e),e),r=t.label.slice(1),o=e.sizeMultiplier,s,a=0,l=Te.isCharacterBox(t.body);if(r==="sout")s=F.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/o,a=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var c=xt({number:.6,unit:"pt"},e),u=xt({number:.35,unit:"ex"},e),d=e.havingBaseSizing();o=o/d.sizeMultiplier;var f=n.height+n.depth+c+u;n.style.paddingLeft=se(f/2+c);var p=Math.floor(1e3*f*o),h=Hee(p),m=new xo([new bi("phase",h)],{width:"400em",height:se(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});s=F.makeSvgSpan(["hide-tail"],[m],e),s.style.height=se(f),a=n.depth+c+u}else{/cancel/.test(r)?l||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,b=0,y=0;/box/.test(r)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(r==="colorbox"?0:y),b=g):r==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*y,b=Math.max(0,.25-n.depth)):(g=l?.2:0,b=g),s=Do.encloseSpan(n,r,g,b,e),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=se(y)):r==="angl"&&y!==.049&&(s.style.borderTopWidth=se(y),s.style.borderRightWidth=se(y)),a=n.depth+b,t.backgroundColor&&(s.style.backgroundColor=t.backgroundColor,t.borderColor&&(s.style.borderColor=t.borderColor))}var S;if(t.backgroundColor)S=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:a},{type:"elem",elem:n,shift:0}]},e);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];S=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:a,wrapperClasses:k}]},e)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!l?F.makeSpan(["mord","cancel-lap"],[S],e):F.makeSpan(["mord"],[S],e)},Qm=(t,e)=>{var n=0,r=new te.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ct(t.body,e)]);switch(t.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var o=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(t.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&r.setAttribute("mathbackground",t.backgroundColor),r};he({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:r,funcName:o}=t,s=je(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:s,body:a}},htmlBuilder:Zm,mathmlBuilder:Qm}),he({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:r,funcName:o}=t,s=je(e[0],"color-token").color,a=je(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:s,body:l}},htmlBuilder:Zm,mathmlBuilder:Qm}),he({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}}),he({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t,o=e[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:Zm,mathmlBuilder:Qm}),he({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var iw={};function no(t){for(var{type:e,names:n,props:r,handler:o,htmlBuilder:s,mathmlBuilder:a}=t,l={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},c=0;c<n.length;++c)iw[n[c]]=l;s&&(qd[e]=s),a&&(Wd[e]=a)}var sw={};function A(t,e){sw[t]=e}function aw(t){var e=[];t.consumeSpaces();var n=t.fetch().text;for(n==="\\relax"&&(t.consume(),t.consumeSpaces(),n=t.fetch().text);n==="\\hline"||n==="\\hdashline";)t.consume(),e.push(n==="\\hdashline"),t.consumeSpaces(),n=t.fetch().text;return e}var e0=t=>{var e=t.parser.settings;if(!e.displayMode)throw new oe("{"+t.envName+"} can be used only in display mode.")};function e1(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function vi(t,e,n){var{hskipBeforeAndAfter:r,addJot:o,cols:s,arraystretch:a,colSeparationType:l,autoTag:c,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=e;if(t.gullet.beginGroup(),u||t.gullet.macros.set("\\cr","\\\\\\relax"),!a){var h=t.gullet.expandMacroAsText("\\arraystretch");if(h==null)a=1;else if(a=parseFloat(h),!a||a<0)throw new oe("Invalid \\arraystretch: "+h)}t.gullet.beginGroup();var m=[],g=[m],b=[],y=[],S=c!=null?[]:void 0;function k(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function C(){S&&(t.gullet.macros.get("\\df@tag")?(S.push(t.subparse([new sr("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):S.push(Boolean(c)&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),y.push(aw(t));;){var _=t.parseExpression(!1,u?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),_={type:"ordgroup",mode:t.mode,body:_},n&&(_={type:"styling",mode:t.mode,style:n,body:[_]}),m.push(_);var E=t.fetch().text;if(E==="&"){if(f&&m.length===f){if(u||l)throw new oe("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(E==="\\end"){C(),m.length===1&&_.type==="styling"&&_.body[0].body.length===0&&(g.length>1||!d)&&g.pop(),y.length<g.length+1&&y.push([]);break}else if(E==="\\\\"){t.consume();var T=void 0;t.gullet.future().text!==" "&&(T=t.parseSizeGroup(!0)),b.push(T?T.value:null),C(),y.push(aw(t)),m=[],g.push(m),k()}else throw new oe("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:o,arraystretch:a,body:g,cols:s,rowGaps:b,hskipBeforeAndAfter:r,hLinesBeforeRow:y,colSeparationType:l,tags:S,leqno:p}}function t1(t){return t.slice(0,1)==="d"?"display":"text"}var ro=function(e,n){var r,o,s=e.body.length,a=e.hLinesBeforeRow,l=0,c=new Array(s),u=[],d=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),f=1/n.fontMetrics().ptPerEm,p=5*f;if(e.colSeparationType&&e.colSeparationType==="small"){var h=n.havingStyle(De.SCRIPT).sizeMultiplier;p=.2778*(h/n.sizeMultiplier)}var m=e.colSeparationType==="CD"?xt({number:3,unit:"ex"},n):12*f,g=3*f,b=e.arraystretch*m,y=.7*b,S=.3*b,k=0;function C(kt){for(var Ve=0;Ve<kt.length;++Ve)Ve>0&&(k+=.25),u.push({pos:k,isDashed:kt[Ve]})}for(C(a[0]),r=0;r<e.body.length;++r){var _=e.body[r],E=y,T=S;l<_.length&&(l=_.length);var M=new Array(_.length);for(o=0;o<_.length;++o){var D=et(_[o],n);T<D.depth&&(T=D.depth),E<D.height&&(E=D.height),M[o]=D}var L=e.rowGaps[r],$=0;L&&($=xt(L,n),$>0&&($+=S,T<$&&(T=$),$=0)),e.addJot&&(T+=g),M.height=E,M.depth=T,k+=E,M.pos=k,k+=T+$,c[r]=M,C(a[r+1])}var V=k/2+n.fontMetrics().axisHeight,W=e.cols||[],ee=[],J,I,B=[];if(e.tags&&e.tags.some(kt=>kt))for(r=0;r<s;++r){var H=c[r],K=H.pos-V,ae=e.tags[r],ye=void 0;ae===!0?ye=F.makeSpan(["eqn-num"],[],n):ae===!1?ye=F.makeSpan([],[],n):ye=F.makeSpan([],jt(ae,n,!0),n),ye.depth=H.depth,ye.height=H.height,B.push({type:"elem",elem:ye,shift:K})}for(o=0,I=0;o<l||I<W.length;++o,++I){for(var le=W[I]||{},re=!0;le.type==="separator";){if(re||(J=F.makeSpan(["arraycolsep"],[]),J.style.width=se(n.fontMetrics().doubleRuleSep),ee.push(J)),le.separator==="|"||le.separator===":"){var de=le.separator==="|"?"solid":"dashed",fe=F.makeSpan(["vertical-separator"],[],n);fe.style.height=se(k),fe.style.borderRightWidth=se(d),fe.style.borderRightStyle=de,fe.style.margin="0 "+se(-d/2);var Re=k-V;Re&&(fe.style.verticalAlign=se(-Re)),ee.push(fe)}else throw new oe("Invalid separator type: "+le.separator);I++,le=W[I]||{},re=!1}if(!(o>=l)){var Z=void 0;(o>0||e.hskipBeforeAndAfter)&&(Z=Te.deflt(le.pregap,p),Z!==0&&(J=F.makeSpan(["arraycolsep"],[]),J.style.width=se(Z),ee.push(J)));var z=[];for(r=0;r<s;++r){var ce=c[r],ve=ce[o];if(!!ve){var Ae=ce.pos-V;ve.depth=ce.depth,ve.height=ce.height,z.push({type:"elem",elem:ve,shift:Ae})}}z=F.makeVList({positionType:"individualShift",children:z},n),z=F.makeSpan(["col-align-"+(le.align||"c")],[z]),ee.push(z),(o<l-1||e.hskipBeforeAndAfter)&&(Z=Te.deflt(le.postgap,p),Z!==0&&(J=F.makeSpan(["arraycolsep"],[]),J.style.width=se(Z),ee.push(J)))}}if(c=F.makeSpan(["mtable"],ee),u.length>0){for(var qe=F.makeLineSpan("hline",n,d),rt=F.makeLineSpan("hdashline",n,d),We=[{type:"elem",elem:c,shift:0}];u.length>0;){var ot=u.pop(),ht=ot.pos-V;ot.isDashed?We.push({type:"elem",elem:rt,shift:ht}):We.push({type:"elem",elem:qe,shift:ht})}c=F.makeVList({positionType:"individualShift",children:We},n)}if(B.length===0)return F.makeSpan(["mord"],[c],n);var pe=F.makeVList({positionType:"individualShift",children:B},n);return pe=F.makeSpan(["tag"],[pe],n),F.makeFragment([c,pe])},Xte={c:"center ",l:"left ",r:"right "},oo=function(e,n){for(var r=[],o=new te.MathNode("mtd",[],["mtr-glue"]),s=new te.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var l=e.body[a],c=[],u=0;u<l.length;u++)c.push(new te.MathNode("mtd",[ct(l[u],n)]));e.tags&&e.tags[a]&&(c.unshift(o),c.push(o),e.leqno?c.unshift(s):c.push(s)),r.push(new te.MathNode("mtr",c))}var d=new te.MathNode("mtable",r),f=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",se(f));var p="",h="";if(e.cols&&e.cols.length>0){var m=e.cols,g="",b=!1,y=0,S=m.length;m[0].type==="separator"&&(p+="top ",y=1),m[m.length-1].type==="separator"&&(p+="bottom ",S-=1);for(var k=y;k<S;k++)m[k].type==="align"?(h+=Xte[m[k].align],b&&(g+="none "),b=!0):m[k].type==="separator"&&b&&(g+=m[k].separator==="|"?"solid ":"dashed ",b=!1);d.setAttribute("columnalign",h.trim()),/[sd]/.test(g)&&d.setAttribute("columnlines",g.trim())}if(e.colSeparationType==="align"){for(var C=e.cols||[],_="",E=1;E<C.length;E++)_+=E%2?"0em ":"1em ";d.setAttribute("columnspacing",_.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var T="",M=e.hLinesBeforeRow;p+=M[0].length>0?"left ":"",p+=M[M.length-1].length>0?"right ":"";for(var D=1;D<M.length-1;D++)T+=M[D].length===0?"none ":M[D][0]?"dashed ":"solid ";return/[sd]/.test(T)&&d.setAttribute("rowlines",T.trim()),p!==""&&(d=new te.MathNode("menclose",[d]),d.setAttribute("notation",p.trim())),e.arraystretch&&e.arraystretch<1&&(d=new te.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},lw=function(e,n){e.envName.indexOf("ed")===-1&&e0(e);var r=[],o=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",a=vi(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:e1(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l,c=0,u={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f<n[0].body.length;f++){var p=je(n[0].body[f],"textord");d+=p.text}l=Number(d),c=l*2}var h=!c;a.body.forEach(function(y){for(var S=1;S<y.length;S+=2){var k=je(y[S],"styling"),C=je(k.body[0],"ordgroup");C.body.unshift(u)}if(h)c<y.length&&(c=y.length);else{var _=y.length/2;if(l<_)throw new oe("Too many math in a row: "+("expected "+l+", but got "+_),y[0])}});for(var m=0;m<c;++m){var g="r",b=0;m%2===1?g="l":m>0&&h&&(b=1),r[m]={type:"align",align:g,pregap:b,postgap:0}}return a.colSeparationType=h?"align":"alignat",a};no({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=Jd(e[0]),r=n?[e[0]]:je(e[0],"ordgroup").body,o=r.map(function(a){var l=Hm(a),c=l.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new oe("Unknown column alignment: "+c,a)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return vi(t.parser,s,t1(t.envName))},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var o=t.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,"lcr".indexOf(n)===-1)throw new oe("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),r.cols=[{type:"align",align:n}]}}var s=vi(t.parser,r,t1(t.envName)),a=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(a).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=vi(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=Jd(e[0]),r=n?[e[0]]:je(e[0],"ordgroup").body,o=r.map(function(a){var l=Hm(a),c=l.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new oe("Unknown column alignment: "+c,a)});if(o.length>1)throw new oe("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=vi(t.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new oe("{subarray} can contain only one column");return s},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=vi(t.parser,e,t1(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:lw,htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Te.contains(["gather","gather*"],t.envName)&&e0(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:e1(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return vi(t.parser,e,"display")},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:lw,htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){e0(t);var e={autoTag:e1(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return vi(t.parser,e,"display")},htmlBuilder:ro,mathmlBuilder:oo}),no({type:"array",names:["CD"],props:{numArgs:0},handler(t){return e0(t),Lte(t.parser)},htmlBuilder:ro,mathmlBuilder:oo}),A("\\nonumber","\\gdef\\@eqnsw{0}"),A("\\notag","\\nonumber"),he({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new oe(t.funcName+" valid only within array environment")}});var cw=iw;he({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:r}=t,o=e[0];if(o.type!=="ordgroup")throw new oe("Invalid environment name",o);for(var s="",a=0;a<o.body.length;++a)s+=je(o.body[a],"textord").text;if(r==="\\begin"){if(!cw.hasOwnProperty(s))throw new oe("No such environment: "+s,o);var l=cw[s],{args:c,optArgs:u}=n.parseArguments("\\begin{"+s+"}",l),d={mode:n.mode,envName:s,parser:n},f=l.handler(d,c,u);n.expect("\\end",!1);var p=n.nextToken,h=je(n.parseFunction(),"environment");if(h.name!==s)throw new oe("Mismatch: \\begin{"+s+"} matched by \\end{"+h.name+"}",p);return f}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var uw=(t,e)=>{var n=t.font,r=e.withFont(n);return et(t.body,r)},dw=(t,e)=>{var n=t.font,r=e.withFont(n);return ct(t.body,r)},fw={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};he({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=Kd(e[0]),s=r;return s in fw&&(s=fw[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:uw,mathmlBuilder:dw}),he({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,r=e[0],o=Te.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Yd(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),he({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,breakOnTokenText:o}=t,{mode:s}=n,a=n.parseExpression(!0,o),l="math"+r.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:uw,mathmlBuilder:dw});var pw=(t,e)=>{var n=e;return t==="display"?n=n.id>=De.SCRIPT.id?n.text():De.DISPLAY:t==="text"&&n.size===De.DISPLAY.size?n=De.TEXT:t==="script"?n=De.SCRIPT:t==="scriptscript"&&(n=De.SCRIPTSCRIPT),n},n1=(t,e)=>{var n=pw(t.size,e.style),r=n.fracNum(),o=n.fracDen(),s;s=e.havingStyle(r);var a=et(t.numer,s,e);if(t.continued){var l=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;a.height=a.height<l?l:a.height,a.depth=a.depth<c?c:a.depth}s=e.havingStyle(o);var u=et(t.denom,s,e),d,f,p;t.hasBarLine?(t.barSize?(f=xt(t.barSize,e),d=F.makeLineSpan("frac-line",e,f)):d=F.makeLineSpan("frac-line",e),f=d.height,p=d.height):(d=null,f=0,p=e.fontMetrics().defaultRuleThickness);var h,m,g;n.size===De.DISPLAY.size||t.size==="display"?(h=e.fontMetrics().num1,f>0?m=3*p:m=7*p,g=e.fontMetrics().denom1):(f>0?(h=e.fontMetrics().num2,m=p):(h=e.fontMetrics().num3,m=3*p),g=e.fontMetrics().denom2);var b;if(d){var S=e.fontMetrics().axisHeight;h-a.depth-(S+.5*f)<m&&(h+=m-(h-a.depth-(S+.5*f))),S-.5*f-(u.height-g)<m&&(g+=m-(S-.5*f-(u.height-g)));var k=-(S-.5*f);b=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:g},{type:"elem",elem:d,shift:k},{type:"elem",elem:a,shift:-h}]},e)}else{var y=h-a.depth-(u.height-g);y<m&&(h+=.5*(m-y),g+=.5*(m-y)),b=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:g},{type:"elem",elem:a,shift:-h}]},e)}s=e.havingStyle(n),b.height*=s.sizeMultiplier/e.sizeMultiplier,b.depth*=s.sizeMultiplier/e.sizeMultiplier;var C;n.size===De.DISPLAY.size?C=e.fontMetrics().delim1:n.size===De.SCRIPTSCRIPT.size?C=e.havingStyle(De.SCRIPT).fontMetrics().delim2:C=e.fontMetrics().delim2;var _,E;return t.leftDelim==null?_=Hl(e,["mopen"]):_=Mo.customSizedDelim(t.leftDelim,C,!0,e.havingStyle(n),t.mode,["mopen"]),t.continued?E=F.makeSpan([]):t.rightDelim==null?E=Hl(e,["mclose"]):E=Mo.customSizedDelim(t.rightDelim,C,!0,e.havingStyle(n),t.mode,["mclose"]),F.makeSpan(["mord"].concat(s.sizingClasses(e)),[_,F.makeSpan(["mfrac"],[b]),E],e)},r1=(t,e)=>{var n=new te.MathNode("mfrac",[ct(t.numer,e),ct(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var r=xt(t.barSize,e);n.setAttribute("linethickness",se(r))}var o=pw(t.size,e.style);if(o.size!==e.style.size){n=new te.MathNode("mstyle",[n]);var s=o.size===De.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var l=new te.MathNode("mo",[new te.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}if(a.push(n),t.rightDelim!=null){var c=new te.MathNode("mo",[new te.TextNode(t.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),a.push(c)}return $m(a)}return n};he({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0],s=e[1],a,l=null,c=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,l="(",c=")";break;case"\\\\bracefrac":a=!1,l="\\{",c="\\}";break;case"\\\\brackfrac":a=!1,l="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:o,denom:s,hasBarLine:a,leftDelim:l,rightDelim:c,size:u,barSize:null}},htmlBuilder:n1,mathmlBuilder:r1}),he({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0],s=e[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),he({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:n,token:r}=t,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:o,token:r}}});var hw=["display","text","script","scriptscript"],mw=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};he({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,r=e[4],o=e[5],s=Kd(e[0]),a=s.type==="atom"&&s.family==="open"?mw(s.text):null,l=Kd(e[1]),c=l.type==="atom"&&l.family==="close"?mw(l.text):null,u=je(e[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",h=e[3];if(h.type==="ordgroup"){if(h.body.length>0){var m=je(h.body[0],"textord");p=hw[Number(m.text)]}}else h=je(h,"textord"),p=hw[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:d,barSize:f,leftDelim:a,rightDelim:c,size:p}},htmlBuilder:n1,mathmlBuilder:r1}),he({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:r,token:o}=t;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:je(e[0],"size").value,token:o}}}),he({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0],s=Aee(je(e[1],"infix").size),a=e[2],l=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:n1,mathmlBuilder:r1});var gw=(t,e)=>{var n=e.style,r,o;t.type==="supsub"?(r=t.sup?et(t.sup,e.havingStyle(n.sup()),e):et(t.sub,e.havingStyle(n.sub()),e),o=je(t.base,"horizBrace")):o=je(t,"horizBrace");var s=et(o.base,e.havingBaseStyle(De.DISPLAY)),a=Do.svgSpan(o,e),l;if(o.isOver?(l=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=F.makeVList({positionType:"bottom",positionData:s.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),r){var c=F.makeSpan(["mord",o.isOver?"mover":"munder"],[l],e);o.isOver?l=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:r}]},e):l=F.makeVList({positionType:"bottom",positionData:c.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return F.makeSpan(["mord",o.isOver?"mover":"munder"],[l],e)},Yte=(t,e)=>{var n=Do.mathMLnode(t.label);return new te.MathNode(t.isOver?"mover":"munder",[ct(t.base,e),n])};he({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:gw,mathmlBuilder:Yte}),he({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[1],o=je(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Bt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=jt(t.body,e,!1);return F.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=wi(t.body,e);return n instanceof cr||(n=new cr("mrow",[n])),n.setAttribute("href",t.href),n}}),he({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=je(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<r.length;s++){var a=r[s];a==="~"&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var l={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:Bt(l)}}}),he({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:n}=t;return{type:"hbox",mode:n.mode,body:Bt(e[0])}},htmlBuilder(t,e){var n=jt(t.body,e,!1);return F.makeFragment(n)},mathmlBuilder(t,e){return new te.MathNode("mrow",Bn(t.body,e))}}),he({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,token:o}=t,s=je(e[0],"raw").string,a=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,c={};switch(r){case"\\htmlClass":c.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var u=s.split(","),d=0;d<u.length;d++){var f=u[d].split("=");if(f.length!==2)throw new oe("Error parsing key-value for \\htmlData");c["data-"+f[0].trim()]=f[1].trim()}l={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(l)?{type:"html",mode:n.mode,attributes:c,body:Bt(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(t,e)=>{var n=jt(t.body,e,!1),r=["enclosing"];t.attributes.class&&r.push(...t.attributes.class.trim().split(/\s+/));var o=F.makeSpan(r,n,e);for(var s in t.attributes)s!=="class"&&t.attributes.hasOwnProperty(s)&&o.setAttribute(s,t.attributes[s]);return o},mathmlBuilder:(t,e)=>wi(t.body,e)}),he({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:Bt(e[0]),mathml:Bt(e[1])}},htmlBuilder:(t,e)=>{var n=jt(t.html,e,!1);return F.makeFragment(n)},mathmlBuilder:(t,e)=>wi(t.mathml,e)});var o1=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new oe("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!y7(r))throw new oe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};he({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:r}=t,o={number:0,unit:"em"},s={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(n[0])for(var c=je(n[0],"raw").string,u=c.split(","),d=0;d<u.length;d++){var f=u[d].split("=");if(f.length===2){var p=f[1].trim();switch(f[0].trim()){case"alt":l=p;break;case"width":o=o1(p);break;case"height":s=o1(p);break;case"totalheight":a=o1(p);break;default:throw new oe("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var h=je(e[0],"url").url;return l===""&&(l=h,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:r.mode,alt:l,width:o,height:s,totalheight:a,src:h}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var n=xt(t.height,e),r=0;t.totalheight.number>0&&(r=xt(t.totalheight,e)-n);var o=0;t.width.number>0&&(o=xt(t.width,e));var s={height:se(n+r)};o>0&&(s.width=se(o)),r>0&&(s.verticalAlign=se(-r));var a=new Yee(t.src,t.alt,s);return a.height=n,a.depth=r,a},mathmlBuilder:(t,e)=>{var n=new te.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var r=xt(t.height,e),o=0;if(t.totalheight.number>0&&(o=xt(t.totalheight,e)-r,n.setAttribute("valign",se(-o))),n.setAttribute("height",se(r+o)),t.width.number>0){var s=xt(t.width,e);n.setAttribute("width",se(s))}return n.setAttribute("src",t.src),n}}),he({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,o=je(e[0],"size");if(n.settings.strict){var s=r[1]==="m",a=o.value.unit==="mu";s?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(t,e){return F.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=xt(t.dimension,e);return new te.SpaceNode(n)}}),he({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=F.makeSpan([],[et(t.body,e)]),n=F.makeSpan(["inner"],[n],e)):n=F.makeSpan(["inner"],[et(t.body,e)]);var r=F.makeSpan(["fix"],[]),o=F.makeSpan([t.alignment],[n,r],e),s=F.makeSpan(["strut"]);return s.style.height=se(o.height+o.depth),o.depth&&(s.style.verticalAlign=se(-o.depth)),o.children.unshift(s),o=F.makeSpan(["thinbox"],[o],e),F.makeSpan(["mord","vbox"],[o],e)},mathmlBuilder:(t,e)=>{var n=new te.MathNode("mpadded",[ct(t.body,e)]);if(t.alignment!=="rlap"){var r=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),he({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:r}=t,o=r.mode;r.switchMode("math");var s=n==="\\("?"\\)":"$",a=r.parseExpression(!1,s);return r.expect(s),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),he({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new oe("Mismatched "+t.funcName)}});var bw=(t,e)=>{switch(e.style.size){case De.DISPLAY.size:return t.display;case De.TEXT.size:return t.text;case De.SCRIPT.size:return t.script;case De.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};he({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"mathchoice",mode:n.mode,display:Bt(e[0]),text:Bt(e[1]),script:Bt(e[2]),scriptscript:Bt(e[3])}},htmlBuilder:(t,e)=>{var n=bw(t,e),r=jt(n,e,!1);return F.makeFragment(r)},mathmlBuilder:(t,e)=>{var n=bw(t,e);return wi(n,e)}});var yw=(t,e,n,r,o,s,a)=>{t=F.makeSpan([],[t]);var l=n&&Te.isCharacterBox(n),c,u;if(e){var d=et(e,r.havingStyle(o.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=et(n,r.havingStyle(o.sub()),r);c={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&c){var h=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+t.depth+a;p=F.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:se(-s)},{type:"kern",size:c.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:se(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var m=t.height-a;p=F.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:se(-s)},{type:"kern",size:c.kern},{type:"elem",elem:t}]},r)}else if(u){var g=t.depth+a;p=F.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:se(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return t;var b=[p];if(c&&s!==0&&!l){var y=F.makeSpan(["mspace"],[],r);y.style.marginRight=se(s),b.unshift(y)}return F.makeSpan(["mop","op-limits"],b,r)},ww=["\\smallint"],va=(t,e)=>{var n,r,o=!1,s;t.type==="supsub"?(n=t.sup,r=t.sub,s=je(t.base,"op"),o=!0):s=je(t,"op");var a=e.style,l=!1;a.size===De.DISPLAY.size&&s.symbol&&!Te.contains(ww,s.name)&&(l=!0);var c;if(s.symbol){var u=l?"Size2-Regular":"Size1-Regular",d="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(d=s.name.slice(1),s.name=d==="oiint"?"\\iint":"\\iiint"),c=F.makeSymbol(s.name,u,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),d.length>0){var f=c.italic,p=F.staticSvg(d+"Size"+(l?"2":"1"),e);c=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},e),s.name="\\"+d,c.classes.unshift("mop"),c.italic=f}}else if(s.body){var h=jt(s.body,e,!0);h.length===1&&h[0]instanceof lr?(c=h[0],c.classes[0]="mop"):c=F.makeSpan(["mop"],h,e)}else{for(var m=[],g=1;g<s.name.length;g++)m.push(F.mathsym(s.name[g],s.mode,e));c=F.makeSpan(["mop"],m,e)}var b=0,y=0;return(c instanceof lr||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(b=(c.height-c.depth)/2-e.fontMetrics().axisHeight,y=c.italic),o?yw(c,n,r,e,a,y,b):(b&&(c.style.position="relative",c.style.top=se(b)),c)},Wl=(t,e)=>{var n;if(t.symbol)n=new cr("mo",[ur(t.name,t.mode)]),Te.contains(ww,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new cr("mo",Bn(t.body,e));else{n=new cr("mi",[new jl(t.name.slice(1))]);var r=new cr("mo",[ur("\u2061","text")]);t.parentIsSupSub?n=new cr("mrow",[n,r]):n=L7([n,r])}return n},Zte={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};he({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=r;return o.length===1&&(o=Zte[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:va,mathmlBuilder:Wl}),he({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Bt(r)}},htmlBuilder:va,mathmlBuilder:Wl});var Qte={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};he({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:va,mathmlBuilder:Wl}),he({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:va,mathmlBuilder:Wl}),he({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,r=n;return r.length===1&&(r=Qte[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:va,mathmlBuilder:Wl});var vw=(t,e)=>{var n,r,o=!1,s;t.type==="supsub"?(n=t.sup,r=t.sub,s=je(t.base,"operatorname"),o=!0):s=je(t,"operatorname");var a;if(s.body.length>0){for(var l=s.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),c=jt(l,e.withFont("mathrm"),!0),u=0;u<c.length;u++){var d=c[u];d instanceof lr&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=F.makeSpan(["mop"],c,e)}else a=F.makeSpan(["mop"],[],e);return o?yw(a,n,r,e,e.style,0,0):a},ene=(t,e)=>{for(var n=Bn(t.body,e.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof te.SpaceNode))if(s instanceof te.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=s.children[0];s.children.length===1&&a instanceof te.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var l=n.map(d=>d.toText()).join("");n=[new te.TextNode(l)]}var c=new te.MathNode("mi",n);c.setAttribute("mathvariant","normal");var u=new te.MathNode("mo",[ur("\u2061","text")]);return t.parentIsSupSub?new te.MathNode("mrow",[c,u]):te.newDocumentFragment([c,u])};he({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,o=e[0];return{type:"operatorname",mode:n.mode,body:Bt(o),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:vw,mathmlBuilder:ene}),A("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ds({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?F.makeFragment(jt(t.body,e,!1)):F.makeSpan(["mord"],jt(t.body,e,!0),e)},mathmlBuilder(t,e){return wi(t.body,e,!0)}}),he({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,r=e[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(t,e){var n=et(t.body,e.havingCrampedStyle()),r=F.makeLineSpan("overline-line",e),o=e.fontMetrics().defaultRuleThickness,s=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},e);return F.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(t,e){var n=new te.MathNode("mo",[new te.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new te.MathNode("mover",[ct(t.body,e),n]);return r.setAttribute("accent","true"),r}}),he({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"phantom",mode:n.mode,body:Bt(r)}},htmlBuilder:(t,e)=>{var n=jt(t.body,e.withPhantom(),!1);return F.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=Bn(t.body,e);return new te.MathNode("mphantom",n)}}),he({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=F.makeSpan([],[et(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e),F.makeSpan(["mord"],[n],e)},mathmlBuilder:(t,e)=>{var n=Bn(Bt(t.body),e),r=new te.MathNode("mphantom",n),o=new te.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),he({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=F.makeSpan(["inner"],[et(t.body,e.withPhantom())]),r=F.makeSpan(["fix"],[]);return F.makeSpan(["mord","rlap"],[n,r],e)},mathmlBuilder:(t,e)=>{var n=Bn(Bt(t.body),e),r=new te.MathNode("mphantom",n),o=new te.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),he({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,r=je(e[0],"size").value,o=e[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(t,e){var n=et(t.body,e),r=xt(t.dy,e);return F.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new te.MathNode("mpadded",[ct(t.body,e)]),r=t.dy.number+t.dy.unit;return n.setAttribute("voffset",r),n}}),he({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}}),he({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,n){var{parser:r}=t,o=n[0],s=je(e[0],"size"),a=je(e[1],"size");return{type:"rule",mode:r.mode,shift:o&&je(o,"size").value,width:s.value,height:a.value}},htmlBuilder(t,e){var n=F.makeSpan(["mord","rule"],[],e),r=xt(t.width,e),o=xt(t.height,e),s=t.shift?xt(t.shift,e):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(o),n.style.bottom=se(s),n.width=r,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=xt(t.width,e),r=xt(t.height,e),o=t.shift?xt(t.shift,e):0,s=e.color&&e.getColor()||"black",a=new te.MathNode("mspace");a.setAttribute("mathbackground",s),a.setAttribute("width",se(n)),a.setAttribute("height",se(r));var l=new te.MathNode("mpadded",[a]);return o>=0?l.setAttribute("height",se(o)):(l.setAttribute("height",se(o)),l.setAttribute("depth",se(-o))),l.setAttribute("voffset",se(o)),l}});function Cw(t,e,n){for(var r=jt(t,e,!1),o=e.sizeMultiplier/n.sizeMultiplier,s=0;s<r.length;s++){var a=r[s].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[s].classes,e.sizingClasses(n)):r[s].classes[a+1]==="reset-size"+e.size&&(r[s].classes[a+1]="reset-size"+n.size),r[s].height*=o,r[s].depth*=o}return F.makeFragment(r)}var kw=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],tne=(t,e)=>{var n=e.havingSize(t.size);return Cw(t.body,n,e)};he({type:"sizing",names:kw,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:r,parser:o}=t,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:kw.indexOf(r)+1,body:s}},htmlBuilder:tne,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),r=Bn(t.body,n),o=new te.MathNode("mstyle",r);return o.setAttribute("mathsize",se(n.sizeMultiplier)),o}}),he({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:r}=t,o=!1,s=!1,a=n[0]&&je(n[0],"ordgroup");if(a)for(var l="",c=0;c<a.body.length;++c){var u=a.body[c];if(l=u.text,l==="t")o=!0;else if(l==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var d=e[0];return{type:"smash",mode:r.mode,body:d,smashHeight:o,smashDepth:s}},htmlBuilder:(t,e)=>{var n=F.makeSpan([],[et(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(t.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var s=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e);return F.makeSpan(["mord"],[s],e)},mathmlBuilder:(t,e)=>{var n=new te.MathNode("mpadded",[ct(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}}),he({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r}=t,o=n[0],s=e[0];return{type:"sqrt",mode:r.mode,body:s,index:o}},htmlBuilder(t,e){var n=et(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=F.wrapFragment(n,e);var r=e.fontMetrics(),o=r.defaultRuleThickness,s=o;e.style.id<De.TEXT.id&&(s=e.fontMetrics().xHeight);var a=o+s/4,l=n.height+n.depth+a+o,{span:c,ruleWidth:u,advanceWidth:d}=Mo.sqrtImage(l,e),f=c.height-u;f>n.height+n.depth+a&&(a=(a+f-n.height-n.depth)/2);var p=c.height-n.height-a-u;n.style.paddingLeft=se(d);var h=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:c},{type:"kern",size:u}]},e);if(t.index){var m=e.havingStyle(De.SCRIPTSCRIPT),g=et(t.index,m,e),b=.6*(h.height-h.depth),y=F.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:g}]},e),S=F.makeSpan(["root"],[y]);return F.makeSpan(["mord","sqrt"],[S,h],e)}else return F.makeSpan(["mord","sqrt"],[h],e)},mathmlBuilder(t,e){var{body:n,index:r}=t;return r?new te.MathNode("mroot",[ct(n,e),ct(r,e)]):new te.MathNode("msqrt",[ct(n,e)])}});var Sw={display:De.DISPLAY,text:De.TEXT,script:De.SCRIPT,scriptscript:De.SCRIPTSCRIPT};he({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:n,funcName:r,parser:o}=t,s=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:s}},htmlBuilder(t,e){var n=Sw[t.style],r=e.havingStyle(n).withFont("");return Cw(t.body,r,e)},mathmlBuilder(t,e){var n=Sw[t.style],r=e.havingStyle(n),o=Bn(t.body,r),s=new te.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=a[t.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var nne=function(e,n){var r=e.base;if(r)if(r.type==="op"){var o=r.limits&&(n.style.size===De.DISPLAY.size||r.alwaysHandleSupSub);return o?va:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(n.style.size===De.DISPLAY.size||r.limits);return s?vw:null}else{if(r.type==="accent")return Te.isCharacterBox(r.base)?jm:null;if(r.type==="horizBrace"){var a=!e.sub;return a===r.isOver?gw:null}else return null}else return null};ds({type:"supsub",htmlBuilder(t,e){var n=nne(t,e);if(n)return n(t,e);var{base:r,sup:o,sub:s}=t,a=et(r,e),l,c,u=e.fontMetrics(),d=0,f=0,p=r&&Te.isCharacterBox(r);if(o){var h=e.havingStyle(e.style.sup());l=et(o,h,e),p||(d=a.height-h.fontMetrics().supDrop*h.sizeMultiplier/e.sizeMultiplier)}if(s){var m=e.havingStyle(e.style.sub());c=et(s,m,e),p||(f=a.depth+m.fontMetrics().subDrop*m.sizeMultiplier/e.sizeMultiplier)}var g;e.style===De.DISPLAY?g=u.sup1:e.style.cramped?g=u.sup3:g=u.sup2;var b=e.sizeMultiplier,y=se(.5/u.ptPerEm/b),S=null;if(c){var k=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(a instanceof lr||k)&&(S=se(-a.italic))}var C;if(l&&c){d=Math.max(d,g,l.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var _=u.defaultRuleThickness,E=4*_;if(d-l.depth-(c.height-f)<E){f=E-(d-l.depth)+c.height;var T=.8*u.xHeight-(d-l.depth);T>0&&(d+=T,f-=T)}var M=[{type:"elem",elem:c,shift:f,marginRight:y,marginLeft:S},{type:"elem",elem:l,shift:-d,marginRight:y}];C=F.makeVList({positionType:"individualShift",children:M},e)}else if(c){f=Math.max(f,u.sub1,c.height-.8*u.xHeight);var D=[{type:"elem",elem:c,marginLeft:S,marginRight:y}];C=F.makeVList({positionType:"shift",positionData:f,children:D},e)}else if(l)d=Math.max(d,g,l.depth+.25*u.xHeight),C=F.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:l,marginRight:y}]},e);else throw new Error("supsub must have either sup or sub.");var L=zm(a,"right")||"mord";return F.makeSpan([L],[a,F.makeSpan(["msupsub"],[C])],e)},mathmlBuilder(t,e){var n=!1,r,o;t.base&&t.base.type==="horizBrace"&&(o=!!t.sup,o===t.base.isOver&&(n=!0,r=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var s=[ct(t.base,e)];t.sub&&s.push(ct(t.sub,e)),t.sup&&s.push(ct(t.sup,e));var a;if(n)a=r?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===De.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===De.DISPLAY||u.limits)?a="munderover":a="msubsup"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===De.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===De.DISPLAY)?a="munder":a="msub"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===De.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===De.DISPLAY)?a="mover":a="msup"}return new te.MathNode(a,s)}}),ds({type:"atom",htmlBuilder(t,e){return F.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new te.MathNode("mo",[ur(t.text,t.mode)]);if(t.family==="bin"){var r=Vm(t,e);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var Ew={mi:"italic",mn:"normal",mtext:"normal"};ds({type:"mathord",htmlBuilder(t,e){return F.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new te.MathNode("mi",[ur(t.text,t.mode,e)]),r=Vm(t,e)||"italic";return r!==Ew[n.type]&&n.setAttribute("mathvariant",r),n}}),ds({type:"textord",htmlBuilder(t,e){return F.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=ur(t.text,t.mode,e),r=Vm(t,e)||"normal",o;return t.mode==="text"?o=new te.MathNode("mtext",[n]):/[0-9]/.test(t.text)?o=new te.MathNode("mn",[n]):t.text==="\\prime"?o=new te.MathNode("mo",[n]):o=new te.MathNode("mi",[n]),r!==Ew[o.type]&&o.setAttribute("mathvariant",r),o}});var i1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},s1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ds({type:"spacing",htmlBuilder(t,e){if(s1.hasOwnProperty(t.text)){var n=s1[t.text].className||"";if(t.mode==="text"){var r=F.makeOrd(t,e,"textord");return r.classes.push(n),r}else return F.makeSpan(["mspace",n],[F.mathsym(t.text,t.mode,e)],e)}else{if(i1.hasOwnProperty(t.text))return F.makeSpan(["mspace",i1[t.text]],[],e);throw new oe('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(s1.hasOwnProperty(t.text))n=new te.MathNode("mtext",[new te.TextNode("\xA0")]);else{if(i1.hasOwnProperty(t.text))return new te.MathNode("mspace");throw new oe('Unknown type of space "'+t.text+'"')}return n}});var xw=()=>{var t=new te.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};ds({type:"tag",mathmlBuilder(t,e){var n=new te.MathNode("mtable",[new te.MathNode("mtr",[xw(),new te.MathNode("mtd",[wi(t.body,e)]),xw(),new te.MathNode("mtd",[wi(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var Tw={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Aw={"\\textbf":"textbf","\\textmd":"textmd"},rne={"\\textit":"textit","\\textup":"textup"},_w=(t,e)=>{var n=t.font;if(n){if(Tw[n])return e.withTextFontFamily(Tw[n]);if(Aw[n])return e.withTextFontWeight(Aw[n]);if(n==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(rne[n])};he({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,o=e[0];return{type:"text",mode:n.mode,body:Bt(o),font:r}},htmlBuilder(t,e){var n=_w(t,e),r=jt(t.body,n,!0);return F.makeSpan(["mord","text"],r,n)},mathmlBuilder(t,e){var n=_w(t,e);return wi(t.body,n)}}),he({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=et(t.body,e),r=F.makeLineSpan("underline-line",e),o=e.fontMetrics().defaultRuleThickness,s=F.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},e);return F.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(t,e){var n=new te.MathNode("mo",[new te.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new te.MathNode("munder",[ct(t.body,e),n]);return r.setAttribute("accentunder","true"),r}}),he({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=et(t.body,e),r=e.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return F.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){return new te.MathNode("mpadded",[ct(t.body,e)],["vcenter"])}}),he({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,n){throw new oe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=Dw(t),r=[],o=e.havingStyle(e.style.text()),s=0;s<n.length;s++){var a=n[s];a==="~"&&(a="\\textasciitilde"),r.push(F.makeSymbol(a,"Typewriter-Regular",t.mode,o,["mord","texttt"]))}return F.makeSpan(["mord","text"].concat(o.sizingClasses(e)),F.tryCombineChars(r),o)},mathmlBuilder(t,e){var n=new te.TextNode(Dw(t)),r=new te.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Dw=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),Ci=O7,Mw=`[ \r
]`,one="\\\\[a-zA-Z@]+",ine="\\\\[^\uD800-\uDFFF]",sne="("+one+")"+Mw+"*",ane=`\\\\(
|[ \r ]+
?)[ \r ]*`,a1="[\u0300-\u036F]",lne=new RegExp(a1+"+$"),cne="("+Mw+"+)|"+(ane+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(a1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(a1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+sne)+("|"+ine+")");class Nw{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(cne,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new sr("EOF",new Vn(this,n,n));var r=this.tokenRegex.exec(e);if(r===null||r.index!==n)throw new oe("Unexpected character: '"+e[n]+"'",new sr(e[n],new Vn(this,n,n+1)));var o=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[o]===14){var s=e.indexOf(`
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new sr(o,new Vn(this,n,this.tokenRegex.lastIndex))}}class une{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new oe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,n,r){if(r===void 0&&(r=!1),r){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}}var dne=sw;A("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),A("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),A("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}}),A("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}}),A("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Bw={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};A("\\char",function(t){var e=t.popToken(),n,r="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new oe("\\char` missing argument");r=e.text.charCodeAt(0)}else n=10;if(n){if(r=Bw[e.text],r==null||r>=n)throw new oe("Invalid base-"+n+" digit "+e.text);for(var o;(o=Bw[t.future().text])!=null&&o<n;)r*=n,r+=o,t.popToken()}return"\\@char{"+r+"}"});var l1=(t,e,n)=>{var r=t.consumeArg().tokens;if(r.length!==1)throw new oe("\\newcommand's first argument must be a macro name");var o=r[0].text,s=t.isDefined(o);if(s&&!e)throw new oe("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!s&&!n)throw new oe("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var a=0;if(r=t.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new oe("Invalid number of arguments: "+l);a=parseInt(l),r=t.consumeArg().tokens}return t.macros.set(o,{tokens:r,numArgs:a}),""};A("\\newcommand",t=>l1(t,!1,!0)),A("\\renewcommand",t=>l1(t,!0,!1)),A("\\providecommand",t=>l1(t,!0,!0)),A("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""}),A("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""}),A("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),Ci[n],pt.math[n],pt.text[n]),""}),A("\\bgroup","{"),A("\\egroup","}"),A("~","\\nobreakspace"),A("\\lq","`"),A("\\rq","'"),A("\\aa","\\r a"),A("\\AA","\\r A"),A("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),A("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),A("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),A("\u212C","\\mathscr{B}"),A("\u2130","\\mathscr{E}"),A("\u2131","\\mathscr{F}"),A("\u210B","\\mathscr{H}"),A("\u2110","\\mathscr{I}"),A("\u2112","\\mathscr{L}"),A("\u2133","\\mathscr{M}"),A("\u211B","\\mathscr{R}"),A("\u212D","\\mathfrak{C}"),A("\u210C","\\mathfrak{H}"),A("\u2128","\\mathfrak{Z}"),A("\\Bbbk","\\Bbb{k}"),A("\xB7","\\cdotp"),A("\\llap","\\mathllap{\\textrm{#1}}"),A("\\rlap","\\mathrlap{\\textrm{#1}}"),A("\\clap","\\mathclap{\\textrm{#1}}"),A("\\mathstrut","\\vphantom{(}"),A("\\underbar","\\underline{\\text{#1}}"),A("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),A("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),A("\\ne","\\neq"),A("\u2260","\\neq"),A("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),A("\u2209","\\notin"),A("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),A("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),A("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),A("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),A("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),A("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),A("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),A("\u27C2","\\perp"),A("\u203C","\\mathclose{!\\mkern-0.8mu!}"),A("\u220C","\\notni"),A("\u231C","\\ulcorner"),A("\u231D","\\urcorner"),A("\u231E","\\llcorner"),A("\u231F","\\lrcorner"),A("\xA9","\\copyright"),A("\xAE","\\textregistered"),A("\uFE0F","\\textregistered"),A("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),A("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),A("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),A("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),A("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),A("\u22EE","\\vdots"),A("\\varGamma","\\mathit{\\Gamma}"),A("\\varDelta","\\mathit{\\Delta}"),A("\\varTheta","\\mathit{\\Theta}"),A("\\varLambda","\\mathit{\\Lambda}"),A("\\varXi","\\mathit{\\Xi}"),A("\\varPi","\\mathit{\\Pi}"),A("\\varSigma","\\mathit{\\Sigma}"),A("\\varUpsilon","\\mathit{\\Upsilon}"),A("\\varPhi","\\mathit{\\Phi}"),A("\\varPsi","\\mathit{\\Psi}"),A("\\varOmega","\\mathit{\\Omega}"),A("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),A("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),A("\\boxed","\\fbox{$\\displaystyle{#1}$}"),A("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),A("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),A("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ow={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};A("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Ow?e=Ow[n]:(n.slice(0,4)==="\\not"||n in pt.math&&Te.contains(["bin","rel"],pt.math[n].group))&&(e="\\dotsb"),e});var c1={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};A("\\dotso",function(t){var e=t.future().text;return e in c1?"\\ldots\\,":"\\ldots"}),A("\\dotsc",function(t){var e=t.future().text;return e in c1&&e!==","?"\\ldots\\,":"\\ldots"}),A("\\cdots",function(t){var e=t.future().text;return e in c1?"\\@cdots\\,":"\\@cdots"}),A("\\dotsb","\\cdots"),A("\\dotsm","\\cdots"),A("\\dotsi","\\!\\cdots"),A("\\dotsx","\\ldots\\,"),A("\\DOTSI","\\relax"),A("\\DOTSB","\\relax"),A("\\DOTSX","\\relax"),A("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),A("\\,","\\tmspace+{3mu}{.1667em}"),A("\\thinspace","\\,"),A("\\>","\\mskip{4mu}"),A("\\:","\\tmspace+{4mu}{.2222em}"),A("\\medspace","\\:"),A("\\;","\\tmspace+{5mu}{.2777em}"),A("\\thickspace","\\;"),A("\\!","\\tmspace-{3mu}{.1667em}"),A("\\negthinspace","\\!"),A("\\negmedspace","\\tmspace-{4mu}{.2222em}"),A("\\negthickspace","\\tmspace-{5mu}{.277em}"),A("\\enspace","\\kern.5em "),A("\\enskip","\\hskip.5em\\relax"),A("\\quad","\\hskip1em\\relax"),A("\\qquad","\\hskip2em\\relax"),A("\\tag","\\@ifstar\\tag@literal\\tag@paren"),A("\\tag@paren","\\tag@literal{({#1})}"),A("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new oe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),A("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),A("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),A("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),A("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),A("\\newline","\\\\\\relax"),A("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Iw=se(to["Main-Regular"]["T".charCodeAt(0)][1]-.7*to["Main-Regular"]["A".charCodeAt(0)][1]);A("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Iw+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),A("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Iw+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),A("\\hspace","\\@ifstar\\@hspacer\\@hspace"),A("\\@hspace","\\hskip #1\\relax"),A("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),A("\\ordinarycolon",":"),A("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),A("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),A("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),A("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),A("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),A("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),A("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),A("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),A("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),A("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),A("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),A("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),A("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),A("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),A("\u2237","\\dblcolon"),A("\u2239","\\eqcolon"),A("\u2254","\\coloneqq"),A("\u2255","\\eqqcolon"),A("\u2A74","\\Coloneqq"),A("\\ratio","\\vcentcolon"),A("\\coloncolon","\\dblcolon"),A("\\colonequals","\\coloneqq"),A("\\coloncolonequals","\\Coloneqq"),A("\\equalscolon","\\eqqcolon"),A("\\equalscoloncolon","\\Eqqcolon"),A("\\colonminus","\\coloneq"),A("\\coloncolonminus","\\Coloneq"),A("\\minuscolon","\\eqcolon"),A("\\minuscoloncolon","\\Eqcolon"),A("\\coloncolonapprox","\\Colonapprox"),A("\\coloncolonsim","\\Colonsim"),A("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),A("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),A("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),A("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),A("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),A("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),A("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),A("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),A("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),A("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),A("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),A("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),A("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),A("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),A("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),A("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),A("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),A("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),A("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),A("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),A("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),A("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),A("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),A("\\imath","\\html@mathml{\\@imath}{\u0131}"),A("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),A("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),A("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),A("\u27E6","\\llbracket"),A("\u27E7","\\rrbracket"),A("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),A("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),A("\u2983","\\lBrace"),A("\u2984","\\rBrace"),A("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),A("\u29B5","\\minuso"),A("\\darr","\\downarrow"),A("\\dArr","\\Downarrow"),A("\\Darr","\\Downarrow"),A("\\lang","\\langle"),A("\\rang","\\rangle"),A("\\uarr","\\uparrow"),A("\\uArr","\\Uparrow"),A("\\Uarr","\\Uparrow"),A("\\N","\\mathbb{N}"),A("\\R","\\mathbb{R}"),A("\\Z","\\mathbb{Z}"),A("\\alef","\\aleph"),A("\\alefsym","\\aleph"),A("\\Alpha","\\mathrm{A}"),A("\\Beta","\\mathrm{B}"),A("\\bull","\\bullet"),A("\\Chi","\\mathrm{X}"),A("\\clubs","\\clubsuit"),A("\\cnums","\\mathbb{C}"),A("\\Complex","\\mathbb{C}"),A("\\Dagger","\\ddagger"),A("\\diamonds","\\diamondsuit"),A("\\empty","\\emptyset"),A("\\Epsilon","\\mathrm{E}"),A("\\Eta","\\mathrm{H}"),A("\\exist","\\exists"),A("\\harr","\\leftrightarrow"),A("\\hArr","\\Leftrightarrow"),A("\\Harr","\\Leftrightarrow"),A("\\hearts","\\heartsuit"),A("\\image","\\Im"),A("\\infin","\\infty"),A("\\Iota","\\mathrm{I}"),A("\\isin","\\in"),A("\\Kappa","\\mathrm{K}"),A("\\larr","\\leftarrow"),A("\\lArr","\\Leftarrow"),A("\\Larr","\\Leftarrow"),A("\\lrarr","\\leftrightarrow"),A("\\lrArr","\\Leftrightarrow"),A("\\Lrarr","\\Leftrightarrow"),A("\\Mu","\\mathrm{M}"),A("\\natnums","\\mathbb{N}"),A("\\Nu","\\mathrm{N}"),A("\\Omicron","\\mathrm{O}"),A("\\plusmn","\\pm"),A("\\rarr","\\rightarrow"),A("\\rArr","\\Rightarrow"),A("\\Rarr","\\Rightarrow"),A("\\real","\\Re"),A("\\reals","\\mathbb{R}"),A("\\Reals","\\mathbb{R}"),A("\\Rho","\\mathrm{P}"),A("\\sdot","\\cdot"),A("\\sect","\\S"),A("\\spades","\\spadesuit"),A("\\sub","\\subset"),A("\\sube","\\subseteq"),A("\\supe","\\supseteq"),A("\\Tau","\\mathrm{T}"),A("\\thetasym","\\vartheta"),A("\\weierp","\\wp"),A("\\Zeta","\\mathrm{Z}"),A("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),A("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),A("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),A("\\bra","\\mathinner{\\langle{#1}|}"),A("\\ket","\\mathinner{|{#1}\\rangle}"),A("\\braket","\\mathinner{\\langle{#1}\\rangle}"),A("\\Bra","\\left\\langle#1\\right|"),A("\\Ket","\\left|#1\\right\\rangle");var Pw=t=>e=>{var n=e.consumeArg().tokens,r=e.consumeArg().tokens,o=e.consumeArg().tokens,s=e.consumeArg().tokens,a=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var c=f=>p=>{t&&(p.macros.set("|",a),o.length&&p.macros.set("\\|",l));var h=f;if(!f&&o.length){var m=p.future();m.text==="|"&&(p.popToken(),h=!0)}return{tokens:h?o:r,numArgs:0}};e.macros.set("|",c(!1)),o.length&&e.macros.set("\\|",c(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...s,...u,...n]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};A("\\bra@ket",Pw(!1)),A("\\bra@set",Pw(!0)),A("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),A("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),A("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),A("\\angln","{\\angl n}"),A("\\blue","\\textcolor{##6495ed}{#1}"),A("\\orange","\\textcolor{##ffa500}{#1}"),A("\\pink","\\textcolor{##ff00af}{#1}"),A("\\red","\\textcolor{##df0030}{#1}"),A("\\green","\\textcolor{##28ae7b}{#1}"),A("\\gray","\\textcolor{gray}{#1}"),A("\\purple","\\textcolor{##9d38bd}{#1}"),A("\\blueA","\\textcolor{##ccfaff}{#1}"),A("\\blueB","\\textcolor{##80f6ff}{#1}"),A("\\blueC","\\textcolor{##63d9ea}{#1}"),A("\\blueD","\\textcolor{##11accd}{#1}"),A("\\blueE","\\textcolor{##0c7f99}{#1}"),A("\\tealA","\\textcolor{##94fff5}{#1}"),A("\\tealB","\\textcolor{##26edd5}{#1}"),A("\\tealC","\\textcolor{##01d1c1}{#1}"),A("\\tealD","\\textcolor{##01a995}{#1}"),A("\\tealE","\\textcolor{##208170}{#1}"),A("\\greenA","\\textcolor{##b6ffb0}{#1}"),A("\\greenB","\\textcolor{##8af281}{#1}"),A("\\greenC","\\textcolor{##74cf70}{#1}"),A("\\greenD","\\textcolor{##1fab54}{#1}"),A("\\greenE","\\textcolor{##0d923f}{#1}"),A("\\goldA","\\textcolor{##ffd0a9}{#1}"),A("\\goldB","\\textcolor{##ffbb71}{#1}"),A("\\goldC","\\textcolor{##ff9c39}{#1}"),A("\\goldD","\\textcolor{##e07d10}{#1}"),A("\\goldE","\\textcolor{##a75a05}{#1}"),A("\\redA","\\textcolor{##fca9a9}{#1}"),A("\\redB","\\textcolor{##ff8482}{#1}"),A("\\redC","\\textcolor{##f9685d}{#1}"),A("\\redD","\\textcolor{##e84d39}{#1}"),A("\\redE","\\textcolor{##bc2612}{#1}"),A("\\maroonA","\\textcolor{##ffbde0}{#1}"),A("\\maroonB","\\textcolor{##ff92c6}{#1}"),A("\\maroonC","\\textcolor{##ed5fa6}{#1}"),A("\\maroonD","\\textcolor{##ca337c}{#1}"),A("\\maroonE","\\textcolor{##9e034e}{#1}"),A("\\purpleA","\\textcolor{##ddd7ff}{#1}"),A("\\purpleB","\\textcolor{##c6b9fc}{#1}"),A("\\purpleC","\\textcolor{##aa87ff}{#1}"),A("\\purpleD","\\textcolor{##7854ab}{#1}"),A("\\purpleE","\\textcolor{##543b78}{#1}"),A("\\mintA","\\textcolor{##f5f9e8}{#1}"),A("\\mintB","\\textcolor{##edf2df}{#1}"),A("\\mintC","\\textcolor{##e0e5cc}{#1}"),A("\\grayA","\\textcolor{##f6f7f7}{#1}"),A("\\grayB","\\textcolor{##f0f1f2}{#1}"),A("\\grayC","\\textcolor{##e3e5e6}{#1}"),A("\\grayD","\\textcolor{##d6d8da}{#1}"),A("\\grayE","\\textcolor{##babec2}{#1}"),A("\\grayF","\\textcolor{##888d93}{#1}"),A("\\grayG","\\textcolor{##626569}{#1}"),A("\\grayH","\\textcolor{##3b3e40}{#1}"),A("\\grayI","\\textcolor{##21242c}{#1}"),A("\\kaBlue","\\textcolor{##314453}{#1}"),A("\\kaGreen","\\textcolor{##71B307}{#1}");var Lw={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class fne{constructor(e,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(e),this.macros=new une(dne,n.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Nw(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var n,r,o;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:r}=this.consumeArg(["]"])}else({tokens:o,start:n,end:r}=this.consumeArg());return this.pushToken(new sr("EOF",r.loc)),this.pushTokens(o),n.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],r=e&&e.length>0;r||this.consumeSpaces();var o=this.future(),s,a=0,l=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++a;else if(s.text==="}"){if(--a,a===-1)throw new oe("Extra }",s)}else if(s.text==="EOF")throw new oe("Unexpected end of input in a macro argument, expected '"+(e&&r?e[l]:"}")+"'",s);if(e&&r)if((a===0||a===1&&e[l]==="{")&&s.text===e[l]){if(++l,l===e.length){n.splice(-l,l);break}}else l=0}while(a!==0||r);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:s}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new oe("The length of delimiters doesn't match the number of args!");for(var r=n[0],o=0;o<r.length;o++){var s=this.popToken();if(r[o]!==s.text)throw new oe("Use of the macro doesn't match its definition",s)}}for(var a=[],l=0;l<e;l++)a.push(this.consumeArg(n&&n[l+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new oe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var n=this.popToken(),r=n.text,o=n.noexpand?null:this._getExpansion(r);if(o==null||e&&o.unexpandable){if(e&&o==null&&r[0]==="\\"&&!this.isDefined(r))throw new oe("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var s=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var c=s[l];if(c.text==="#"){if(l===0)throw new oe("Incomplete placeholder at end of macro body",c);if(c=s[--l],c.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(c.text))s.splice(l,2,...a[+c.text-1]);else throw new oe("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new sr(e)]):void 0}expandTokens(e){var n=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(r=>r.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var s=0;if(o.indexOf("#")!==-1)for(var a=o.replace(/##/g,"");a.indexOf("#"+(s+1))!==-1;)++s;for(var l=new Nw(o,this.settings),c=[],u=l.lex();u.text!=="EOF";)c.push(u),u=l.lex();c.reverse();var d={tokens:c,numArgs:s};return d}return o}isDefined(e){return this.macros.has(e)||Ci.hasOwnProperty(e)||pt.math.hasOwnProperty(e)||pt.text.hasOwnProperty(e)||Lw.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Ci.hasOwnProperty(e)&&!Ci[e].primitive}}var Rw=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,t0=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),u1={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},zw={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};class n0{constructor(e,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new fne(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new oe("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var n=this.nextToken;this.consume(),this.gullet.pushToken(new sr("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(e,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(n0.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||e&&Ci[o.text]&&Ci[o.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var n=-1,r,o=0;o<e.length;o++)if(e[o].type==="infix"){if(n!==-1)throw new oe("only one infix operator per group",e[o].token);n=o,r=e[o].replaceWith}if(n!==-1&&r){var s,a,l=e.slice(0,n),c=e.slice(n+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?a=c[0]:a={type:"ordgroup",mode:this.mode,body:c};var u;return r==="\\\\abovefrac"?u=this.callFunction(r,[s,e[n],a],[]):u=this.callFunction(r,[s,a],[]),[u]}else return e}handleSupSubscript(e){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var o=this.parseGroup(e);if(!o)throw new oe("Expected group after '"+r+"'",n);return o}formatUnsupportedCmd(e){for(var n=[],r=0;r<e.length;r++)n.push({type:"textord",mode:"text",text:e[r]});var o={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return s}parseAtom(e){var n=this.parseGroup("atom",e);if(this.mode==="text")return n;for(var r,o;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var a=s.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new oe("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(r)throw new oe("Double superscript",s);r=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(o)throw new oe("Double subscript",s);o=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(r)throw new oe("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];for(this.consume();this.fetch().text==="'";)c.push(l),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:c}}else if(t0[s.text]){var u=Rw.test(s.text),d=[];for(d.push(new sr(t0[s.text])),this.consume();;){var f=this.fetch().text;if(!t0[f]||Rw.test(f)!==u)break;d.unshift(new sr(t0[f])),this.consume()}var p=this.subparse(d);u?o={type:"ordgroup",mode:"math",body:p}:r={type:"ordgroup",mode:"math",body:p}}else break}return r||o?{type:"supsub",mode:this.mode,base:n,sup:r,sub:o}:n}parseFunction(e,n){var r=this.fetch(),o=r.text,s=Ci[o];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new oe("Got function '"+o+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!s.allowedInText)throw new oe("Can't use function '"+o+"' in text mode",r);if(this.mode==="math"&&s.allowedInMath===!1)throw new oe("Can't use function '"+o+"' in math mode",r);var{args:a,optArgs:l}=this.parseArguments(o,s);return this.callFunction(o,a,l,r,e)}callFunction(e,n,r,o,s){var a={funcName:e,parser:this,token:o,breakOnTokenText:s},l=Ci[e];if(l&&l.handler)return l.handler(a,n,r);throw new oe("No function handler for "+e)}parseArguments(e,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var o=[],s=[],a=0;a<r;a++){var l=n.argTypes&&n.argTypes[a],c=a<n.numOptionalArgs;(n.primitive&&l==null||n.type==="sqrt"&&a===1&&s[0]==null)&&(l="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",l,c);if(c)s.push(u);else if(u!=null)o.push(u);else throw new oe("Null argument, please report this as a bug")}return{args:o,optArgs:s}}parseGroupOfType(e,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var o=this.parseArgumentGroup(r,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",r);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(r)throw new oe("A primitive argument cannot be optional");var a=this.parseGroup(e);if(a==null)throw new oe("Expected group as "+e,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new oe("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var o="",s;(s=this.fetch()).text!=="EOF";)o+=s.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(e,n){for(var r=this.fetch(),o=r,s="",a;(a=this.fetch()).text!=="EOF"&&e.test(s+a.text);)o=a,s+=o.text,this.consume();if(s==="")throw new oe("Invalid "+n+": '"+r.text+"'",r);return r.range(o,s)}parseColorGroup(e){var n=this.parseStringGroup("color",e);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new oe("Invalid color: '"+n.text+"'",n);var o=r[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(e){var n,r=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",e),!n)return null;!e&&n.text.length===0&&(n.text="0pt",r=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new oe("Invalid size: '"+n.text+"'",n);var s={number:+(o[1]+o[2]),unit:o[3]};if(!y7(s))throw new oe("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,n){var r=this.gullet.scanArgument(e);if(r==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:s};return n&&this.switchMode(o),a}parseGroup(e,n){var r=this.fetch(),o=r.text,s;if(o==="{"||o==="\\begingroup"){this.consume();var a=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,a),c=this.fetch();this.expect(a),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Vn.range(r,c),body:l,semisimple:o==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,e)||this.parseSymbol(),s==null&&o[0]==="\\"&&!Lw.hasOwnProperty(o)){if(this.settings.throwOnError)throw new oe("Undefined control sequence: "+o,r);s=this.formatUnsupportedCmd(o),this.consume()}return s}formLigatures(e){for(var n=e.length-1,r=0;r<n;++r){var o=e[r],s=o.text;s==="-"&&e[r+1].text==="-"&&(r+1<n&&e[r+2].text==="-"?(e.splice(r,3,{type:"textord",mode:"text",loc:Vn.range(o,e[r+2]),text:"---"}),n-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Vn.range(o,e[r+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&e[r+1].text===s&&(e.splice(r,2,{type:"textord",mode:"text",loc:Vn.range(o,e[r+1]),text:s+s}),n-=1)}}parseSymbol(){var e=this.fetch(),n=e.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),o=r.charAt(0)==="*";if(o&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new oe(`\\verb assertion failed --
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:o}}zw.hasOwnProperty(n[0])&&!pt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=zw[n[0]]+n.slice(1));var s=lne.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="\u0131":n==="j"&&(n="\u0237"));var a;if(pt[this.mode][n]){this.settings.strict&&this.mode==="math"&&Pm.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var l=pt[this.mode][n].group,c=Vn.range(e),u;if(ete.hasOwnProperty(l)){var d=l;u={type:"atom",mode:this.mode,family:d,loc:c,text:n}}else u={type:l,mode:this.mode,loc:c,text:n};a=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(p7(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),a={type:"textord",mode:"text",loc:Vn.range(e),text:n};else return null;if(this.consume(),s)for(var f=0;f<s[0].length;f++){var p=s[0][f];if(!u1[p])throw new oe("Unknown accent ' "+p+"'",e);var h=u1[p][this.mode]||u1[p].text;if(!h)throw new oe("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Vn.range(e),label:h,isStretchy:!1,isShifty:!0,base:a}}return a}}n0.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var d1=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new n0(e,n);delete r.gullet.macros.current["\\df@tag"];var o=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new oe("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:r.subparse([new sr("\\df@tag")])}]}return o},Fw=function(e,n,r){n.textContent="";var o=f1(e,r).toNode();n.appendChild(o)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Fw=function(){throw new oe("KaTeX doesn't work in quirks mode.")});var pne=function(e,n){var r=f1(e,n).toMarkup();return r},hne=function(e,n){var r=new Em(n);return d1(e,r)},$w=function(e,n,r){if(r.throwOnError||!(e instanceof oe))throw e;var o=F.makeSpan(["katex-error"],[new lr(n)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+r.errorColor),o},f1=function(e,n){var r=new Em(n);try{var o=d1(e,r);return Ste(o,e,r)}catch(s){return $w(s,e,r)}},mne=function(e,n){var r=new Em(n);try{var o=d1(e,r);return Ete(o,e,r)}catch(s){return $w(s,e,r)}},gne={version:"0.16.11",render:Fw,renderToString:pne,ParseError:oe,SETTINGS_SCHEMA:Id,__parse:hne,__renderToDomTree:f1,__renderToHTMLTree:mne,__setFontMetrics:Kee,__defineSymbol:w,__defineFunction:he,__defineMacro:A,__domTree:{Span:Vl,Anchor:Mm,SymbolNode:lr,SvgNode:xo,PathNode:bi,LineNode:Nm}},jse="";const bne=ut.create({name:"blockEquation",group:"block",content:"text*",addAttributes(){return{equation:{default:""}}},parseHTML(){return[{tag:'div[data-type="block-equation"]'}]},renderHTML({HTMLAttributes:t}){return["div",Ye(t,{"data-type":"block-equation"}),0]},addNodeView(){return({node:t})=>{const e=document.createElement("div");e.setAttribute("data-type","block-equation");const n=t.attrs.equation;return gne.render(n,e,{displayMode:!0,throwOnError:!1}),{dom:e}}},addCommands(){return{setBlockEquation:t=>({commands:e})=>e.insertContent({type:this.name,attrs:{equation:t}})}},addInputRules(){return[Tc({find:/\$\$\$\s*([^$]+)\s*\$\$\$\s*\n/,type:this.type,getAttributes:t=>({equation:t[1]}),handler:({state:t,range:e,match:n,type:r})=>{const{tr:o}=t,s=e.from,a=e.to,l=n[1];return o.replaceWith(s,a,r.create({equation:l})),o.setSelection(t.selection.constructor.near(o.doc.resolve(a))),o}})]}}),Vw={install(t){t.component("element-tiptap",hh),t.component("el-tiptap",hh)}},yne={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",style:{width:"16px",height:"16px",display:"block",fill:"#a782c3","flex-shrink":"0","margin-right":"4px"}},wne=[i.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.276 4.824c.303-.106.303-.292 0-.41l-1.647-.63c-.292-.105-.63-.444-.747-.747L4.25 1.39c-.105-.304-.292-.304-.409 0l-.63 1.647c-.105.292-.444.63-.748.747l-1.646.63c-.304.106-.304.293 0 .41l1.646.63c.292.105.63.444.748.748l.63 1.646c.105.304.292.304.409 0l.63-1.646c.106-.292.444-.631.748-.748l1.647-.63Zm8.023 5.769c.934-.234.934-.62 0-.853l-2.067-.514c-.934-.233-1.892-1.19-2.125-2.125l-.514-2.067c-.234-.934-.62-.934-.853 0L9.226 7.1c-.233.934-1.19 1.892-2.125 2.125l-2.067.514c-.934.234-.934.62 0 .853l2.067.514c.934.233 1.892 1.19 2.125 2.125L9.74 15.3c.234.935.62.935.853 0l.514-2.067c.233-.934 1.19-1.892 2.125-2.125l2.067-.514Z"},null,-1)];function Hw(t,e){return i.openBlock(),i.createElementBlock("svg",yne,wne)}var vne={render:Hw},Cne=Object.freeze(Object.defineProperty({__proto__:null,render:Hw,default:vne},Symbol.toStringTag,{value:"Module"}));const kne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Sne=[i.createElementVNode("path",{d:"M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z",fill:"currentColor"},null,-1)];function jw(t,e){return i.openBlock(),i.createElementBlock("svg",kne,Sne)}var Ene={render:jw},xne=Object.freeze(Object.defineProperty({__proto__:null,render:jw,default:Ene},Symbol.toStringTag,{value:"Module"}));const Tne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Ane=[i.createElementVNode("path",{d:"M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function Uw(t,e){return i.openBlock(),i.createElementBlock("svg",Tne,Ane)}var _ne={render:Uw},Dne=Object.freeze(Object.defineProperty({__proto__:null,render:Uw,default:_ne},Symbol.toStringTag,{value:"Module"}));const Mne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Nne=[i.createElementVNode("path",{d:"M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function qw(t,e){return i.openBlock(),i.createElementBlock("svg",Mne,Nne)}var Bne={render:qw},One=Object.freeze(Object.defineProperty({__proto__:null,render:qw,default:Bne},Symbol.toStringTag,{value:"Module"}));const Ine={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Pne=[i.createElementVNode("path",{d:"M16 224h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm416 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-384H172.83A12.82 12.82 0 0 0 160 44.83v38.34A12.82 12.82 0 0 0 172.83 96h262.34A12.82 12.82 0 0 0 448 83.17V44.83A12.82 12.82 0 0 0 435.17 32zm0 256H172.83A12.82 12.82 0 0 0 160 300.83v38.34A12.82 12.82 0 0 0 172.83 352h262.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288z",fill:"currentColor"},null,-1)];function Ww(t,e){return i.openBlock(),i.createElementBlock("svg",Ine,Pne)}var Lne={render:Ww},Rne=Object.freeze(Object.defineProperty({__proto__:null,render:Ww,default:Lne},Symbol.toStringTag,{value:"Module"}));const zne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Fne=[i.createElementVNode("path",{fill:"currentColor",d:"m257.5 445.1-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},null,-1)];function Kw(t,e){return i.openBlock(),i.createElementBlock("svg",zne,Fne)}var $ne={render:Kw},Vne=Object.freeze(Object.defineProperty({__proto__:null,render:Kw,default:$ne},Symbol.toStringTag,{value:"Module"}));const Hne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"24",height:"32",viewBox:"0 0 384 512"},jne=[i.createElementVNode("path",{d:"M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z",fill:"currentColor"},null,-1)];function Gw(t,e){return i.openBlock(),i.createElementBlock("svg",Hne,jne)}var Une={render:Gw},qne=Object.freeze(Object.defineProperty({__proto__:null,render:Gw,default:Une},Symbol.toStringTag,{value:"Module"}));const Wne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--icon-park-solid",width:"32",height:"32",viewBox:"0 0 48 48"},Kne=[i.createStaticVNode('<mask id="b"><g fill="none"><g stroke="#fff" clip-path="url(#a)"><path fill="#fff" stroke-linejoin="round" stroke-width="4.302" d="M44.782 24.17 31.918 7.1 14.135 20.5 27.5 37l3.356-2.336L44.782 24.17Z"></path><path stroke-linejoin="round" stroke-width="4.302" d="m27.5 37-3.839 3.075-10.563-.001-2.6-3.45-6.433-8.536L14.5 20.225"></path><path stroke-linecap="round" stroke-width="4.5" d="M13.206 40.072h31.36"></path></g><defs><clipPath id="a"><path fill="#000" d="M0 0h48v48H0z"></path></clipPath></defs></g></mask><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#b)"></path>',2)];function Jw(t,e){return i.openBlock(),i.createElementBlock("svg",Wne,Kne)}var Gne={render:Jw},Jne=Object.freeze(Object.defineProperty({__proto__:null,render:Jw,default:Gne},Symbol.toStringTag,{value:"Module"}));const Xne={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"40",height:"32",viewBox:"0 0 640 512"},Yne=[i.createElementVNode("path",{d:"m278.9 511.5-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2 43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6 144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z",fill:"currentColor"},null,-1)];function Xw(t,e){return i.openBlock(),i.createElementBlock("svg",Xne,Yne)}var Zne={render:Xw},Qne=Object.freeze(Object.defineProperty({__proto__:null,render:Xw,default:Zne},Symbol.toStringTag,{value:"Module"}));const ere={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa6-solid",width:"28",height:"32",viewBox:"0 0 448 512"},tre=[i.createElementVNode("path",{fill:"currentColor",d:"M128 320H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32v-96c0-17.7-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32v96c0 17.69 14.31 32 32 32s32-14.31 32-32v-64h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm-96-128h96c17.69 0 32-14.31 32-32s-14.31-32-32-32h-64V64c0-17.69-14.31-32-32-32s-32 14.31-32 32v96c0 17.7 14.3 32 32 32zM128 32c-17.7 0-32 14.31-32 32v64H32c-17.69 0-32 14.3-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32V64c0-17.69-14.3-32-32-32z"},null,-1)];function Yw(t,e){return i.openBlock(),i.createElementBlock("svg",ere,tre)}var nre={render:Yw},rre=Object.freeze(Object.defineProperty({__proto__:null,render:Yw,default:nre},Symbol.toStringTag,{value:"Module"}));const ore={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"36",height:"32",viewBox:"0 0 576 512"},ire=[i.createElementVNode("path",{fill:"currentColor",d:"m402.6 83.2 90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"},null,-1)];function Zw(t,e){return i.openBlock(),i.createElementBlock("svg",ore,ire)}var sre={render:Zw},are=Object.freeze(Object.defineProperty({__proto__:null,render:Zw,default:sre},Symbol.toStringTag,{value:"Module"}));const lre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},cre=[i.createElementVNode("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"},null,-1)];function Qw(t,e){return i.openBlock(),i.createElementBlock("svg",lre,cre)}var ure={render:Qw},dre=Object.freeze(Object.defineProperty({__proto__:null,render:Qw,default:ure},Symbol.toStringTag,{value:"Module"}));const fre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa6-solid",width:"28",height:"32",viewBox:"0 0 448 512"},pre=[i.createElementVNode("path",{fill:"currentColor",d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"},null,-1)];function ev(t,e){return i.openBlock(),i.createElementBlock("svg",fre,pre)}var hre={render:ev},mre=Object.freeze(Object.defineProperty({__proto__:null,render:ev,default:hre},Symbol.toStringTag,{value:"Module"}));const gre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},bre=[i.createElementVNode("path",{fill:"currentColor",d:"M432 320h-32a16 16 0 0 0-16 16v112H64V128h144a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16H48a48 48 0 0 0-48 48v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V336a16 16 0 0 0-16-16ZM488 0H360c-21.37 0-32.05 25.91-17 41l35.73 35.73L135 320.37a24 24 0 0 0 0 34L157.67 377a24 24 0 0 0 34 0l243.61-243.68L471 169c15 15 41 4.5 41-17V24a24 24 0 0 0-24-24Z"},null,-1)];function tv(t,e){return i.openBlock(),i.createElementBlock("svg",gre,bre)}var yre={render:tv},wre=Object.freeze(Object.defineProperty({__proto__:null,render:tv,default:yre},Symbol.toStringTag,{value:"Module"}));const vre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-regular",width:"24",height:"32",viewBox:"0 0 384 512"},Cre=[i.createElementVNode("path",{fill:"currentColor",d:"m149.9 349.1-.2-.2-32.8-28.9 32.8-28.9c3.6-3.2 4-8.8.8-12.4l-.2-.2-17.4-18.6c-3.4-3.6-9-3.7-12.4-.4l-57.7 54.1c-3.7 3.5-3.7 9.4 0 12.8l57.7 54.1c1.6 1.5 3.8 2.4 6 2.4 2.4 0 4.8-1 6.4-2.8l17.4-18.6c3.3-3.5 3.1-9.1-.4-12.4zm220-251.2L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM256 51.9l76.1 76.1H256zM336 464H48V48h160v104c0 13.3 10.7 24 24 24h104zM209.6 214c-4.7-1.4-9.5 1.3-10.9 6L144 408.1c-1.4 4.7 1.3 9.6 6 10.9l24.4 7.1c4.7 1.4 9.6-1.4 10.9-6L240 231.9c1.4-4.7-1.3-9.6-6-10.9zm24.5 76.9.2.2 32.8 28.9-32.8 28.9c-3.6 3.2-4 8.8-.8 12.4l.2.2 17.4 18.6c3.3 3.5 8.9 3.7 12.4.4l57.7-54.1c3.7-3.5 3.7-9.4 0-12.8l-57.7-54.1c-3.5-3.3-9.1-3.2-12.4.4l-17.4 18.6c-3.3 3.5-3.1 9.1.4 12.4z"},null,-1)];function nv(t,e){return i.openBlock(),i.createElementBlock("svg",vre,Cre)}var kre={render:nv},Sre=Object.freeze(Object.defineProperty({__proto__:null,render:nv,default:kre},Symbol.toStringTag,{value:"Module"}));const Ere={"aria-hidden":"true",width:"11",height:"16",viewBox:"0 0 352 512",class:"fa-icon"},xre=[i.createElementVNode("path",{d:"M205.2 22.1C252.2 180.6 352 222.2 352 333.9c0 98.4-78.7 178.1-176 178.1S0 432.3 0 333.9C0 222.7 100 179.8 146.8 22.1c9-30.1 50.5-28.8 58.4 0zM176 448c8.8 0 16-7.2 16-16s-7.2-16-16-16c-44.1 0-80-35.9-80-80 0-8.8-7.2-16-16-16s-16 7.2-16 16c0 61.8 50.3 112 112 112z"},null,-1)];function rv(t,e){return i.openBlock(),i.createElementBlock("svg",Ere,xre)}var Tre={render:rv},Are=Object.freeze(Object.defineProperty({__proto__:null,render:rv,default:Tre},Symbol.toStringTag,{value:"Module"}));const _re={"aria-hidden":"true",width:"14",height:"16",viewBox:"0 0 448 512",class:"fa-icon"},Dre=[i.createElementVNode("path",{d:"M432 416c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H304c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16h19.6l-23.3-64H147.7l-23.3 64H144c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H16c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16h23.4L170.1 53.7c4.1-12 17.6-21.7 30.3-21.7h47.2c12.6 0 26.2 9.7 30.3 21.7L408.6 416H432zM176.8 272h94.3l-47.2-129.5z"},null,-1)];function ov(t,e){return i.openBlock(),i.createElementBlock("svg",_re,Dre)}var Mre={render:ov},Nre=Object.freeze(Object.defineProperty({__proto__:null,render:ov,default:Mre},Symbol.toStringTag,{value:"Module"}));const Bre={"aria-hidden":"true",width:"14",height:"16",viewBox:"0 0 448 512",class:"fa-icon"},Ore=[i.createElementVNode("path",{d:"M432 32c8.8 0 16 7.2 16 16v80c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-16H264v112h24c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H160c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16h24V112H64v16c0 8.8-7.2 16-16 16H16c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h416zm-68.7 260.7 80 80c2.6 2.6 4.7 7.7 4.7 11.3s-2.1 8.7-4.7 11.3l-80 80c-10 10-27.3 3-27.3-11.3v-48H112v48c0 15.6-18 20.6-27.3 11.3l-80-80C2.1 392.7 0 387.6 0 384s2.1-8.7 4.7-11.3l80-80c10-10 27.3-3 27.3 11.3v48h224v-48c0-15.6 18-20.6 27.3-11.3z"},null,-1)];function iv(t,e){return i.openBlock(),i.createElementBlock("svg",Bre,Ore)}var Ire={render:iv},Pre=Object.freeze(Object.defineProperty({__proto__:null,render:iv,default:Ire},Symbol.toStringTag,{value:"Module"}));const Lre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Rre=[i.createElementVNode("path",{d:"M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z",fill:"currentColor"},null,-1)];function sv(t,e){return i.openBlock(),i.createElementBlock("svg",Lre,Rre)}var zre={render:sv},Fre=Object.freeze(Object.defineProperty({__proto__:null,render:sv,default:zre},Symbol.toStringTag,{value:"Module"}));const $re={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--ic",width:"32",height:"32",viewBox:"0 0 24 24"},Vre=[i.createElementVNode("path",{fill:"currentColor",d:"M8.94 16.56c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12L8.32.7a.996.996 0 1 0-1.41 1.41l1.68 1.68-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5zM10 5.21 14.79 10H5.21L10 5.21zM19 17c1.1 0 2-.9 2-2 0-1.33-2-3.5-2-3.5s-2 2.17-2 3.5c0 1.1.9 2 2 2zm1 3H4c-1.1 0-2 .9-2 2s.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2z"},null,-1)];function av(t,e){return i.openBlock(),i.createElementBlock("svg",$re,Vre)}var Hre={render:av},jre=Object.freeze(Object.defineProperty({__proto__:null,render:av,default:Hre},Symbol.toStringTag,{value:"Module"}));const Ure={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},qre=[i.createElementVNode("path",{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",fill:"currentColor"},null,-1)];function lv(t,e){return i.openBlock(),i.createElementBlock("svg",Ure,qre)}var Wre={render:lv},Kre=Object.freeze(Object.defineProperty({__proto__:null,render:lv,default:Wre},Symbol.toStringTag,{value:"Module"}));const Gre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-regular",width:"32",height:"32",viewBox:"0 0 512 512"},Jre=[i.createElementVNode("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"},null,-1)];function cv(t,e){return i.openBlock(),i.createElementBlock("svg",Gre,Jre)}var Xre={render:cv},Yre=Object.freeze(Object.defineProperty({__proto__:null,render:cv,default:Xre},Symbol.toStringTag,{value:"Module"}));const Zre={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Qre=[i.createElementVNode("path",{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z",fill:"currentColor"},null,-1)];function uv(t,e){return i.openBlock(),i.createElementBlock("svg",Zre,Qre)}var eoe={render:uv},toe=Object.freeze(Object.defineProperty({__proto__:null,render:uv,default:eoe},Symbol.toStringTag,{value:"Module"}));const noe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},roe=[i.createElementVNode("path",{d:"m27.31 363.3 96-96a16 16 0 0 0 0-22.62l-96-96C17.27 138.66 0 145.78 0 160v192c0 14.31 17.33 21.3 27.31 11.3zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function dv(t,e){return i.openBlock(),i.createElementBlock("svg",noe,roe)}var ooe={render:dv},ioe=Object.freeze(Object.defineProperty({__proto__:null,render:dv,default:ooe},Symbol.toStringTag,{value:"Module"}));const soe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"20",height:"32",viewBox:"0 0 320 512"},aoe=[i.createElementVNode("path",{d:"M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z",fill:"currentColor"},null,-1)];function fv(t,e){return i.openBlock(),i.createElementBlock("svg",soe,aoe)}var loe={render:fv},coe=Object.freeze(Object.defineProperty({__proto__:null,render:fv,default:loe},Symbol.toStringTag,{value:"Module"}));const uoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},doe=[i.createElementVNode("path",{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z",fill:"currentColor"},null,-1)];function pv(t,e){return i.openBlock(),i.createElementBlock("svg",uoe,doe)}var foe={render:pv},poe=Object.freeze(Object.defineProperty({__proto__:null,render:pv,default:foe},Symbol.toStringTag,{value:"Module"}));const hoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},moe=[i.createElementVNode("path",{d:"m61.77 401 17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z",fill:"currentColor"},null,-1)];function hv(t,e){return i.openBlock(),i.createElementBlock("svg",hoe,moe)}var goe={render:hv},boe=Object.freeze(Object.defineProperty({__proto__:null,render:hv,default:goe},Symbol.toStringTag,{value:"Module"}));const yoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},woe=[i.createElementVNode("path",{d:"M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function mv(t,e){return i.openBlock(),i.createElementBlock("svg",yoe,woe)}var voe={render:mv},Coe=Object.freeze(Object.defineProperty({__proto__:null,render:mv,default:voe},Symbol.toStringTag,{value:"Module"}));const koe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},Soe=[i.createElementVNode("path",{d:"M100.69 363.29c10 10 27.31 2.93 27.31-11.31V160c0-14.32-17.33-21.31-27.31-11.31l-96 96a16 16 0 0 0 0 22.62zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function gv(t,e){return i.openBlock(),i.createElementBlock("svg",koe,Soe)}var Eoe={render:gv},xoe=Object.freeze(Object.defineProperty({__proto__:null,render:gv,default:Eoe},Symbol.toStringTag,{value:"Module"}));const Toe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--material-symbols",width:"32",height:"32",viewBox:"0 0 24 24"},Aoe=[i.createElementVNode("path",{fill:"currentColor",d:"M18 7H6V4q0-.425.287-.713Q6.575 3 7 3h10q.425 0 .712.287Q18 3.575 18 4Zm0 5.5q.425 0 .712-.288.288-.287.288-.712t-.288-.713Q18.425 10.5 18 10.5t-.712.287Q17 11.075 17 11.5t.288.712q.287.288.712.288ZM8 19h8v-4H8v4Zm0 2q-.825 0-1.412-.587Q6 19.825 6 19v-2H3q-.425 0-.712-.288Q2 16.425 2 16v-5q0-1.275.875-2.137Q3.75 8 5 8h14q1.275 0 2.138.863Q22 9.725 22 11v5q0 .425-.288.712Q21.425 17 21 17h-3v2q0 .825-.587 1.413Q16.825 21 16 21Z"},null,-1)];function bv(t,e){return i.openBlock(),i.createElementBlock("svg",Toe,Aoe)}var _oe={render:bv},Doe=Object.freeze(Object.defineProperty({__proto__:null,render:bv,default:_oe},Symbol.toStringTag,{value:"Module"}));const Moe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Noe=[i.createElementVNode("path",{d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",fill:"currentColor"},null,-1)];function yv(t,e){return i.openBlock(),i.createElementBlock("svg",Moe,Noe)}var Boe={render:yv},Ooe=Object.freeze(Object.defineProperty({__proto__:null,render:yv,default:Boe},Symbol.toStringTag,{value:"Module"}));const Ioe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Poe=[i.createElementVNode("path",{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z",fill:"currentColor"},null,-1)];function wv(t,e){return i.openBlock(),i.createElementBlock("svg",Ioe,Poe)}var Loe={render:wv},Roe=Object.freeze(Object.defineProperty({__proto__:null,render:wv,default:Loe},Symbol.toStringTag,{value:"Module"}));const zoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--jam",width:"35.56",height:"32",viewBox:"0 0 20 18"},Foe=[i.createElementVNode("path",{d:"M3.01 14a1 1 0 0 1 .988 1h12.004a1 1 0 0 1 1-1V4a1 1 0 0 1-1-1H4.01a1 1 0 0 1-1 1v10zm.988 3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h.01V4a1 1 0 0 1-.998-1V1a1 1 0 0 1 .999-1H3.01a1 1 0 0 1 1 1h11.992a1 1 0 0 1 1-1H19a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1v10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1.998a1 1 0 0 1-1-1H3.998z",fill:"currentColor"},null,-1)];function vv(t,e){return i.openBlock(),i.createElementBlock("svg",zoe,Foe)}var $oe={render:vv},Voe=Object.freeze(Object.defineProperty({__proto__:null,render:vv,default:$oe},Symbol.toStringTag,{value:"Module"}));const Hoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},joe=[i.createElementVNode("path",{d:"M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z",fill:"currentColor"},null,-1)];function Cv(t,e){return i.openBlock(),i.createElementBlock("svg",Hoe,joe)}var Uoe={render:Cv},qoe=Object.freeze(Object.defineProperty({__proto__:null,render:Cv,default:Uoe},Symbol.toStringTag,{value:"Module"}));const Woe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Koe=[i.createElementVNode("path",{fill:"currentColor",d:"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},null,-1)];function kv(t,e){return i.openBlock(),i.createElementBlock("svg",Woe,Koe)}var Goe={render:kv},Joe=Object.freeze(Object.defineProperty({__proto__:null,render:kv,default:Goe},Symbol.toStringTag,{value:"Module"}));const Xoe={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},Yoe=[i.createElementVNode("path",{d:"M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function Sv(t,e){return i.openBlock(),i.createElementBlock("svg",Xoe,Yoe)}var Zoe={render:Sv},Qoe=Object.freeze(Object.defineProperty({__proto__:null,render:Sv,default:Zoe},Symbol.toStringTag,{value:"Module"}));const eie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"36",height:"32",viewBox:"0 0 576 512"},tie=[i.createElementVNode("path",{fill:"currentColor",d:"M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"},null,-1)];function Ev(t,e){return i.openBlock(),i.createElementBlock("svg",eie,tie)}var nie={render:Ev},rie=Object.freeze(Object.defineProperty({__proto__:null,render:Ev,default:nie},Symbol.toStringTag,{value:"Module"}));const oie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--uil",width:"32",height:"32",viewBox:"0 0 24 24"},iie=[i.createElementVNode("path",{fill:"currentColor",d:"M10 18a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1ZM20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2ZM10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Zm-3-1a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1Z"},null,-1)];function xv(t,e){return i.openBlock(),i.createElementBlock("svg",oie,iie)}var sie={render:xv},aie=Object.freeze(Object.defineProperty({__proto__:null,render:xv,default:sie},Symbol.toStringTag,{value:"Module"}));const lie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"28",height:"32",viewBox:"0 0 448 512"},cie=[i.createElementVNode("path",{d:"M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z",fill:"currentColor"},null,-1)];function Tv(t,e){return i.openBlock(),i.createElementBlock("svg",lie,cie)}var uie={render:Tv},die=Object.freeze(Object.defineProperty({__proto__:null,render:Tv,default:uie},Symbol.toStringTag,{value:"Module"}));const fie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},pie=[i.createElementVNode("path",{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z",fill:"currentColor"},null,-1)];function Av(t,e){return i.openBlock(),i.createElementBlock("svg",fie,pie)}var hie={render:Av},mie=Object.freeze(Object.defineProperty({__proto__:null,render:Av,default:hie},Symbol.toStringTag,{value:"Module"}));const gie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"32",height:"32",viewBox:"0 0 512 512"},bie=[i.createElementVNode("path",{fill:"currentColor",d:"M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28 22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"},null,-1)];function _v(t,e){return i.openBlock(),i.createElementBlock("svg",gie,bie)}var yie={render:_v},wie=Object.freeze(Object.defineProperty({__proto__:null,render:_v,default:yie},Symbol.toStringTag,{value:"Module"}));const vie={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--fa-solid",width:"36",height:"32",viewBox:"0 0 576 512"},Cie=[i.createElementVNode("path",{fill:"currentColor",d:"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"},null,-1)];function Dv(t,e){return i.openBlock(),i.createElementBlock("svg",vie,Cie)}var kie={render:Dv},Sie=Object.freeze(Object.defineProperty({__proto__:null,render:Dv,default:kie},Symbol.toStringTag,{value:"Module"}));ke.AiContext=yee,ke.BlockEquation=bne,ke.Blockquote=Dq,ke.Bold=kY,ke.BulletList=BW,ke.Code=zZ,ke.CodeBlock=Bq,ke.CodeBlockLowlight=DW,ke.CodeView=SQ,ke.Color=fZ,ke.CommandButton=Ue,ke.Commands=zQ,ke.Doc=vq,ke.Dropcursor=IQ,ke.ElementTiptap=hh,ke.ElementTiptapPlugin=Vw,ke.FontFamily=AZ,ke.FontSize=PZ,ke.FormatClear=lQ,ke.Fullscreen=fQ,ke.Gapcursor=NQ,ke.HardBreak=FZ,ke.Heading=Aq,ke.Highlight=kZ,ke.History=JZ,ke.HorizontalRule=$Z,ke.Iframe=bY,ke.Image=DJ,ke.Indent=QZ,ke.Italic=_Y,ke.LineHeight=aQ,ke.Link=rZ,ke.OrderedList=IW,ke.Paragraph=Cq,ke.Print=mQ,ke.SelectAll=gQ,ke.Strike=NY,ke.Table=cY,ke.TaskList=FJ,ke.Text=bq,ke.TextAlign=XZ,ke.Underline=SY,ke.default=Vw,ke.getSuggestionItems=dq,ke.renderItems=gq,Object.defineProperties(ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});