PageSourceSearch

https://seniorplanet.org/RichTextEditor-C8f8VtiJ.js

js seniorplanet.org collected 2026-10-02 02:55:29 UTC 730,141 bytes, 143 lines download raw bytes

vendor: 10,931 bytes, line 1
1import{bc as se,r as b,c5 as Of,c6 as a1,j as T,c7 as o1,c8 as s1,c9 as f1,ca as Ro,cb as l1,cc as Pf,cd as c1,ce as u1,M as d1,y as Bf,N as Oo,cf as h1,cg as p1,ch as m1,ci as g1,cj as b1,ck as Po}from"./vendors-a116b42b.js";import{L as y1,u as w1,e as M1,S as L1,a as C1}from"./assets/index-CPmZZsgM.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0fa31ea0-85a3-46ac-9a89-fe80c2cdfb3f",t._sentryDebugIdIdentifier="sentry-dbid-0fa31ea0-85a3-46ac-9a89-fe80c2cdfb3f")}catch{}function ue(t){this.content=t}ue.prototype={constructor:ue,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,i=r.find(t),a=r.content.slice();return i==-1?a.push(n||t,e):(a[i+1]=e,n&&(a[i]=n)),new ue(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ue(n)},addToStart:function(t,e){return new ue([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ue(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),a=r.find(t);return i.splice(a==-1?i.length:a,0,e,n),new ue(i)},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=ue.from(t),t.size?new ue(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ue.from(t),t.size?new ue(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ue.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}};ue.from=function(t){if(t instanceof ue)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ue(e)};function Jf(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),a=e.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let o=i.text,s=a.text,f=0;for(;o[f]==s[f];f++)n++;return f&&f<o.length&&f<s.length&&Yf(o.charCodeAt(f-1))&&Qf(o.charCodeAt(f))&&n--,n}if(i.content.size||a.content.size){let o=Jf(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function Uf(t,e,n,r){for(let i=t.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=t.child(--i),s=e.child(--a),f=o.nodeSize;if(o==s){n-=f,r-=f;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let l=o.text,c=s.text,u=l.length,h=c.length;for(;u>0&&h>0&&l[u-1]==c[h-1];)u--,h--,n--,r--;return u&&h&&u<l.length&&Yf(l.charCodeAt(u-1))&&Qf(l.charCodeAt(u))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let l=Uf(o.content,s.content,n-1,r-1);if(l)return l}n-=f,r-=f}}function Qf(t){return t>=56320&&t<57344}function Yf(t){return t>=55296&&t<56320}class k{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,i=0,a){for(let o=0,s=0;s<n;o++){let f=this.content[o],l=s+f.nodeSize;if(l>e&&r(f,i+s,a||null,o)!==!1&&f.content.size){let c=s+1;f.nodesBetween(Math.max(0,e-c),Math.min(f.content.size,n-c),r,i+c)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let a="",o=!0;return this.nodesBetween(e,n,(s,f)=>{let l=s.isText?s.text.slice(Math.max(e,f)-f,n-f):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&r&&(o?o=!1:a+=r),a+=l},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let a=0,o=0;o<n;a++){let s=this.content[a],f=o+s.nodeSize;f>e&&((o<e||f>n)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=f}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,a)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(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 i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return Jf(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Uf(this,e,n,r)}findIndex(e){if(e==0)return ar(0,e);if(e==this.size)return ar(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=e)return a==e?ar(n+1,a):ar(n,r);r=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 k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let a=e[i];r+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(n||(n=e.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const ki={index:0,offset:0};function ar(t,e){return ki.index=t,ki.offset=e,ki}function Ir(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(!Ir(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ir(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let _=class Zi{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))n||(n=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!r&&a.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}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&&Ir(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`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}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 Zi.none;if(e instanceof Zi)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};_.none=[];class Rn extends Error{}class I{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=Gf(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new I(r,this.openStart,this.openEnd)}removeBetween(e,n){return new I(Hf(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 I.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new I(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=e.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new I(e,r,i)}}I.empty=new I(k.empty,0,0);function Hf(t,e,n){let{index:r,offset:i}=t.findIndex(e),a=t.maybeChild(r),{index:o,offset:s}=t.findIndex(n);if(i==e||a.isText){if(s!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,a.copy(Hf(a.content,e-i-1,n-i-1)))}function Gf(t,e,n,r,i,a){let{index:o,offset:s}=t.findIndex(e),f=t.maybeChild(o);if(s==e||f.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=Gf(f.content,e-s-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,f);return l&&t.replaceChild(o,f.copy(l))}function v1(t,e,n){if(n.openStart>t.depth)throw new Rn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Rn("Inconsistent open depths");return Ff(t,e,n,0)}function Ff(t,e,n,r){let i=t.index(r),a=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=Ff(t,e,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,s=o.content;return Nt(o,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=k1(n,t);return Nt(a,Vf(t,o,s,e,r))}else return Nt(a,Tr(t,e,r))}function _f(t,e){if(!e.type.compatibleContent(t.type))throw new Rn("Cannot join "+e.type.n
vendor: 9,528 bytes, line 1
1ame+" onto "+t.type.name)}function $i(t,e,n){let r=t.node(n);return _f(r,e.node(n)),r}function Tt(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 In(t,e,n,r){let i=(e||t).node(n),a=0,o=e?e.index(n):i.childCount;t&&(a=t.index(n),t.depth>n?a++:t.textOffset&&(Tt(t.nodeAfter,r),a++));for(let s=a;s<o;s++)Tt(i.child(s),r);e&&e.depth==n&&e.textOffset&&Tt(e.nodeBefore,r)}function Nt(t,e){if(!t.type.validContent(e))throw new Rn("Invalid content for node "+t.type.name);return t.copy(e)}function Vf(t,e,n,r,i){let a=t.depth>i&&$i(t,e,i+1),o=r.depth>i&&$i(n,r,i+1),s=[];return In(null,t,i,s),a&&o&&e.index(i)==n.index(i)?(_f(a,o),Tt(Nt(a,Vf(t,e,n,r,i+1)),s)):(a&&Tt(Nt(a,Tr(t,e,i+1)),s),In(e,n,i,s),o&&Tt(Nt(o,Tr(n,r,i+1)),s)),In(r,null,i,s),new k(s)}function Tr(t,e,n){let r=[];if(In(null,t,n,r),t.depth>n){let i=$i(t,e,n+1);Tt(Nt(i,Tr(t,e,n+1)),r)}return In(e,null,n,r),new k(r)}function k1(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let a=n-1;a>=0;a--)i=e.node(a).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class On{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],i=e.child(n);return r?e.child(n).cut(r):i}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],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<e;a++)i+=r.child(a).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return _.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let s=r;r=i,i=s}let a=r.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!i||!a[o].isInSet(i.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].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 Nr(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=[],i=0,a=n;for(let o=e;;){let{index:s,offset:f}=o.content.findIndex(a),l=a-f;if(r.push(o,s,i+f),!l||(o=o.child(s),o.isText))break;a=l-1,i+=f+1}return new On(n,r,a)}static resolveCached(e,n){let r=Bo.get(e);if(r)for(let a=0;a<r.elts.length;a++){let o=r.elts[a];if(o.pos==n)return o}else Bo.set(e,r=new S1);let i=r.elts[r.i]=On.resolve(e,n);return r.i=(r.i+1)%j1,i}}class S1{constructor(){this.elts=[],this.i=0}}const j1=12,Bo=new WeakMap;class Nr{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 x1=Object.create(null);let lt=class Ki{constructor(e,n,r,i=_.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}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,i=0){this.content.nodesBetween(e,n,r,i,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,i){return this.content.textBetween(e,n,r,i)}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&&Ir(this.attrs,n||e.defaultAttrs||x1)&&_.sameSet(this.marks,r||_.none)}copy(e=null){return e==this.content?this:new Ki(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ki(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 I.empty;let i=this.resolve(e),a=this.resolve(n),o=r?0:i.sharedDepth(n),s=i.start(o),l=i.node(o).content.cut(i.pos-s,a.pos-s);return new I(l,i.depth-o,a.depth-o)}replace(e,n,r){return v1(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+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 i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return On.resolveCached(this,e)}resolveNoCache(e){return On.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}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()+")"),Wf(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=k.empty,i=0,a=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let f=i;f<a;f++)if(!this.type.allowsMarks(r.child(f).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(r),o=a&&a.matchFragment(this.content,n);return o?o.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),this.type.checkAttrs(this.attrs);let e=_.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!_.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;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 i=k.fromJSON(e,n.content),a=e.nodeType(n.type).create(n.attrs,i,r);return a.type.checkAttrs(a.attrs),a}};lt.prototype.text=void 0;class Dr extends lt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Wf(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}
vendor: 4,776 bytes, lines 1-2
1mark(e){return e==this.marks?this:new Dr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Dr(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 Wf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class zt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new I1(e,n);if(r.next==null)return zt.empty;let i=Zf(r);r.next&&r.err("Unexpected trailing text");let a=R1(z1(i));return O1(a,r),a}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 i=this;for(let a=n;i&&a<r;a++)i=i.matchType(e.child(a).type);return i}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 i=[this];function a(o,s){let f=o.matchFragment(e,r);if(f&&(!n||f.validEnd))return k.from(s.map(l=>l.createAndFill()));for(let l=0;l<o.next.length;l++){let{type:c,next:u}=o.next[l];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(u)==-1){i.push(u);let h=a(u,s.concat(c));if(h)return h}}return null}return a(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 i=r.shift(),a=i.match;if(a.matchType(e)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:f}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||f.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.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 i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)a+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return a}).join(`
2`)}}zt.empty=new zt(!0);class I1{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 Zf(t){let e=[];do e.push(T1(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function T1(t){let e=[];do e.push(N1(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function N1(t){let e=A1(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=D1(t,e);else break;return e}function Jo(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function D1(t,e){let n=Jo(t),r=n;return t.eat(",")&&(t.next!="}"?r=Jo(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function E1(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function A1(t){if(t.eat("(")){let e=Zf(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=E1(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 z1(t){let e=[[]];return i(a(t,0),n()),e;function n(){return e.push([])-1}function r(o,s,f){let l={term:f,to:s};return e[o].push(l),l}function i(o,s){o.forEach(f=>f.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((f,l)=>f.concat(a(l,s)),[]);if(o.type=="seq")for(let f=0;;f++){let l=a(o.exprs[f],s);if(f==o.exprs.length-1)return l;i(l,s=n())}else if(o.type=="star"){let f=n();return r(s,f),i(a(o.expr,f),f),[r(f)]}else if(o.type=="plus"){let f=n();
vendor: 12,831 bytes, lines 2-3
2return i(a(o.expr,s),f),i(a(o.expr,f),f),[r(f)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let f=s;for(let l=0;l<o.min;l++){let c=n();i(a(o.expr,f),c),f=c}if(o.max==-1)i(a(o.expr,f),f);else for(let l=o.min;l<o.max;l++){let c=n();r(f,c),i(a(o.expr,f),c),f=c}return[r(f)]}else{if(o.type=="name")return[r(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function $f(t,e){return e-t}function Uo(t,e){let n=[];return r(e),n.sort($f);function r(i){let a=t[i];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(i);for(let o=0;o<a.length;o++){let{term:s,to:f}=a[o];!s&&n.indexOf(f)==-1&&r(f)}}}function R1(t){let e=Object.create(null);return n(Uo(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:s,to:f})=>{if(!s)return;let l;for(let c=0;c<i.length;c++)i[c][0]==s&&(l=i[c][1]);Uo(t,f).forEach(c=>{l||i.push([s,l=[]]),l.indexOf(c)==-1&&l.push(c)})})});let a=e[r.join(",")]=new zt(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let s=i[o][1].sort($f);a.next.push({type:i[o][0],next:e[s.join(",")]||n(s)})}return a}}function O1(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],a=!i.validEnd,o=[];for(let s=0;s<i.next.length;s++){let{type:f,next:l}=i.next[s];o.push(f.name),a&&!(f.isText||f.hasRequiredAttrs())&&(a=!1),r.indexOf(l)==-1&&r.push(l)}a&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Kf(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 qf(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let a=t[r];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function Xf(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in t)t[i].validate&&t[i].validate(e[i])}function el(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new B1(t,r,e[r]);return n}let Qo=class tl{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=el(e,r.attrs),this.defaultAttrs=Kf(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==zt.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}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:qf(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new lt(this,this.computeAttrs(e),k.from(n),_.setFrom(r))}createChecked(e=null,n,r){return n=k.from(n),this.checkContent(n),new lt(this,this.computeAttrs(e),n,_.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=k.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),a=i&&i.fillBefore(k.empty,!0);return a?new lt(this,e,n.append(a),_.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)}`)}checkAttrs(e){Xf(this.attrs,e,"node",this.name)}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:_.none:e}static compile(e,n){let r=Object.create(null);e.forEach((a,o)=>r[a]=new tl(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function P1(t,e,n){let r=n.split("|");return i=>{let a=i===null?"null":typeof i;if(r.indexOf(a)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${a}`)}}class B1{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?P1(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Vr{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=el(e,i.attrs),this.excluded=null;let a=Kf(this.attrs);this.instance=a?new _(this,a):null}create(e=null){return!e&&this.instance?this.instance:new _(this,qf(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((a,o)=>r[a]=new Vr(a,i++,n,o)),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]}checkAttrs(e){Xf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class nl{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=ue.from(e.nodes),n.marks=ue.from(e.marks||{}),this.nodes=Qo.compile(this.spec.nodes,this),this.marks=Vr.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=r[o]||(r[o]=zt.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?Yo(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:Yo(this,o.split(" "))}this.nodeFromJSON=i=>lt.fromJSON(this,i),this.markFromJSON=i=>_.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Qo){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,i)}text(e,n){let r=this.nodes.text;return new Dr(r,r.defaultAttrs,e,_.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Yo(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.marks[i],o=a;if(a)n.push(a);else for(let s in t.marks){let f=t.marks[s];(i=="_"||f.spec.group&&f.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=f)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function J1(t){return t.tag!=null}function U1(t){return t.style!=null}class ct{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(J1(i))this.tags.push(i);else if(U1(i)){let a=/[^=]*/.exec(i.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=e.nodes[i.node];return a.contentMatch.matchType(a)})}parse(e,n={}){let r=new Go(this,n,!1);return r.addAll(e,_.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Go(this,n,!0);return r.addAll(e,_.none,n.from,n.to),I.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(H1(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let o=a.getAttrs(e);if(o===!1)continue;a.attrs=o||void 0}return a}}}matchStyle(e,n,r,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let o=this.styles[a],s=o.style;if(!(s.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(o.getAttrs){let f=o.getAttrs(n);if(f===!1)continue;o.attrs=f||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<a)break}n.splice(o,0,i)}for(let i in e.marks){let a=e.marks[i].spec.parseDOM;a&&a.forEach(o=>{r(o=Fo(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let a=e.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=Fo(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ct(e,ct.schemaRules(e)))}}const rl={address:!0,article:!0,aside:!0,blockquote:!0,body:!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},Q1={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},il={ol:!0,ul:!0},Pn=1,qi=2,wr=4;function Ho(t,e,n){return e!=null?(e?Pn:0)|(e==="full"?qi:0):t&&t.whitespace=="pre"?Pn|qi:n&-5}class or{constructor(e,n,r,i,a,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=_.none,this.match=a||(o&wr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(k.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Pn)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=k.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!rl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Go{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,a,o=Ho(null,n.preserveWhitespace,0)|(r?wr:0);i?a=new or(i.type,i.attrs,_.none,!0,n.topMatch||i.type.contentMatch,o):r?a=new or(null,null,_.none,!0,null,o):a=new or(e.schema.topNodeType,null,_.none,!0,null,o),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,a=i.options&qi?"full":this.localPreserveWS||(i.options&Pn)>0,{schema:o}=this.parser;if(a==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(a)if(a==="full")r=r.replace(/\r\n?/g,`
3`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let s=r.split(/\r?\n|\r/);for(let f=0;f<s.length;f++)f&&this.insertNode(o.linebreakReplacement.create(),n,!0),s[f]&&this.insertNode(o.text(s[f]),n,!/\S/.test(s[f]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],f=e.previousSibling;(!s||f&&f.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,a=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;il.hasOwnProperty(o)&&this.parser.normalizeLists&&Y1(e);let f=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));e:if(f?f.ignore:Q1.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!f||f.skip||f.closeParent){f&&f.closeParent?this.open=Math.max(0,this.open-1):f&&f.skip.nodeType&&(e=f.
vendor: 5,137 bytes, lines 3-4
3skip);let l,c=this.needsBlock;if(rl.hasOwnProperty(o))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),l=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let u=f&&f.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),l&&this.sync(a),this.needsBlock=c}else{let l=this.readStyles(e,n);l&&this.addElementByRule(e,f,l,f.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],o=r.getPropertyValue(a);if(o)for(let s=void 0;;){let f=this.parser.matchStyle(a,o,this,s);if(!f)break;if(f.ignore)return null;if(f.clearMark?n=n.filter(l=>!f.clearMark(l)):n=n.concat(this.parser.schema.marks[f.mark].create(f.attrs)),f.consuming===!1)s=f;else break}}return n}addElementByRule(e,n,r,i){let a,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let f=this.enter(o,n.attrs||null,r,n.preserveWhitespace);f&&(a=!0,r=f)}else{let f=this.parser.schema.marks[n.mark];r=r.concat(f.create(n.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(f=>this.insertNode(f,r,!1));else{let f=e;typeof n.contentElement=="string"?f=e.querySelector(n.contentElement):typeof n.contentElement=="function"?f=n.contentElement(e):n.contentElement&&(f=n.contentElement),this.findAround(e,f,!0),this.addAll(f,r),this.findAround(e,f,!1)}a&&this.sync(s)&&this.open--}addAll(e,n,r,i){let a=r||0;for(let o=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];o!=s;o=o.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(o,n);this.findAtPoint(e,a)}findPlace(e,n,r){let i,a;for(let o=this.open,s=0;o>=0;o--){let f=this.nodes[o],l=f.findWrapping(e);if(l&&(!i||i.length>l.length+s)&&(i=l,a=f,!l.length))break;if(f.solid){if(r)break;s+=2}}if(!i)return null;this.sync(a);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let o=_.none;for(let s of i.concat(e.marks))(a.type?a.type.allowsMarkType(s.type):_o(s.type,e.type))&&(o=s.addToSet(o));return a.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let a=this.findPlace(e.create(n),r,!1);return a&&(a=this.enterInner(e,n,r,!0,i)),a}enterInner(e,n,r,i=!1,a){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=Ho(e,a,o.options);o.options&wr&&o.content.length==0&&(s|=wr);let f=_.none;return r=r.filter(l=>(o.type?o.type.allowsMarkType(l.type):_o(l.type,e))?(f=l.addToSet(f),!1):!0),this.nodes.push(new or(e,n,f,i,null,s)),this.open++,r}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;this.localPreserveWS&&(this.nodes[n].options|=Pn)}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 i=r.length-1;i>=0;i--)e+=r[i].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 i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].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,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,f)=>{for(;s>=0;s--){let l=n[s];if(l==""){if(s==n.length-1||s==0)continue;for(;f>=a;f--)if(o(s-1,f))return!0;return!1}else{let c=f>0||f==0&&i?this.nodes[f].type:r&&f>=a?r.node(f-a).type:null;if(!c||c.name!=l&&!c.isInGroup(l))return!1;f--}}return!0};return o(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;
vendor: 4,374 bytes, line 4
4if(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}}}function Y1(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&il.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function H1(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Fo(t){let e={};for(let n in t)e[n]=t[n];return e}function _o(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let a=[],o=s=>{a.push(s);for(let f=0;f<s.edgeCount;f++){let{type:l,next:c}=s.edge(f);if(l==e||a.indexOf(c)<0&&o(c))return!0}};if(o(i.contentMatch))return!0}}class Bt{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=sr(n).createDocumentFragment());let i=r,a=[];return e.forEach(o=>{if(a.length||o.marks.length){let s=0,f=0;for(;s<a.length&&f<o.marks.length;){let l=o.marks[f];if(!this.marks[l.type.name]){f++;continue}if(!l.eq(a[s][0])||l.type.spec.spanning===!1)break;s++,f++}for(;s<a.length;)i=a.pop()[1];for(;f<o.marks.length;){let l=o.marks[f++],c=this.serializeMark(l,o.isInline,n);c&&(a.push([l,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){if(e.isText)return sr(n).createTextNode(e.text);let{dom:r,contentDOM:i}=Mr(sr(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let a=this.serializeMark(e.marks[i],e.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Mr(sr(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:Mr(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Bt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Vo(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Vo(e.marks)}}function Vo(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function sr(t){return t.document||window.document}const Wo=new WeakMap;function G1(t){let e=Wo.get(t);return e===void 0&&Wo.set(t,e=F1(t)),e}function F1(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Mr(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(a=G1(r))&&a.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,f=n?t.createElementNS(n,i):t.createElement(i),l=e[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let u in l)if(l[u]!=null){let h=u.indexOf(" ");h>0?f.setAttributeNS(u.slice(0,h),u.slice(h+1),l[u]):u=="style"&&f.style?f.style.cssText=l[u]:f.setAttribute(u,l[u])}}for(let u=c;u<e.length;u++){let h=e[u];if(h===0){if(u<e.length-1||u>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:f,contentDOM:f}}else if(typeof h=="string")f.appendChild(t.createTextNode(h));else{let{dom:d,contentDOM:p}=Mr(t,h,n,r);if(f.appendChild(d),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:f,contentDOM:s}}const al=65535,ol=Math.pow(2,16);function _1(t,e){return t+e*ol}function Zo(t){return t&al}function V1(t){return(t-(t&al))/ol}const sl=1,fl=2,Lr=4,ll=8;class Xi{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&ll)>0}get deletedBefore(){return(this.delInfo&(sl|Lr))>0}get deletedAfter(){return(this.delInfo&(fl|Lr))>0}get deletedAcross(){return(this.delInfo&Lr)>0}}class Se{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Se.empty)return Se.empty}recover(e){let n=0,r=Zo(e);if(!this.inverted)for(let i=0;i<r;
vendor: 3,657 bytes, line 4
4i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+V1(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 i=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let f=this.ranges[s]-(this.inverted?i:0);if(f>e)break;let l=this.ranges[s+a],c=this.ranges[s+o],u=f+l;if(e<=u){let h=l?e==f?-1:e==u?1:n:n,d=f+i+(h<0?0:c);if(r)return d;let p=e==(n<0?f:u)?null:_1(s/3,e-f),m=e==f?fl:e==u?sl:Lr;return(n<0?e!=f:e!=u)&&(m|=ll),new Xi(d,m,p)}i+=c-l}return r?e+i:new Xi(e+i,0,null)}touches(e,n){let r=0,i=Zo(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let f=this.ranges[s]-(this.inverted?r:0);if(f>e)break;let l=this.ranges[s+a],c=f+l;if(e<=c&&s==i*3)return!0;r+=this.ranges[s+o]-l}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let o=this.ranges[i],s=o-(this.inverted?a:0),f=o+(this.inverted?0:a),l=this.ranges[i+n],c=this.ranges[i+r];e(s,s+l,f,f+c),a+=c-l}}invert(){return new Se(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Se.empty:new Se(e<0?[0,-e,0]:[0,0,e])}}Se.empty=new Se([]);class Bn{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Bn(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),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 i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i: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 i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Bn;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 i=0;for(let a=this.from;a<this.to;a++){let o=this._maps[a],s=o.mapResult(e,n);if(s.recover!=null){let f=this.getMirror(a);if(f!=null&&f>a&&f<this.to){a=f,e=this._maps[f].recover(s.recover);continue}}i|=s.delInfo,e=s.pos}return r?e:new Xi(e,i,null)}}const Si=Object.create(null);class ye{getMap(){return Se.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Si[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 Si)throw new RangeError("Duplicate use of step JSON ID "+e);return Si[e]=n,n.prototype.jsonID=e,n}}class ie{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ie(e,null)}static fail(e){return new ie(null,e)}static fromReplace(e,n,r,i){try{return ie.ok(e.replace(n,r,i))}catch(a){if(a instanceof Rn)return ie.fail(a.message);throw a}}}function Ta(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let a=t.child(i);a.content.size&&(a=a.copy(Ta(a.content,e,a))),a.isInline&&(a=e(a,n,i)),r.push(a)}return k.fromArray(r)}class st extends ye{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),i=r.no
vendor: 13,432 bytes, lines 4-5
4de(r.sharedDepth(this.to)),a=new I(Ta(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return ie.fromReplace(e,this.from,this.to,a)}invert(){return new Ue(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 st(n.pos,r.pos,this.mark)}merge(e){return e instanceof st&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new st(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 st(n.from,n.to,e.markFromJSON(n.mark))}}ye.jsonID("addMark",st);class Ue extends ye{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 I(Ta(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return ie.fromReplace(e,this.from,this.to,r)}invert(){return new st(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 Ue(n.pos,r.pos,this.mark)}merge(e){return e instanceof Ue&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ue(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 Ue(n.from,n.to,e.markFromJSON(n.mark))}}ye.jsonID("removeMark",Ue);class ft extends ye{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ie.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ie.fromReplace(e,this.pos,this.pos+1,new I(k.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 i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new ft(this.pos,n.marks[i]);return new ft(this.pos,this.mark)}}return new Rt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ft(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 ft(n.pos,e.markFromJSON(n.mark))}}ye.jsonID("addNodeMark",ft);class Rt extends ye{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ie.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ie.fromReplace(e,this.pos,this.pos+1,new I(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ft(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Rt(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 Rt(n.pos,e.markFromJSON(n.mark))}}ye.jsonID("removeNodeMark",Rt);class ne extends ye{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&ea(e,this.from,this.to)?ie.fail("Structure replace would overwrite content"):ie.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Se([this.from,this.to-this.from,this.slice.size])}invert(e){return new ne(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&ne.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new ne(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ne)||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?I.empty:new I(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ne(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?I.empty:new I(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ne(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 ne(n.from,n.to,I.fromJSON(e,n.slice),!!n.structure)}}ne.MAP_BIAS=1;ye.jsonID("replace",ne);class le extends ye{constructor(e,n,r,i,a,o,s=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=a,this.insert=o,this.structure=s}apply(e){if(this.structure&&(ea(e,this.from,this.gapFrom)||ea(e,this.gapTo,this.to)))return ie.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ie.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ie.fromReplace(e,this.from,this.to,r):ie.fail("Content does not fit in gap")}getMap(){return new Se([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 le(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),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new le(n.pos,r.pos,i,a,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 le(n.from,n.to,n.gapFrom,n.gapTo,I.fromJSON(e,n.slice),n.insert,!!n.structure)}}ye.jsonID("replaceAround",le);function ea(t,e,n){let r=t.resolve(e),i=n-e,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function W1(t,e,n,r){let i=[],a=[],o,s;t.doc.nodesBetween(e,n,(f,l,c)=>{if(!f.isInline)return;let u=f.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let h=Math.max(l,e),d=Math.min(l+f.nodeSize,n),p=r.addToSet(u);for(let m=0;m<u.length;m++)u[m].isInSet(p)||(o&&o.to==h&&o.mark.eq(u[m])?o.to=d:i.push(o=new Ue(h,d,u[m])));s&&s.to==h?s.to=d:a.push(s=new st(h,d,r))}}),i.forEach(f=>t.step(f)),a.forEach(f=>t.step(f))}function Z1(t,e,n,r){let i=[],a=0;t.doc.nodesBetween(e,n,(o,s)=>{if(!o.isInline)return;a++;let f=null;if(r instanceof Vr){let l=o.marks,c;for(;c=r.isInSet(l);)(f||(f=[])).push(c),l=c.removeFromSet(l)}else r?r.isInSet(o.marks)&&(f=[r]):f=o.marks;if(f&&f.length){let l=Math.min(s+o.nodeSize,n);for(let c=0;c<f.length;c++){let u=f[c],h;for(let d=0;d<i.length;d++){let p=i[d];p.step==a-1&&u.eq(i[d].style)&&(h=p)}h?(h.to=l,h.step=a):i.push({style:u,from:Math.max(s,e),to:l,step:a})}}}),i.forEach(o=>t.step(new Ue(o.from,o.to,o.style)))}function Na(t,e,n,r=n.contentMatch,i=!0){let a=t.doc.nodeAt(e),o=[],s=e+1;for(let f=0;f<a.childCount;f++){let l=a.child(f),c=s+l.nodeSize,u=r.matchType(l.type);if(!u)o.push(new ne(s,c,I.empty));else{r=u;for(let h=0;h<l.marks.length;h++)n.allowsMarkType(l.marks[h].type)||t.step(new Ue(s,c,l.marks[h]));if(i&&l.isText&&n.whitespace!="pre"){let h,d=/\r?\n|\r/g,p;for(;h=d.exec(l.text);)p||(p=new I(k.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),o.push(new ne(s+h.index,s+h.index+h[0].length,p))}}s=c}if(!r.validEnd){let f=r.fillBefore(k.empty,!0);t.replace(s,s,new I(f,0,0))}for(let f=o.length-1;f>=0;f--)t.step(o[f])}function $1(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function pn(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,a=0;;--r){let o=t.$from.node(r),s=t.$from.index(r)+i,f=t.$to.indexAfter(r)-a;if(r<t.depth&&o.canReplace(s,f,n))return r;if(r==0||o.type.spec.isolating||!$1(o,s,f))break;s&&(i=1),f<o.childCount&&(a=1)}return null}function K1(t,e,n){let{$from:r,$to:i,depth:a}=e,o=r.before(a+1),s=i.after(a+1),f=o,l=s,c=k.empty,u=0;for(let p=a,m=!1;p>n;p--)m||r.index(p)>0?(m=!0,c=k.from(r.node(p).copy(c)),u++):f--;let h=k.empty,d=0;for(let p=a,m=!1;p>n;p--)m||i.after(p+1)<i.end(p)?(m=!0,h=k.from(i.node(p).copy(h)),d++):l++;t.step(new le(f,l,o,s,new I(c.append(h),u,d),c.size-u,!0))}function Da(t,e,n=null,r=t){let i=q1(t,e),a=i&&X1(r,e);return a?i.map($o).concat({type:e,attrs:n}).concat(a.map($o)):null}function $o(t){return{type:t,attrs:null}}function q1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,a=n.contentMatchAt(r).findWrapping(e);if(!a)return null;let o=a.length?a[0]:e;return n.canReplaceWith(r,i,o)?a:null}function X1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,a=n.child(r),o=e.contentMatch.findWrapping(a.type);if(!o)return null;let f=(o.length?o[o.length-1]:e).contentMatch;for(let l=r;f&&l<i;l++)f=f.matchType(n.child(l).type);return!f||!f.validEnd?null:o}function e0(t,e,n){let r=k.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(n[o].type.create(n[o].attrs,r))}let i=e.start,a=e.end;t.step(new le(i,a,i,a,new I(r,0,0),n.length,!0))}function t0(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(o,s)=>{let f=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,f)&&n0(t.doc,t.mapping.slice(a).map(s),r)){let l=null;if(r.schema.linebreakReplacement){let d=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);d&&!p?l=!1:!d&&p&&(l=!0)}l===!1&&ul(t,o,s,a),Na(t,t.mapping.slice(a).map(s,1),r,void 0,l===null);let c=t.mapping.slice(a),u=c.map(s,1),h=c.map(s+o.nodeSize,1);return t.step(new le(u,h,u+1,h-1,new I(k.from(r.create(f,null,o.marks)),0,0),1,!0)),l===!0&&cl(t,o,s,a),!1}})}function cl(t,e,n,r){e.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let f=t.mapping.slice(r).map(n+1+a+o.index);t.replaceWith(f,f+1,e.type.schema.linebreakReplacement.create())}}})}function ul(t,e,n,r){e.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+a);t.replaceWith(o,o+1,e.type.schema.text(`
5`))}})}function n0(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function r0(t,e,n,r,i){let a=t.doc.nodeAt(e);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return t.replaceWith(e,e+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new le(e,e+a.nodeSize,e+1,e+a.nodeSize-1,new I(k.from(o),0,0),1,!0))}function qe(t,e,n=1,r){let i=t.resolve(e),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,c=n-2;l>a;l--,c--){let u=i.node(l),h=i.index(l);if(u.type.spec.isolating)return!1;let d=u.content.cutByIndex(h,u.childCount),p=r&&r[c+1];p&&(d=d.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||u;if(!u.canReplace(h+1,u.childCount)||!m.type.validContent(d))return!1}let s=i.indexAfter(a),f=r&&r[0];return i.node(a).canReplaceWith(s,s,f?f.type:i.node(a+1).type)}function i0(t,e,n=1,r){let i=t.doc.resolve(e),a=k.empty,o=k.empty;for(let s=i.depth,f=i.depth-n,l=n-1;s>f;s--,l--){a=k.from(i.node(s).copy(a));let c=r&&r[l];o=k.from(c?c.type.create(c.attrs,o):i.node(s).copy(o))}t.step(new ne(e,e,new I(a.append(o),n,n),!0))}function yt(t,e){let n=t.resolve(e),r=n.index();return dl(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function a0(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let a=e.child(i),o=a.type==r?t.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!t.type.allowsMarks(a.marks))return!1}return n.validEnd}function dl(t,e){return!!(t&&e&&!t.isLeaf&&a0(t,e))}function Wr(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let a,o,s=r.index(i);if(i==r.depth?(a=r.nodeBefore,o=r.nodeAfter):n>
vendor: 3,405 bytes, line 5
50?(a=r.node(i+1),s++,o=r.node(i).maybeChild(s)):(a=r.node(i).maybeChild(s-1),o=r.node(i+1)),a&&!a.isTextblock&&dl(a,o)&&r.node(i).canReplace(s,s+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function o0(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,a=t.doc.resolve(e-n),o=a.node().type;if(i&&o.inlineContent){let c=o.whitespace=="pre",u=!!o.contentMatch.matchType(i);c&&!u?r=!1:!c&&u&&(r=!0)}let s=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);ul(t,c.node(),c.before(),s)}o.inlineContent&&Na(t,e+n-1,o,a.node().contentMatchAt(a.index()),r==null);let f=t.mapping.slice(s),l=f.map(e-n);if(t.step(new ne(l,f.map(e+n,-1),I.empty,!0)),r===!0){let c=t.doc.resolve(l);cl(t,c.node(),c.before(),t.steps.length)}return t}function s0(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 i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a<r.node(i).childCount)return null}return null}function hl(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let a=0;a<n.openStart;a++)i=i.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let o=r.depth;o>=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,f=r.index(o)+(s>0?1:0),l=r.node(o),c=!1;if(a==1)c=l.canReplace(f,f,i);else{let u=l.contentMatchAt(f).findWrapping(i.firstChild.type);c=u&&l.canReplaceWith(f,f,u[0])}if(c)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function Zr(t,e,n=e,r=I.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),a=t.resolve(n);return pl(i,a,r)?new ne(e,n,r):new f0(i,a,r).fit()}function pl(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class f0{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=k.empty;for(let i=0;i<=e.depth;i++){let a=e.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=k.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let l=this.findFittable();l?this.placeNodes(l):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let f=new I(a,o,s);return e>-1?new le(r.pos,e,this.$to.pos,this.$to.end(),f,n):f.size||r.pos!=this.$to.pos?new ne(r.pos,i.pos,f):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let a=n.firstChild;if(n.childCount>1&&(i=0),a.type.spec.isolating&&i<=r){e=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=ji(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:f,match:l}=this.frontier[s],c,u=null;if(n==1&&(o?l.matchType(o.type)||(u=l.fillBefore(k.from(o),!1)):a&&f.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:u};
vendor: 4,710 bytes, line 5
5if(n==2&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:c};if(a&&l.matchType(a.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=ji(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new I(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=ji(e,n);if(i.childCount<=1&&n>0){let a=e.size-n<=n+i.size;this.unplaced=new I(vn(e,n-1,1),n-1,a?n-1:r)}else this.unplaced=new I(vn(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let m=0;m<a.length;m++)this.openFrontierNode(a[m]);let o=this.unplaced,s=r?r.content:o.content,f=o.openStart-e,l=0,c=[],{match:u,type:h}=this.frontier[n];if(i){for(let m=0;m<i.childCount;m++)c.push(i.child(m));u=u.matchFragment(i)}let d=s.size+e-(o.content.size-o.openEnd);for(;l<s.childCount;){let m=s.child(l),g=u.matchType(m.type);if(!g)break;l++,(l>1||f==0||m.content.size)&&(u=g,c.push(ml(m.mark(h.allowedMarks(m.marks)),l==1?f:0,l==s.childCount?d:-1)))}let p=l==s.childCount;p||(d=-1),this.placed=kn(this.placed,n,k.from(c)),this.frontier[n].match=u,p&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=s;m<d;m++){let y=g.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),g=y.content}this.unplaced=p?e==0?I.empty:new I(vn(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new I(vn(o.content,e,l),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!xi(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,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),o=xi(e,n,i,r,a);if(o){for(let s=n-1;s>=0;s--){let{match:f,type:l}=this.frontier[s],c=xi(e,s,l,f,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:a?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=kn(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,a)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=kn(this.placed,this.depth,k.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(k.empty,!0);n.childCount&&(this.placed=kn(this.placed,this.frontier.length,n))}}function vn(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(vn(t.firstChild.content,e-1,n)))}function kn(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(kn(t.lastChild.content,e-1,n)))}function ji(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function ml(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,ml(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(k.empty,!0)))),t.copy(r)}function xi(t,e,n,r,i){let a=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!l0(n,a.content,o)?s:null}function l0(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function c0(t){return t.spec.defining||t.spec.definingForContent}function u0(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),a=t.doc.resolve(n);if(pl(i,a,r))return t.step(new ne(e,n,r));let o=bl(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let h=i.depth,d=i.pos-1;h>0;h--,d--){let p=i.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(h)>-1?s=h:i.before(h)==d&&o.splice(1,0,-h)}let f=o.indexOf(s),l=[],c=r.openStart;for(let h=r.content,d=0;;d++){let p=h.firstChild;if(l.push(p),d==r.openStart)break;h=p.content}for(let h=c-1;h>=0;h--){let d=l[h],p=c0(d.type);if(p&&!d.sameMarkup(i.node(Math.abs(s)-1)))c=h;else if(p||!d.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let d=(h+c+1)%(r.openStart+1),p=l[d];if(p)for(let m=0;m<o.length;m++){let g=o[(m+f)%o.length],y=!0;g<0&&(y=!1,g=-g);let M=i.node(g-1),L=i.index(g-1);
vendor: 14,320 bytes, line 5
5if(M.canReplaceWith(L,L,p.type,p.marks))return t.replace(i.before(g),y?a.after(g):n,new I(gl(r.content,0,r.openStart,d),d,r.openEnd))}}let u=t.steps.length;for(let h=o.length-1;h>=0&&(t.replace(e,n,r),!(t.steps.length>u));h--){let d=o[h];d<0||(e=i.before(d),n=a.after(d))}}function gl(t,e,n,r,i){if(e<n){let a=t.firstChild;t=t.replaceChild(0,a.copy(gl(a.content,e+1,n,r,a)))}if(e>r){let a=i.contentMatchAt(0),o=a.fillBefore(t).append(t);t=o.append(a.matchFragment(o).fillBefore(k.empty,!0))}return t}function d0(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=s0(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new I(k.from(r),0,0))}function h0(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let o=r.sharedDepth(n),s=!1;for(let f=r.depth;f>o;f--)r.node(f).type.spec.isolating&&(s=!0);for(let f=i.depth;f>o;f--)i.node(f).type.spec.isolating&&(s=!0);if(!s){for(let f=r.depth;f>0&&e==r.start(f);f--)e=r.before(f);for(let f=i.depth;f>0&&n==i.start(f);f--)n=i.before(f);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let a=bl(r,i);for(let o=0;o<a.length;o++){let s=a[o],f=o==a.length-1;if(f&&s==0||r.node(s).type.contentMatch.validEnd)return t.delete(r.start(s),i.end(s));if(s>0&&(f||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return t.delete(r.before(o),n);t.delete(e,n)}function bl(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let a=t.start(i);if(a<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(a==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==a-1)&&n.push(i)}return n}class en extends ye{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 ie.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return ie.fromReplace(e,this.pos,this.pos+1,new I(k.from(i),0,n.isLeaf?0:1))}getMap(){return Se.empty}invert(e){return new en(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 en(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 en(n.pos,n.attr,n.value)}}ye.jsonID("attr",en);class Jn extends ye{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return ie.ok(r)}getMap(){return Se.empty}invert(e){return new Jn(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Jn(n.attr,n.value)}}ye.jsonID("docAttr",Jn);let nn=class extends Error{};nn=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};nn.prototype=Object.create(Error.prototype);nn.prototype.constructor=nn;nn.prototype.name="TransformError";class yl{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Bn}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new nn(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}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((a,o,s,f)=>{e=Math.min(e,s),n=Math.max(n,f)})}return e==1e9?null:{from:e,to:n}}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=I.empty){let i=Zr(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new I(k.from(r),0,0))}delete(e,n){return this.replace(e,n,I.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return u0(this,e,n,r),this}replaceRangeWith(e,n,r){return d0(this,e,n,r),this}deleteRange(e,n){return h0(this,e,n),this}lift(e,n){return K1(this,e,n),this}join(e,n=1){return o0(this,e,n),this}wrap(e,n){return e0(this,e,n),this}setBlockType(e,n=e,r,i=null){return t0(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return r0(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new en(e,n,r)),this}setDocAttribute(e,n){return this.step(new Jn(e,n)),this}addNodeMark(e,n){return this.step(new ft(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof _)n.isInSet(r.marks)&&this.step(new Rt(e,n));else{let i=r.marks,a,o=[];for(;a=n.isInSet(i);)o.push(new Rt(e,a)),i=a.removeFromSet(i);for(let s=o.length-1;s>=0;s--)this.step(o[s])}return this}split(e,n=1,r){return i0(this,e,n,r),this}addMark(e,n,r){return W1(this,e,n,r),this}removeMark(e,n,r){return Z1(this,e,n,r),this}clearIncompatible(e,n,r){return Na(this,e,n,r),this}}const Ii=Object.create(null);class P{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new p0(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=I.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let a=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:f,$to:l}=o[s],c=e.mapping.slice(a);e.replaceRange(c.map(f.pos),c.map(l.pos),s?I.empty:n),s==0&&Xo(e,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:o,$to:s}=i[a],f=e.mapping.slice(r),l=f.map(o.pos),c=f.map(s.pos);a?e.deleteRange(l,c):(e.replaceRangeWith(l,c,n),Xo(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new A(e):$t(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let a=e.depth-1;a>=0;a--){let o=n<0?$t(e.node(0),e.node(a),e.before(a+1),e.index(a),n,r):$t(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,n,r);if(o)return o}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new je(e.node(0))}static atStart(e){return $t(e,e,0,0,1)||new je(e)}static atEnd(e){return $t(e,e,e.content.size,e.childCount,-1)||new je(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Ii[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 Ii)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ii[e]=n,n.prototype.jsonID=e,n}getBookmark(){return A.between(this.$anchor,this.$head).getBookmark()}}P.prototype.visible=!0;class p0{constructor(e,n){this.$from=e,this.$to=n}}let Ko=!1;function qo(t){!Ko&&!t.parent.inlineContent&&(Ko=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class A extends P{constructor(e,n=e){qo(e),qo(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 P.near(r);let i=e.resolve(n.map(this.anchor));return new A(i.parent.inlineContent?i:r,r)}replace(e,n=I.empty){if(super.replace(e,n),n==I.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof A&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new $r(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 A(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=P.findFrom(n,r,!0)||P.findFrom(n,-r,!0);if(a)n=a.$head;else return P.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(P.findFrom(e,-r,!0)||P.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new A(e,n)}}P.jsonID("text",A);class $r{constructor(e,n){this.anchor=e,this.head=n}map(e){return new $r(e.map(this.anchor),e.map(this.head))}resolve(e){return A.between(e.resolve(this.anchor),e.resolve(this.head))}}class D extends P{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:i}=n.mapResult(this.anchor),a=e.resolve(i);return r?P.near(a):new D(a)}content(){return new I(k.from(this.node),0,0)}eq(e){return e instanceof D&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ea(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new D(e.resolve(n.anchor))}static create(e,n){return new D(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}D.prototype.visible=!1;P.jsonID("node",D);class Ea{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new $r(r,r):new Ea(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&D.isSelectable(r)?new D(n):P.near(n)}}class je extends P{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=I.empty){if(n==I.empty){e.delete(0,e.doc.content.size);let r=P.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new je(e)}map(e){return new je(e)}eq(e){return e instanceof je}getBookmark(){return m0}}P.jsonID("all",je);const m0={map(){return this},resolve(t){return new je(t)}};function $t(t,e,n,r,i,a=!1){if(e.inlineContent)return A.create(t,n);for(let o=r-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let s=e.child(o);if(s.isAtom){if(!a&&D.isSelectable(s))return D.create(t,n-(i<0?s.nodeSize:0))}else{let f=$t(t,s,n+i,i<0?s.childCount:0,i,a);if(f)return f}n+=s.nodeSize*i}return null}function Xo(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof ne||i instanceof le))return;let a=t.mapping.maps[r],o;a.forEach((s,f,l,c)=>{o==null&&(o=c)}),t.setSelection(P.near(t.doc.resolve(o),n))}const es=1,ts=2,ns=4;class g0 extends yl{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|es)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&es)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ts,this}ensureMarks(e){return _.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&ts)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&-3,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)||_.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,a)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(P.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|=ns,this}get scrolledIntoView(){return(this.updated&ns)>0}}function rs(t,e){return!e||!t?t:t.bind(e)}class Sn{constructor(e,n,r){this.name=e,this.init=rs(n.init,r),this.apply=rs(n.apply,r)}}const b0=[new Sn("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Sn("selection",{init(t,e){return t.selection||P.atStart(e.doc)},apply(t){return t.selection}}),new Sn("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Sn("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Ti{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b0.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 Sn(r.key,r.spec.state,r))})}}class St{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}
vendor: 4,618 bytes, line 5
5apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let a=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let f=i?i[o].n:0,l=i?i[o].state:this,c=f<n.length&&s.spec.appendTransaction.call(s,f?n.slice(f):n,l,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let u=0;u<this.config.plugins.length;u++)i.push(u<o?{state:r,n:n.length}:{state:this,n:0})}n.push(c),r=r.applyInner(c),a=!0}i&&(i[o]={state:r,n:n.length})}}if(!a)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new St(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let a=r[i];n[a.name]=a.apply(e,this[a.name],this,n)}return n}get tr(){return new g0(this)}static create(e){let n=new Ti(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new St(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new Ti(this.schema,e.plugins),r=n.fields,i=new St(n);for(let a=0;a<r.length;a++){let o=r[a].name;i[o]=this.hasOwnProperty(o)?this[o]:r[a].init(e,i)}return i}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 i=e[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.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 i=new Ti(e.schema,e.plugins),a=new St(i);return i.fields.forEach(o=>{if(o.name=="doc")a.doc=lt.fromJSON(e.schema,n.doc);else if(o.name=="selection")a.selection=P.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let f=r[s],l=f.spec.state;if(f.key==o.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=l.fromJSON.call(f,e,n[s],a);return}}a[o.name]=o.init(e,a)}}),a}}function wl(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=wl(i,e,{})),n[r]=i}return n}class W{constructor(e){this.spec=e,this.props={},e.props&&wl(e.props,this,this.props),this.key=e.key?e.key.key:Ml("plugin")}getState(e){return e[this.key]}}const Ni=Object.create(null);function Ml(t){return t in Ni?t+"$"+ ++Ni[t]:(Ni[t]=0,t+"$")}class ee{constructor(e="key"){this.key=Ml(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ll=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Cl(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const vl=(t,e,n)=>{let r=Cl(t,n);if(!r)return!1;let i=Aa(r);if(!i){let o=r.blockRange(),s=o&&pn(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(El(t,i,e,-1))return!0;if(r.parent.content.size==0&&(rn(a,"end")||D.isSelectable(a)))for(let o=r.depth;;o--){let s=Zr(t.doc,r.before(o),r.after(o),I.empty);if(s&&s.slice.size<s.to-s.from){if(e){let f=t.tr.step(s);f.setSelection(rn(a,"end")?P.findFrom(f.doc.resolve(f.mapping.map(i.pos,-1)),-1):D.create(f.doc,i.pos-a.nodeSize)),e(f.scrollIntoView())}return!0}if(o==1||r.node(o-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},y0=(t,e,n)=>{let r=Cl(t,n);if(!r)return!1;let i=Aa(r);return i?kl(t,i,e):!1},w0=(t,e,n)=>{let r=jl(t,n);if(!r)return!1;let i=za(r);return i?kl(t,i,e):!1};function kl(t,e,n){let r=e.nodeBefore,i=r,a=e.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let o=e.nodeAfter,s=o,f=e.pos+1;for(;!s.isTextblock;f++){if(s.type.spec.isolating)return!1;let c=s.firstChild;if(!c)return!1;s=c}let l=Zr(t.doc,a,f,I.empty);if(!l||l.from!=a||l instanceof ne&&l.slice.size>=f-a)return!1;if(n){let c=t.tr.step(l);c.setSelection(A.create(c.doc,a)),n(c.scrollIntoView())}return!0}function rn(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;
vendor: 5,023 bytes, lines 5-6
5if(n&&r.childCount!=1)return!1}return!1}const Sl=(t,e,n)=>{let{$head:r,empty:i}=t.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;a=Aa(r)}let o=a&&a.nodeBefore;return!o||!D.isSelectable(o)?!1:(e&&e(t.tr.setSelection(D.create(t.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Aa(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 jl(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const xl=(t,e,n)=>{let r=jl(t,n);if(!r)return!1;let i=za(r);if(!i)return!1;let a=i.nodeAfter;if(El(t,i,e,1))return!0;if(r.parent.content.size==0&&(rn(a,"start")||D.isSelectable(a))){let o=Zr(t.doc,r.before(),r.after(),I.empty);if(o&&o.slice.size<o.to-o.from){if(e){let s=t.tr.step(o);s.setSelection(rn(a,"start")?P.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):D.create(s.doc,s.mapping.map(i.pos))),e(s.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},Il=(t,e,n)=>{let{$head:r,empty:i}=t.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;a=za(r)}let o=a&&a.nodeAfter;return!o||!D.isSelectable(o)?!1:(e&&e(t.tr.setSelection(D.create(t.doc,a.pos)).scrollIntoView()),!0)};function za(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 M0=(t,e)=>{let n=t.selection,r=n instanceof D,i;if(r){if(n.node.isTextblock||!yt(t.doc,n.from))return!1;i=n.from}else if(i=Wr(t.doc,n.from,-1),i==null)return!1;if(e){let a=t.tr.join(i);r&&a.setSelection(D.create(a.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(a.scrollIntoView())}return!0},L0=(t,e)=>{let n=t.selection,r;if(n instanceof D){if(n.node.isTextblock||!yt(t.doc,n.to))return!1;r=n.to}else if(r=Wr(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},C0=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),a=i&&pn(i);return a==null?!1:(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)},Tl=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
6`).scrollIntoView()),!0)};function Ra(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 v0=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=Ra(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(e){let s=n.after(),f=t.tr.replaceWith(s,s,o.createAndFill());f.setSelection(P.near(f.doc.resolve(s),1)),e(f.scrollIntoView())}return!0},Nl=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof je||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=Ra(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let o=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=t.tr.insert(o,a.createAndFill());s.setSelection(A.create(s.doc,o+1)),e(s.scrollIntoView())}return!0},Dl=(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 a=n.before();if(qe(t.doc,a))return e&&e(t.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&pn(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function k0(t){return(e,n)=>{if(e.selection instanceof D&&e.selection.node.isBlock){let{$from:d}=e.selection;return!d.parentOffset||!qe(e.doc,d.pos)?!1:(n&&n(e.tr.split(d.pos).scrollIntoView()),!0)}if(!e.selection.$from.depth)return!1;let r=e.tr;!e.selection.empty&&(e.selection instanceof A||e.selection instanceof je)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,f,l=!1,c=!1;for(let d=i.depth;;d--)if(i.node(d).isBlock){l=i.end(d)==i.pos+(i.depth-d),c=i.start(d)==i.pos-(i.depth-d),f=Ra(i.node(d-1).contentMatchAt(i.indexAfter(d-1))),o.unshift(l&&f?{type:f}:null),s=d;break}else{if(d==1)return!1;o.unshift(null)}let u=i.pos,h=qe(r.doc,u,o.length,o);if(h||(o[0]=f?{type:f}:null,h=qe(r.doc,u,o.length,o)),!h)return!1;if(r.split(u,o.length,o),!l&&c&&i.node(s).type!=f){let d=r.mapping.slice(a),p=d.map(i.before(s)),m=r.doc.resolve(p);f&&i.node(s-1).canReplaceWith(m.index(),m.index()+1,f)&&r.setNodeMarkup(d.map(i.before(s)),f)}return n&&n(r.scrollIntoView()),!0}}const S0=k0(),j0=(t,e)=>{let{$from:n,to:r}=t.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),e&&e(t.tr.setSelection(D.create(t.doc,i))),!0)};function x0(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,a=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(a-1,a)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(a,a+1)||!(i.isTextblock||yt
vendor: 5,576 bytes, line 6
6(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function El(t,e,n,r){let i=e.nodeBefore,a=e.nodeAfter,o,s,f=i.type.spec.isolating||a.type.spec.isolating;if(!f&&x0(t,e,n))return!0;let l=!f&&e.parent.canReplace(e.index(),e.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let d=e.pos+a.nodeSize,p=k.empty;for(let y=o.length-1;y>=0;y--)p=k.from(o[y].create(null,p));p=k.from(i.copy(p));let m=t.tr.step(new le(e.pos-1,d,e.pos,d,new I(p,1,0),o.length,!0)),g=m.doc.resolve(d+2*o.length);g.nodeAfter&&g.nodeAfter.type==i.type&&yt(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=a.type.spec.isolating||r>0&&f?null:P.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),h=u&&pn(u);if(h!=null&&h>=e.depth)return n&&n(t.tr.lift(u,h).scrollIntoView()),!0;if(l&&rn(a,"start",!0)&&rn(i,"end")){let d=i,p=[];for(;p.push(d),!d.isTextblock;)d=d.lastChild;let m=a,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(d.canReplace(d.childCount,d.childCount,m.content)){if(n){let y=k.empty;for(let L=p.length-1;L>=0;L--)y=k.from(p[L].copy(y));let M=t.tr.step(new le(e.pos-p.length,e.pos+a.nodeSize,e.pos+g,e.pos+a.nodeSize-g,new I(y,p.length,0),0,!0));n(M.scrollIntoView())}return!0}}return!1}function Al(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(e.tr.setSelection(A.create(e.doc,t<0?i.start(a):i.end(a)))),!0):!1}}const I0=Al(-1),T0=Al(1);function N0(t,e=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&Da(o,t,e);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function is(t,e=null){return function(n,r){let i=!1;for(let a=0;a<n.selection.ranges.length&&!i;a++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[a];n.doc.nodesBetween(o,s,(f,l)=>{if(i)return!1;if(!(!f.isTextblock||f.hasMarkup(t,e)))if(f.type==t)i=!0;else{let c=n.doc.resolve(l),u=c.index();i=c.parent.canReplaceWith(u,u+1,t)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:s},$to:{pos:f}}=n.selection.ranges[o];a.setBlockType(s,f,t,e)}r(a.scrollIntoView())}return!0}}function Oa(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}Oa(Ll,vl,Sl);Oa(Ll,xl,Il);Oa(Tl,Nl,Dl,S0);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function D0(t,e=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return E0(s,o,t,e)?(r&&r(s.scrollIntoView()),!0):!1}}function E0(t,e,n,r=null){let i=!1,a=e,o=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let f=o.resolve(e.start-2);a=new Nr(f,f,e.depth),e.endIndex<e.parent.childCount&&(e=new Nr(e.$from,o.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let s=Da(a,n,r,e);return s?(t&&A0(t,e,s,i,n),!0):!1}function A0(t,e,n,r,i){let a=k.empty;for(let c=n.length-1;c>=0;c--)a=k.from(n[c].type.create(n[c].attrs,a));t.step(new le(e.start-(r?2:0),e.end,e.start,e.end,new I(a,0,0),n.length,!0));let o=0;for(let c=0;c<n.length;c++)n[c].type==i&&(o=c+1);let s=n.length-o,f=e.start+n.length-(r?2:0),l=e.parent;for(let c=e.startIndex,u=e.endIndex,h=!0;c<u;c++,h=!1)!h&&qe(t.doc,f,s)&&(t.split(f,s),f+=2*s),f+=l.child(c).nodeSize;return t}function z0(t){return function(e,n){let{$from:r,$to:i}=e.selection,a=r.blockRange(i,o=>o.childCount>0&&o.firstChild.type==t);return a?n?r.node(a.depth-1).type==t?R0(e,n,t,a):O0(e,n,a):!0:!1}}function R0(t,e,n,r){let i=t.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new le(a-1,o,a,o,new I(k.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Nr(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));const s=pn(r);if(s==null)return!1;i.lift(r,s);let f=i.doc.resolve(i.mapping.map(a,-1)-1);return yt(i.doc,f.pos)&&f.nodeBefore.type==f.nodeAfter.type&&i.join(f.pos),e(i.scrollIntoView()),!0}function O0(t,e,n){let r=t.tr,i=n.parent;for(let d=n.end,p=n.endIndex-1,m=n.startIndex;p>m;p--)d-=i.child(p).nodeSize,r.delete(d-1,d+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,f=n.endIndex==i.childCount,l=a.node(-1),c=a.index(-1);if(!l.canReplace(c+(s?0:1),c+1,o.content.append(f?k.empty:k.from(i))))return!1;let u=a.pos,h=u+o.nodeSize;return r.step(new le(u-(s?1:0),h+(f?1:0),u+1,h-1,new I((s?k.empty:k.from(i.copy(k.empty))).append(f?k.empty:k.from(i.copy(k.empty))),s?0:1,f?0:1),s?0:1)),e(r.scrollIntoView()),!0}function P0(t){return function(e,n){let{$from:r,$to:i}=e.selection,a=r.blockRange(i,l=>l.childCount>0&&l.firstChild.type==t);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,f=s.child(o-1);if(f.type!=t)return!1;if(n){let l=f.lastChild&&f.lastChild.type==s.type,c=k.from(l?t.create():null),u=new I(k.from(t.create(null,k.from(s.type.create(null,c)))),l?3:1,0),h=a.start,d=a.end;n(e.tr.step(new le(h-(l?3:1),d,h,d,u,1,!0)).scrollIntoView())}return!0}}const de=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},an=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let ta=null;const Ze=function(t,e,n){let r=ta||(ta=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},B0=function(){ta=null},Ot=function(t,e,n,r){return n&&(as(t,e,n,r,-1)||as(t,e,n,r,1))},J0=/^(img|br|input|textarea|hr)$/i;function as(t,e,n,r,i){for(var a;;){if(t==n&&e==r)return!0;
vendor: 67,411 bytes, lines 6-10
6if(e==(i<0?0:Ae(t))){let o=t.parentNode;if(!o||o.nodeType!=1||Zn(t)||J0.test(t.nodeName)||t.contentEditable=="false")return!1;e=de(t)+(i<0?0:1),t=o}else if(t.nodeType==1){let o=t.childNodes[e+(i<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((a=o.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)e+=i;else return!1;else t=o,e=i<0?Ae(t):0}else return!1}}function Ae(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function U0(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Ae(t)}else if(t.parentNode&&!Zn(t))e=de(t),t=t.parentNode;else return null}}function Q0(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Zn(t))e=de(t)+1,t=t.parentNode;else return null}}function Y0(t,e,n){for(let r=e==0,i=e==Ae(t);r||i;){if(t==n)return!0;let a=de(t);if(t=t.parentNode,!t)return!1;r=r&&a==0,i=i&&a==Ae(t)}}function Zn(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 Kr=function(t){return t.focusNode&&Ot(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function kt(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function H0(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function G0(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(Ae(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(Ae(r.startContainer),r.startOffset)}}}const Fe=typeof navigator<"u"?navigator:null,ss=typeof document<"u"?document:null,wt=Fe&&Fe.userAgent||"",na=/Edge\/(\d+)/.exec(wt),zl=/MSIE \d/.exec(wt),ra=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wt),ke=!!(zl||ra||na),ut=zl?document.documentMode:ra?+ra[1]:na?+na[1]:0,ze=!ke&&/gecko\/(\d+)/i.test(wt);ze&&+(/Firefox\/(\d+)/.exec(wt)||[0,0])[1];const ia=!ke&&/Chrome\/(\d+)/.exec(wt),pe=!!ia,Rl=ia?+ia[1]:0,be=!ke&&!!Fe&&/Apple Computer/.test(Fe.vendor),on=be&&(/Mobile\/\w+/.test(wt)||!!Fe&&Fe.maxTouchPoints>2),Ee=on||(Fe?/Mac/.test(Fe.platform):!1),Ol=Fe?/Win/.test(Fe.platform):!1,$e=/Android \d/.test(wt),$n=!!ss&&"webkitFontSmoothing"in ss.documentElement.style,F0=$n?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function _0(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ve(t,e){return typeof t=="number"?t:t[e]}function V0(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 fs(t,e,n){if(!aa(e)&&e.left==0)return;let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument;for(let o=n||t.dom;o;){if(o.nodeType!=1){o=an(o);continue}let s=o,f=s==a.body,l=f?_0(a):V0(s),c=0,u=0;if(e.top<l.top+Ve(r,"top")?u=-(l.top-e.top+Ve(i,"top")):e.bottom>l.bottom-Ve(r,"bottom")&&(u=e.bottom-e.top>l.bottom-l.top?e.top+Ve(i,"top")-l.top:e.bottom-l.bottom+Ve(i,"bottom")),e.left<l.left+Ve(r,"left")?c=-(l.left-e.left+Ve(i,"left")):e.right>l.right-Ve(r,"right")&&(c=e.right-l.right+Ve(i,"right")),c||u)if(f)a.defaultView.scrollBy(c,u);else{let d=s.scrollLeft,p=s.scrollTop;u&&(s.scrollTop+=u),c&&(s.scrollLeft+=c);let m=s.scrollLeft-d,g=s.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}let h=f?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o=h=="absolute"?o.offsetParent:an(o)}}function W0(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let a=(e.left+e.right)/2,o=n+1;o<Math.min(innerHeight,e.bottom);o+=5){let s=t.root.elementFromPoint(a,o);if(!s||s==t.dom||!t.dom.contains(s))continue;let f=s.getBoundingClientRect();if(f.top>=n-20){r=s,i=f.top;break}}return{refDOM:r,refTop:i,stack:Pl(t.dom)}}function Pl(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=an(r));return e}function Z0({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Bl(n,r==0?0:r-e)}function Bl(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:a}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=a&&(r.scrollLeft=a)}}let Vt=null;function $0(t){if(t.setActive)return t.setActive();if(Vt)return t.focus(Vt);let e=Pl(t);t.focus(Vt==null?{get preventScroll(){return Vt={preventScroll:!0},!0}}:void 0),Vt||(Vt=!1,Bl(e,0))}function Jl(t,e){let n,r=2e8,i,a=0,o=e.top,s=e.top,f,l;for(let c=t.firstChild,u=0;c;c=c.nextSibling,u++){let h;if(c.nodeType==1)h=c.getClientRects();else if(c.nodeType==3)h=Ze(c).getClientRects();else continue;for(let d=0;d<h.length;d++){let p=h[d];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let m=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(m<r){n=c,r=m,i=m&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&m&&(a=u+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!f&&p.left<=e.left&&p.right>=e.left&&(f=c,l={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(a=u+1)}}return!n&&f&&(n=f,i=l,r=0),n&&n.nodeType==3?K0(n,i):!n||r&&n.nodeType==1?{node:t,offset:a}:Jl(n,i)}function K0(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(t,a+1),r.setStart(t,a);let o=rt(r,1);if(o.top!=o.bottom&&Pa(e,o)){i={node:t,offset:a+(e.left>=(o.left+o.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function Pa(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function q0(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function X0(t,e,n){let{node:r,offset:i}=Jl(e,n),a=-1;if(r.nodeType==1&&!r.firstChild){let o=r.getBoundingClientRect();a=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(r,i,a)}function eh(t,e,n,r){let i=-1;for(let a=e,o=!1;a!=t.dom;){let s=t.docView.nearestDesc(a,!0),f;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((f=s.dom.getBoundingClientRect()).width||f.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!o&&f.left>r.left||f.top>r.top?i=s.posBefore:(!o&&f.right<r.left||f.bottom<r.top)&&(i=s.posAfter),o=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(f.top+f.bottom)/2:r.left<(f.left+f.right)/2)?s.posBefore:s.posAfter;a=s.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function Ul(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let o=t.childNodes[a];if(o.nodeType==1){let s=o.getClientRects();for(let f=0;f<s.length;f++){let l=s[f];if(Pa(e,l))return Ul(o,e,l)}}if((a=(a+1)%r)==i)break}return t}function th(t,e){let n=t.dom.ownerDocument,r,i=0,a=G0(n,e.left,e.top);a&&({node:r,offset:i}=a);let o=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),s;if(!o||!t.dom.contains(o.nodeType!=1?o.parentNode:o)){let l=t.dom.getBoundingClientRect();if(!Pa(e,l)||(o=Ul(t.dom,e,l),!o))return null}if(be)for(let l=o;r&&l;l=an(l))l.draggable&&(r=void 0);if(o=q0(o,e),r){if(ze&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let c=r.childNodes[i],u;c.nodeName=="IMG"&&(u=c.getBoundingClientRect()).right<=e.left&&u.bottom>e.top&&i++}let l;$n&&i&&r.nodeType==1&&(l=r.childNodes[i-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=eh(t,r,i,e))}s==null&&(s=X0(t,o,e));let f=t.docView.nearestDesc(o,!0);return{pos:s,inside:f?f.posAtStart-f.border:-1}}function aa(t){return t.top<t.bottom||t.left<t.right}function rt(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(aa(r))return r}return Array.prototype.find.call(n,aa)||t.getBoundingClientRect()}const nh=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ql(t,e,n){let{node:r,offset:i,atom:a}=t.docView.domFromPos(e,n<0?-1:1),o=$n||ze;if(r.nodeType==3)if(o&&(nh.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let f=rt(Ze(r,i,i),n);if(ze&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let l=rt(Ze(r,i-1,i-1),-1);if(l.top==f.top){let c=rt(Ze(r,i,i+1),-1);if(c.top!=f.top)return wn(c,c.left<l.left)}}return f}else{let f=i,l=i,c=n<0?1:-1;return n<0&&!i?(l++,c=-1):n>=0&&i==r.nodeValue.length?(f--,c=1):n<0?f--:l++,wn(rt(Ze(r,f,l),c),c<0)}if(!t.state.doc.resolve(e-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==Ae(r))){let f=r.childNodes[i-1];if(f.nodeType==1)return Di(f.getBoundingClientRect(),!1)}if(a==null&&i<Ae(r)){let f=r.childNodes[i];if(f.nodeType==1)return Di(f.getBoundingClientRect(),!0)}return Di(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==Ae(r))){let f=r.childNodes[i-1],l=f.nodeType==3?Ze(f,Ae(f)-(o?0:1)):f.nodeType==1&&(f.nodeName!="BR"||!f.nextSibling)?f:null;if(l)return wn(rt(l,1),!1)}if(a==null&&i<Ae(r)){let f=r.childNodes[i];for(;f.pmViewDesc&&f.pmViewDesc.ignoreForCoords;)f=f.nextSibling;let l=f?f.nodeType==3?Ze(f,0,o?0:1):f.nodeType==1?f:null:null;if(l)return wn(rt(l,-1),!0)}return wn(rt(r.nodeType==3?Ze(r):r,-n),n>=0)}function wn(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 Di(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 Yl(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function rh(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return Yl(t,e,()=>{let{node:a}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=Ql(t,i.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let f;if(s.nodeType==1)f=s.getClientRects();else if(s.nodeType==3)f=Ze(s,0,s.nodeValue.length).getClientRects();else continue;for(let l=0;l<f.length;l++){let c=f[l];if(c.bottom>c.top+1&&(n=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const ih=/[\u0590-\u08ac]/;function ah(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=t.domSelection();return s?!ih.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:Yl(t,e,()=>{let{focusNode:f,focusOffset:l,anchorNode:c,anchorOffset:u}=t.domSelectionRange(),h=s.caretBidiLevel;s.modify("move",n,"character");let d=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:m}=t.domSelectionRange(),g=p&&!d.contains(p.nodeType==1?p:p.parentNode)||f==p&&l==m;try{s.collapse(c,u),f&&(f!=c||l!=u)&&s.extend&&s.extend(f,l)}catch{}return h!=null&&(s.caretBidiLevel=h),g}):r.pos==r.start()||r.pos==r.end()}let ls=null,cs=null,us=!1;function oh(t,e,n){return ls==e&&cs==n?us:(ls=e,cs=n,us=n=="up"||n=="down"?rh(t,e,n):ah(t,e,n))}const Re=0,ds=1,jt=2,Qe=3;class Kn{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Re,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(e){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 i=this.children[n];if(i==e)return r;r+=i.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 a,o;if(e==this.contentDOM)a=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.previousSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(o)+o.size:this.posAtStart}else{let a,o;if(e==this.contentDOM)a=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.nextSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(o):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>de(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=e;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let a=e;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let a=this.getDesc(i),o;if(a&&(!n||a.node))if(r&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return a}}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 i=e;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==e&&a!=r){for(;!i.border&&i.children.length;)for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s.size){i=s;break}}return i}if(e<a)return i.descAt(e-r-i.border);r=a}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let a=0;r<this.children.length;r++){let o=this.children[r],s=a+o.size;if(s>e||o instanceof Gl){i=e-a;break}a=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof Hl&&a.side>=0;r--);if(n<=0){let a,o=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?de(a.dom)+1:0}}else{let a,o=!0;for(;a=r<this.children.length?this.children[r]:null,!(!a||a.dom.parentNode==this.contentDOM);r++,o=!1);return a&&o&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?de(a.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 i=-1,a=-1;for(let o=r,s=0;;s++){let f=this.children[s],l=o+f.size;if(i==-1&&e<=l){let c=o+f.border;if(e>=c&&n<=l-f.border&&f.node&&f.contentDOM&&this.contentDOM.contains(f.contentDOM))return f.parseRange(e,n,c);e=o;for(let u=s;u>0;u--){let h=this.children[u-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=de(h.dom)+1;break}e-=h.size}i==-1&&(i=0)}if(i>-1&&(l>n||s==this.children.length-1)){n=l;for(let c=s+1;c<this.children.length;c++){let u=this.children[c];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(-1)){a=de(u.dom);break}n+=u.size}a==-1&&(a=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:a}}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,i=!1){let a=Math.min(e,n),o=Math.max(e,n);for(let d=0,p=0;d<this.children.length;d++){let m=this.children[d],g=p+m.size;if(a>p&&o<g)return m.setSelection(e-p-m.border,n-p-m.border,r,i);p=g}let s=this.domFromPos(e,e?-1:1),f=n==e?s:this.domFromPos(n,n?-1:1),l=r.root.getSelection(),c=r.domSelectionRange(),u=!1;if((ze||be)&&e==n){let{node:d,offset:p}=s;if(d.nodeType==3){if(u=!!(p&&d.nodeValue[p-1]==`
7`),u&&p==d.nodeValue.length)for(let m=d,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(s=f={node:g.parentNode,offset:de(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=d.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(ze&&c.focusNode&&c.focusNode!=f.node&&c.focusNode.nodeType==1){let d=c.focusNode.childNodes[c.focusOffset];d&&d.contentEditable=="false"&&(i=!0)}if(!(i||u&&be)&&Ot(s.node,s.offset,c.anchorNode,c.anchorOffset)&&Ot(f.node,f.offset,c.focusNode,c.focusOffset))return;let h=!1;if((l.extend||e==n)&&!(u&&ze)){l.collapse(s.node,s.offset);try{e!=n&&l.extend(f.node,f.offset),h=!0}catch{}}if(!h){if(e>n){let p=s;s=f,f=p}let d=document.createRange();d.setEnd(f.node,f.offset),d.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(d)}}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,i=0;i<this.children.length;i++){let a=this.children[i],o=r+a.size;if(r==o?e<=o&&n>=r:e<o&&n>r){let s=r+a.border,f=o-a.border;if(e>=s&&n<=f){this.dirty=e==r||n==o?jt:ds,e==s&&n==f&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Qe:a.markDirty(e-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?jt:Qe}r=o}this.dirty=jt}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?jt:ds;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Hl extends Kn{constructor(e,n,r,i){let a,o=n.type.toDOM;if(typeof o=="function"&&(o=o(r,()=>{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(e){return this.dirty==Re&&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 ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class sh extends Kn{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}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 dt extends Kn{constructor(e,n,r,i,a){super(e,[],r,i),this.mark=n,this.spec=a}static create(e,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=Bt.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new dt(e,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Qe||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Qe&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Re){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Re}}slice(e,n,r){let i=dt.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=sa(a,n,o,r)),e>0&&(a=sa(a,0,e,r));for(let s=0;s<a.length;s++)a[s].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ht extends Kn{constructor(e,n,r,i,a,o,s){super(e,[],a,o),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(e,n,r,i,a,o){let s=a.nodeViews[n.type.name],f,l=s&&s(n,a,()=>{if(!f)return o;if(f.parent)return f.parent.posBeforeChild(f)},r,i),c=l&&l.dom,u=l&&l.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:u}=Bt.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!u&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=Vl(c,r,n),l?f=new fh(e,n,r,i,c,u||null,h,l):n.isText?new qr(e,n,r,i,c,h):new ht(e,n,r,i,c,u||null,h)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let n={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(n.preserveWhitespace="full"),!this.contentDOM)n.getContent=()=>this.node.content;else if(!this.contentLost)n.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let i=this.children[r];if(this.dom.contains(i.dom.parentNode)){n.contentElement=i.dom.parentNode;break}}if(!n.contentElement){let r=e&&e.find(i=>i.nodeType==1&&e.indexOf(i.parentNode)<0&&this.dom.contains(i));r?n.contentElement=r:n.getContent=()=>k.empty}}return n}matchesNode(e,n,r){return this.dirty==Re&&e.eq(this.node)&&Er(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,i=n,a=e.composing?this.localCompositionInfo(e,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,f=new ch(this,o&&o.node,e);hh(this.node,this.innerDeco,(l,c,u)=>{l.spec.marks?f.syncToMarks(l.spec.marks,r,e,c):l.type.side>=0&&!u&&f.syncToMarks(c==this.node.childCount?_.none:this.node.child(c).marks,r,e,c),f.placeWidget(l,e,i)},(l,c,u,h)=>{f.syncToMarks(l.marks,r,e,h);let d;f.findNodeMatch(l,c,u,h)||s&&e.state.selection.from>i&&e.state.selection.to<i+l.nodeSize&&(d=f.findIndexWithChild(a.node))>-1&&f.updateNodeAt(l,c,u,d,e)||f.updateNextNode(l,c,u,e,h,i)||f.addNode(l,c,u,e,i),i+=l.nodeSize}),f.syncToMarks([],r,e,0),this.node.isTextblock&&f.addTextblockHacks(),f.destroyRest(),(f.changed||this.dirty==jt)&&(o&&this.protectLocalComposition(e,o),Fl(this.contentDOM,this.children,e),on&&ph(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof A)||r<n||i>n+this.node.content.size)return null;let a=e.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let o=a.nodeValue,s=mh(this.node.content,o,r-n,i-n);return s<0?null:{node:a,pos:s,text:o}}else return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new sh(this,a,n,i);e.input.compositionNodes.push(o),this.children=sa(this.children,r,r+i.length,e,o)}update(e,n,r,i){return this.dirty==Qe||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Re}updateOuterDeco(e){if(Er(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=_l(this.dom,this.nodeDOM,oa(this.outerDeco,this.node,n),oa(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.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function hs(t,e,n,r,i){Vl(r,e,t);let a=new ht(void 0,t,e,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}class qr extends ht{constructor(e,n,r,i,a,o){super(e,n,r,i,a,null,o)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Qe||this.dirty!=Re&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Re||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Re,!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 i=this.node.cut(e,n),a=document.createTextNode(i.text);return new qr(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Qe)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Gl extends Kn{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Re&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class fh extends ht{constructor(e,n,r,i,a,o,s,f){super(e,n,r,i,a,o,s),this.spec=f}update(e,n,r,i){if(this.dirty==Qe)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let a=this.spec.update(e,n,r);return a&&this.updateInner(e,n,r,i),a}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}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 Fl(t,e,n){let r=t.firstChild,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=o.dom;if(s.parentNode==t){for(;s!=r;)r=ps(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(s,r);if(o instanceof dt){let f=r?r.previousSibling:t.lastChild;Fl(o.contentDOM,o.children,n),r=f?f.nextSibling:t.firstChild}}for(;r;)r=ps(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const Tn=function(t){t&&(this.nodeName=t)};Tn.prototype=Object.create(null);const xt=[new Tn];function oa(t,e,n){if(t.length==0)return xt;let r=n?xt[0]:new Tn,i=[r];for(let a=0;a<t.length;a++){let o=t[a].type.attrs;if(o){o.nodeName&&i.push(r=new Tn(o.nodeName));for(let s in o){let f=o[s];f!=null&&(n&&i.length==1&&i.push(r=new Tn(e.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+f:s=="style"?r.style=(r.style?r.style+";":"")+f:s!="nodeName"&&(r[s]=f))}}}return i}function _l(t,e,n,r){if(n==xt&&r==xt)return e;let i=e;for(let a=0;a<r.length;a++){let o=r[a],s=n[a];if(a){let f;s&&s.nodeName==o.nodeName&&i!=t&&(f=i.parentNode)&&f.nodeName.toLowerCase()==o.nodeName||(f=document.createElement(o.nodeName),f.pmIsDeco=!0,f.appendChild(i),s=xt[0]),i=f}lh(i,s||xt[0],o)}return i}function lh(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):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&t.classList.remove(r[a]);for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&t.classList.add(i[a]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function Vl(t,e,n){return _l(t,t,xt,oa(e,n,t.nodeType!=1))}function Er(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 ps(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class ch{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=uh(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,i){let a=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;a<s&&(a==o-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&e[a].type.spec.spanning!==!1;)a++;for(;a<o;)this.destroyRest(),this.top.dirty=Re,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let f=-1,l=this.top.children.length;i<this.preMatch.index&&(l=Math.min(this.index+3,l));for(let c=this.index;c<l;c++){let u=this.top.children[c];if(u.matchesMark(e[o])&&!this.isLocked(u.dom)){f=c;break}}if(f<0&&this.index<this.top.children.length){let c=this.top.children[this.index];c instanceof dt&&c.dirty!=Qe&&c.mark.type==e[o].type&&c.spec.update&&!this.isLocked(c.dom)&&c.spec.update(e[o])&&(c.mark=e[o],f=this.index,this.changed=!0)}if(f>-1)f>this.index&&(this.changed=!0,this.destroyBetween(this.index,f)),this.top=this.top.children[this.index];else{let c=dt.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let a=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,n,r))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,f=Math.min(this.top.children.length,s+5);s<f;s++){let l=this.top.children[s];if(l.matchesNode(e,n,r)&&!this.preMatch.matched.has(l)){a=s;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(e,n,r,i,a){let o=this.top.children[i];return o.dirty==Qe&&o.dom==o.contentDOM&&(o.dirty=jt),o.update(e,n,r,a)?(this.destroyBetween(this.index,i),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 i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,a,o){for(let s=this.index;s<this.top.children.length;s++){let f=this.top.children[s];if(f instanceof ht){let l=this.preMatch.matched.get(f);if(l!=null&&l!=a)return!1;let c=f.dom,u,h=this.isLocked(c)&&!(e.isText&&f.node&&f.node.isText&&f.nodeDOM.nodeValue==e.text&&f.dirty!=Qe&&Er(n,f.outerDeco));if(!h&&f.update(e,n,r,i))return this.destroyBetween(this.index,s),f.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(u=this.recreateWrapper(f,e,n,r,i,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=jt,u.updateChildren(i,o+1),u.dirty=Re),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,a,o){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!Er(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let s=ht.create(this.top,n,r,i,a,o);if(s.contentDOM){s.children=e.children,e.children=[];for(let f of s.children)f.parent=s}return e.destroy(),s}addNode(e,n,r,i,a){let o=ht.create(this.top,e,n,r,i,a);o.contentDOM&&o.updateChildren(i,a+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let a=new Hl(this.top,e,n,r);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof dt;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof qr)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((be||pe)&&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 i=new Gl(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function uh(t,e){let n=e,r=n.children.length,i=t.childCount,a=new Map,o=[];e:for(;i>0;){let s;for(;;)if(r){let l=n.children[r-1];if(l instanceof dt)n=l,r=l.children.length;else{s=l,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let f=s.node;if(f){if(f!=t.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function dh(t,e){return t.type.side-e.type.side}function hh(t,e,n,r){let i=e.locals(t),a=0;if(i.length==0){for(let l=0;l<t.childCount;l++){let c=t.child(l);r(c,i,e.forChild(a,c),l),a+=c.nodeSize}return}let o=0,s=[],f=null;for(let l=0;;){let c,u;for(;o<i.length&&i[o].to==a;){let g=i[o++];g.widget&&(c?(u||(u=[c])).push(g):c=g)}if(c)if(u){u.sort(dh);for(let g=0;g<u.length;g++)n(u[g],l,!!f)}else n(c,l,!!f);let h,d;if(f)d=-1,h=f,f=null;else if(l<t.childCount)d=l,h=t.child(l++);else break;for(let g=0;g<s.length;g++)s[g].to<=a&&s.splice(g--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let p=a+h.nodeSize;if(h.isText){let g=p;o<i.length&&i[o].from<g&&(g=i[o].from);for(let y=0;y<s.length;y++)s[y].to<g&&(g=s[y].to);g<p&&(f=h.cut(g-a),h=h.cut(0,g-a),p=g,d=-1)}else for(;o<i.length&&i[o].to<p;)o++;let m=h.isInline&&!h.isLeaf?s.filter(g=>!g.inline):s.slice();r(h,m,e.forChild(a,h),d),a=p}}function ph(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 mh(t,e,n,r){for(let i=0,a=0;i<t.childCount&&a<=r;){let o=t.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let f=o.text;for(;i<t.childCount;){let l=t.child(i++);if(a+=l.nodeSize,!l.isText)break;f+=l.text}if(a>=n){if(a>=r&&f.slice(r-e.length-s,r-s)==e)return r-e.length;let l=s<r?f.lastIndexOf(e,r-s-1):-1;if(l>=0&&l+e.length+s>=n)return s+l;if(n==r&&f.length>=r+e.length-s&&f.slice(r-s,r-s+e.length)==e)return r}}return-1}function sa(t,e,n,r,i){let a=[];for(let o=0,s=0;o<t.length;o++){let f=t[o],l=s,c=s+=f.size;l>=n||c<=e?a.push(f):(l<e&&a.push(f.slice(0,e-l,r)),i&&(a.push(i),i=void 0),c>n&&a.push(f.slice(n-l,f.size,r)))}return a}function Ba(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),f,l;if(Kr(n)){for(f=o;i&&!i.node;)i=i.parent;let u=i.node;if(i&&u.isAtom&&D.isSelectable(u)&&i.parent&&!(u.isInline&&Y0(n.focusNode,n.focusOffset,i.dom))){let h=i.posBefore;l=new D(o==h?s:r.resolve(h))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let u=o,h=o;for(let d=0;d<n.rangeCount;d++){let p=n.getRangeAt(d);u=Math.min(u,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),h=Math.max(h,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(u<0)return null;[f,o]=h==t.state.selection.anchor?[h,u]:[u,h],s=r.resolve(o)}else f=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(f<0)return null}let c=r.resolve(f);if(!l){let u=e=="pointer"||t.state.selection.head<s.pos&&!a?1:-1;l=Ja(t,c,s,u)}return l}function Wl(t){return t.editable?t.hasFocus():$l(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Xe(t,e=!1){let n=t.state.selection;if(Zl(t,n),!Wl(t))return;let r=t.input.mouseDown;if(!e&&pe&&r){let i=t.domSelectionRange(),a=t.domObserver.currentSelection;if(i.anchorNode&&a.anchorNode&&Ot(i.anchorNode,i.anchorOffset,a.anchorNode,a.anchorOffset)&&r.delaySelUpdate()){t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)bh(t);else{let{anchor:i,head:a}=n,o,s;ms&&!(n instanceof A)&&(n.$from.parent.inlineContent||(o=gs(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=gs(t,n.to))),t.docView.setSelection(i,a,t,e),ms&&(o&&bs(o),s&&bs(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&gh(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}const ms=be||pe&&Rl<63;function gs(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(be&&i&&i.contentEditable=="false")return Ei(i);if((!i||i.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(i)return Ei(i);if(a)return Ei(a)}}function Ei(t){return t.contentEditable="true",be&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function bs(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function gh(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Wl(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function bh(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,de(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&ke&&ut<=11&&(n.disabled=!0,n.disabled=!1)}function Zl(t,e){if(e instanceof D){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(ys(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else ys(t)}function ys(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Ja(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||A.between(e,n,r)}function ws(t){return t.editable&&!t.hasFocus()?!1:$l(t)}function $l(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 yh(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Ot(e.node,e.offset,n.anchorNode,n.anchorOffset)}function fa(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return a&&P.findFrom(a,e)}function it(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Ms(t,e,n){let r=t.state.selection;if(r instanceof A)if(n.indexOf("s")>-1){let{$head:i}=r,a=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=t.state.doc.resolve(i.pos+a.nodeSize*(e<0?-1:1));return it(t,new A(r.$anchor,o))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=fa(t.state,e);return i&&i instanceof D?it(t,i):!1}else if(!(Ee&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=e<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=t.docView.descAt(s))&&!o.contentDOM?D.isSelectable(a)?it(t,new D(e<0?t.state.doc.resolve(i.pos-a.nodeSize):i)):$n?it(t,new A(t.state.doc.resolve(e<0?s:s+a.nodeSize))):!1:!1}}else return!1;else{if(r instanceof D&&r.node.isInline)return it(t,new A(e>0?r.$to:r.$from));{let i=fa(t.state,e);return i?it(t,i):!1}}}function Ar(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Nn(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Wt(t,e){return e<0?wh(t):Mh(t)}function wh(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,a,o=!1;for(ze&&n.nodeType==1&&r<Ar(n)&&Nn(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Nn(s,-1))i=n,a=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Kl(n))break;{let s=n.previousSibling;for(;s&&Nn(s,-1);)i=n.parentNode,a=de(s),s=s.previousSibling;if(s)n=s,r=Ar(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}o?la(t,n,r):i&&la(t,i,a)}function Mh(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=Ar(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(Nn(s,1))a=n,o=++r;else break}else{if(Kl(n))break;{let s=n.nextSibling;for(;s&&Nn(s,1);)a=s.parentNode,o=de(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=Ar(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}a&&la(t,a,o)}function Kl(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Lh(t,e){for(;t&&e==t.childNodes.length&&!Zn(t);)e=de(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function Ch(t,e){for(;t&&!e&&!Zn(t);)e=de(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function la(t,e,n){if(e.nodeType!=3){let a,o;(o=Lh(e,n))?(e=o,n=0):(a=Ch(e,n))&&(e=a,n=a.nodeValue.length)}let r=t.domSelection();if(!r)return;if(Kr(r)){let a=document.createRange();a.setEnd(e,n),a.setStart(e,n),r.removeAllRanges(),r.addRange(a)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Xe(t)},50)}function Ls(t,e){let n=t.state.doc.resolve(e);if(!(pe||Ol)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let a=t.coordsAtPos(e-1),o=(a.top+a.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(a.left-i.left)>1)return a.left<i.left?"ltr":"rtl"}if(e<n.end()){let a=t.coordsAtPos(e+1),o=(a.top+a.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(a.left-i.left)>1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Cs(t,e,n){let r=t.state.selection;if(r instanceof A&&!r.empty||n.indexOf("s")>-1||Ee&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=fa(t.state,e);if(o&&o instanceof D)return it(t,o)}if(!i.parent.inlineContent){let o=e<0?i:a,s=r instanceof je?P.near(o,e):P.findFrom(o,e);return s?it(t,s):!1}return!1}function vs(t,e){if(!(t.state.selection instanceof A))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let a=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=t.state.tr;return e<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),t.dispatch(o),!0}return!1}function ks(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function vh(t){if(!be||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;ks(t,r,"true"),setTimeout(()=>ks(t,r,"false"),20)}return!1}function kh(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function Sh(t,e){let n=e.keyCode,r=kh(e);if(n==8||Ee&&n==72&&r=="c")return vs(t,-1)||Wt(t,-1);if(n==46&&!e.shiftKey||Ee&&n==68&&r=="c")return vs(t,1)||Wt(t,1);if(n==13||n==27)return!0;if(n==37||Ee&&n==66&&r=="c"){let i=n==37?Ls(t,t.state.selection.from)=="ltr"?-1:1:-1;return Ms(t,i,r)||Wt(t,i)}else if(n==39||Ee&&n==70&&r=="c"){let i=n==39?Ls(t,t.state.selection.from)=="ltr"?1:-1:1;return Ms(t,i,r)||Wt(t,i)}else{if(n==38||Ee&&n==80&&r=="c")return Cs(t,-1,r)||Wt(t,-1);if(n==40||Ee&&n==78&&r=="c")return vh(t)||Cs(t,1,r)||Wt(t,1);if(r==(Ee?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ua(t,e){t.someProp("transformCopied",d=>{e=d(e,t)});let n=[],{content:r,openStart:i,openEnd:a}=e;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let d=r.firstChild;n.push(d.type.name,d.attrs!=d.type.defaultAttrs?d.attrs:null),r=d.content}let o=t.someProp("clipboardSerializer")||Bt.fromSchema(t.state.schema),s=rc(),f=s.createElement("div");f.appendChild(o.serializeFragment(r,{document:s}));let l=f.firstChild,c,u=0;for(;l&&l.nodeType==1&&(c=nc[l.nodeName.toLowerCase()]);){for(let d=c.length-1;d>=0;d--){let p=s.createElement(c[d]);for(;f.firstChild;)p.appendChild(f.firstChild);f.appendChild(p),u++}l=f.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${i} ${a}${u?` -${u}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",d=>d(e,t))||e.content.textBetween(0,e.content.size,`
8
9`);return{dom:f,text:h,slice:e}}function ql(t,e,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!e)return null;let f=!!e&&(r||a||!n);if(f){if(t.someProp("transformPastedText",h=>{e=h(e,a||r,t)}),a)return s=new I(k.from(t.state.schema.text(e.replace(/\r\n?/g,`
10`))),0,0),t.someProp("transformPasted",h=>{s=h(s,t,!0)}),s;let u=t.someProp("clipboardTextParser",h=>h(e,i,r,t));if(u)s=u;else{let h=i.marks(),{schema:d}=t.state,p=Bt.fromSchema(d);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=o.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(d.text(m,h)))})}}else t.someProp("transformPastedHTML",u=>{n=u(n,t)}),o=Th(n),$n&&Nh(o);let l=o&&o.querySelector("[data-pm-slice]"),c=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let u=+c[3];u>0;u--){let h=o.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;o=h}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||ct.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(f||c),context:i,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!jh.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)s=Dh(Ss(s,+c[1],+c[2]),c[4]);else if(s=I.maxOpen(xh(s.content,i),!0),s.openStart||s.openEnd){let u=0,h=0;for(let d=s.content.firstChild;u<s.openStart&&!d.type.spec.isolating;u++,d=d.firstChild);for(let d=s.content.lastChild;h<s.openEnd&&!d.type.spec.isolating;h++,d=d.lastChild);s=Ss(s,u,h)}return t.someProp("transformPasted",u=>{s=u(s,t,f)}),s}const jh=/^(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 xh(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),a,o=[];if(t.forEach(s=>{if(!o)return;let f=i.findWrapping(s.type),l;if(!f)return o=null;if(l=o.length&&a.length&&ec(f,a,s,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=tc(o[o.length-1],a.length));let c=Xl(s,f);o.push(c),i=i.matchType(c.type),a=f}}),o)return k.from(o)}return t}function Xl(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,k.from(t));return t}function ec(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let a=ec(t,e,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(k.from(Xl(n,t,i+1))))}}function tc(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,tc(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(k.empty,!0);return t.copy(n.append(r))}function ca(t,e,n,r,i,a){let o=e<0?t.firstChild:t.lastChild,s=o.content;return t.childCount>1&&(a=0),i<r-1&&(s=ca(s,e,n,r,i+1,a)),i>=n&&(s=e<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(k.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(s))}function Ss(t,e,n){return e<t.openStart&&(t=new I(ca(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new I(ca(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const nc={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function rc(){return document.implementation.createHTMLDocument("title")}let Ai=null;function Ih(t){let e=window.trustedTypes;return e?(Ai||(Ai=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Ai.createHTML(t)):t}function Th(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=rc(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(t),a;if((a=i&&nc[i[1].toLowerCase()])&&(t=a.map(o=>"<"+o+">").join("")+t+a.map(o=>"</"+o+">").reverse().join("")),r.innerHTML=Ih(t),a)for(let o=0;o<a.length;o++)r=r.querySelector(a[o])||r;for(let o=0;o<n.styleSheets.length;o++){let s=n.styleSheets[o];for(let f=0;f<s.rules.length;f++){let l=s.rules[f];if(l instanceof CSSStyleRule){let c=r.querySelectorAll(l.selectorText);for(let u=0;u<c.length;u++)c[u].style.cssText+=l.style.cssText}}}return r}function Nh(t){let e=t.querySelectorAll(pe?"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==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Dh(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:i,openStart:a,openEnd:o}=t;for(let s=r.length-2;s>=0;s-=2){let f=n.nodes[r[s]];if(!f||f.hasRequiredAttrs())break;i=k.from(f.create(r[s+1],i)),a++,o++}return new I(i,a,o)}const Le={},Ce={},Eh={touchstart:!0,touchmove:!0};class Ah{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function zh(t){for(let e in Le){let n=Le[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Oh(t,r)&&!Qa(t,r)&&(t.editable||!(r.type in Ce))&&n(t,r)},Eh[e]?{passive:!0}:void 0)}be&&t.dom.addEventListener("input",()=>null),ua(t)}function Ke(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Rh(t){t.input.mouseDown&&t.input.mouseDown.done(),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 ua(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Qa(t,r))})}function Qa(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Oh(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 Ph(t,e){!Qa(t,e)&&Le[e.type]&&(t.editable||!(e.type in Ce))&&Le[e.type](t,e)}Ce.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!sc(t)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!($e&&pe&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),on&&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",i=>i(t,kt(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Sh(t,n)?n.preventDefault():Ke(t,"key")};Ce.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ce.keypress=(t,e)=>{let n=e;if(sc(t)||!n.charCode||n.ctrlKey&&!n.altKey||Ee&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof A)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),a=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i,a))&&t.dispatch(a()),n.preventDefault()}};function qn(t){return{left:t.clientX,top:t.clientY}}function Bh(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ya(t,e,n,r,i){if(r==-1)return!1;let a=t.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(t.someProp(e,s=>o>a.depth?s(t,n,a.nodeAfter,a.before(o),i,!0):s(t,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function Xn(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Jh(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&D.isSelectable(r)?(Xn(t,new D(n)),!0):!1}function Uh(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof D&&(r=n.node);let a=t.state.doc.resolve(e);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(D.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(Xn(t,D.create(t.state.doc,i)),!0):!1}function Qh(t,e,n,r,i){return Ya(t,"handleClickOn",e,n,r)||t.someProp("handleClick",a=>a(t,e,r))||(i?Uh(t,n):Jh(t,n))}function Yh(t,e,n,r){return Ya(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function Hh(t,e,n,r){return Ya(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||Gh(t,n,r)}function Gh(t,e,n){if(n.button!=0)return!1;let r=ic(t,e,!0),i=t.state.doc;return r?(Xn(t,r),r instanceof A&&i.eq(t.state.doc)&&(t.input.mouseDown=new _h(t,r)),!0):!1}function ic(t,e,n){let r=t.state.doc;if(e==-1)return r.inlineContent?A.create(r,0,r.content.size):null;let i=r.resolve(e);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)return A.create(r,s+1,s+1+o.content.size);if(n&&D.isSelectable(o))return D.create(r,s)}return null}function Ha(t){return zr(t)}const ac=Ee?"metaKey":"ctrlKey";Le.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Ha(t),i=Date.now(),a="singleClick";i-t.input.lastClick.time<500&&Bh(n,t.input.lastClick)&&!n[ac]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?a="doubleClick":t.input.lastClick.type=="doubleClick"&&(a="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},t.input.mouseDown&&t.input.mouseDown.done();let o=t.posAtCoords(qn(n));o&&(a=="singleClick"?t.input.mouseDown=new Fh(t,o,n,!!r):(a=="doubleClick"?Yh:Hh)(t,o.pos,o.inside,n)?n.preventDefault():Ke(t,"pointer"))};class oc{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class Fh extends oc{constructor(e,n,r,i){super(e),this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!r[ac],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=e.state.doc.nodeAt(n.inside),o=n.inside;else{let c=e.state.doc.resolve(n.pos);a=c.parent,o=c.depth?c.before():0}const s=i?null:r.target,f=s?e.docView.nearestDesc(s,!0):null;this.target=f&&f.nodeDOM.nodeType==1?f.nodeDOM:null;let{selection:l}=e.state;r.button==0&&(a.type.spec.draggable&&a.type.spec.selectable!==!1||l instanceof D&&l.from<=o&&l.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ze&&!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()),Ke(e,"pointer")}done(){super.done(),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(()=>{this.view.isDestroyed||Xe(this.view)})}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(qn(e))),this.updateAllowDefault(e),this.allowDefault||!n?Ke(this.view,"pointer"):Qh(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||be&&this.mightDrag&&!this.mightDrag.node.isAtom||pe&&!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)?(Xn(this.view,P.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Ke(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ke(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class _h extends oc{constructor(e,n){super(e),this.startSelection=n,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),Ke(this.view,"pointer");let n=this.view.posAtCoords(qn(e)),r=n&&ic(this.view,n.inside,!1);if(!r)return;let{doc:i}=this.view.state,a=this.startSelection,[o,s]=r.from<a.from?[a.to,r.from]:[a.from,r.to];Xn(this.view,A.create(i,o,s))}}Le.touchstart=t=>{t.input.lastTouch=Date.now(),Ha(t),Ke(t,"pointer")};Le.touchmove=t=>{t.input.lastTouch=Date.now(),Ke(t,"pointer")};Le.contextmenu=t=>Ha(t);function sc(t,e){return t.composing?!0:be&&Math.abs(Date.now()-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Vh=$e?5e3:-1;Ce.compositionstart=Ce.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof A&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||pe&&Ol&&Wh(t)))t.markCursor=t.state.storedMarks||n.marks(),zr(t,!0),t.markCursor=null;else if(zr(t,!e.selection.empty),ze&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){let s=t.domSelection();s&&s.collapse(o,o.nodeValue.length);break}else i=o,a=-1}}t.input.composing=!0}fc(t,Vh)};function Wh(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ce.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now(),t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,fc(t,20))};function fc(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>zr(t),e))}function lc(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Zh(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=U0(e.focusNode,e.focusOffset),r=Q0(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,a=t.domObserver.lastChangedTextNode;if(n==a||r==a)return a;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function zr(t,e=!1){if(!($e&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),lc(t),e||t.docView&&t.docView.dirty){let n=Ba(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function $h(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(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Un=ke&&ut<15||on&&F0<604;Le.copy=Ce.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let a=Un?null:n.clipboardData,o=r.content(),{dom:s,text:f}=Ua(t,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",f)):$h(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Kh(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function qh(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 i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Qn(t,r.value,null,i,e):Qn(t,r.textContent,r.innerHTML,i,e)},50)}function Qn(t,e,n,r,i){let a=ql(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",f=>f(t,i,a||I.empty)))return!0;if(!a)return!1;let o=Kh(a),s=o?t.state.tr.replaceSelectionWith(o,r):t.state.tr.replaceSelection(a);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function cc(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ce.paste=(t,e)=>{let n=e;if(t.composing&&!$e)return;let r=Un?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Qn(t,cc(r),r.getData("text/html"),i,n)?n.preventDefault():qh(t,n)};class uc{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Xh=Ee?"altKey":"ctrlKey";function dc(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[Xh]}Le.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,a=i.empty?null:t.posAtCoords(qn(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof D?i.to-1:i.to))){if(r&&r.mightDrag)o=D.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&&(o=D.create(t.state.doc,u.posBefore))}}let s=(o||t.state.selection).content(),{dom:f,text:l,slice:c}=Ua(t,s);(!n.dataTransfer.files.length||!pe||Rl>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Un?"Text":"text/html",f.innerHTML),n.dataTransfer.effectAllowed="copyMove",Un||n.dataTransfer.setData("text/plain",l),t.dragging=new uc(c,dc(t,n),o)};Le.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ce.dragover=Ce.dragenter=(t,e)=>e.preventDefault();Ce.drop=(t,e)=>{try{ep(t,e,t.dragging)}finally{t.dragging=null}};function ep(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(qn(e));if(!r)return;let i=t.state.doc.resolve(r.pos),a=n&&n.slice;a?t.someProp("transformPasted",d=>{a=d(a,t,!1)}):a=ql(t,cc(e.dataTransfer),Un?null:e.dataTransfer.getData("text/html"),!1,i);let o=!!(n&&dc(t,e));if(t.someProp("handleDrop",d=>d(t,e,a||I.empty,o))){e.preventDefault();return}if(!a)return;e.preventDefault();let s=a?hl(t.state.doc,i.pos,a):i.pos;s==null&&(s=i.pos);let f=t.state.tr;if(o){let{node:d}=n;d?d.replace(f):f.deleteSelection()}let l=f.mapping.map(s),c=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,u=f.doc;if(c?f.replaceRangeWith(l,l,a.content.firstChild):f.replaceRange(l,l,a),f.doc.eq(u))return;let h=f.doc.resolve(l);if(c&&D.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))f.setSelection(new D(h));else{let d=f.mapping.map(s);f.mapping.maps[f.mapping.maps.length-1].forEach((p,m,g,y)=>d=y),f.setSelection(Ja(t,h,f.doc.resolve(d)))}t.focus(),t.dispatch(f.setMeta("uiEvent","drop"))}Le.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())&&Xe(t)},20))};Le.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)};Le.beforeinput=(t,e)=>{if($e&&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",a=>a(t,kt(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ce)Le[t]=Ce[t];function Yn(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 Rr{constructor(e,n){this.toDOM=e,this.spec=n||Dt,this.side=this.spec.side||0}map(e,n,r,i){let{pos:a,deleted:o}=e.mapResult(n.from+i,this.side<0?-1:1);return o?null:new ge(a-r,a-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Rr&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Yn(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class pt{constructor(e,n){this.attrs=e,this.spec=n||Dt}map(e,n,r,i){let a=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new ge(a,o,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof pt&&Yn(this.attrs,e.attrs)&&Yn(this.spec,e.spec)}static is(e){return e.type instanceof pt}destroy(){}}class Ga{constructor(e,n){this.attrs=e,this.spec=n||Dt}
vendor: 4,928 bytes, line 10
10map(e,n,r,i){let a=e.mapResult(n.from+i,1);if(a.deleted)return null;let o=e.mapResult(n.to+i,-1);return o.deleted||o.pos<=a.pos?null:new ge(a.pos-r,o.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),a;return i==n.from&&!(a=e.child(r)).isText&&i+a.nodeSize==n.to}eq(e){return this==e||e instanceof Ga&&Yn(this.attrs,e.attrs)&&Yn(this.spec,e.spec)}destroy(){}}class ge{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new ge(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 ge(e,e,new Rr(n,r))}static inline(e,n,r,i){return new ge(e,n,new pt(r,i))}static node(e,n,r,i){return new ge(e,n,new Ga(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof pt}get widget(){return this.type instanceof Rr}}const Kt=[],Dt={};class H{constructor(e,n){this.local=e.length?e:Kt,this.children=n.length?n:Kt}static create(e,n){return n.length?Or(n,e,0,Dt):me}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,a){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=e&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,n-s,r,i+s,a)}}map(e,n,r){return this==me||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Dt)}mapInner(e,n,r,i,a){let o;for(let s=0;s<this.local.length;s++){let f=this.local[s].map(e,r,i);f&&f.type.valid(n,f)?(o||(o=[])).push(f):a.onRemove&&a.onRemove(this.local[s].spec)}return this.children.length?tp(this.children,o||[],e,n,r,i,a):o?new H(o.sort(Et),Kt):me}add(e,n){return n.length?this==me?H.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,a=0;e.forEach((s,f)=>{let l=f+r,c;if(c=pc(n,s,l)){for(i||(i=this.children.slice());a<i.length&&i[a]<f;)a+=3;i[a]==f?i[a+2]=i[a+2].addInner(s,c,l+1):i.splice(a,0,f,f+s.nodeSize,Or(c,s,l+1,Dt)),a+=3}});let o=hc(a?mc(n):n,-r);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||o.splice(s--,1);return new H(o.length?this.local.concat(o).sort(Et):this.local,i||this.children)}remove(e){return e.length==0||this==me?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let a=0;a<r.length;a+=3){let o,s=r[a]+n,f=r[a+1]+n;for(let c=0,u;c<e.length;c++)(u=e[c])&&u.from>s&&u.to<f&&(e[c]=null,(o||(o=[])).push(u));if(!o)continue;r==this.children&&(r=this.children.slice());let l=r[a+2].removeInner(o,s+1);l!=me?r[a+2]=l:(r.splice(a,3),a-=3)}if(i.length){for(let a=0,o;a<e.length;a++)if(o=e[a])for(let s=0;s<i.length;s++)i[s].eq(o,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new H(i,r):me}forChild(e,n){if(this==me)return this;if(n.isLeaf)return H.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let a=e+1,o=a+n.content.size;for(let s=0;s<this.local.length;s++){let f=this.local[s];if(f.from<o&&f.to>a&&f.type instanceof pt){let l=Math.max(a,f.from)-a,c=Math.min(o,f.to)-a;l<c&&(i||(i=[])).push(f.copy(l,c))}}if(i){let s=new H(i.sort(Et),Kt);return r?new ot([s,r]):s}return r||me}eq(e){if(this==e)return!0;if(!(e instanceof H)||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 Fa(this.localsInner(e))}localsInner(e){if(this==me)return Kt;if(e.inlineContent||!this.local.some(pt.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof pt||n.push(this.local[r]);return n}forEachSet(e){e(this)}}H.empty=new H([],[]);H.removeOverlap=Fa;const me=H.empty;class ot{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,Dt));return ot.from(r)}forChild(e,n){if(n.isLeaf)return H.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(e,n);a!=me&&(a instanceof ot?r=r.concat(a.members):r.push(a))}return ot.from(r)}eq(e){if(!(e instanceof ot)||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 i=0;i<this.members.length;i++){let a=this.members[i].localsInner(e);if(a.length)if(!n)n=a;else{r&&(n=n.slice(),r=!1);for(let o=0;o<a.length;o++)n.push(a[o])}}return n?Fa(r?n:n.sort(Et)):Kt}static from(e){switch(e.length){case 0:return me;case 1:return e[0];default:return new ot(e.every(n=>n instanceof H)?e:e.reduce((n,r)=>n.concat(r instanceof H?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;
vendor: 27,488 bytes, line 10
10n++)this.members[n].forEachSet(e)}}function tp(t,e,n,r,i,a,o){let s=t.slice();for(let l=0,c=a;l<n.maps.length;l++){let u=0;n.maps[l].forEach((h,d,p,m)=>{let g=m-p-(d-h);for(let y=0;y<s.length;y+=3){let M=s[y+1];if(M<0||h>M+c-u)continue;let L=s[y]+c-u;d>=L?s[y+1]=h<=L?-2:-1:h>=c&&g&&(s[y]+=g,s[y+1]+=g)}u+=g}),c=n.maps[l].map(c,-1)}let f=!1;for(let l=0;l<s.length;l+=3)if(s[l+1]<0){if(s[l+1]==-2){f=!0,s[l+1]=-1;continue}let c=n.map(t[l]+a),u=c-i;if(u<0||u>=r.content.size){f=!0;continue}let h=n.map(t[l+1]+a,-1),d=h-i,{index:p,offset:m}=r.content.findIndex(u),g=r.maybeChild(p);if(g&&m==u&&m+g.nodeSize==d){let y=s[l+2].mapInner(n,g,c+1,t[l]+a+1,o);y!=me?(s[l]=u,s[l+1]=d,s[l+2]=y):(s[l+1]=-2,f=!0)}else f=!0}if(f){let l=np(s,t,e,n,i,a,o),c=Or(l,r,0,o);e=c.local;for(let u=0;u<s.length;u+=3)s[u+1]<0&&(s.splice(u,3),u-=3);for(let u=0,h=0;u<c.children.length;u+=3){let d=c.children[u];for(;h<s.length&&s[h]<d;)h+=3;s.splice(h,0,c.children[u],c.children[u+1],c.children[u+2])}}return new H(e.sort(Et),s)}function hc(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new ge(i.from+e,i.to+e,i.type))}return n}function np(t,e,n,r,i,a,o){function s(f,l){for(let c=0;c<f.local.length;c++){let u=f.local[c].map(r,i,l);u?n.push(u):o.onRemove&&o.onRemove(f.local[c].spec)}for(let c=0;c<f.children.length;c+=3)s(f.children[c+2],f.children[c]+l+1)}for(let f=0;f<t.length;f+=3)t[f+1]==-1&&s(t[f+2],e[f]+a+1);return n}function pc(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let a=0,o;a<t.length;a++)(o=t[a])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),t[a]=null);return i}function mc(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Or(t,e,n,r){let i=[],a=!1;e.forEach((s,f)=>{let l=pc(t,s,f+n);if(l){a=!0;let c=Or(l,s,n+f+1,r);c!=me&&i.push(f,f+s.nodeSize,c)}});let o=hc(a?mc(t):t,-n).sort(Et);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||i.length?new H(o,i):me}function Et(t,e){return t.from-e.from||t.to-e.to}function Fa(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let a=e[i];if(a.from==r.from){a.to!=r.to&&(e==t&&(e=t.slice()),e[i]=a.copy(a.from,r.to),js(e,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,a.from),js(e,i,r.copy(a.from,r.to)));break}}}return e}function js(t,e,n){for(;e<t.length&&Et(n,t[e])>0;)e++;t.splice(e,0,n)}function zi(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=me&&e.push(r)}),t.cursorWrapper&&e.push(H.create(t.state.doc,[t.cursorWrapper.deco])),ot.from(e)}const rp={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ip=ke&&ut<=11;class ap{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 op{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ap,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);ke&&ut<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():be&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),ip&&(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,rp)),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(ws(this.view)){if(this.suppressingSelectionUpdates)return Xe(this.view);if(ke&&ut<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Ot(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 a=e.focusNode;a;a=an(a))n.add(a);for(let a=e.anchorNode;a;a=an(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.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(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&ws(e)&&!this.ignoreSelectionChange(r),a=-1,o=-1,s=!1,f=[];if(e.editable)for(let c=0;c<n.length;c++){let u=this.registerMutation(n[c],f);u&&(a=a<0?u.from:Math.min(u.from,a),o=o<0?u.to:Math.max(u.to,o),u.typeOver&&(s=!0))}if(f.some(c=>c.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||pe&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&n.some(c=>c.type=="childList"&&c.removedNodes.length))){for(let c of f)if(c.nodeName=="BR"&&c.parentNode){let u=c.nextSibling;for(;u&&u.nodeType==1;){if(u.contentEditable=="false"){c.parentNode.removeChild(c);break}u=u.firstChild}}}else if(ze&&f.length){let c=f.filter(u=>u.nodeName=="BR");if(c.length==2){let[u,h]=c;u.parentNode&&u.parentNode.parentNode==h.parentNode?h.remove():u.remove()}else{let{focusNode:u}=this.currentSelection;for(let h of c){let d=h.parentNode;d&&d.nodeName=="LI"&&(!u||lp(e,u)!=d)&&h.remove()}}}let l=null;a<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Kr(r)&&(l=Ba(e))&&l.eq(P.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Xe(e),this.currentSelection.set(r),e.scrollToSelection()):(a>-1||i)&&(a>-1&&(e.docView.markDirty(a,o),sp(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,cp(e,f)),this.handleDOMChange(a,o,s,f),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Xe(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 c=0;c<e.addedNodes.length;c++){let u=e.addedNodes[c];n.push(u),u.nodeType==3&&(this.lastChangedTextNode=u)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,a=e.nextSibling;if(ke&&ut<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:u,nextSibling:h}=e.addedNodes[c];(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(i=u),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(a=h)}let o=i&&i.parentNode==e.target?de(i)+1:0,s=r.localPosFromDOM(e.target,o,-1),f=a&&a.parentNode==e.target?de(a):e.target.childNodes.length,l=r.localPosFromDOM(e.target,f,1);return{from:s,to:l}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let xs=new WeakMap,Is=!1;function sp(t){if(!xs.has(t)&&(xs.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ze,Is)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."),Is=!0}}function Ts(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,a=e.endOffset,o=t.domAtPos(t.state.selection.anchor);return Ot(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function fp(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Ts(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Ts(t,n):null}function lp(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function cp(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let a of e)if(((n=a.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let o=a.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let s=o;for(;;){let f=s.firstChild;if(!f||f.nodeType!=1||f.contentEditable=="false"||/^(BR|IMG)$/.test(f.nodeName))break;s=f}s.insertBefore(a,s.firstChild),r==a&&t.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}function up(t,e,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:f}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Kr(l)||c.push({node:l.focusNode,offset:l.focusOffset})),pe&&t.input.lastKeyCode===8)for(let y=o;y>a;y--){let M=i.childNodes[y-1],L=M.pmViewDesc;if(M.nodeName=="BR"&&!L){o=y;break}if(!L||L.size)break}let h=t.state.doc,d=t.someProp("domParser")||ct.fromSchema(t.state.schema),p=h.resolve(s),m=null,g=d.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:a,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:dp(r),context:p});if(c&&c[0].pos!=null){let y=c[0].pos,M=c[1]&&c[1].pos;M==null&&(M=y),m={anchor:y+s,head:M+s}}return{doc:g,sel:m,from:s,to:f}}const dp=t=>e=>{let n=e.pmViewDesc;if(n)return n.parseRule(t);if(e.nodeName=="BR"&&e.parentNode){if(be&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(e.parentNode.lastChild==e||be&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null},hp=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function pp(t,e,n,r,i){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,x=Ba(t,C);if(x&&!t.state.selection.eq(x)){if(pe&&$e&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",j=>j(t,kt(13,"Enter"))))return;let E=t.state.tr.setSelection(x);C=="pointer"?E.setMeta("pointer",!0):C=="key"&&E.scrollIntoView(),a&&E.setMeta("composition",a),t.dispatch(E)}return}let o=t.state.doc.resolve(e),s=o.sharedDepth(n);e=o.before(s+1),n=t.state.doc.resolve(n).after(s+1);let f=t.state.selection,l=up(t,e,n,i),c=t.state.doc,u=c.slice(l.from,l.to),h,d;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,d="end"):(h=t.state.selection.from,d="start"),t.input.lastKeyCode=null;let p=bp(u.content,l.doc.content,l.from,h,d);if(p&&t.input.domChangeCount++,(on&&t.input.lastIOSEnter>Date.now()-225||$e)&&i.some(C=>C.nodeType==1&&!hp.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,kt(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&f instanceof A&&!f.empty&&f.$head.sameParent(f.$anchor)&&!t.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:f.from,endA:f.to,endB:f.to};else{if(l.sel){let C=Ns(t,t.state.doc,l.sel);if(C&&!C.eq(t.state.selection)){let x=t.state.tr.setSelection(C);a&&x.setMeta("composition",a),t.dispatch(x)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof A&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=l.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=l.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),ke&&ut<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),y=c.resolve(p.start),M=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=p.endA;if((on&&t.input.lastIOSEnter>Date.now()-225&&(!M||i.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!M&&m.pos<l.doc.content.size&&(!m.sameParent(g)||!m.parent.inlineContent)&&m.pos<g.pos&&!/\S/.test(l.doc.textBetween(m.pos,g.pos,"","")))&&t.someProp("handleKeyDown",C=>C(t,kt(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&gp(c,p.start,p.endA,m,g)&&t.someProp("handleKeyDown",C=>C(t,kt(8,"Backspace")))){$e&&pe&&t.domObserver.suppressSelectionUpdates();return}pe&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),$e&&!M&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,kt(13,"Enter"))})},20));let L=p.start,w=p.endA,v=C=>{let x=C||t.state.tr.replace(L,w,l.doc.slice(p.start-l.from,p.endB-l.from));if(l.sel){let E=Ns(t,x.doc,l.sel);E&&!(pe&&t.composing&&E.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(E.head==L||E.head==x.mapping.map(w)-1)||ke&&E.empty&&E.head==L)&&x.setSelection(E)}return a&&x.setMeta("composition",a),x.scrollIntoView()},S;if(M)if(m.pos==g.pos){ke&&ut<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Xe(t),20));let C=v(t.state.tr.delete(L,w)),x=c.resolve(p.start).marksAcross(c.resolve(p.endA));x&&C.ensureMarks(x),t.dispatch(C)}else if(p.endA==p.endB&&(S=mp(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let C=v(t.state.tr);S.type=="add"?C.addMark(L,w,S.mark):C.removeMark(L,w,S.mark),t.dispatch(C)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let C=m.parent.textBetween(m.parentOffset,g.parentOffset),x=()=>v(t.state.tr.insertText(C,L,w));t.someProp("handleTextInput",E=>E(t,L,w,C,x))||t.dispatch(x())}else t.dispatch(v());else t.dispatch(v())}function Ns(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Ja(t,e.resolve(n.anchor),e.resolve(n.head))}function mp(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,a=r,o,s,f;for(let c=0;c<r.length;c++)i=r[c].removeFromSet(i);for(let c=0;c<n.length;c++)a=n[c].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o="add",f=c=>c.mark(s.addToSet(c.marks));else if(i.length==0&&a.length==1)s=a[0],o="remove",f=c=>c.mark(s.removeFromSet(c.marks));else return null;let l=[];for(let c=0;c<e.childCount;c++)l.push(f(e.child(c)));if(k.from(l).eq(t))return{mark:s,type:o}}function gp(t,e,n,r,i){if(n-e<=i.pos-r.pos||Ri(r,!0,!1)<i.pos)return!1;let a=t.resolve(e);if(!r.parent.isTextblock){let s=a.nodeAfter;return s!=null&&n==e+s.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=t.resolve(Ri(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Ri(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function Ri(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let a=t.node(r).maybeChild(t.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function bp(t,e,n,r,i){let a=t.findDiffStart(e,n),o=n+t.size,s=n+e.size;if(a==null)return null;let{a:f,b:l}=t.findDiffEnd(e,o,s);if(i=="end"){let c=Math.max(0,a-Math.min(f,l));r-=f+c-a}if(f<a&&o<s){let c=r<=a&&r>=f?a-r:0;a-=c,l=a+(l-f),f=a}else if(l<a){let c=r<=a&&r>=l?a-r:0;a-=c,f=a+(f-l),l=a}return{start:a,endA:f,endB:l}}class gc{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 Ah,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Rs),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=As(this),Es(this),this.nodeViews=zs(this),this.docView=hs(this.state.doc,Ds(this),zi(this),this.dom,this),this.domObserver=new op(this,(r,i,a,o)=>pp(this,r,i,a,o)),this.domObserver.start(),zh(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&&ua(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Rs),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){var r;let i=this.state,a=!1,o=!1;e.storedMarks&&this.composing&&(lc(this),o=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let d=zs(this);wp(d,this.nodeViews)&&(this.nodeViews=d,a=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ua(this),this.editable=As(this),Es(this);let f=zi(this),l=Ds(this),c=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",u=a||!this.docView.matchesNode(e.doc,l,f);(u||!e.selection.eq(i.selection))&&(o=!0);let h=c=="preserve"&&o&&this.dom.style.overflowAnchor==null&&W0(this);if(o){this.domObserver.stop();let d=u&&(ke||pe)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&yp(i.selection,e.selection);if(u){let m=pe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Zh(this)),(a||!this.docView.update(e.doc,l,f,this))&&(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=hs(e.doc,l,f,this.dom,this)),m&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(d=!0)}let p=this.input.mouseDown;d||!(p&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&yh(this)&&p.delaySelUpdate())?Xe(this,d):(Zl(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&Z0(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof D){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&fs(this,n.getBoundingClientRect(),e)}else fs(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)}}updateDraggedNode(e,n){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let a=r.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&a<this.state.doc.content.size&&this.state.doc.nodeAt(a))==r.node&&(i=a)}this.dragging=new uc(e.slice,e.move,i<0?void 0:D.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[e];if(s!=null&&(i=n?n(s):s))return i}let a=this.state.plugins;if(a)for(let o=0;o<a.length;o++){let s=a[o].props[e];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(ke){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&&$0(this.dom),Xe(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}updateRoot(){this._root=null}posAtCoords(e){return th(this,e)}coordsAtPos(e,n=1){return Ql(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 i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return oh(this,n||this.state,e)}pasteHTML(e,n){return Qn(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Qn(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Ua(this,e)}destroy(){this.docView&&(Rh(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],zi(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,B0())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Ph(this,e)}domSelectionRange(){let e=this.domSelection();return e?be&&this.root.nodeType===11&&H0(this.dom.ownerDocument)==this.dom&&fp(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}gc.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Ds(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"),[ge.node(0,t.state.doc.content.size,e)]}function Es(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:ge.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function As(t){return!t.someProp("editable",e=>e(t.state)===!1)}function yp(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 zs(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function wp(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Rs(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")}var mt={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:"'"},Pr={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Mp=typeof navigator<"u"&&/Mac/.test(navigator.platform),Lp=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var he=0;he<10;he++)mt[48+he]=mt[96+he]=String(he);for(var he=1;he<=24;he++)mt[he+111]="F"+he;for(var he=65;he<=90;he++)mt[he]=String.fromCharCode(he+32),Pr[he]=String.fromCharCode(he);for(var Oi in mt)Pr.hasOwnProperty(Oi)||(Pr[Oi]=mt[Oi]);function Cp(t){var e=Mp&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Lp&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Pr:mt)[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 vp=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),kp=typeof navigator<"u"&&/Win/.test(navigator.platform);function Sp(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s<e.length-1;s++){let f=e[s];if(/^(cmd|meta|m)$/i.test(f))o=!0;else if(/^a(lt)?$/i.test(f))r=!0;else if(/^(c|ctrl|control)$/i.test(f))i=!0;else if(/^s(hift)?$/i.test(f))a=!0;else if(/^mod$/i.test(f))vp?o=!0:i=!0;else throw new Error("Unrecognized modifier name: "+f)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),o&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function jp(t){let e=Object.create(null);for(let n in t)e[Sp(n)]=t[n];return e}
vendor: 2,259 bytes, line 10
10function Pi(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 xp(t){return new W({props:{handleKeyDown:bc(t)}})}function bc(t){let e=jp(t);return function(n,r){let i=Cp(r),a,o=e[Pi(i,r)];if(o&&o(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=e[Pi(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(kp&&r.ctrlKey&&r.altKey)&&(a=mt[r.keyCode])&&a!=i){let s=e[Pi(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Ip=Object.defineProperty,_a=(t,e)=>{for(var n in e)Ip(t,n,{get:e[n],enumerable:!0})};function Xr(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var ei=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(t).map(([o,s])=>[o,(...l)=>{const c=s(...l)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!t,f=t||i.tr,l=()=>(!s&&e&&!f.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(f),o.every(u=>u===!0)),c={...Object.fromEntries(Object.entries(n).map(([u,h])=>[u,(...p)=>{const m=this.buildProps(f,e),g=h(...p)(m);return o.push(g),c}])),run:l};return c}createCan(t){const{rawCommands:e,state:n}=this,r=!1,i=t||n.tr,a=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([s,f])=>[s,(...l)=>f(...l)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}
10=r,o={tr:t,editor:r,view:a,state:Xr({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([s,f])=>[s,(...l)=>f(...l)(o)]))}};return o}},yc={};_a(yc,{blur:()=>Tp,clearContent:()=>Np,clearNodes:()=>Dp,command:()=>Ep,createParagraphNear:()=>Ap,cut:()=>zp,deleteCurrentNode:()=>Rp,deleteNode:()=>Op,deleteRange:()=>Pp,deleteSelection:()=>Up,enter:()=>Qp,exitCode:()=>Yp,extendMarkRange:()=>Hp,first:()=>Gp,focus:()=>_p,forEach:()=>Vp,insertContent:()=>Wp,insertContentAt:()=>Zp,insertDefaultBlock:()=>$p,joinBackward:()=>Xp,joinDown:()=>qp,joinForward:()=>em,joinItemBackward:()=>tm,joinItemForward:()=>nm,joinTextblockBackward:()=>rm,joinTextblockForward:()=>im,joinUp:()=>Kp,keyboardShortcut:()=>om,lift:()=>sm,liftEmptyBlock:()=>fm,liftListItem:()=>lm,newlineInCode:()=>cm,resetAttributes:()=>um,scrollIntoView:()=>dm,selectAll:()=>hm,selectNodeBackward:()=>pm,selectNodeForward:()=>mm,selectParentNode:()=>gm,selectTextblockEnd:()=>bm,selectTextblockStart:()=>ym,setContent:()=>wm,setMark:()=>Um,setMeta:()=>Qm,setNode:()=>Ym,setNodeSelection:()=>Hm,setTextDirection:()=>Gm,setTextSelection:()=>Fm,sinkListItem:()=>_m,splitBlock:()=>Vm,splitListItem:()=>Wm,toggleList:()=>$m,toggleMark:()=>Km,toggleNode:()=>qm,toggleWrap:()=>Xm,undoInputRule:()=>eg,unsetAllMarks:()=>tg,unsetMark:()=>ng,unsetTextDirection:()=>rg,updateAttributes:()=>ig,updateDecorations:()=>og,wrapIn:()=>sg,wrapInList:()=>fg});var Tp=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),Np=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),Dp=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:o})=>{t.doc.nodesBetween(a.pos,o.pos,(s,f)=>{if(s.type.isText)return;const{doc:l,mapping:c}=e,u=l.resolve(c.map(f)),h=l.resolve(c.map(f+s.nodeSize)),d=u.blockRange(h);if(!d)return;const p=pn(d);if(s.type.isTextblock){const{defaultType:m}=u.parent.contentMatchAt(u.index());e.setNodeMarkup(d.start,m)}(p||p===0)&&e.lift(d,p)})}),!0},Ep=t=>e=>t(e),Ap=()=>({state:t,dispatch:e})=>Nl(t,e),zp=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const o=r.mapping.map(e);return r.insert(o,a.content),r.setSelection(new A(r.doc.resolve(Math.max(o-1,0)))),!0},Rp=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(e){const s=i.before(a),f=i.after(a);t.delete(s,f).scrollIntoView()}return!0}return!1};function ae(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}var Op=t=>({tr:e,state:n,dispatch:r})=>{const i=ae(t,n.schema),a=e.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===i){if(r){const f=a.before(o),l=a.after(o);e.delete(f,l).scrollIntoView()}return!0}return!1},Pp=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},Bp=t=>t.content?/^text(\*|\+)/.test(t.content):!1,Os=(t,e,n)=>{if(!t.parent.isInline||n==="left"&&t.pos>t.start()||n==="right"&&t.pos<t.end())return t.pos;const r=e.nodes[t.parent.type.name].spec;return Bp(r)?n==="left"?t.start()-1:t.end()+1:t.pos},Jp=(t,e,n)=>{const r=Os(t,n,"left"),i=Os(e,n,"right");return{from:r,to:i}},Up=()=>({state:t,dispatch:e})=>{if(t.selection.empty)return!1;if(e){const n=t.tr,{ranges:r}=t.selection,i=n.steps.length;r.forEach(a=>{const o=n.mapping.slice(i),s=n.doc.resolve(o.map(a.$from.pos)),f=n.doc.resolve(o.map(a.$to.pos)),{from:l,to:c}=Jp(s,f,t.schema);n.deleteRange(l,c)}),n.selection.empty||n.setSelection(A.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),e(n)}return!0},Qp=()=>({commands:t})=>t.keyboardShortcut("Enter"),Yp=()=>({state:t,dispatch:e})=>v0(t,e);function Va(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Br(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:Va(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function wc(t,e,n={}){return t.find(r=>r.type===e&&Br(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function Ps(t,e,n={}){return!!wc(t,e,n)}function Wa(t,e,n){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===e))return;if(!n){const l=r.node.marks.find(c=>c.type===e);l&&(n=l.attrs)}if(!wc([...r.node.marks],e,n))return;let a=r.index,o=t.start()+r.offset,s=a+1,f=o+r.node.nodeSize;
10for(;a>0&&Ps([...t.parent.child(a-1).marks],e,n);)a-=1,o-=t.parent.child(a).nodeSize;for(;s<t.parent.childCount&&Ps([...t.parent.child(s).marks],e,n);)f+=t.parent.child(s).nodeSize,s+=1;return{from:o,to:f}}function tt(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}var Hp=(t,e)=>({tr:n,state:r,dispatch:i})=>{const a=tt(t,r.schema),{doc:o,selection:s}=n,{$from:f,from:l,to:c}=s;if(i){const u=Wa(f,a,e);if(u&&u.from<=l&&u.to>=c){const h=A.create(o,u.from,u.to);n.setSelection(h)}}return!0},Gp=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 Mc(t){return t instanceof A}function It(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function da(t,e=null){if(!e)return null;const n=P.atStart(t),r=P.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const i=n.from,a=r.to;return e==="all"?A.create(t,It(0,i,a),It(t.content.size,i,a)):A.create(t,It(e,i,a),It(e,i,a))}function Bs(){return["Android"].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function Jr(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Fp(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var _p=(t=null,e={})=>({editor:n,view:r,tr:i,dispatch:a})=>{e={scrollIntoView:!0,...e};const o=()=>{(Jr()||Bs())&&r.dom.focus(),Fp()&&!Jr()&&!Bs()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(a&&t===null&&!Mc(n.state.selection))return o(),!0;const s=da(i.doc,t)||n.state.selection,f=n.state.selection.eq(s);return a&&(f||i.setSelection(s),f&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},Vp=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),Wp=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Lc=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Lc(r)}return t};function fr(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Lc(n)}function Cc(t){return typeof(t==null?void 0:t.nodesBetween)=="function"}function sn(t,e,n){if(Cc(t))return t;const r=typeof t=="object"&&t!==null;n={slice:!0,parseOptions:{},...n};const i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return k.fromArray(t.map(s=>e.nodeFromJSON(s)));const o=e.nodeFromJSON(t);return n.errorOnInvalidContent&&o.check(),o}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",a),sn("",e,n)}if(i){if(n.errorOnInvalidContent){let o=!1,s="";const f=new nl({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:l=>(o=!0,s=typeof l=="string"?l:l.outerHTML,null)}]}})});if(n.slice?ct.fromSchema(f).parseSlice(fr(t),n.parseOptions):ct.fromSchema(f).parse(fr(t),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const a=ct.fromSchema(e);return n.slice?a.parseSlice(fr(t),n.parseOptions).content:a.parse(fr(t),n.parseOptions)}return sn("",e,n)}function vc(t){return!("type"in t)}function kc(t,e,n){const r=t.steps.length-1;if(r<e)return;const i=t.steps[r];if(!(i instanceof ne||i instanceof le))return;const a=t.mapping.maps[r];let o=0;a.forEach((s,f,l,c)=>{o===0&&(o=c)}),t.setSelection(P.near(t.doc.resolve(o),n))}var Zp=(t,e,n)=>({tr:r,dispatch:i,editor:a})=>{var o;if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;const f=g=>
10{a.emit("contentError",{editor:a,error:g,disableCollaboration:()=>{"collaboration"in a.storage&&typeof a.storage.collaboration=="object"&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},l={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{sn(e,a.schema,{parseOptions:l,errorOnInvalidContent:!0})}catch(g){f(g)}try{s=sn(e,a.schema,{parseOptions:l,errorOnInvalidContent:(o=n.errorOnInvalidContent)!=null?o:a.options.enableContentCheck})}catch(g){return f(g),!1}let{from:c,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,d=!0;const p=vc(s)?s.content:[s];if(p.forEach(g=>{g.check(),h=h?g.isText&&g.marks.length===0:!1,d=d?g.isBlock:!1}),c===u&&d){const{parent:g}=r.doc.resolve(c);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(c-=1,u+=1)}let m;if(h)Array.isArray(e)?m=e.map(g=>g.text||"").join(""):Cc(e)?m=p.map(g=>{var y;return(y=g.text)!=null?y:""}).join(""):typeof e=="object"&&e&&e.text?m=e.text:m=e,r.insertText(m,c,u);else{m=k.from(p);const g=r.doc.resolve(c),y=g.node(),M=g.parentOffset===0,L=y.isText||y.isTextblock,w=y.content.size>0;M&&L&&w&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,u,p)}n.updateSelection&&kc(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:m})}return!0};function Sc(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}var $p=(t={})=>({tr:e,dispatch:n,editor:r})=>{const{pos:i,attrs:a,content:o,updateSelection:s=!0}=t;let f;typeof i=="number"?f=e.doc.resolve(i):i?f=i:f=e.selection.$from;const l=Sc(f.parent.contentMatchAt(f.index()));if(!l)return!1;const c=Object.keys(l.spec.attrs||{}),u=a?Object.fromEntries(Object.entries(a).filter(([d])=>c.includes(d))):{};let h;if(o){const d=sn(o,r.schema);h=l.createAndFill(u,d)}else h=l.createAndFill(u);return h?(n&&(e.insert(f.pos,h),s&&kc(e,e.steps.length-1,-1)),!0):!1},Kp=()=>({state:t,dispatch:e})=>M0(t,e),qp=()=>({state:t,dispatch:e})=>L0(t,e),Xp=()=>({state:t,dispatch:e})=>vl(t,e),em=()=>({state:t,dispatch:e})=>xl(t,e),tm=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Wr(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},nm=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Wr(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},rm=()=>({state:t,dispatch:e})=>y0(t,e),im=()=>({state:t,dispatch:e})=>w0(t,e);function jc(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function am(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,a,o;for(let s=0;s<e.length-1;s+=1){const f=e[s];if(/^(cmd|meta|m)$/i.test(f))o=!0;else if(/^a(lt)?$/i.test(f))r=!0;else if(/^(c|ctrl|control)$/i.test(f))i=!0;else if(/^s(hift)?$/i.test(f))a=!0;else if(/^mod$/i.test(f))Jr()||jc()?o=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${f}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var om=t=>({editor:e,view:n,tr:r,dispatch:i})=>{const a=am(t).split(/-(?!$)/),o=a.find(l=>!["Alt","Ctrl","Meta","Shift"].includes(l)),s=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),f=e.captureTransaction(()=>{n.someProp("handleKeyDown",l=>l(n,s))});return f==null||f.steps.forEach(l=>{const c=l.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function et(t,e,n={}){const{from:r,to:i,empty:a}=t.selection,o=e?ae(e,t.schema):null,s=[];t.doc.nodesBetween(r,i,(u,h)=>{if(u.isText)return;const d=Math.max(r,h),p=Math.min(i,h+u.nodeSize);s.push({node:u,from:d,to:p})});const f=i-r,l=s.filter(u=>o?o.name===u.node.type.name:!0).filter(u=>Br(u.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((u,h)=>u+h.to-h.from,0)>=f}var sm=(t,e={})=>({state:n,dispatch:r})=>{const i=ae(t,n.schema);return et(n,i,e)?C0(n,r):!1},fm=()=>({state:t,dispatch:e})=>Dl(t,e),lm=t=>({state:e,dispatch:n})=>{const r=ae(t,e.schema);return z0(r)(e,n)},cm=()=>({state:t,dispatch:e})=>Tl(t,e);
10function ti(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Js(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}var um=(t,e)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=ti(typeof t=="string"?t:t.name,r.schema);if(!s)return!1;s==="node"&&(a=ae(t,r.schema)),s==="mark"&&(o=tt(t,r.schema));let f=!1;return n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{a&&a===c.type&&(f=!0,i&&n.setNodeMarkup(u,void 0,Js(c.attrs,e))),o&&c.marks.length&&c.marks.forEach(h=>{o===h.type&&(f=!0,i&&n.addMark(u,u+c.nodeSize,o.create(Js(h.attrs,e))))})})}),f},dm=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),hm=()=>({tr:t,dispatch:e})=>{if(e){const n=new je(t.doc);t.setSelection(n)}return!0},pm=()=>({state:t,dispatch:e})=>Sl(t,e),mm=()=>({state:t,dispatch:e})=>Il(t,e),gm=()=>({state:t,dispatch:e})=>j0(t,e),bm=()=>({state:t,dispatch:e})=>T0(t,e),ym=()=>({state:t,dispatch:e})=>I0(t,e);function ha(t,e,n={},r={}){return sn(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var wm=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{const{doc:f}=a;if(r.preserveWhitespace!=="full"){const l=ha(t,i.schema,r,{errorOnInvalidContent:e??i.options.enableContentCheck});if(o){const c=vc(l)?l.content:[l];a.replaceWith(0,f.content.size,c).setMeta("preventUpdate",!n)}return!0}return o&&a.setMeta("preventUpdate",!n),s.insertContentAt({from:0,to:f.content.size},t,{parseOptions:r,errorOnInvalidContent:e??i.options.enableContentCheck})};function xc(t,e){const n=tt(e,t.schema),{from:r,to:i,empty:a}=t.selection,o=[];a?(t.storedMarks&&o.push(...t.storedMarks),o.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,f=>{o.push(...f.marks)});const s=o.find(f=>f.type.name===n.name);return s?{...s.attrs}:{}}function Ic(t,e){const n=new yl(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Mm(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,a)=>{n(i)&&r.push({node:i,pos:a})}),r}function Lm(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 ni(t){return e=>Lm(e.$from,t)}function N(t,e,n){return t.config[e]===void 0&&t.parent?N(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?N(t.parent,e,n):null}):t.config[e]}function Za(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=N(e,"addExtensions",n);return r?[e,...Za(r())]:e}).flat(10)}function $a(t,e){const n=Bt.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function Tc(t){return typeof t=="function"}function Y(t,e=void 0,...n){return Tc(t)?e?t.bind(e)(...n):t(...n):t}function Cm(t={}){return Object.keys(t).length===0&&t.constructor===Object}function fn(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Nc(t){const e=[],{nodeExtensions:n,markExtensions:r}=fn(t),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(l=>l.name!=="text").map(l=>l.name),s=r.map(l=>l.name),f=[...o,...s];return t.forEach(l=>{const c={name:l.name,options:l.options,storage:l.storage,extensions:i},u=N(l,"addGlobalAttributes",c);if(!u)return;u().forEach(d=>{let p;Array.isArray(d.types)?p=d.types:d.types==="*"?p=f:d.types==="nodes"?p=o:d.types==="marks"?p=s:p=[],p.forEach(m=>{Object.entries(d.attributes).forEach(([g,y])=>{e.push({type:m,name:g,attribute:{...a,...y}})})})})}
10),i.forEach(l=>{const c={name:l.name,options:l.options,storage:l.storage},u=N(l,"addAttributes",c);if(!u)return;const h=u();Object.entries(h).forEach(([d,p])=>{const m={...a,...p};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:l.name,name:d,attribute:m})})}),e}function vm(t){const e=[];let n="",r=!1,i=!1,a=0;const o=t.length;for(let s=0;s<o;s+=1){const f=t[s];if(f==="'"&&!i){r=!r,n+=f;continue}if(f==='"'&&!r){i=!i,n+=f;continue}if(!r&&!i){if(f==="("){a+=1,n+=f;continue}if(f===")"&&a>0){a-=1,n+=f;continue}if(f===";"&&a===0){e.push(n),n="";continue}}n+=f}return n&&e.push(n),e}function Us(t){const e=[],n=vm(t||""),r=n.length;for(let i=0;i<r;i+=1){const a=n[i],o=a.indexOf(":");if(o===-1)continue;const s=a.slice(0,o).trim(),f=a.slice(o+1).trim();s&&f&&e.push([s,f])}return e}function V(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,a])=>{if(!r[i]){r[i]=a;return}if(i==="class"){const s=a?String(a).split(" "):[],f=r[i]?r[i].split(" "):[],l=s.filter(c=>!f.includes(c));r[i]=[...f,...l].join(" ")}else if(i==="style"){const s=new Map([...Us(r[i]),...Us(a)]);r[i]=Array.from(s.entries()).map(([f,l])=>`${f}: ${l}`).join("; ")}else r[i]=a}),r},{})}function ln(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>V(n,r),{})}function km(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Qs(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):km(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...r,...i}}}}function Ys(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Cm(n)?!1:n!=null))}function Hs(t){var e,n;const r={};return!((e=t==null?void 0:t.attribute)!=null&&e.isRequired)&&"default"in((t==null?void 0:t.attribute)||{})&&(r.default=t.attribute.default),((n=t==null?void 0:t.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function Sm(t,e){var n;const r=Nc(t),{nodeExtensions:i,markExtensions:a}=fn(t),o=(n=i.find(l=>N(l,"topNode")))==null?void 0:n.name,s=Object.fromEntries(i.map(l=>{const c=r.filter(y=>y.type===l.name),u={name:l.name,options:l.options,storage:l.storage,editor:e},h=t.reduce((y,M)=>{const L=N(M,"extendNodeSchema",u);return{...y,...L?L(l):{}}},{}),d=Ys({...h,content:Y(N(l,"content",u)),marks:Y(N(l,"marks",u)),group:Y(N(l,"group",u)),inline:Y(N(l,"inline",u)),atom:Y(N(l,"atom",u)),selectable:Y(N(l,"selectable",u)),draggable:Y(N(l,"draggable",u)),code:Y(N(l,"code",u)),whitespace:Y(N(l,"whitespace",u)),linebreakReplacement:Y(N(l,"linebreakReplacement",u)),defining:Y(N(l,"defining",u)),isolating:Y(N(l,"isolating",u)),attrs:Object.fromEntries(c.map(Hs))}),p=Y(N(l,"parseHTML",u));p&&(d.parseDOM=p.map(y=>Qs(y,c)));const m=N(l,"renderHTML",u);m&&(d.toDOM=y=>m({node:y,HTMLAttributes:ln(y,c)}));const g=N(l,"renderText",u);return g&&(d.toText=g),[l.name,d]})),f=Object.fromEntries(a.map(l=>{const c=r.filter(g=>g.type===l.name),u={name:l.name,options:l.options,storage:l.storage,editor:e},h=t.reduce((g,y)=>{const M=N(y,"extendMarkSchema",u);return{...g,...M?M(l):{}}},{}),d=Ys({...h,inclusive:Y(N(l,"inclusive",u)),excludes:Y(N(l,"excludes",u)),group:Y(N(l,"group",u)),spanning:Y(N(l,"spanning",u)),code:Y(N(l,"code",u)),attrs:Object.fromEntries(c.map(Hs))}),p=Y(N(l,"parseHTML",u));p&&(d.parseDOM=p.map(g=>Qs(g,c)));const m=N(l,"renderHTML",u);return m&&(d.toDOM=g=>m({mark:g,HTMLAttributes:ln(g,c)})),[l.name,d]}));return new nl({topNode:o,nodes:s,marks:f})}function jm(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function Dn(t){return t.sort((n,r)=>{const i=N(n,"priority")||100,a=N(r,"priority")||100;return i>a?-1:i<a?1:0})}function Dc(t){const e=Dn(Za(t)),n=jm(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function Ec(t,e,n){const{from:r,to:i}=e,{blockSeparator:a=`
11
12`,textSerializers:o={}}=n||{};let s="";return t.nodesBetween(r,i,(f,l,c,u)=>{var h;f.isBlock&&l>r&&(s+=a);const d=o==null?void 0:o[f.type.name];if(d)return c&&(s+=d({node:f,pos:l,parent:c,index:u,range:e})),!1;f.isText&&(s+=(h=f==null?void 0:f.text)==null?void 0:h.slice(Math.max(r,l)-l,i-l))}),s}function xm(t,e){const n={from:0,to:t.content.size};return Ec(t,n,e)}function Ac(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function Im(t,e){const n=ae(e,t.schema),{from:r,to:i}=t.selection,a=[];t.doc.nodesBetween(r,i,s=>{a.push(s)});const o=a.reverse().find(s=>s.type.name===n.name);return o?{...o.attrs}:{}}function zc(t,e){const n=ti(typeof e=="string"?e:e.name,t.schema);return n==="node"?Im(t,e):n==="mark"?xc(t,e):{}}function Tm(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Nm(t){const e=Tm(t);return e.length===1?e:e.filter((n,r)=>!e.filter((a,o)=>o!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function ri(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,a)=>{const o=[];if(i.ranges.length)i.forEach((s,f)=>{o.push({from:s,to:f})});else{const{from:s,to:f}=n[a];if(s===void 0||f===void 0)return;o.push({from:s,to:f})}o.forEach(({from:s,to:f})=>{const l=e.slice(a).map(s,-1),c=e.slice(a).map(f),u=e.invert().map(l,-1),h=e.invert().map(c);r.push({oldRange:{from:u,to:h},newRange:{from:l,to:c}})})}),Nm(r)}function Ka(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const a=n.resolve(t),o=Wa(a,i.type);o&&r.push({mark:i,...o})}):n.nodesBetween(t,e,(i,a)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(o=>({from:a,to:a+i.nodeSize,mark:o})))}),r}var Dm=(t,e,n,r=20)=>{const i=t.doc.resolve(n);let a=r,o=null;for(;a>0&&o===null;){const s=i.node(a);(s==null?void 0:s.type.name)===e?o=s:a-=1}return[o,a]},Em=t=>{const e=t.depth-1;if(e<0)return null;const n=t.index(e);return n===0?null:t.node(e).child(n-1)};function Zt(t,e){return e.nodes[t]||e.marks[t]||null}function Cr(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(a=>a.type===e&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}var Am=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,a,o,s)=>{var f,l;const c=((l=(f=i.type.spec).toText)==null?void 0:l.call(f,{node:i,pos:a,parent:o,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-a))}),n};function pa(t,e,n={}){const{empty:r,ranges:i}=t.selection,a=e?tt(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(u=>a?a.name===u.type.name:!0).find(u=>Br(u.attrs,n,{strict:!1}));let o=0;const s=[];if(i.forEach(({$from:u,$to:h})=>{const d=u.pos,p=h.pos;t.doc.nodesBetween(d,p,(m,g)=>{if(a&&m.inlineContent&&!m.type.allowsMarkType(a))return!1;if(!m.isText&&!m.marks.length)return;const y=Math.max(d,g),M=Math.min(p,g+m.nodeSize),L=M-y;o+=L,s.push(...m.marks.map(w=>({mark:w,from:y,to:M})))})}),o===0)return!1;const f=s.filter(u=>a?a.name===u.mark.type.name:!0).filter(u=>Br(u.mark.attrs,n,{strict:!1})).reduce((u,h)=>u+h.to-h.from,0),l=s.filter(u=>a?u.mark.type!==a&&u.mark.type.excludes(a):!0).reduce((u,h)=>u+h.to-h.from,0);return(f>0?f+l:f)>=o}function zm(t,e,n={}){if(!e)return et(t,null,n)||pa(t,null,n);const r=ti(e,t.schema);return r==="node"?et(t,e,n):r==="mark"?pa(t,e,n):!1}var Rm=(t,e)=>{const{$from:n,$to:r,$anchor:i}=t.selection;if(e){const a=ni(s=>s.type.name===e)(t.selection);if(!a)return!1;const o=t.doc.resolve(a.pos+1);return i.pos+1===o.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Om=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Gs(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Bi(t,e){const{nodeExtensions:n}=fn(e),r=n.find(o=>o.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},a=Y(N(r,"group",i));return typeof a!="string"?!1:a.split(" ").includes("list")}function er(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;
vendor: 4,111 bytes, line 12
12if(t.isText)return!/\S/.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(a=>{i!==!1&&(er(a,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function Rc(t){return t instanceof D}var Oc=class Pc{constructor(e){this.position=e}static fromJSON(e){return new Pc(e.position)}toJSON(){return{position:this.position}}};function Pm(t,e){const n=e.mapping.mapResult(t.position);return{position:new Oc(n.pos),mapResult:n}}function Bm(t){return new Oc(t)}function Jm(t,e,n){var r;const{selection:i}=e;let a=null;if(Mc(i)&&(a=i.$cursor),a){const s=(r=t.storedMarks)!=null?r:a.marks();return a.parent.type.allowsMarkType(n)&&(!!n.isInSet(s)||!s.some(l=>l.type.excludes(n)))}const{ranges:o}=i;return o.some(({$from:s,$to:f})=>{let l=s.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(s.pos,f.pos,(c,u,h)=>{if(l)return!1;if(c.isInline){const d=!h||h.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));l=d&&p}return!l}),l})}var Um=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:o,ranges:s}=a,f=tt(t,r.schema);if(i)if(o){const l=xc(r,f);n.addStoredMark(f.create({...l,...e}))}else s.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;r.doc.nodesBetween(c,u,(h,d)=>{const p=Math.max(d,c),m=Math.min(d+h.nodeSize,u);h.marks.find(y=>y.type===f)?h.marks.forEach(y=>{f===y.type&&n.addMark(p,m,f.create({...y.attrs,...e}))}):n.addMark(p,m,f.create(e))})});return Jm(r,n,f)},Qm=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Ym=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const a=ae(t,n.schema);let o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:s})=>is(a,{...o,...e})(n)?!0:s.clearNodes()).command(({state:s})=>is(a,{...o,...e})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Hm=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=It(t,0,r.content.size),a=D.create(r,i);e.setSelection(a)}return!0},Gm=(t,e)=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=r;let o,s;return typeof e=="number"?(o=e,s=e):e&&"from"in e&&"to"in e?(o=e.from,s=e.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(f,l)=>{f.isText||n.setNodeMarkup(l,void 0,{...f.attrs,dir:t})}),!0},Fm=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:a}=typeof t=="number"?{from:t,to:t}:t,o=A.atStart(r).from,s=A.atEnd(r).to,f=It(i,o,s),l=It(a,o,s),c=A.create(r,f,l);e.setSelection(c)}return!0},_m=t=>({state:e,dispatch:n})=>{const r=ae(t,e.schema);return P0(r)(e,n)};function Fs(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e==null?void 0:e.includes(i.type.name));t.tr.ensureMarks(r)}}var Vm=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:o}=e,{$from:s,$to:f}=a,l=i.extensionManager.attributes,c=Cr(l,s.node().type.name,s.node().attrs);if(a instanceof D&&a.node.isBlock)return!s.parentOffset||!qe(o,s.pos)?!1:(r&&(t&&Fs(n,i.extensionManager.splittableMarks),e.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const u=f.parentOffset===f.parent.content.size,h=s.depth===0?void 0:Sc(s.node(-1).contentMatchAt(s.indexAfter(-1)));let d=u&&h?[{type:h,attrs:c}]:void 0,p=qe(e.doc,e.mapping.map(s.pos),1,d);if(!d&&!p&&qe(e.doc,e.mapping.map(s.pos),1,h?[{type:h}]:void 0)&&(p=!0,d=h?[{type:h,attrs:c}]:void 0),r){if(p&&(a instanceof A&&e.deleteSelection(),e.split(e.mapping.map(s.pos),1,d),h&&!u&&!s.parentOffset&&s.parent.type!==h)){const m=e.mapping.map(s.before()),g=e.doc.resolve(m);s.node(-1).canReplaceWith(g.index(),g.index()+1,h)&&e.setNodeMarkup(e.mapping.map(s.before()),h)}t&&Fs(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return p},Wm=(t,e={})=>({tr:n,state:r,dispatch:i,editor:a})=>{var o;const s=ae(t,r.schema),{$from:f,$to:l}=r.selection,c=r.selection.node;if(c&&c.isBlock||f.depth<2||!f.sameParent(l))return!1;const u=f.node(-1);if(u.type!==s)return!1;const h=a.extensionManager.attributes;
12if(f.parent.content.size===0&&f.node(-1).childCount===f.indexAfter(-1)){if(f.depth===2||f.node(-3).type!==s||f.index(-2)!==f.node(-2).childCount-1)return!1;if(i){let y=k.empty;const M=f.index(-1)?1:f.index(-2)?2:3;for(let x=f.depth-M;x>=f.depth-3;x-=1)y=k.from(f.node(x).copy(y));const L=f.indexAfter(-1)<f.node(-2).childCount?1:f.indexAfter(-2)<f.node(-3).childCount?2:3,w={...Cr(h,f.node().type.name,f.node().attrs),...e},v=((o=s.contentMatch.defaultType)==null?void 0:o.createAndFill(w))||void 0;y=y.append(k.from(s.createAndFill(null,v)||void 0));const S=f.before(f.depth-(M-1));n.replace(S,f.after(-L),new I(y,4-M,0));let C=-1;n.doc.nodesBetween(S,n.doc.content.size,(x,E)=>{if(C>-1)return!1;x.isTextblock&&x.content.size===0&&(C=E+1)}),C>-1&&n.setSelection(A.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const d=l.pos===f.end()?u.contentMatchAt(0).defaultType:null,p={...Cr(h,u.type.name,u.attrs),...e},m={...Cr(h,f.node().type.name,f.node().attrs),...e};n.delete(f.pos,l.pos);const g=d?[{type:s,attrs:p},{type:d,attrs:m}]:[{type:s,attrs:p}];if(!qe(n.doc,f.pos,2))return!1;if(i){const{selection:y,storedMarks:M}=r,{splittableMarks:L}=a.extensionManager,w=M||y.$to.parentOffset&&y.$from.marks();if(n.split(f.pos,2,g).scrollIntoView(),!w||!i)return!0;const v=w.filter(S=>L.includes(S.type.name));n.ensureMarks(v)}return!0};function _s(t){return!t||t==="1"?null:t}function Bc(t,e){return _s(t)===_s(e)}var Ji=(t,e)=>{const n=ni(o=>o.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 i=t.doc.nodeAt(r);return!(n.node.type===(i==null?void 0:i.type)&&yt(t.doc,n.pos))||!Bc(n.node.attrs.type,i==null?void 0:i.attrs.type)||t.join(n.pos),!0},Ui=(t,e)=>{const n=ni(o=>o.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 i=t.doc.nodeAt(r);return!(n.node.type===(i==null?void 0:i.type)&&yt(t.doc,r))||!Bc(n.node.attrs.type,i==null?void 0:i.attrs.type)||t.join(r),!0};function Zm(t){const e=t.doc,n=e.firstChild;if(!n)return null;const r=e.resolve(1),i=e.resolve(n.nodeSize-1);return A.between(r,i)}var $m=(t,e,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:f,commands:l,can:c})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,d=ae(t,o.schema),p=ae(e,o.schema),{selection:m,storedMarks:g}=o,{$from:y,$to:M}=m,L=y.blockRange(M),w=g||m.$to.parentOffset&&m.$from.marks();if(!L)return!1;const v=ni(Q=>Bi(Q.type.name,u))(m),S=m.from===0&&m.to===o.doc.content.size,C=o.doc.content.content,x=C.length===1?C[0]:null,E=S&&x&&Bi(x.type.name,u)?{node:x,pos:0}:null,j=v??E,z=!!v&&L.depth>=1&&L.depth-v.depth<=1,R=!!E;if((z||R)&&j){if(j.node.type===d)return S&&R?f().command(({tr:Q,dispatch:G})=>{const K=Zm(Q);return K?(Q.setSelection(K),G&&G(Q),!0):!1}).liftListItem(p).run():l.liftListItem(p);if(Bi(j.node.type.name,u)&&d.validContent(j.node.content))return f().command(()=>(a.setNodeMarkup(j.pos,d),!0)).command(()=>Ji(a,d)).command(()=>Ui(a,d)).run()}return!n||!w||!s?f().command(()=>c().wrapInList(d,r)?!0:l.clearNodes()).wrapInList(d,r).command(()=>Ji(a,d)).command(()=>Ui(a,d)).run():f().command(()=>{const Q=c().wrapInList(d,r),G=w.filter(K=>h.includes(K.type.name));return a.ensureMarks(G),Q?!0:l.clearNodes()}).wrapInList(d,r).command(()=>Ji(a,d)).command(()=>Ui(a,d)).run()},Km=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,o=tt(t,r.schema);return pa(r,o,e)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,e)},qm=(t,e,n={})=>({state:r,commands:i})=>{const a=ae(t,r.schema),o=ae(e,r.schema),s=et(r,a,n);let f;return r.selection.$anchor.sameParent(r.selection.$head)&&(f=r.selection.$anchor.parent.attrs),s?i.setNode(o,f):i.setNode(a,{...f,...n})},Xm=(t,e={})=>({state:n,commands:r})=>{const i=ae(t,n.schema);return et(n,i,e)?r.lift(i):r.wrapIn(i,e)},eg=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let a;if(i.spec.isInputRules&&(a=i.getState(t))){if(e){const o=t.tr,s=a.transform;for(let f=s.steps.length-1;f>=0;f-=1)o.step(s.steps[f].invert(s.docs[f]));if(a.text){const f=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,t.schema.text(a.text,f))}else o.delete(a.from,a.to)}return!0}}return!1},tg=(t={})=>({tr:e,dispatch:n,editor:r})=>{const{ignoreClearable:i=!1}=t,{selection:a}=e,{empty:o,ranges:s}=a;if(o)return!0;const{nonClearableMarks:f}=r.extensionManager;if(n){const l=Object.values(r.schema.marks).filter(c=>i||!f.includes(c.name));
12s.forEach(c=>{for(const u of l)e.removeMark(c.$from.pos,c.$to.pos,u)})}return!0},ng=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var a;const{extendEmptyMarkRange:o=!1}=e,{selection:s}=n,f=tt(t,r.schema),{$from:l,empty:c,ranges:u}=s;if(!i)return!0;if(c&&o){let{from:h,to:d}=s;const p=(a=l.marks().find(g=>g.type===f))==null?void 0:a.attrs,m=Wa(l,f,p);m&&(h=m.from,d=m.to),n.removeMark(h,d,f)}else u.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,f)});return n.removeStoredMark(f),!0},rg=t=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=n;let a,o;return typeof t=="number"?(a=t,o=t):t&&"from"in t&&"to"in t?(a=t.from,o=t.to):(a=i.from,o=i.to),r&&e.doc.nodesBetween(a,o,(s,f)=>{if(s.isText)return;const l={...s.attrs};delete l.dir,e.setNodeMarkup(f,void 0,l)}),!0},ig=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=ti(typeof t=="string"?t:t.name,r.schema);if(!s)return!1;s==="node"&&(a=ae(t,r.schema)),s==="mark"&&(o=tt(t,r.schema));let f=!1;return n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let h,d,p,m;n.selection.empty?r.doc.nodesBetween(c,u,(g,y)=>{a&&a===g.type&&(f=!0,p=Math.max(y,c),m=Math.min(y+g.nodeSize,u),h=y,d=g)}):r.doc.nodesBetween(c,u,(g,y)=>{y<c&&a&&a===g.type&&(f=!0,p=Math.max(y,c),m=Math.min(y+g.nodeSize,u),h=y,d=g),y>=c&&y<=u&&(a&&a===g.type&&(f=!0,i&&n.setNodeMarkup(y,void 0,{...g.attrs,...e})),o&&g.marks.length&&g.marks.forEach(M=>{if(o===M.type&&(f=!0,i)){const L=Math.max(y,c),w=Math.min(y+g.nodeSize,u);n.addMark(L,w,o.create({...M.attrs,...e}))}}))}),d&&(h!==void 0&&i&&n.setNodeMarkup(h,void 0,{...d.attrs,...e}),o&&d.marks.length&&d.marks.forEach(g=>{o===g.type&&i&&n.addMark(p,m,o.create({...g.attrs,...e}))}))}),f},ag="__tiptap_decorations__",qt=new ee(ag),og=t=>({tr:e,dispatch:n})=>(n&&e.setMeta(qt,{type:"force",name:t}),!0),sg=(t,e={})=>({state:n,dispatch:r})=>{const i=ae(t,n.schema);return N0(i,e)(n,r)},fg=(t,e={})=>({state:n,dispatch:r})=>{const i=ae(t,n.schema);return D0(i,e)(n,r)},Mn=new WeakMap;function lg(t,e){var n,r;Mn.set(t,((n=Mn.get(t))!=null?n:0)+1);try{return e()}finally{const i=((r=Mn.get(t))!=null?r:1)-1;i>0?Mn.set(t,i):Mn.delete(t)}}var cg=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}};function ug(t){return t.kind==="widget"}function Jc(t,e){const n=[],r=new Set;for(const i of t)i.kind==="widget"&&ug(i)&&r.add(i.key),n.push(i.toPMDecoration(e));return{decorations:n,widgetKeys:r}}
12function dg(t,e,n){const{decorations:r,widgetKeys:i}=Jc(e,n);return{set:H.create(t,r),widgetKeys:i}}function Uc({position:t,from:e,to:n,docSize:r}){return t<e?!1:t<n?!0:t===n&&n===r}function hg({decorations:t,from:e,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return t.filter(o=>Uc({position:o.anchor,from:e,to:n,docSize:r})?!0:(o.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${e}, ${n}). It was ignored.`)),!1))}function pg(t){var e;const n=(e=t.spec)==null?void 0:e.key;return typeof n=="string"?n:void 0}function Qc(t){return t.jsonID==="attr"}function mg(t){let e=!1;if(t.getMap().forEach(()=>{e=!0}),e||Qc(t))return!0;const n=t;return typeof n.from=="number"&&typeof n.to=="number"}function gg(t,e){let n=null,r=0,i=0;for(let a=0;a<t.childCount&&!(i>e.to);a+=1){const o=i+t.child(a).nodeSize;o>=e.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function bg(t,e){if(t.steps.some(a=>!mg(a)))return{type:"full"};const n=ri(t).map(({newRange:a})=>a);t.steps.forEach((a,o)=>{if(!Qc(a))return;const s=t.mapping.slice(o);n.push({from:s.map(a.pos,-1),to:s.map(a.pos+1)})});const r=[];for(const a of n){const o=gg(e,a);o&&r.push(o)}r.sort((a,o)=>a.from-o.from);const i=[];for(const a of r){const o=i[i.length-1];o&&a.from<=o.to?o.to=Math.max(o.to,a.to):i.push({...a})}return{type:"ranges",ranges:i}}function Yc(t,e,n,r){return t.map(e,n,{onRemove:i=>{const a=i==null?void 0:i.key;typeof a=="string"&&r.delete(a)}})}function yg(t,e,n){var r,i;const a=(r=e.decorationSetsByExtension[t])!=null?r:H.empty,o=new Set((i=e.widgetKeysByExtension[t])!=null?i:[]);return{set:Yc(a,n.mapping,n.doc,o),widgetKeys:o}}function Vs(t,e){const n=Object.values(e).flatMap(r=>r.find());return H.create(t,n)}function Ws(t){const e=new Set;for(const n of Object.values(t))for(const r of n)e.add(r);return e}function wg(t,e){var n;switch((n=e.update)!=null?n:"document"){case"document":if(e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case"changedRanges":if(!e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case"manual":if(e.createInRange)throw new Error(`[tiptap error]: Extension "${t}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(e.shouldUpdate)throw new Error(`[tiptap error]: Extension "${t}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw new Error(`[tiptap error]: Extension "${t}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function Mg(t,e,n){return n?!0:t.update==="manual"?!1:t.shouldUpdate?t.shouldUpdate(e):e.tr.docChanged}var Lg=new Set,Cg=class{constructor(t){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{const n=qt.getState(e);n&&this.warnDuplicateWidgetKeys(n)},this.editor=t.editor,this.entries=this.resolveEntries(t.entries),this.entries.forEach(({name:e,spec:n})=>wg(e,n)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on("beforeTransaction",this.handleBeforeTransaction)}destroy(){this.editor.off("beforeTransaction",this.handleBeforeTransaction)}liveWidgetKeys(){var t,e;return(e=(t=qt.getState(this.editor.state))==null?void 0:t.widgetKeys)!=null?e:Lg}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(t){const e=[];for(const{name:n,addDecorations:r}of t){const i=r();i&&e.push({name:n,spec:i})}return e}createPlugin(){const{editor:t,entries:e}=this;return new W({key:qt,state:{init:(n,r)=>{const i={},a={};for(const{name:s,spec:f}of e){const{set:l,widgetKeys:c}=this.buildFullSet(s,f,r);i[s]=l,a[s]=c}const o={decorationSetsByExtension:i,widgetKeysByExtension:a,mergedDecorationSet:this.buildMergedSet(r.doc,i),widgetKeys:Ws(a)};return this.warnDuplicateWidgetKeys(o),o},apply:(n,r,i,a)=>{const o=n.getMeta(qt),s=(o==null?void 0:o.type)==="force"&&!o.name,f=(o==null?void 0:o.type)==="force"?o.name:void 0,l={},c={},u=new Set;if(lg(t,()=>{for(const{name:d,spec:p}of e){const m=s||f===d;if(Mg(p,{editor:t,tr:n,oldState:i,newState:a},m))if(p.update==="changedRanges"&&n.docChanged&&!m){const y=this.applyChangedRangesRecompute(d,p,r,n,a);
12l[d]=y.set,c[d]=y.widgetKeys,u.add(d)}else{const{set:y,widgetKeys:M}=this.buildFullSet(d,p,a);l[d]=y,c[d]=M,u.add(d)}else{const y=yg(d,r,n);l[d]=y.set,c[d]=y.widgetKeys}}}),u.size===0&&!n.docChanged)return r;const h=this.mergeAfterApply({entries:e,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:u});return{decorationSetsByExtension:l,widgetKeysByExtension:c,mergedDecorationSet:h,widgetKeys:Ws(c)}}},props:{decorations(n){var r,i;return(i=(r=qt.getState(n))==null?void 0:r.mergedDecorationSet)!=null?i:H.empty}}})}applyChangedRangesRecompute(t,e,n,r,i){const a=bg(r,i.doc);return a.type==="full"?this.buildFullSet(t,e,i):this.rebuildRanges(t,e,n,r,i,a.ranges)}rebuildRanges(t,e,n,r,i,a){var o,s;const f=(o=n.decorationSetsByExtension[t])!=null?o:H.empty,l=new Set((s=n.widgetKeysByExtension[t])!=null?s:[]);let c=Yc(f,r.mapping,r.doc,l);const u=i.doc.content.size;for(const{from:h,to:d}of a){const p=c.find(h,d).filter(M=>Uc({position:M.from,from:h,to:d,docSize:u}));for(const M of p){const L=pg(M);L&&l.delete(L)}c=c.remove(p);const m=hg({decorations:this.runCreate(t,"createInRange",()=>e.createInRange({editor:this.editor,state:i,view:this.mountedView,from:h,to:d})),from:h,to:d,docSize:u,extensionName:t,warnedExtensions:this.warnedOutOfRangeExtensions}),{decorations:g,widgetKeys:y}=Jc(m,t);c=c.add(i.doc,g);for(const M of y)l.add(M)}return{set:c,widgetKeys:l}}buildFullSet(t,e,n){const r=this.runCreate(t,"create",()=>e.create({editor:this.editor,state:n,view:this.mountedView}));return dg(n.doc,r,t)}runCreate(t,e,n){try{return n()}catch(r){return console.error(`[tiptap error]: Extension "${t}" threw in \`addDecorations().${e}()\`. Its decorations were dropped for this update.`,r),[]}}warnDuplicateWidgetKeys(t){}buildMergedSet(t,e){const n=Object.keys(e);return n.length===1?e[n[0]]:Vs(t,e)}mergeAfterApply({entries:t,previous:e,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return t.length===1?r[t[0].name]:i.size===0?e.mergedDecorationSet.map(n.mapping,n.doc):Vs(n.doc,r)}};function vg(t,e){const{selection:n}=t,{$from:r}=n;if(n instanceof D){const a=r.index();return r.parent.canReplaceWith(a,a+1,e)}let i=r.depth;for(;i>=0;){const a=r.index(i);if(r.node(i).contentMatchAt(a).matchType(e))return!0;i-=1}return!1}function kg(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}function Sg(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function jg(t){return typeof t=="number"}function xg(t){return Object.prototype.toString.call(t).slice(8,-1)}function lr(t){return xg(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}var Ig={};_a(Ig,{createAtomBlockMarkdownSpec:()=>Hc,createBlockMarkdownSpec:()=>Tg,createInlineMarkdownSpec:()=>Gc,parseAttributes:()=>qa,parseIndentedBlocks:()=>ma,renderNestedMarkdownContent:()=>eo,serializeAttributes:()=>Xa});function qa(t){if(!(t!=null&&t.trim()))return{};const e={},n=[],r=t.replace(/["']([^"']*)["']/g,l=>(n.push(l),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([\w-]+)/g);if(i){const l=i.map(c=>c.trim().slice(1));e.class=l.join(" ")}const a=r.match(/(?:^|\s)#([\w-]+)/);a&&(e.id=a[1]);const o=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(o)).forEach(([,l,c])=>{var u;const h=parseInt(((u=c.match(/__QUOTED_(\d+)__/))==null?void 0:u[1])||"0",10),d=n[h];d&&(e[l]=d.slice(1,-1))});const f=r.replace(/(?:^|\s)\.([\w-]+)/g,"").replace(/(?:^|\s)#([\w-]+)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return f&&f.split(/\s+/).filter(Boolean).forEach(c=>
vendor: 5,987 bytes, lines 12-29
12{c.match(/^[a-zA-Z][\w-]*$/)&&(e[c]=!0)}),e}function Xa(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function Hc(t){const{nodeName:e,name:n,parseAttributes:r=qa,serializeAttributes:i=Xa,defaultAttributes:a={},requiredAttributes:o=[],allowedAttributes:s}=t,f=n||e,l=c=>{if(!s)return c;const u={};return s.forEach(h=>{h in c&&(u[h]=c[h])}),u};return{parseMarkdown:(c,u)=>{const h={...a,...c.attributes};return u.createNode(e,h,[])},markdownTokenizer:{name:e,level:"block",start(c){var u;const h=new RegExp(`^:::${f}(?:\\s|$)`,"m"),d=(u=c.match(h))==null?void 0:u.index;return d!==void 0?d:-1},tokenize(c,u,h){const d=new RegExp(`^:::${f}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),p=c.match(d);if(!p)return;const m=p[1]||"",g=r(m);if(!o.find(M=>!(M in g)))return{type:e,raw:p[0],attributes:g}}},renderMarkdown:c=>{const u=l(c.attrs||{}),h=i(u),d=h?` {${h}}`:"";return`:::${f}${d} :::`}}}function Tg(t){const{nodeName:e,name:n,getContent:r,parseAttributes:i=qa,serializeAttributes:a=Xa,defaultAttributes:o={},content:s="block",allowedAttributes:f}=t,l=n||e,c=u=>{if(!f)return u;const h={};return f.forEach(d=>{d in u&&(h[d]=u[d])}),h};return{parseMarkdown:(u,h)=>{let d;if(r){const m=r(u);d=typeof m=="string"?[{type:"text",text:m}]:m}else s==="block"?d=h.parseChildren(u.tokens||[]):d=h.parseInline(u.tokens||[]);const p={...o,...u.attributes};return h.createNode(e,p,d)},markdownTokenizer:{name:e,level:"block",start(u){var h;const d=new RegExp(`^:::${l}`,"m"),p=(h=u.match(d))==null?void 0:h.index;return p!==void 0?p:-1},tokenize(u,h,d){var p;const m=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),g=u.match(m);if(!g)return;const[y,M=""]=g,L=i(M);let w=1;const v=y.length;let S="";const C=/^:::([\w-]*)(\s.*)?/gm,x=u.slice(v);for(C.lastIndex=0;;){const E=C.exec(x);if(E===null)break;const j=E.index,z=E[1];if(!((p=E[2])!=null&&p.endsWith(":::"))){if(z)w+=1;else if(w-=1,w===0){const R=x.slice(0,j);S=R.trim();const Q=u.slice(0,v+j+E[0].length);let G=[];if(S)if(s==="block")for(G=d.blockTokens(R),G.forEach(K=>{K.text&&(!K.tokens||K.tokens.length===0)&&(K.tokens=d.inlineTokens(K.text))});G.length>0;){const K=G[G.length-1];if(K.type==="paragraph"&&(!K.text||K.text.trim()===""))G.pop();else break}else G=d.inlineTokens(S);return{type:e,raw:Q,attributes:L,content:S,tokens:G}}}}}},renderMarkdown:(u,h)=>{const d=c(u.attrs||{}),p=a(d),m=p?` {${p}}`:"",g=h.renderChildren(u.content||[],`
13
14`);return`:::${l}${m}
15
16${g}
17
18:::`}}}function Ng(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,i,a,o]=r;e[i]=a||o,r=n.exec(t)}return e}function Dg(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function Gc(t){const{nodeName:e,name:n,getContent:r,parseAttributes:i=Ng,serializeAttributes:a=Dg,defaultAttributes:o={},selfClosing:s=!1,allowedAttributes:f}=t,l=n||e,c=h=>{if(!f)return h;const d={};return f.forEach(p=>{const m=typeof p=="string"?p:p.name,g=typeof p=="string"?void 0:p.skipIfDefault;if(m in h){const y=h[m];if(g!==void 0&&y===g)return;d[m]=y}}),d},u=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(h,d)=>{const p={...o,...h.attributes};if(s)return d.createNode(e,p);const m=r?r(h):h.content||"";return m?d.createNode(e,p,[d.createTextNode(m)]):d.createNode(e,p,[])},markdownTokenizer:{name:e,level:"inline",start(h){const d=s?new RegExp(`\\[${u}\\s*[^\\]]*\\]`):new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`),p=h.match(d),m=p==null?void 0:p.index;return m!==void 0?m:-1},tokenize(h,d,p){const m=s?new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`),g=h.match(m);if(!g)return;let y="",M="";if(s){const[,w]=g;M=w}else{const[,w,v]=g;M=w,y=v||""}const L=i(M.trim());return{type:e,raw:g[0],content:y.trim(),attributes:L}}},renderMarkdown:h=>{let d="";r?d=r(h):h.content&&h.content.length>0&&(d=h.content.filter(y=>y.type==="text").map(y=>y.text).join(""));const p=c(h.attrs||{}),m=a(p),g=m?` ${m}`:"";return s?`[${l}${g}]`:`[${l}${g}]${d}[/${l}]`}}}function ma(t,e,n){var r,i,a,o;const s=t.split(`
19`),f=[];let l="",c=0;const u=e.baseIndentSize||2;for(;c<s.length;){const h=s[c],d=h.match(e.itemPattern);if(!d){if(f.length>0)break;if(h.trim()===""){c+=1,l=`${l}${h}
20`;continue}else return}const p=e.extractItemData(d),{indentLevel:m,mainContent:g}=p;l=`${l}${h}
21`;const y=[g];for(c+=1;c<s.length;){const v=s[c];if(v.trim()===""){const C=s.slice(c+1).findIndex(j=>j.trim()!=="");if(C===-1)break;if((((i=(r=s[c+1+C].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:i.length)||0)>m){y.push(v),l=`${l}${v}
22`,c+=1;continue}else break}if((((o=(a=v.match(/^(\s*)/))==null?void 0:a[1])==null?void 0:o.length)||0)>m)y.push(v),l=`${l}${v}
23`,c+=1;else break}let M;const L=y.slice(1);if(L.length>0){const v=L.map(S=>S.slice(m+u)).join(`
24`);v.trim()&&(e.customNestedParser?M=e.customNestedParser(v):M=n.blockTokens(v))}const w=e.createToken(p,M);f.push(w)}if(f.length!==0)return{items:f,raw:l}}function eo(t,e,n,r){if(!t||!Array.isArray(t.content))return"";const i=typeof n=="function"?n(r):n,[a,...o]=t.content,s=e.renderChildren([a]);let f=`${i}${s}`;return o&&o.length>0&&o.forEach((l,c)=>{var u,h;const d=(h=(u=e.renderChild)==null?void 0:u.call(e,l,c+1))!=null?h:e.renderChildren([l]);if(d!=null){const p=d.split(`
25`).map(m=>m?e.indent(m):e.indent("")).join(`
26`);f+=l.type==="paragraph"?`
27
28${p}`:`
29${p}`}}),f}function Fc(t,e){const n={...t};return lr(t)&&lr(e)&&Object.keys(e).forEach(r=>{lr(e[r])&&lr(t[r])?n[r]=Fc(t[r],e[r]):n[r]=e[r]}),n}function Eg(t,e,n={}){const{state:r}=e,{doc:i,tr:a}=r,o=t;i.descendants((s,f)=>{const l=a.mapping.map(f),c=a.mapping.map(f)+s.nodeSize;let u=null;if(s.marks.forEach(d=>{if(d!==o)return!1;u=d}),!u)return;let h=!1;
29if(Object.keys(n).forEach(d=>{n[d]!==u.attrs[d]&&(h=!0)}),h){const d=t.type.create({...t.attrs,...n});a.removeMark(l,c,t.type),a.addMark(l,c,d)}}),a.docChanged&&e.view.dispatch(a)}var tr=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},Ag=(t,e)=>{if(Va(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 cr(t){var e;const{editor:n,from:r,to:i,text:a,rules:o,plugin:s}=t,{view:f}=n;if(f.composing)return!1;const l=f.state.doc.resolve(r);if(l.parent.type.spec.code||(e=l.nodeBefore||l.nodeAfter)!=null&&e.marks.find(h=>h.type.spec.code))return!1;let c=!1;const u=Am(l)+a;return o.forEach(h=>{if(c)return;const d=Ag(u,h.find);if(!d)return;const p=d[0].length-a.length;if(p>0){const S=l.parentOffset-p;if(S<0||l.parent.textBetween(S,l.parentOffset)!==d[0].slice(0,p))return}const m=f.state.tr,g=Xr({state:f.state,transaction:m}),y={from:r-(d[0].length-a.length),to:i}
vendor: 4,457 bytes, lines 29-30
29,{commands:M,chain:L,can:w}=new ei({editor:n,state:g});h.handler({state:g,range:y,match:d,commands:M,chain:L,can:w})===null||!m.steps.length||(h.undoable&&m.setMeta(s,{transform:m,from:r,to:i,text:a}),f.dispatch(m),c=!0)}),c}function zg(t){const{editor:e,rules:n}=t,r=new W({state:{init(){return null},apply(i,a,o){const s=i.getMeta(r);if(s)return s;const f=i.getMeta("applyInputRules");return!!f&&setTimeout(()=>{let{text:c}=f;typeof c=="string"?c=c:c=$a(k.from(c),o.schema);const{from:u}=f,h=u+c.length;cr({editor:e,from:u,to:h,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:a}},props:{handleTextInput(i,a,o,s){return cr({editor:e,from:a,to:o,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&cr({editor:e,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?cr({editor:e,from:o.pos,to:o.pos,text:`
30`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var to=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Y(N(this,"addOptions",{name:this.name}))}}get storage(){return{...Y(N(this,"addStorage",{name:this.name,options:this.options}))}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>Fc(this.options,t)});return e.name=this.name,e.parent=this.parent,this.child=null,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Mt=class _c extends to{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new _c(n)}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!!!o.find(l=>(l==null?void 0:l.type.name)===n.name))return!1;const f=o.find(l=>(l==null?void 0:l.type.name)===n.name);return f&&r.removeStoredMark(f),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},no=class{constructor(t){this.find=t.find,this.handler=t.handler}},Rg=(t,e,n)=>{if(Va(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const a=[i.text];return a.index=i.index,a.input=t,a.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),a.push(i.replaceWith)),a}):[]};function Og(t){const{editor:e,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=t,{commands:f,chain:l,can:c}=new ei({editor:e,state:n}),u=[];return n.doc.nodesBetween(r,i,(d,p)=>{var m,g,y,M,L;if((g=(m=d.type)==null?void 0:m.spec)!=null&&g.code||!(d.isText||d.isTextblock||d.isInline))return;const w=(L=(M=(y=d.content)==null?void 0:y.size)!=null?M:d.nodeSize)!=null?L:0,v=Math.max(r,p),S=Math.min(i,p+w);if(v>=S)return;const C=d.isText?d.text||"":d.textBetween(v-p,S-p,void 0,"");Rg(C,a.find,o).forEach(E=>{if(E.index===void 0)return;const j=v+E.index+1,z=j+E[0].length,R={from:n.tr.mapping.map(j),to:n.tr.mapping.map(z)},Q=a.handler({state:n,range:R,match:E,commands:f,chain:l,can:c,pasteEvent:o,dropEvent:s});u.push(Q)})}),u.every(d=>d!==null)}var ur=null,Pg=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function Bg(t){const{editor:e,rules:n}=t;let r=null,i=!1,a=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const f=({state:c,from:u,to:h,rule:d,pasteEvt:p})=>{const m=c.tr,g=Xr({state:c,transaction:m});if(!(!Og({editor:e,state:g,from:Math.max(u-1,0),to:h.b-1,rule:d,pasteEvent:p,dropEvent:s})||!m.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new W({view(u){const h=p=>{var m;r=(m=u.dom.parentElement)!=null&&m.contains(p.target)?u.dom.parentElement:null,r&&(ur=e)},d=()=>{ur&&(ur=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",d),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",d)}}},props:{handleDOMEvents:{drop:(u,h)=>
30{if(a=r===u.dom.parentElement,s=h,!a){const d=ur;d!=null&&d.isEditable&&setTimeout(()=>{const p=d.state.selection;p&&d.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(u,h)=>{var d;const p=(d=h.clipboardData)==null?void 0:d.getData("text/html");return o=h,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,h,d)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!i,g=p.getMeta("uiEvent")==="drop"&&!a,y=p.getMeta("applyPasteRules"),M=!!y;if(!m&&!g&&!M)return;if(M){let{text:v}=y;typeof v=="string"?v=v:v=$a(k.from(v),d.schema);const{from:S}=y,C=S+v.length,x=Pg(v);return f({rule:c,state:d,from:S,to:{b:C},pasteEvt:x})}const L=h.doc.content.findDiffStart(d.doc.content),w=h.doc.content.findDiffEnd(d.doc.content);if(!(!jg(L)||!w||L===w.b))return f({rule:c,state:d,from:L,to:w,pasteEvt:o})}}))}var ii=class{constructor(t,e){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=e,this.baseExtensions=t,this.extensions=Dc(t),this.schema=Sm(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Zt(e.name,this.schema)},r=N(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,n=Dn([...this.extensions].reverse()).flatMap(i=>{const a={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:t,type:Zt(i.name,this.schema)},o=[],s=N(i,"addKeyboardShortcuts",a);let f={};if(i.type==="mark"&&N(i,"exitable",a)&&(f.ArrowRight=()=>Mt.handleExit({editor:t,mark:i})),s){const d=Object.fromEntries(Object.entries(s()).map(([p,m])=>[p,()=>m({editor:t})]));f={...f,...d}}const l=xp(f);o.push(l);const c=N(i,"addInputRules",a);if(Gs(i,t.options.enableInputRules)&&c){const d=c();if(d&&d.length){const p=zg({editor:t,rules:d}),m=Array.isArray(p)?p:[p];o.push(...m)}}const u=N(i,"addPasteRules",a);if(Gs(i,t.options.enablePasteRules)&&u){const d=u();if(d&&d.length){const p=Bg({editor:t,rules:d});o.push(...p)}}const h=N(i,"addProseMirrorPlugins",a);if(h){const d=h();o.push(...d)}return o}),r=this.createDecorationPlugin();return r&&n.push(r),n}createDecorationPlugin(){var t;const{editor:e}=this;(t=this.decorationManager)==null||t.destroy();const n=[];return this.extensions.forEach(r=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:Zt(r.name,this.schema)},a=N(r,"addDecorations",i);a&&n.push({name:r.name,addDecorations:a})}),this.decorationManager=new Cg({editor:e,entries:n}),this.decorationManager.plugin}get attributes(){return Nc(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=fn(this.extensions);return Object.fromEntries(e.filter(n=>!!N(n,"addNodeView")).map(n=>{const r=this.attributes.filter(f=>f.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:ae(n.name,this.schema)},a=N(n,"addNodeView",i);if(!a)return[];const o=a();if(!o)return[];const s=(f,l,c,u,h)=>{const d=ln(f,r);return o({node:f,view:l,getPos:c,decorations:u,innerDecorations:h,editor:t,extension:n,HTMLAttributes:d})};return[n.name,s]}))}dispatchTransaction(t){const{editor:e}=this;return Dn([...this.extensions].reverse()).reduceRight((r,i)=>{const a={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:e,type:Zt(i.name,this.schema)},o=N(i,"dispatchTransaction",a);return o?s=>{o.call(a,{transaction:s,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return Dn([...this.extensions]).reduce((r,i)=>{const a={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:e,type:Zt(i.name,this.schema)},o=N(i,"transformPastedHTML",a);return o?(s,f)=>{const l=r(s,f);return o.call(a,l)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=fn(this.extensions);return Object.fromEntries(e.filter(n=>!!N(n,"addMarkView")).map(n=>{const r=this.attributes.filter(s=>s.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:tt(n.name,this.schema)}
30,a=N(n,"addMarkView",i);if(!a)return[];const o=(s,f,l)=>{const c=ln(s,r);return a()({mark:s,view:f,inline:l,editor:t,extension:n,HTMLAttributes:c,updateAttributes:u=>{Eg(s,t,u)}})};return[n.name,o]}))}destroy(){var t;(t=this.decorationManager)==null||t.destroy(),this.extensions.forEach(e=>{let n=e;for(;n.parent;){const r=n.parent;r.child===n&&(r.child=null),n=r}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n,r;const i={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Zt(e.name,this.schema)};e.type==="mark"&&(((n=Y(N(e,"keepOnSplit",i)))==null||n)&&this.splittableMarks.push(e.name),(r=Y(N(e,"clearable",i)))==null||r||this.nonClearableMarks.push(e.name));const a=N(e,"onBeforeCreate",i),o=N(e,"onCreate",i),s=N(e,"onUpdate",i),f=N(e,"onSelectionUpdate",i),l=N(e,"onTransaction",i),c=N(e,"onFocus",i),u=N(e,"onBlur",i),h=N(e,"onDestroy",i);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),s&&this.editor.on("update",s),f&&this.editor.on("selectionUpdate",f),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),h&&this.editor.on("destroy",h)})}};ii.resolve=Dc;ii.sort=Dn;ii.flatten=Za;var Jg={};_a(Jg,{ClipboardTextSerializer:()=>Wc,Commands:()=>Zc,Delete:()=>$c,Drop:()=>Kc,Editable:()=>qc,FocusEvents:()=>eu,Keymap:()=>tu,Paste:()=>nu,Tabindex:()=>ru,TextDirection:()=>iu,focusEventsPluginKey:()=>Xc});var te=class Vc extends to{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new Vc(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},Wc=te.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new W({key:new ee("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,a=Ac(n),{blockSeparator:o}=this.options,s={...o!==void 0?{blockSeparator:o}:{},textSerializers:a};return[...i.ranges].sort((l,c)=>l.$from.pos-c.$from.pos).map(({$from:l,$to:c})=>Ec(r,{from:l.pos,to:c.pos},s)).join(o??`
31
32`)}}})]}}),Zc=te.create({name:"commands",addCommands(){return{...yc}}}),$c=te.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,i;const a=()=>{var o,s,f,l;if((l=(f=(s=(o=this.editor.options.coreExtensionOptions)==null?void 0:o.delete)==null?void 0:s.filterTransaction)==null?void 0:f.call(s,t))!=null?l:t.getMeta("y-sync$"))return;const c=Ic(t.before,[t,...e]);ri(c).forEach(d=>{c.mapping.mapResult(d.oldRange.from).deletedAfter&&c.mapping.mapResult(d.oldRange.to).deletedBefore&&c.before.nodesBetween(d.oldRange.from,d.oldRange.to,(p,m)=>{const g=m+p.nodeSize-2,y=d.oldRange.from<=m&&g<=d.oldRange.to;this.editor.emit("delete",{type:"node",node:p,from:m,to:g,newFrom:c.mapping.map(m),newTo:c.mapping.map(g),deletedRange:d.oldRange,newRange:d.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:c})})});const h=c.mapping;c.steps.forEach((d,p)=>{var m,g;if(d instanceof Ue){const y=h.slice(p).map(d.from,-1),M=h.slice(p).map(d.to),L=h.invert().map(y,-1),w=h.invert().map(M),v=y>0?(m=c.doc.nodeAt(y-1))==null?void 0:m.marks.some(C=>C.eq(d.mark)):!1,S=(g=c.doc.nodeAt(M))==null?void 0:g.marks.some(C=>C.eq(d.mark));this.editor.emit("delete",{type:"mark",mark:d.mark,from:d.from,to:d.to,deletedRange:{from:L,to:w},newRange:{from:y,to:M},partial:!!(S||v),editor:this.editor,transaction:t,combinedTransform:c})}})};(i=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||i?setTimeout(a,0):a()}}),Kc=te.create({name:"drop",addProseMirrorPlugins(){return[new W({key:new ee("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),qc=te.create({name:"editable",addProseMirrorPlugins(){return[new W({key:new ee("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Xc=new ee("focusEvents"),eu=te.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;
vendor: 9,917 bytes, lines 32-102
32return[new W({key:Xc,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}}}})]}}),tu=te.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:f,doc:l}=s,{empty:c,$anchor:u}=f,{pos:h,parent:d}=u,p=u.parent.isTextblock&&h>0?s.doc.resolve(h-1):u,m=p.parent.type.spec.isolating,g=u.pos-u.parentOffset,y=m&&p.parent.childCount===1?g===u.pos:P.atStart(l).from===h;return!c||!d.type.isTextblock||d.textContent.length||!y||y&&u.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.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()},i={...r},a={...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 Jr()||jc()?a:i},addProseMirrorPlugins(){return[new W({key:new ee("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(m=>m.getMeta("composition")))return;const r=t.some(m=>m.docChanged)&&!e.doc.eq(n.doc),i=t.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:a,from:o,to:s}=e.selection,f=P.atStart(e.doc).from,l=P.atEnd(e.doc).to;if(a||!(o===f&&s===l)||!er(n.doc))return;const h=n.tr,d=Xr({state:n,transaction:h}),{commands:p}=new ei({editor:this.editor,state:d});if(p.clearNodes(),!!h.steps.length)return h}})]}}),nu=te.create({name:"paste",addProseMirrorPlugins(){return[new W({key:new ee("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),ru=te.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new W({key:new ee("tabindex"),props:{attributes:()=>{var t;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(t=this.options.value)!=null?t:"0"}}}})]}}),iu=te.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=fn(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new W({key:new ee("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),Zs=!1;function Ug(t){if(Zs)return;Zs=!0;let e;try{e=ne.fromJSON(t,{from:0,to:0}).slice.content}catch{return}e instanceof k||console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.")}var Qg=class jn{constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new jn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new jn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new jn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+(a?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const f=this.resolvedPos.doc.resolve(s);if(!i&&!o&&f.depth<=this.depth)return;const l=new jn(f,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),e.push(l)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const a=i.node.attrs,o=Object.keys(n);for(let s=0;s<o.length;s+=1){const f=o[s];if(a[f]!==n[f])break}}else r=i;i=i.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const a=Object.keys(n);return this.children.forEach(o=>{r&&i.length>0||(o.node.type.name===e&&a.every(f=>n[f]===o.node.attrs[f])&&i.push(o),!(r&&i.length>0)&&(i=i.concat(o.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},Yg=`.ProseMirror {
33  position: relative;
34}
35
36.ProseMirror {
37  word-wrap: break-word;
38  white-space: pre-wrap;
39  white-space: break-spaces;
40  -webkit-font-variant-ligatures: none;
41  font-variant-ligatures: none;
42  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
43}
44
45.ProseMirror [contenteditable="false"] {
46  white-space: normal;
47}
48
49.ProseMirror [contenteditable="false"] [contenteditable="true"] {
50  white-space: pre-wrap;
51}
52
53.ProseMirror pre {
54  white-space: pre-wrap;
55}
56
57img.ProseMirror-separator {
58  display: inline !important;
59  border: none !important;
60  margin: 0 !important;
61  width: 0 !important;
62  height: 0 !important;
63}
64
65.ProseMirror-gapcursor {
66  display: none;
67  pointer-events: none;
68  position: absolute;
69  margin: 0;
70}
71
72.ProseMirror-gapcursor:after {
73  content: "";
74  display: block;
75  position: absolute;
76  top: -2px;
77  width: 20px;
78  border-top: 1px solid black;
79  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
80}
81
82@keyframes ProseMirror-cursor-blink {
83  to {
84    visibility: hidden;
85  }
86}
87
88.ProseMirror-hideselection *::selection {
89  background: transparent;
90}
91
92.ProseMirror-hideselection *::-moz-selection {
93  background: transparent;
94}
95
96.ProseMirror-hideselection * {
97  caret-color: transparent;
98}
99
100.ProseMirror-focused .ProseMirror-gapcursor {
101  display: block;
102}`,Hg=class extends cg{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Pm,createMappablePosition:Bm},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),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),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),this.on("delete",this.options.onDelete);const e=this.createDoc();if(!this.editorState){const n=da(e,this.options.autofocus);this.editorState=St.create({doc:e,schema:this.schema,selection:n||void 0})}Ug(this.schema),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
102this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;const t=this.editorView.dom;t!=null&&t.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}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&&typeof document<"u"&&(this.css=kg(Yg,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=Tc(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(i=>{const a=typeof i=="string"?`${i}$`:i.key;n=n.filter(o=>!o.key.startsWith(a))}),e.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e,n,r;const a=[...this.options.enableCoreExtensions?[qc,Wc.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),Zc,eu,tu,ru.configure({value:(r=(n=this.options.coreExtensionOptions)==null?void 0:n.tabindex)==null?void 0:r.value}),Kc,nu,$c,iu.configure({direction:this.options.textDirection})].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new ii(a,this)}createCommandManager(){this.commandManager=new ei({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=ha(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;const n=ha(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=St.create({doc:n,schema:this.schema,selection:da(n,this.options.autofocus)||void 0}),this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(r=>r.name!=="collaboration"),this.createExtensionManager()}}),this.editorState.doc}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:n}=this.options,r=e.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=e.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new gc(t,{...e,attributes:{role:"textbox",...e==null?void 0:e.attributes},dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();const f=this.view.dom;f.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(l=>{var c;return(c=this.capturedTransaction)==null?void 0:c.step(l)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),r=!this.state.selection.eq(e.selection),i=n.includes(t),a=this.state;
102if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!i)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=n.findLast(l=>l.getMeta("focus")||l.getMeta("blur")),s=o==null?void 0:o.getMeta("focus"),f=o==null?void 0:o.getMeta("blur");s&&this.emit("focus",{editor:this,event:s.event,transaction:o}),f&&this.emit("blur",{editor:this,event:f.event,transaction:o}),!(t.getMeta("preventUpdate")||!n.some(l=>l.docChanged)||a.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return zc(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,r=typeof t=="string"?e:t;return zm(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return $a(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=`
103
104`,textSerializers:n={}}=t||{};return xm(this.state.doc,{blockSeparator:e,textSerializers:{...Ac(this.schema),...n}})}get isEmpty(){return er(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t),n=t>0&&e.nodeAfter&&!e.nodeAfter.isText&&e.nodeAfter.isAtom?e.nodeAfter:null;return new Qg(e,this,!1,n)}get $doc(){return this.$pos(0)}};function Pt(t){return new tr({find:t.find,handler:({state:e,range:n,match:r})=>{const i=Y(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=e,o=r[r.length-1],s=r[0];if(o){const f=s.search(/\S/),l=n.from+s.indexOf(o),c=l+o.length;if(Ka(n.from,n.to,e.doc).filter(d=>d.mark.type.excluded.find(m=>m===t.type&&m!==d.mark.type)).filter(d=>d.to>l).length)return null;c<n.to&&a.delete(c,n.to),l>n.from&&a.delete(n.from+f,l);const h=n.from+f+o.length;a.addMark(n.from+f,h,t.type.create(i||{})),a.removeStoredMark(t.type)}},undoable:t.undoable})}function au(t){return new tr({find:t.find,handler:({state:e,range:n,match:r})=>{const i=Y(t.getAttributes,void 0,r)||{},{tr:a}=e,o=n.from;let s=n.to;const f=t.type.create(i);if(r[1]){const l=r[0].lastIndexOf(r[1]);let c=o+l;c>s?c=s:s=c+r[1].length;const u=r[0][r[0].length-1];a.insertText(u,o+r[0].length-1),a.replaceWith(c,s,f)}else if(r[0]){const l=t.type.isInline?o:o-1;a.insert(l,t.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:t.undoable})}function ga(t){return new tr({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),a=Y(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,a)},undoable:t.undoable})}function cn(t){return new tr({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const a=Y(t.getAttributes,void 0,r)||{},o=e.tr.delete(n.from,n.to),f=o.doc.resolve(n.from).blockRange(),l=f&&Da(f,t.type,a);if(!l)return null;if(o.wrap(f,l),t.keepMarks&&t.editor){const{selection:u,storedMarks:h}=e,{splittableMarks:d}=t.editor.extensionManager,p=h||u.$to.parentOffset&&u.$from.marks();if(p){const m=p.filter(g=>d.includes(g.type.name));o.ensureMarks(m)}}if(t.keepAttributes){const u=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(u,a).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&yt(o.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,c))&&o.join(n.from-1)},undoable:t.undoable})}var Gg=t=>"touches"in t,Fg=class{constructor(t){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=s=>{if(!this.isResizing||!this.activeHandle)return;const f=s.clientX-this.startX,l=s.clientY-this.startY;this.handleResize(f,l)},this.handleTouchMove=s=>{if(!this.isResizing||!this.activeHandle)return;const f=s.touches[0];if(!f)return;const l=f.clientX-this.startX,c=f.clientY-this.startY;this.handleResize(l,c)},this.handleMouseUp=()=>
104{if(!this.isResizing)return;const s=this.element.offsetWidth,f=this.element.offsetHeight;this.onCommit(s,f),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=s=>{s.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=s=>{s.key==="Shift"&&(this.isShiftKeyPressed=!1)};var e,n,r,i,a,o;this.node=t.node,this.editor=t.editor,this.element=t.element,this.element.draggable=!1,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,(e=t.options)!=null&&e.min&&(this.minSize={...this.minSize,...t.options.min}),(n=t.options)!=null&&n.max&&(this.maxSize=t.options.max),(r=t==null?void 0:t.options)!=null&&r.directions&&(this.directions=t.options.directions),(i=t.options)!=null&&i.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),(a=t.options)!=null&&a.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),(o=t.options)!=null&&o.createCustomHandle&&(this.createCustomHandle=t.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var t;return(t=this.contentElement)!=null?t:null}handleEditorUpdate(){const t=this.editor.isEditable;t!==this.lastEditableState&&(this.lastEditableState=t,t?t&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(t,e,n){return t.type!==this.node.type?!1:(this.node=t,this.onUpdate?this.onUpdate(t,e,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const t=document.createElement("div");return t.dataset.resizeContainer="",t.dataset.node=this.node.type.name,t.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(t.className=this.classNames.container),t.appendChild(this.wrapper),t}createWrapper(){const t=document.createElement("div");return t.style.position="relative",t.style.display="block",t.dataset.resizeWrapper="",this.classNames.wrapper&&(t.className=this.classNames.wrapper),t.appendChild(this.element),t}createHandle(t){const e=document.createElement("div");return e.dataset.resizeHandle=t,e.style.position="absolute",this.classNames.handle&&(e.className=this.classNames.handle),e}positionHandle(t,e){const n=e.includes("top"),r=e.includes("bottom"),i=e.includes("left"),a=e.includes("right");n&&(t.style.top="0"),r&&(t.style.bottom="0"),i&&(t.style.left="0"),a&&(t.style.right="0"),(e==="top"||e==="bottom")&&(t.style.left="0",t.style.right="0"),(e==="left"||e==="right")&&(t.style.top="0",t.style.bottom="0")}attachHandles(){this.directions.forEach(t=>{let e;this.createCustomHandle?e=this.createCustomHandle(t):e=this.createHandle(t),e instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${t}") did not return an HTMLElement. Falling back to default handle.`),e=this.createHandle(t)),this.createCustomHandle||this.positionHandle(e,t),e.addEventListener("mousedown",n=>this.handleResizeStart(n,t)),e.addEventListener("touchstart",n=>this.handleResizeStart(n,t)),this.handleMap.set(t,e),this.wrapper.appendChild(e)})}
104removeHandles(){this.handleMap.forEach(t=>t.remove()),this.handleMap.clear()}applyInitialSize(){const t=this.node.attrs.width,e=this.node.attrs.height;t?(this.element.style.width=`${t}px`,this.initialWidth=t):this.initialWidth=this.element.offsetWidth,e?(this.element.style.height=`${e}px`,this.initialHeight=e):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(t,e){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.activeHandle=e,Gg(t)?(this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY):(this.startX=t.clientX,this.startY=t.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(t,e){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,t,e),a=this.applyConstraints(r,i,n);this.element.style.width=`${a.width}px`,this.element.style.height=`${a.height}px`,this.onResize&&this.onResize(a.width,a.height)}calculateNewDimensions(t,e,n){let r=this.startWidth,i=this.startHeight;const a=t.includes("right"),o=t.includes("left"),s=t.includes("bottom"),f=t.includes("top");return a?r=this.startWidth+e:o&&(r=this.startWidth-e),s?i=this.startHeight+n:f&&(i=this.startHeight-n),(t==="right"||t==="left")&&(r=this.startWidth+(a?e:-e)),(t==="top"||t==="bottom")&&(i=this.startHeight+(s?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,i,t):{width:r,height:i}}applyConstraints(t,e,n){var r,i,a,o;if(!n){let l=Math.max(this.minSize.width,t),c=Math.max(this.minSize.height,e);return(r=this.maxSize)!=null&&r.width&&(l=Math.min(this.maxSize.width,l)),(i=this.maxSize)!=null&&i.height&&(c=Math.min(this.maxSize.height,c)),{width:l,height:c}}let s=t,f=e;return s<this.minSize.width&&(s=this.minSize.width,f=s/this.aspectRatio),f<this.minSize.height&&(f=this.minSize.height,s=f*this.aspectRatio),(a=this.maxSize)!=null&&a.width&&s>this.maxSize.width&&(s=this.maxSize.width,f=s/this.aspectRatio),(o=this.maxSize)!=null&&o.height&&f>this.maxSize.height&&(f=this.maxSize.height,s=f*this.aspectRatio),{width:s,height:f}}applyAspectRatio(t,e,n){const r=n==="left"||n==="right",i=n==="top"||n==="bottom";return r?{width:t,height:t/this.aspectRatio}:i?{width:e*this.aspectRatio,height:e}:{width:t,height:t/this.aspectRatio}}},we=class ou extends to{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new ou(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function gt(t){return new no({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const a=Y(t.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:o}=e,s=r[r.length-1],f=r[0];let l=n.to;if(s){const c=f.search(/\S/),u=n.from+f.indexOf(s),h=u+s.length;if(Ka(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(y=>y===t.type&&y!==m.mark.type)).filter(m=>m.to>u).length)return null;h<n.to&&o.delete(h,n.to),u>n.from&&o.delete(n.from+c,u),l=n.from+c+s.length,o.addMark(n.from+c,l,t.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(t.type)}}})}function _g(t){return new no({find:t.find,handler({match:e,chain:n,range:r,pasteEvent:i}){const a=Y(t.getAttributes,void 0,e,i),o=Y(t.getContent,void 0,a);if(a===!1||a===null)return null;const s={type:t.type.name,attrs:a};o&&(s.content=o),e.input&&n().deleteRange(r).insertContentAt(r.from,s)}})}var Vg=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},Wg=({contentComponent:t})=>{const e=Of.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return T.jsx(T.Fragment,{children:Object.values(e)})};function Zg(){const t=new Set;let e={},n=!1;const r=()=>{n||!t.size||(n=!0,queueMicrotask(()=>{n=!1,t.forEach(i=>
104i())}))};return{subscribe(i){return t.add(i),()=>{t.delete(i)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(i,a){e={...e,[i]:f1.createPortal(a.reactElement,a.element,i)},r()},removeRenderer(i){const a={...e};delete a[i],e=a,r()}}}var $g=class extends se.Component{constructor(t){super(t),this.editorContentRef=se.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&((t=e.view.dom)!=null&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=Zg(),e.createNodeViews(),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var t;const e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.parentNode))return;const n=document.createElement("div");n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return T.jsxs(T.Fragment,{children:[T.jsx("div",{ref:Vg(e,this.editorContentRef),...n}),(t==null?void 0:t.contentComponent)&&T.jsx(Wg,{contentComponent:t.contentComponent})]})}},Kg=b.forwardRef((t,e)=>{const n=se.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return se.createElement($g,{key:n,innerRef:e,...t})}),su=se.memo(Kg),qg=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xg=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){let e;const n=i=>{(i==null?void 0:i.transaction)!==void 0&&i.transaction===e||(e=i==null?void 0:i.transaction,this.transactionNumber+=1,this.subscribers.forEach(a=>a()))},r=this.editor;return r.on("transaction",n),r.on("update",n),()=>{r.off("transaction",n),r.off("update",n)}}}};function eb(t){var e;const[n]=b.useState(()=>new Xg(t.editor)),r=o1.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:s1);return qg(()=>n.watch(t.editor),[t.editor,n]),b.useDebugValue(r),r}var tb=!1,fu=typeof window>"u",nb=fu||!!(typeof window<"u"&&window.next),rb=class lu{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){const e=this.options.current.immediatelyRender;let n=e??!0;return fu?(n&&tb&&console.warn("SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"),n=!1):nb&&e===void 0&&(n=!1),n?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var i,a;return(a=(i=this.options.current).onBeforeCreate)==null?void 0:a.call(i,...r)},onBlur:(...r)=>{var i,a;return(a=(i=this.options.current).onBlur)==null?void 0:a.call(i,...r)},onCreate:(...r)=>{var i,a;return(a=(i=this.options.current).onCreate)==null?void 0:a.call(i,...r)},onDestroy:(...r)=>{var i,a;return(a=(i=this.options.current).onDestroy)==null?void 0:a.call(i,...r)},onFocus:(...r)=>{var i,a;return(a=(i=this.options.current).onFocus)==null?void 0:a.call(i,...r)},onSelectionUpdate:(...r)=>{var i,a;return(a=(i=this.options.current).onSelectionUpdate)==null?void 0:a.call(i,...r)},onTransaction:(...r)=>{var i,a;return(a=(i=this.options.current).onTransaction)==null?void 0:a.call(i,...r)}
104,onUpdate:(...r)=>{var i,a;return(a=(i=this.options.current).onUpdate)==null?void 0:a.call(i,...r)},onContentError:(...r)=>{var i,a;return(a=(i=this.options.current).onContentError)==null?void 0:a.call(i,...r)},onDrop:(...r)=>{var i,a;return(a=(i=this.options.current).onDrop)==null?void 0:a.call(i,...r)},onPaste:(...r)=>{var i,a;return(a=(i=this.options.current).onPaste)==null?void 0:a.call(i,...r)},onDelete:(...r)=>{var i,a;return(a=(i=this.options.current).onDelete)==null?void 0:a.call(i,...r)},onMount:(...r)=>{var i,a;return(a=(i=this.options.current).onMount)==null?void 0:a.call(i,...r)},onUnmount:(...r)=>{var i,a;return(a=(i=this.options.current).onUnmount)==null?void 0:a.call(i,...r)}};return new Hg(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((i,a)=>{var o;return i===((o=n.extensions)==null?void 0:o[a])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?lu.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,i)=>r===e[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ib(t={},e=[]){const n=b.useRef(t);n.current=t;const[r]=b.useState(()=>new rb(n)),i=Of.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return b.useDebugValue(i),b.useEffect(r.onRender(e)),eb({editor:i,selector:({transactionNumber:a})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&a===0?0:a+1}),i}var cu=b.createContext({editor:null});cu.Consumer;var ab=b.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ob=()=>b.useContext(ab);se.forwardRef((t,e)=>{const{onDragStart:n}=ob(),r=t.as||"div";return T.jsx(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function $s(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function Ks(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function sb(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function fb(t){if($s(t)||Ks(t))return!0;if(sb(t)){const e=t.type;if(e)return $s(e)||Ks(e)}return!1}function lb(){try{if(b.version)return parseInt(b.version.split(".")[0],10)>=19}catch{}return!1}var cb=class{constructor(t,{editor:e,props:n={},as:r="div",className:i=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isEditorContentInitialized?a1.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const e=this.component,n=this.props,r=this.editor,i=lb(),a=fb(e),o={...n};o.ref&&!(i||a)&&delete o.ref,!o.ref&&(i||a)&&(o.ref=s=>{this.ref=s}),this.reactElement=T.jsx(e,{...o}),(t=r==null?void 0:r.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){if(this.destroyed)return;let e=!1;const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const i=n[r];if(t[i]!==this.props[i]){e=!0;break}}e&&(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const e=this.editor;(t=e==null?void 0:e.contentComponent)==null||t.removeRenderer(this.id
104);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};se.createContext({markViewContentRef:()=>{}});var ro=b.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});ro.displayName="TiptapContext";var ub=()=>b.useContext(ro);function uu({children:t,...e}){const n="editor"in e?e.editor:e.instance;if(!n)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const r=b.useMemo(()=>({editor:n}),[n]),i=b.useMemo(()=>({editor:n}),[n]);return T.jsx(cu.Provider,{value:i,children:T.jsx(ro.Provider,{value:r,children:t})})}uu.displayName="Tiptap";function du({...t}){const{editor:e}=ub();return T.jsx(su,{editor:e,...t})}du.displayName="Tiptap.Content";Object.assign(uu,{Content:du});var Ur=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},db=(t,e)=>{var n;const{state:r}=t,{selection:i}=r;if(!i.empty)return!1;const{$from:a}=i;if(a.parentOffset!==0)return!1;const o=a.depth-1;if(o<0)return!1;const s=a.node(o),f=a.index(o);if(f===0)return!1;if(s.type===e)return t.commands.lift(e.name);const l=s.child(f-1);if(l.type!==e||!((n=l.lastChild)!=null&&n.isTextblock))return!1;const h=a.before()-1-1;return t.commands.command(({tr:d,dispatch:p})=>{if(!p)return!0;const m=a.parent.content,g=new I(m,0,0);return d.replace(h,a.after(),g),d.setSelection(A.create(d.doc,h+m.size)),d.scrollIntoView(),p(d),!0})},hb=/^\s*>\s$/,pb=we.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Ur("blockquote",{...V(this.options.HTMLAttributes,t),children:Ur("slot",{})})},parseMarkdown:(t,e)=>{var n;const r=(n=e.parseBlockChildren)!=null?n:e.parseChildren;return e.createNode("blockquote",void 0,r(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",r=[];return t.content.forEach((i,a)=>{var o,s;const c=((s=(o=e.renderChild)==null?void 0:o.call(e,i,a))!=null?s:e.renderChildren([i])).split(`
105`).map(u=>u.trim()===""?n:`${n} ${u}`);r.push(c.join(`
106`))}),r.join(`
107${n}
108`)},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(),Backspace:()=>db(this.editor,this.type)}},addInputRules(){return[cn({find:hb,type:this.type})]}}),mb=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,gb=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,bb=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,yb=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,wb=Mt.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Ur("strong",{...V(this.options.HTMLAttributes,t),children:Ur("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Pt({find:mb,type:this.type}),Pt({find:bb,type:this.type})]},addPasteRules(){return[gt({find:gb,type:this.type}),gt({find:yb,type:this.type})]}}),Mb=t=>{const e=/`([^`]+)`(?!`)$/.exec(t);return!e||e.index>0&&t[e.index-1]==="`"?null:{index:e.index,text:e[0],replaceWith:e[1]}},Lb=t=>{const e=/`([^`]+)`(?!`)/g,n=[];let r;for(;(r=e.exec(t))!==null;)r.index>0&&t[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n},Cb=Mt.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",V(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>
vendor: 7,635 bytes, lines 108-129
108e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",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[Pt({find:Mb,type:this.type})]},addPasteRules(){return[gt({find:Lb,type:this.type})]}}),Qi=4,vb=/^```([a-z]+)?[\s\n]$/,kb=/^~~~([a-z]+)?[\s\n]$/,Sb=we.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Qi,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;if(!n)return null;const a=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0];return a||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",V(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n,r;return((n=t.raw)==null?void 0:n.startsWith("```"))===!1&&((r=t.raw)==null?void 0:r.startsWith("~~~"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let r="";const i=((n=t.attrs)==null?void 0:n.language)||"";return t.content?r=[`\`\`\`${i}`,e.renderChildren(t.content),"```"].join(`
109`):r=`\`\`\`${i}
110
111\`\`\``,r},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},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:Qi,{state:r}=t,{selection:i}=r,{$from:a,empty:o}=i;if(a.parent.type!==this.type)return!1;const s=" ".repeat(n);return o?t.commands.insertContent(s):t.commands.command(({tr:f})=>{const{from:l,to:c}=i,d=r.doc.textBetween(l,c,`
112`,`
113`).split(`
114`).map(p=>s+p).join(`
115`);return f.replaceWith(l,c,r.schema.text(d)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:Qi,{state:r}=t,{selection:i}=r,{$from:a,empty:o}=i;return a.parent.type!==this.type?!1:o?t.commands.command(({tr:s})=>{var f;const{pos:l}=a,c=a.start(),u=a.end(),d=r.doc.textBetween(c,u,`
116`,`
117`).split(`
118`);let p=0,m=0;const g=l-c;for(let S=0;S<d.length;S+=1){if(m+d[S].length>=g){p=S;break}m+=d[S].length+1}const M=((f=d[p].match(/^ */))==null?void 0:f[0])||"",L=Math.min(M.length,n);if(L===0)return!0;let w=c;for(let S=0;S<p;S+=1)w+=d[S].length+1;return s.delete(w,w+L),l-w<=L&&s.setSelection(A.create(s.doc,w)),!0}):t.commands.command(({tr:s})=>{const{from:f,to:l}=i,h=r.doc.textBetween(f,l,`
119`,`
120`).split(`
121`).map(d=>{var p;const m=((p=d.match(/^ */))==null?void 0:p[0])||"",g=Math.min(m.length,n);return d.slice(g)}).join(`
122`);return s.replaceWith(f,l,r.schema.text(h)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
123
124`);return!a||!o?!1:t.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:t})=>{if(!this.options.exitOnArrowUp)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;const a=r.before();return a>0?!1:t.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?t.commands.command(({tr:l})=>(l.setSelection(P.near(r.resolve(s))),!0)):t.commands.exitCode()}}},addInputRules(){return[ga({find:vb,type:this.type,getAttributes:t=>({language:t[1]})}),ga({find:kb,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new W({key:new ee("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"),i=r?JSON.parse(r):void 0,a=i==null?void 0:i.mode;if(!n||!a)return!1;const{tr:o,schema:s}=t.state,f=s.text(n.replace(/\r\n?/g,`
125`));return o.replaceSelectionWith(this.type.create({language:a},f)),o.selection.$from.parent.type!==this.type&&o.setSelection(A.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}}),jb=we.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
126
127`):""}),xb=we.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",V(this.options.HTMLAttributes,t)]},renderText(){return`
128`},renderMarkdown:()=>`  
129`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,f=a||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:l,dispatch:c})=>{if(c&&f&&o){const u=f.filter(h=>s.includes(h.type.name));l.ensureMarks(u)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ib=we.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]}`,V(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;const r=(n=t.attrs)!=null&&n.level?parseInt(t.attrs.level,10):1,i="#".repeat(r);return t.content?`${i} ${e.renderChildren(t.content)}`:""},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=>ga({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
129)\\s$`),type:this.type,getAttributes:{level:t}}))}}),Tb=we.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",V(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!vg(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:r}=n,i=t();return Rc(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:a,tr:o,dispatch:s})=>{if(s){const{$to:f}=o.selection,l=f.end();if(f.nodeAfter)f.nodeAfter.isTextblock?o.setSelection(A.create(o.doc,f.pos+1)):f.nodeAfter.isBlock?o.setSelection(D.create(o.doc,f.pos)):o.setSelection(A.create(o.doc,f.pos));else{const c=a.schema.nodes[this.options.nextNodeType]||f.parent.type.contentMatch.defaultType,u=c==null?void 0:c.create();u&&(o.insert(l,u),o.setSelection(A.create(o.doc,l+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[au({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
129ype})]}}),Nb=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Db=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Eb=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Ab=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zb=Mt.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",V(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Pt({find:Nb,type:this.type}),Pt({find:Eb,type:this.type})]},addPasteRules(){return[gt({find:Db,type:this.type}),gt({find:Ab,type:this.type})]}}),io="[\0-   ᠎ -\u2029  ]",Rb=new RegExp(io),Ob=new RegExp(`${io}$`),Pb=new RegExp(io,"g");function Bb(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function Jb(t){return new W({key:new ee("autolink"),appendTransaction:(e,n,r)=>{const i=e.some(l=>l.docChanged)&&!n.doc.eq(r.doc),a=e.some(l=>l.getMeta("preventAutolink"));if(!i||a)return;const{tr:o}=r,s=Ic(n.doc,[...e]);if(ri(s).forEach(({newRange:l})=>{const c=Mm(r.doc,l,d=>d.isTextblock);let u,h;if(c.length>1)u=c[0],h=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(c.length){const d=r.doc.textBetween(l.from,l.to," "," ");if(!Ob.test(d))return;u=c[0],h=r.doc.textBetween(u.pos,l.to,void 0," ")}if(u&&h){const d=h.split(Rb).filter(Boolean);if(d.length<=0)return!1;const p=d[d.length-1],m=u.pos+h.lastIndexOf(p);if(!p)return!1;const g=l1(p).map(y=>y.toObject(t.defaultProtocol));if(!Bb(g))return!1;g.filter(y=>y.isLink).map(y=>({...y,from:m+y.start+1,to:m+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Ka(y.from,y.to,r.doc).some(M=>M.mark.type===t.type)||o.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!o.steps.length)return o}})}function Ub(t){return new W({key:new ee("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,a;if(r.button!==0||!e.editable)return!1;let o=null;if(r.target instanceof HTMLAnchorElement)o=r.target;else{const f=r.target;if(!f)return!1;const l=t.editor.view.dom;o=f.closest("a"),o&&!l.contains(o)&&(o=null)}if(!o)return!1;let s=!1;if(t.enableClickSelection&&(s=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const f=zc(e.state,t.type.name),l=(i=o.href)!=null?i:f.href,c=(a=o.target)!=null?a:f.target;l&&(window.open(l,c),s=!0)}return s}}})}var Qb=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,Yb=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function hu(t,e){let n=0;for(let r=e-1;r>=0&&t[r]==="\\";r-=1)n+=1;return n%2===1}function Hb(t,e){let n=0,r=0;for(;r<e;){if(t[r]!=="`"){r+=1;continue}if(n===0&&hu(t,r)){r+=1;continue}let i=0;for(;r<e&&t[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function pu(t,e,n){var r,i;const[,a,o]=e;return(e.index?t[e.index-1]:void 0)==="!"||hu(t,(r=e.index)!=null?r:0)||Hb(t,(i=e.index)!=null?i:0)?!1:!!a.trim()&&n(o)}function mu(t){var e,n;const[r,i,a,,o,s,f]=t,l=(e=o??s)!=null?e:f;return{index:(n=t.index)!=null?n:0,text:r,replaceWith:i,data:{href:a,title:l||null,markdown:!0}}}function Gb(t,e){return t.index<e.index+e.text.length&&e.index<t.index+t.text.length}function gu(t){var e,n,r;return{href:(e=t.data)==null?void 0:e.href,title:(r=(n=t.data)==null?void 0:n.title)!=null?r:null}}function Fb(t){const e=Pt({find:n=>{const r=Qb.exec(n);return!r||!pu(n,r,t.isAllowedHref)?null:mu(r)},type:t.type,getAttributes:gu});return new tr({find:e.find,handler:n=>{const r=e.handler(n);return r!==null&&n.state.tr.steps.length&&n.state.tr.setMeta("preventAutolink",!0),r}})}function _b(t){const e=gt({find:n=>{var r,i;const a=[];for(const s of n.matchAll(Yb))pu(n,s,t.isAllowedHref)&&a.push(mu(s));const o=((i=(r=t.findPlainUrls)==null?void 0:r.call(t,n))!=null?i:[]).filter(s=>!a.some(f=>Gb(f,s)));return[...a,...o]},type:t.type,getAttributes:gu});return new no({find:e.find,handler:n=>{var r;const i=e.handler(n);return i!==null&&n.state.tr.steps.length&&((r=n.match.data)!=null&&r.markdown)&&n.state.tr.setMeta("preventAutolink",!0),i}})}function Vb(t){return new W({key:new ee("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{shouldAutoLink:i}=t,{state:a}=e,{selection:o}=a,{empty:s}=o;if(s)return!1;let f="";r.content.forEach(c=>{f+=c.textContent});const l=Pf(f,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===f);return!f||!l||i!==void 0&&!i(l.value)?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function We(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!t||t.replace(Pb,"").match(new RegExp(`^(?:(?:${n.map(r=>r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}var Wb=Mt.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `val
129idate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Ro(t);return}Ro(t.scheme,t.optionalSlashes)})},onDestroy(){c1()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!We(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const i=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(i)||!/\./.test(i))}}},addAttributes(){var t,e,n;return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:(t=this.options.HTMLAttributes.target)!=null?t:null},rel:{default:(e=this.options.HTMLAttributes.rel)!=null?e:null},class:{default:(n=this.options.HTMLAttributes.class)!=null?n:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!We(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!We(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",V(this.options.HTMLAttributes,t),0]:["a",V(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,r,i,a;const o=(r=(n=t.attrs)==null?void 0:n.href)!=null?r:"",s=(a=(i=t.attrs)==null?void 0:i.title)!=null?a:"",f=e.renderChildren(t);return s?`[${f}](${o} "${s}")`:`[${f}](${o})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!We(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!We(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addInputRules(){return this.options.markdownLinks?[Fb({type:this.type,isAllowedHref:t=>this.options.isAllowedUri(t,{defaultValidate:e=>!!We(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){const t=e=>{const n=[];if(e){const{protocols:r,defaultProtocol:i}=this.options;Pf(e).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:s=>!!We(s,r),protocols:r,defaultProtocol:i})).forEach(o=>{this.options.shouldAutoLink(o.value)&&n.push({text:o.value,data:{href:o.href},index:o.start})})}return n};return this.options.markdownLinks?[_b({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:n=>!!We(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:t})]:[gt({find:t,type:this.type,getAttributes:e=>{var n;return{href:(n=e.data)==null?void 0:n.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(Jb({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!We(i,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(Ub({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(Vb({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.t
vendor: 1,129 bytes, lines 129-130
129ype,shouldAutoLink:this.options.shouldAutoLink})),t}}),Zb=Object.defineProperty,$b=(t,e)=>{for(var n in e)Zb(t,n,{get:e[n],enumerable:!0})},Kb="listItem",qs="textStyle",Xs=/^\s*([-+*])\s$/,bu=we.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",V(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
130`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Kb,this.editor.getAttributes(qs)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
130,addInputRules(){let t=cn({find:Xs,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=cn({find:Xs,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(qs),editor:this.editor})),[t]}}),qb=(t,e,n)=>{const{selection:r}=t;if(!r.empty)return null;const{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let d=i.depth;d>0;d-=1)if(i.node(d).type.name===e){a=d;break}if(a<0)return null;const o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;const f=o.child(s+1);if(!n.includes(f.type.name))return null;const l=t.schema.nodes[e];let c=!1;if(f.forEach(d=>{d.type===l&&d.childCount>1&&(c=!0)}),!c)return null;const u=t.doc.resolve(i.after()).nodeAfter;if(!u||!n.includes(u.type.name))return null;const h=[];return u.forEach(d=>{h.push(d)}),h.length===0?null:{listItemDepth:a,nestedList:u,nestedListPos:i.after(),insertPos:i.after(a),items:h}},Xb=(t,e,n,r)=>{const i=qb(t,n,r);if(!i)return!1;const{selection:a}=t,{nestedList:o,nestedListPos:s,insertPos:f,items:l}=i,c=t.tr;c.delete(s,s+o.nodeSize);const u=c.mapping.map(f);return c.insert(u,k.from(l)),c.setSelection(a.map(c.doc,c.mapping)),e&&e(c),!0},e2=(t,e,n)=>Xb(t.state,t.view.dispatch,e,n),yu=(t,e)=>te.create({name:`${t}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){const n=()=>e2(this.editor,t,e);return{Delete:n,"Mod-Delete":n}}}),wu=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],dr="abcdefghijklmnopqrstuvwxyz",t2="[a-zA-Z]{1,2}",Mu=String.raw`\d+|[ivxlcdmIVXLCDM]+|${t2}`;function ai(t){let e=t,n="";for(const[r,i]of wu)for(;e>=r;)n+=i,e-=r;return n}function ao(t){return ai(t).toUpperCase()}function Lu(t){const e=t.toLowerCase();let n=0,r=0;for(;n<e.length;){let i=!1;for(const[a,o]of wu)if(e.startsWith(o,n)){r+=a,n+=o.length,i=!0;break}if(!i)return 0}return r}function n2(t){if(!/^[ivxlcdmIVXLCDM]+$/.test(t))return!1;const e=Lu(t);return e<=0?!1:(t===t.toLowerCase()?ai(e):ao(e))===t}function r2(t){const e=t.toLowerCase();if(e.length===1)return e.charCodeAt(0)-97+1;if(e.length===2){const n=e.charCodeAt(0)-97,r=e.charCodeAt(1)-97;return(n+1)*26+r+1}return 0}function Qr(t){if(t<=26)return dr[t-1];const e=Math.floor((t-1)/26)-1,n=(t-1)%26;return e<0?dr[n]:dr[e]+dr[n]}function oi(t){if(!(!t||/^\d+$/.test(t))){if(n2(t))return t===t.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(t))return"a";if(/^[A-Z]{1,2}$/.test(t))return"A"}}function oo(t){if(/^\d+$/.test(t))return parseInt(t,10);const e=oi(t);if(e==="i"||e==="I")return Lu(t);if(e==="a"||e==="A"){const r=r2(t);return r>0?r:1}const n=parseInt(t,10);return Number.isNaN(n)?1:n}function i2(t,e){if(t==="numeric")return String(e);switch(t){case"a":return Qr(e);case"A":return Qr(e).toUpperCase();case"i":return ai(e);case"I":return ao(e);default:return String(e)}}function a2(t){var e;if(t.length===0)return!1;const n=(e=oi(t[0]))!=null?e:"numeric",r=oo(t[0]);if(r<1)return!1;for(let i=0;i<t.length;i++){const a=i2(n,r+i);if(t[i]!==a)return!1}return!0}function o2(t){return{type:oi(t),start:oo(t)}}function s2(t){const{type:e,start:n}=o2(t),r={};return e&&(r.type=e),n!==1&&(r.start=n),r}function f2(t,e,n=". "){const r=e+1;if(!t||t==="1")return`${r}${n}`;switch(t){case"a":return`${Qr(r)}${n}`;case"A":return`${Qr(r).toUpperCase()}${n}`;case"i":return`${ai(r)}${n}`;case"I":return`${ao(r)}${n}`;default:return`${r}${n}`}}function l2(t){var e,n;const r=(e=t.tokens)==null?void 0:e[0];return!!(t.text&&((n=t.tokens)==null?void 0:n.length)===1&&(r==null?void 0:r.type)==="list"&&r.ordered&&r.raw===t.text)}function c2(t,e){return e.tokenizeInline?e.parseInline(e.tokenizeInline(t)):e.parseInline([{type:"text",raw:t,text:t}])}var Cu=we.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",V(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{var n;if(t.type!=="list_item")return[];const r=(n=e.parseBlockChildren)!=null?n:e.parseChildren;let i=[];if(t.tokens&&t.tokens.length>0){if(l2(t))return{type:"listItem",content:[{type:"paragraph",content:c2(t.text||"",e)}]};if(t.tokens.some(o=>o.type==="paragraph"))i=r(t.tokens);else{const o=t.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(i=[{type:"paragraph",content:e.parseInline(o.tokens)}],t.tokens.length>1){const f=t.tokens.slice(1),l=r(f);i.push(...l)}}else i=r(t.tokens)}}return i.length===0&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(t,e,n)=>eo(t,e,r=>{var i,a,o,s;if(r.parentType==="bulletList")return"- ";if(r.parentType==="orderedList"){const f=((a=(i=r.meta)==null?void 0:i.parentAttrs)==null?void 0:a.start)||1,l=(s=(o=r.meta)==null?void 0:o.parentAttrs)==null?void 0:s.type,c=f-1+(r.index||0);return f2(l,c,". ")}return"- "},n),addExtensions(){return[yu(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),u2={};$b(u2,{findListItemPos:()=>si,getNextListDepth:()=>so,handleBackspace:()=>ba,handleDelete:()=>ya,handleTab:()=>ju,hasListBefore:()=>vu,hasListItemAfter:()=>d2,hasListItemBefore:()=>h2,listItemHasSubList:()=>p2,nextListIsDeeper:()=>ku,nextListIsHigher:()=>Su});var si=(t,e)=>{const{$from:n}=e.selection,r=ae(t,e.schema);let i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(a-=1,o-=1);return s===null?null:{$pos:e.doc.resolve(o),depth:s}},so=(t,e)=>{const n=si(t,e);if(!n)return!1;const[,r]=Dm(e,t,n.$pos.pos+4);return r},vu=(t,e,n)=>{const{$anchor:r}=t.selection,i=Math.max(0,r.pos-2),a=t.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},ba=(t,e,n)=>{if(t.commands.undoInputRule())return!0;
130if(t.state.selection.from!==t.state.selection.to)return!1;if(!et(t.state,e)&&vu(t.state,e,n)){const{$anchor:a}=t.state.selection,o=t.state.doc.resolve(a.before()-1),s=[];o.node().descendants((c,u)=>{c.type.name===e&&s.push({node:c,pos:u})});const f=s.at(-1);if(!f)return!1;const l=t.state.doc.resolve(o.start()+f.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},l.end()).joinForward().run()}if(!et(t.state,e)||!Om(t.state))return!1;const{$from:r}=t.state.selection,i=r.depth-1;return r.node(i).type!==t.schema.nodes[e]||r.index(i)!==0?!1:t.chain().liftListItem(e).run()},ku=(t,e)=>{const n=so(t,e),r=si(t,e);return!r||!n?!1:n>r.depth},Su=(t,e)=>{const n=so(t,e),r=si(t,e);return!r||!n?!1:n<r.depth},ya=(t,e)=>{if(!et(t.state,e)||!Rm(t.state,e))return!1;const{selection:n}=t.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:ku(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():Su(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},ju=(t,e,n)=>{const{state:r}=t,{selection:i}=r;if(!i.empty)return!1;const{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||et(r,e))return!1;const o=Em(a);if(!o||!n.includes(o.type.name))return!1;const s=o.lastChild;if(!s||s.type.name!==e)return!1;const f=a.parent;if(!s.canReplace(s.childCount,s.childCount,k.from(f)))return!1;const l=a.before(),c=a.after(),u=l-2;return t.commands.command(({tr:h,dispatch:d})=>(d&&(h.delete(l,c).insert(u,k.from(f)),h.setSelection(A.create(h.doc,u+1)),h.scrollIntoView()),!0))},d2=(t,e)=>{var n;const{$anchor:r}=e.selection,i=e.doc.resolve(r.pos-r.parentOffset-2);return!(i.index()===i.parent.childCount-1||((n=i.nodeAfter)==null?void 0:n.type.name)!==t)},h2=(t,e)=>{var n;const{$anchor:r}=e.selection,i=e.doc.resolve(r.pos-2);return!(i.index()===0||((n=i.nodeBefore)==null?void 0:n.type.name)!==t)},p2=(t,e,n)=>{if(!n)return!1;const r=ae(t,e.schema);let i=!1;return n.descendants(a=>{a.type===r&&(i=!0)}),i},xu=te.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&ya(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&ya(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&ba(t,n,r)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&ba(t,n,r)&&(e=!0)}),e},Tab:({editor:t})=>{for(const{itemName:e,wrapperNames:n}of this.options.listTypes)if(t.state.schema.nodes[e]!==void 0&&ju(t,e,n))return!0;return!1}}}}),wa=new RegExp(`^(\\s*)(${Mu})([.)])\\s+(.*)$`),m2=/^\s/,Xt={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function g2(t){return wa.test(t.trimStart())}function b2(t){const e=t.trimStart();return Xt.bulletItem.test(e)||g2(e)||Xt.heading.test(e)||Xt.thematicBreak.test(e)&&!e.startsWith("-")||/^>\s?/.test(e)||Xt.codeFence.test(e)||Xt.blockMath.test(e)}function y2(t){return Object.values(Xt).some(e=>e.test(t))}function w2(t){const e=[],n=[];let r=!1;return t.forEach(i=>{if(r){n.push(i);return}if(i.trim()===""){r=!0,n.push(i);return}if(e.length>0&&b2(i)){r=!0,n.push(i);return}e.push(i)}),{paragraphLines:e,blockLines:n}}function M2(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n],a=i.match(wa);if(!a)break;const[,o,s,f,l]=a,c=o.length,u=parseInt(s,10),h=isNaN(u)?oi(s):void 0,d=isNaN(u)?oo(s):u,p=[l];let m=n+1;const g=[i];let y=!1;for(;m<t.length;){const M=t[m];if(M.match(wa))break;if(M.trim()==="")g.push(M),p.push(""),y=!0,m+=1;else if(M.match(m2)){const w=M.length-M.trimStart().length,v=c+s.length+1;g.push(M),p.push(M.slice(Math.min(w,v))),m+=1}else{if(y||y2(M))break;g.push(M),p.push(M),m+=1}}e.push({indent:c,number:d,type:h,content:p.join(`
131`).trim(),contentLines:p,raw:g.join(`
132`)}),r=m,n=m}return[e,r]}
132var L2=new RegExp(`^(${Mu})([.)])\\s+(.+)$`);function C2(t){const e=t.split(`
133`).filter(a=>a.trim().length>0);if(e.length===0)return null;const n=[];for(const a of e){const o=a.trim().match(L2);if(!o)return null;n.push({marker:o[1],content:o[3]})}const r=n.map(a=>a.marker);return a2(r)?{type:"orderedList",attrs:s2(n[0].marker),content:n.map(a=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:a.content}]}]}))}:null}function Iu(t,e,n){const r=[];let i=0;for(;i<t.length;){const a=t[i];if(a.indent===e){const{paragraphLines:o,blockLines:s}=w2(a.contentLines),f=o.join(`
134`).trim(),l=[];f&&l.push({type:"paragraph",raw:f,tokens:n.inlineTokens(f)});const c=s.join(`
135`).trim();if(c){const d=n.blockTokens(c);l.push(...d)}let u=i+1;const h=[];for(;u<t.length&&t[u].indent>e;)h.push(t[u]),u+=1;if(h.length>0){const d=Math.min(...h.map(m=>m.indent)),p=Iu(h,d,n);l.push({type:"list",ordered:!0,start:h[0].number,typeMarker:h[0].type,items:p,raw:h.map(m=>m.raw).join(`
136`)})}r.push({type:"list_item",raw:a.raw,tokens:l}),i=u}else i+=1}return r}function v2(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(i=>{if(i.type==="paragraph"||i.type==="list"||i.type==="blockquote"||i.type==="code")r.push(...e.parseChildren([i]));else if(i.type==="text"&&i.tokens){const a=e.parseChildren([i]);r.push({type:"paragraph",content:a})}else{const a=e.parseChildren([i]);a.length>0&&r.push(...a)}}),{type:"listItem",content:r}})}var k2="listItem",ef="textStyle",tf=/^(\d+)\.\s$/;function nf(t){const e=t.match(/list-style-type\s*:\s*([^;]+)/i);if(!e)return null;switch(e[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}var Tu=we.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},type:{default:null,parseHTML:t=>{const e=t.getAttribute("type");if(e)return e;const n=t.getAttribute("style");if(n){const i=nf(n);if(i)return i}const r=t.querySelector("li");if(r){const i=r.getAttribute("style");if(i){const a=nf(i);if(a)return a}}return null}}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,type:n,...r}=t,i=V(this.options.HTMLAttributes,r);return e!==1&&(i.start=e),n&&n!=="1"&&(i.type=n),["ol",i,0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];const n=t.start||1,r=t.typeMarker,i=t.items?v2(t.items,e):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:"orderedList",attrs:a,content:i}:{type:"orderedList",content:i}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
137`):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(t,e,n)=>{var r,i;const a=t.split(`
138`),[o,s]=M2(a);if(o.length===0)return;const f=Iu(o,o[0].indent,n);if(f.length===0)return;const l=((r=o[0])==null?void 0:r.number)||1,c=(i=o[0])==null?void 0:i.type;return{type:"list",ordered:!0,start:l,typeMarker:c,items:f,raw:a.slice(0,s).join(`
139`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(k2,this.editor.getAttributes(ef)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new W({props:{handlePaste:(t,e)=>{var n,r;const i=(n=e.clipboardData)==null?void 0:n.getData("text/html");if(i!=null&&i.trim())return!1;const a=(r=e.clipboardData)==null?void 0:r.getData("text/plain");if(!a)return!1;const o=C2(a);if(!o)return!1;try{const s=t.state.schema.nodeFromJSON(o),f=t.state.tr.replaceSelectionWith(s);return t.dispatch(f),!0}catch{return!1}}}})]},addInputRules(){const t=(n,r)=>(!r.attrs.type||r.attrs.type==="1")&&r.childCount+r.attrs.start===+n[1];
139let e=cn({find:tf,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:t});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cn({find:tf,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:n=>({start:+n[1],...this.editor.getAttributes(ef)}),joinPredicate:t,editor:this.editor})),[e]}}),S2=/^\s*(\[([( |x])?\])\s$/,j2="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0",x2=(t,e,n)=>{var r;return((r=n==null?void 0:n.checkboxLabel)==null?void 0:r.call(n,t,e))||`Task item checkbox for ${t.textContent||"empty task item"}`},I2=we.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:t=>{var e;return(e=t.querySelector("div"))!=null?e:t}}]},renderHTML({node:t,HTMLAttributes:e}){return["li",V(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const i=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return eo(t,e,i)},addExtensions(){return this.options.nested?[yu(this.name,[this.options.taskListTypeName])]:[]},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 i=document.createElement("li"),a=document.createElement("label"),o=document.createElement("span"),s=document.createElement("input"),f=document.createElement("div");o.style.cssText=j2;const l=u=>{const h=x2(u,u.attrs.checked,this.options.a11y);s.setAttribute("aria-label",h),o.textContent=h};l(t),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",u=>u.preventDefault()),s.addEventListener("change",u=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:h}=u.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:d})=>{const p=n();if(typeof p!="number")return!1;const m=d.doc.nodeAt(p);return d.setNodeMarkup(p,void 0,{...m==null?void 0:m.attrs,checked:h}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,h)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,h])=>{i.setAttribute(u,h)}),i.dataset.checked=t.attrs.checked,s.checked=t.attrs.checked,a.append(s,o),i.append(a,f),Object.entries(e).forEach(([u,h])=>{i.setAttribute(u,h)});let c=new Set(Object.keys(e));return{dom:i,contentDOM:f,update:u=>{if(u.type!==this.type)return!1;i.dataset.checked=u.attrs.checked,s.checked=u.attrs.checked,l(u);const h=r.extensionManager.attributes,d=ln(u,h),p=new Set(Object.keys(d)),m=this.options.HTMLAttributes;return c.forEach(g=>{p.has(g)||(g in m?i.setAttribute(g,m[g]):i.removeAttribute(g))}),Object.entries(d).forEach(([g,y])=>{y==null?g in m?i.setAttribute(g,m[g]):i.removeAttribute(g):i.setAttribute(g,y)}),c=p,!0}}}},addInputRules(){return[cn({find:S2,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),T2=we.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",V(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
140`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=a=>{const o=ma(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:s=>({indentLevel:s[1].length,mainContent:s[4],checked:s[3].toLowerCase()==="x"}),createToken:(s,f)=>({type:"taskItem",raw:"",mainContent:s.mainContent,indentLevel:s.indentLevel,checked:s.checked,text:s.mainContent,tokens:n.inlineTokens(s.mainContent),nestedTokens:f}),customNestedParser:r},n);if(o){const s={type:"taskList",raw:o.raw,items:o.items},f=a.slice(o.raw.length);return f.trim()?[s,...n.blockTokens(f)]:[s]}return n.blockTokens(a)},i=ma(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>
140({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,o)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:o}),customNestedParser:r},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});te.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(bu.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(Cu.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(xu.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(Tu.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(I2.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(T2.configure(this.options.taskList)),t}});var hr="&nbsp;",Yi=" ",N2=we.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",V(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return n.length===1&&n[0].type==="text"&&(n[0].raw===hr||n[0].text===hr||n[0].raw===Yi||n[0].text===Yi)&&r.length===1&&r[0].type==="text"&&(r[0].text===hr||r[0].text===Yi)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e,n)=>{var r,i;if(!t)return"";const a=Array.isArray(t.content)?t.content:[];if(a.length===0){const o=Array.isArray((r=n==null?void 0:n.previousNode)==null?void 0:r.content)?n.previousNode.content:[];return((i=n==null?void 0:n.previousNode)==null?void 0:i.type)==="paragraph"&&o.length===0?hr:""}return e.renderChildren(a)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),D2=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,E2=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,A2=Mt.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",V(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Pt({find:D2,type:this.type})]},addPasteRules(){return[gt({find:E2,type:this.type})]}}),z2=we.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),R2=Mt.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",V(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const i=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!i)return;const a=i[2].trim();return{type:"underline",raw:i[0],text:a,tokens:n.inlineTokens(a)}}},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()}}});function O2(t={}){return new W({view(e){return new P2(e,t)}})}class P2{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,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(i=>{let a=o=>{this[i](o)};return e.dom.addEventListener(i,a),{name:i,handler:a}})}
140destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){if(this.cursorPos!=null&&n.doc!=e.state.doc)if(this.lastDragEvent){let r=this.computeTarget(this.lastDragEvent);r==this.cursorPos?this.updateOverlay():this.setCursor(r)}else 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,i=this.editorView.dom,a=i.getBoundingClientRect(),o=a.width/i.offsetWidth,s=a.height/i.offsetHeight;if(n){let u=e.nodeBefore,h=e.nodeAfter;if(u||h){let d=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(d){let p=d.getBoundingClientRect(),m=u?p.bottom:p.top;u&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*s;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let u=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*o;r={left:u.left-h,right:u.left+h,top:u.top,bottom:u.bottom}}let f=this.editorView.dom.offsetParent;this.element||(this.element=f.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 l,c;if(!f||f==document.body&&getComputedStyle(f).position=="static")l=-pageXOffset,c=-pageYOffset;else{let u=f.getBoundingClientRect(),h=u.width/f.offsetWidth,d=u.height/f.offsetHeight;l=u.left-f.scrollLeft*h,c=u.top-f.scrollTop*d}this.element.style.left=(r.left-l)/o+"px",this.element.style.top=(r.top-c)/s+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i=="function"?i(this.editorView,n,e):i;if(!n||a)return null;let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=hl(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}return o}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let n=this.computeTarget(e);n!=null&&(this.setCursor(n),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class X extends P{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return X.valid(r)?new X(r):P.near(r)}content(){return I.empty}eq(e){return e instanceof X&&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 X(e.resolve(n.pos))}getBookmark(){return new fo(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!B2(e)||!J2(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&X.valid(e))return e;let i=e.pos,a=null;for(let o=e.depth;;o--){let s=e.node(o);if(n>0?e.indexAfter(o)<s.childCount:e.index(o)>0){a=s.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=n;let f=e.doc.resolve(i);if(X.valid(f))return f}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!D.isSelectable(a)){e=e.doc.resolve(i+a.nodeSize*n),r=!1;continue e}break}a=o,i+=n;let s=e.doc.resolve(i);if(X.valid(s))return s}return null}}}X.prototype.visible=!1;X.findFrom=X.findGapCursorFrom;P.jsonID("gapcursor",X);class fo{constructor(e){this.pos=e}map(e){return new fo(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return X.valid(n)?new X(n):P.near(n)}}function Nu(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function B2(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 i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||Nu(i.type))return!0;
vendor: 13,764 bytes, line 140
140if(i.inlineContent)return!1}}return!0}function J2(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 i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||Nu(i.type))return!0;if(i.inlineContent)return!1}}return!0}function U2(){return new W({props:{decorations:G2,createSelectionBetween(t,e,n){return e.pos==n.pos&&X.valid(n)?new X(n):null},handleClick:Y2,handleKeyDown:Q2,handleDOMEvents:{beforeinput:H2}}})}const Q2=bc({ArrowLeft:pr("horiz",-1),ArrowRight:pr("horiz",1),ArrowUp:pr("vert",-1),ArrowDown:pr("vert",1)});function pr(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,a){let o=r.selection,s=e>0?o.$to:o.$from,f=o.empty;if(o instanceof A){if(!a.endOfTextblock(n)||s.depth==0)return!1;f=!1,s=r.doc.resolve(e>0?s.after():s.before())}let l=X.findGapCursorFrom(s,e,f);return l?(i&&i(r.tr.setSelection(new X(l))),!0):!1}}function Y2(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!X.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&D.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new X(r))),!0)}function H2(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof X))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 i=k.empty;for(let o=r.length-1;o>=0;o--)i=k.from(r[o].createAndFill(null,i));let a=t.state.tr.replace(n.pos,n.pos,new I(i,0,0));return a.setSelection(A.near(a.doc.resolve(n.pos+1))),t.dispatch(a),!1}function G2(t){if(!(t.selection instanceof X))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",H.create(t.doc,[ge.widget(t.selection.head,e,{key:"gapcursor"})])}var Yr=200,ce=function(){};ce.prototype.append=function(e){return e.length?(e=ce.from(e),!this.length&&e||e.length<Yr&&this.leafAppend(e)||this.length<Yr&&e.leafPrepend(this)||this.appendInner(e)):this};ce.prototype.prepend=function(e){return e.length?ce.from(e).append(this):this};ce.prototype.appendInner=function(e){return new F2(this,e)};ce.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?ce.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};ce.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};ce.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)};ce.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(e(a,o))},n,r),i};ce.from=function(e){return e instanceof ce?e:e&&e.length?new Du(e):ce.empty};var Du=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(i,a){return i==0&&a==this.length?this:new e(this.values.slice(i,a))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,a,o,s){for(var f=a;f<o;f++)if(i(this.values[f],s+f)===!1)return!1},e.prototype.forEachInvertedInner=function(i,a,o,s){for(var f=a-1;f>=o;f--)if(i(this.values[f],s+f)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Yr)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Yr)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(ce);ce.empty=new Du([]);var F2=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,i,a,o){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(r,Math.min(i,s),a,o)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var a=this.left.length;return i<=a?this.left.slice(r,i):r>=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,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}(ce);const _2=500;class Je{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 i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=e.tr,s,f,l=[],c=[];return this.items.forEach((u,h)=>{if(!u.step){i||(i=this.remapping(r,h+1),a=i.maps.length),a--,c.push(u);return}if(i){c.push(new He(u.map));let d=u.step.map(i.slice(a)),p;d&&o.maybeStep(d).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],l.push(new He(p,void 0,void 0,l.length+c.length))),a--,p&&i.appendMap(p,a)}else o.maybeStep(u.step);if(u.selection)return s=i?u.selection.map(i.slice(a)):u.selection,f=new Je(this.items.slice(0,r).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:f,transform:o,selection:s}}addTransform(e,n,r,i){let a=[],o=this.eventCount,s=this.items,f=!i&&s.length?s.get(s.length-1):null;for(let c=0;c<e.steps.length;c++){let u=e.steps[c].invert(e.docs[c]),h=new He(e.mapping.maps[c],u,n),d;(d=f&&f.merge(h))&&(h=d,c?a.pop():s=s.slice(0,s.length-1)),a.push(h),n&&(o++,n=void 0),i||(f=h)}let l=o-r.depth;return l>W2&&(s=V2(s,l),o-=l),new Je(s.append(a),o)}remapping(e,n){let r=new Bn;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new Je(this.items.append(e.map(n=>new He(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(h=>{h.selection&&s--},i);let f=n;this.items.forEach(h=>{let d=a.getMirror(--f);if(d==null)return;o=Math.min(o,d);let p=a.maps[d];if(h.step){let m=e.steps[d].invert(e.docs[d]),g=h.selection&&h.selection.map(a.slice(f+1,d));g&&s++,r.push(new He(p,m,g))}else r.push(new He(p))},i);let l=[];for(let h=n;h<o;h++)l.push(new He(a.maps[h]));let c=this.items.slice(0,i).append(l).append(r),u=new Je(c,s);return u.emptyItemCount()>_2&&(u=u.compress(this.items.length-r.length)),u}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,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=e)i.push(o),o.selection&&a++;else if(o.step){let f=o.step.map(n.slice(r)),l=f&&f.getMap();if(r--,l&&n.appendMap(l,r),f){let c=o.selection&&o.selection.map(n.slice(r));c&&a++;let u=new He(l.invert(),f,c),h,d=i.length-1;(h=i.length&&i[d].merge(u))?i[d]=h:i.push(u)}}else o.map&&r--},this.items.length,0),new Je(ce.from(i.reverse()),a)}}Je.empty=new Je(ce.empty,0);function V2(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class He{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new He(n.getMap().invert(),n,this.selection)}}}class at{constructor(e,n,r,i,a){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=a}}const W2=20;function Z2(t,e,n,r){let i=n.getMeta(At),a;if(i)return i.historyState;n.getMeta(q2)&&(t=new at(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(At))return o.getMeta(At).redo?new at(t.done.addTransform(n,void 0,r,vr(e)),t.undone,rf(n.mapping.maps),t.prevTime,t.prevComposition):new at(t.done,t.undone.addTransform(n,void 0,r,vr(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),f=t.prevTime==0||!o&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!$2(n,t.prevRanges)),l=o?Hi(t.prevRanges,n.mapping):rf(n.mapping.maps);return new at(t.done.addTransform(n,f?e.selection.getBookmark():void 0,r,vr(e)),Je.empty,l,n.time,s??t.prevComposition)}else return(a=n.getMeta("rebased"))?new at(t.done.rebased(n,a),t.undone.rebased(n,a),Hi(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new at(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Hi(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function $2(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let a=0;a<e.length;a+=2)r<=e[a+1]&&i>=e[a]&&(n=!0)}),n}function rf(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,a,o)=>e.push(a,o));return e}function Hi(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),a=e.map(t[r+1],-1);i<=a&&n.push(i,a)}return n}function K2(t,e,n){let r=vr(e),i=At.get(e).spec.config,a=(n?t.undone:t.done).popEvent(e,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?t.done:t.undone).addTransform(a.transform,e.selection.getBookmark(),i,r),f=new at(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(At,{redo:n,historyState:f})}let Gi=!1,af=null;function vr(t){let e=t.plugins;if(af!=e){Gi=!1,af=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Gi=!0;break}}return Gi}const At=new ee("history"),q2=new ee("closeHistory");function X2(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new W({key:At,state:{init(){return new at(Je.empty,Je.empty,null,0,-1)},apply(e,n,r){return Z2(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?Au:r=="historyRedo"?zu:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function Eu(t,e){return(n,r)=>{let i=At.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let a=K2(i,n,t);a&&r(e?a.scrollIntoView():a)}return!0}}const Au=Eu(!1,!0),zu=Eu(!0,!0);var ey=te.create({name:"characterCount",addOptions(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;if(((t==null?void 0:t.mode)||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new W({key:new ee("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){t=!0;return}const o=this.storage.characters({node:r.doc});if(o>i){const s=o-i,f=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const c=r.tr.deleteRange(f,l);return t=!0,c}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:n.doc}),a=this.storage.characters({node:e.doc});if(a<=r||i>r&&a>r&&a<=i)return!0;if(i>r&&a>r&&a>i||!e.getMeta("paste"))return!1;const s=e.selection.$head.pos,f=a-r,l=s-f,c=s;return e.deleteRange(l,c),!(this.storage.characters({node:e.doc})>r)}})]}}),ty=te.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[O2(this.options)]}});te.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new W({key:new ee("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:i}=e,a=[];if(!n||!r)return H.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((f,l)=>{if(f.isText)return;if(!(i>=l&&i<=l+f.nodeSize-1))return!1;o+=1});let s=0;return t.descendants((f,l)=>{if(f.isText||!(i>=l&&i<=l+f.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&o-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";a.push(ge.node(l,l+f.nodeSize,{class:this.options.className}))}),H.create(t,a)}}})]}});var ny=te.create({name:"gapCursor",addProseMirrorPlugins(){return[U2()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Y(N(t,"allowGapCursor",n)))!=null?e:null}}}),Ru="placeholder",of=new ee("tiptap__placeholder");function Ou(t){const{editor:e,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:f,emptyEditor:l}}=t,c=[f];
140return o&&c.push(l),ge.node(i,i+a.nodeSize,{class:c.join(" "),[r]:typeof n=="function"?n({editor:e,node:a,pos:i,hasAnchor:s}):n})}function Pu(t,e){return typeof t=="function"?t(e):t}function Bu({editor:t,options:e,dataAttribute:n,doc:r,selection:i,from:a,to:o}){const{anchor:s}=i,f=[],l=t.isEmpty;return r.nodesBetween(a,o,(c,u)=>{const h=s>=u&&s<=u+c.nodeSize,d=!c.isLeaf&&er(c);return c.type.isTextblock&&(h||!e.showOnlyCurrent)&&d&&f.push(Ou({editor:t,isEmptyDoc:l,dataAttribute:n,hasAnchor:h,placeholder:e.placeholder,classes:{emptyEditor:e.emptyEditorClass,emptyNode:Pu(e.emptyNodeClass,{editor:t,node:c,pos:u,hasAnchor:h})},node:c,pos:u})),e.includeChildren}),f}function Ju({editor:t,options:e,dataAttribute:n,doc:r,selection:i}){if(!(t.isEditable||!e.showOnlyWhenEditable))return null;const{anchor:o}=i,s=[],f=t.isEmpty;if(e.showOnlyCurrent&&!e.includeChildren){const c=r.resolve(o),u=c.depth>0?c.node(1):c.nodeAfter,h=c.depth>0?c.before(1):o;if(u&&u.type.isTextblock&&er(u)){const d=o>=h&&o<=h+u.nodeSize;s.push(Ou({editor:t,isEmptyDoc:f,dataAttribute:n,hasAnchor:d,placeholder:e.placeholder,classes:{emptyEditor:e.emptyEditorClass,emptyNode:Pu(e.emptyNodeClass,{editor:t,node:u,pos:h,hasAnchor:d})},node:u,pos:h}))}}else s.push(...Bu({editor:t,options:e,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return H.create(r,s)}function En(t,e){var n;const r=t.resolve(e);if(r.depth===0){const o=(n=r.nodeAfter)!=null?n:r.nodeBefore;if(!o)return{from:e,to:e};const s=r.nodeAfter?e:e-o.nodeSize;return{from:s,to:s+o.nodeSize}}const i=r.before(1),a=r.node(1);return{from:i,to:i+a.nodeSize}}function An(t,e){return{from:Math.max(0,e.from-1),to:Math.min(t.content.size,e.to-1)}}function ry(t,e,n){const r=[];return t.forEach((i,a)=>{const o=a,s=o+i.nodeSize,f=o+1,l=s+1;f<n&&l>e&&r.push({from:o,to:s})}),r}function iy(t){if(t.length===0)return[];const e=[...t].sort((r,i)=>r.from-i.from),n=[{...e[0]}];for(let r=1;r<e.length;r+=1){const i=n[n.length-1],a=e[r];a.from<=i.to?i.to=Math.max(i.to,a.to):n.push({...a})}return n}function ay(t,e){const n=ry(t,e.from,e.to);return n.push(An(t,En(t,e.from))),e.to>e.from?n.push(An(t,En(t,Math.min(e.to,t.content.size+1)-1))):e.from<t.content.size+1&&n.push(An(t,En(t,Math.min(e.from+1,t.content.size)))),n}function oy(t,e,n){const r=[];if(t.docChanged){const i=ri(t);for(const a of i)r.push(...ay(n.doc,a.newRange))}return t.selectionSet&&(r.push(An(n.doc,En(n.doc,t.mapping.map(e.selection.anchor)))),r.push(An(n.doc,En(n.doc,n.selection.anchor)))),iy(r)}function sy(t,e,n){const r=Math.max(0,Math.min(t,n.content.size)),i=Math.max(r,Math.min(e,n.content.size));return{from:r,to:i}}function fy({decorations:t,ranges:e,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=t;for(const f of e){const{from:l,to:c}=sy(f.from,f.to,a),u=s.find(l,c).filter(d=>d.from>=l&&d.to<=c);u.length&&(s=s.remove(u));const h=Bu({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:l,to:c});h.length&&(s=s.add(a,h))}return s}function ly({editor:t,options:e,dataAttribute:n}){return{init(r,i){const a=Ju({editor:t,options:e,dataAttribute:n,doc:i.doc,selection:i.selection});return a??H.empty},apply(r,i,a,o){if(!r.docChanged&&!r.selectionSet)return i;const s=i.map(r.mapping,r.doc),f=oy(r,a,o);return fy({decorations:s,ranges:f,editor:t,options:e,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function cy(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function uy({editor:t,options:e}){const n=e.dataAttribute?`data-${cy(e.dataAttribute)}`:`data-${Ru}`,r=e.showOnlyCurrent&&!e.includeChildren;return new W({key:of,...r?{}:{state:ly({editor:t,options:e,dataAttribute:n})},props:{decorations:r?({doc:i,selection:a})=>Ju({editor:t,options:e,dataAttribute:n,doc:i,selection:a}):i=>{var a;return e.showOnlyWhenEditable&&!t.isEditable?H.empty:(a=of.getState(i))!=null?a:H.empty}}})}var dy=te.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Ru,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[uy({editor:this.editor,options:this.options})]}});function Ma(t,e){return!t.selection.empty&&!Rc(t.selection)&&e.isEditable}function hy(t,e){return Ma(t,e)&&!e.isFocused&&!e.view.dragging}function py(){var t;(t=window.getSelection())==null||t.removeAllRanges()}function my(t){t.focus()}te.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new W({key:new ee("selection"),props:{decorations(n){return hy(n,t)?H.create(n.doc,[ge.inline(n.selection.from,n.selection.to,{class:e.className})]):null},handleDOMEvents:{blur(n){return Ma(n.state,t)&&py(),!1},focus(n){return Ma(n.state,t)&&requestAnimationFrame(()=>{!t.isDestroyed&&n.hasFocus()&&my(n)}),!1}}}})]}});var gy="skipTrailingNode";function sf({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||(e==null?void 0:e.type)===t}var by=te.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new ee(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,i])=>i).filter(i=>(this.options.notAfter||[]).concat(n).includes(i.name));return[new W({key:e,appendTransaction:(i,a,o)=>{const{doc:s,tr:f,schema:l}=o,c=e.getState(o),u=s.content.size,h=l.nodes[n];if(!i.some(d=>d.getMeta(gy))&&c)return f.insert(u,h.create())},state:{init:(i,a)=>{const o=a.tr.doc.lastChild;return!sf({node:o,types:r})},apply:(i,a)=>
140{if(!i.docChanged||i.getMeta("__uniqueIDTransaction"))return a;const o=i.doc.lastChild;return!sf({node:o,types:r})}}})]}}),yy=te.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Au(t,e),redo:()=>({state:t,dispatch:e})=>zu(t,e)}},addProseMirrorPlugins(){return[X2(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),wy=te.create({name:"starterKit",addExtensions(){var t,e,n,r;const i=[];return this.options.bold!==!1&&i.push(wb.configure(this.options.bold)),this.options.blockquote!==!1&&i.push(pb.configure(this.options.blockquote)),this.options.bulletList!==!1&&i.push(bu.configure(this.options.bulletList)),this.options.code!==!1&&i.push(Cb.configure(this.options.code)),this.options.codeBlock!==!1&&i.push(Sb.configure(this.options.codeBlock)),this.options.document!==!1&&i.push(jb.configure(this.options.document)),this.options.dropcursor!==!1&&i.push(ty.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&i.push(ny.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&i.push(xb.configure(this.options.hardBreak)),this.options.heading!==!1&&i.push(Ib.configure(this.options.heading)),this.options.undoRedo!==!1&&i.push(yy.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&i.push(Tb.configure(this.options.horizontalRule)),this.options.italic!==!1&&i.push(zb.configure(this.options.italic)),this.options.listItem!==!1&&i.push(Cu.configure(this.options.listItem)),this.options.listKeymap!==!1&&i.push(xu.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&i.push(Wb.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&i.push(Tu.configure(this.options.orderedList)),this.options.paragraph!==!1&&i.push(N2.configure(this.options.paragraph)),this.options.strike!==!1&&i.push(A2.configure(this.options.strike)),this.options.text!==!1&&i.push(z2.configure(this.options.text)),this.options.underline!==!1&&i.push(R2.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&i.push(by.configure((r=this.options)==null?void 0:r.trailingNode)),i}}),My=Mt.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",V(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),Ly=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Cy=we.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},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},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",V(this.options.HTMLAttributes,t)]},parseMarkdown:(t,e)=>e.createNode("image",{src:t.href,title:t.title,alt:t.text}),renderMarkdown:t=>{var e,n,r,i,a,o;const s=(n=(e=t.attrs)==null?void 0:e.src)!=null?n:"",f=(i=(r=t.attrs)==null?void 0:r.alt)!=null?i:"",l=(o=(a=t.attrs)==null?void 0:a.title)!=null?o:"";return l?`![${f}](${s} "${l}")`:`![${f}](${s})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:t,minWidth:e,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize,i=new Set(["src","width","height"]);return({node:a,getPos:o,HTMLAttributes:s,editor:f})=>{const l=document.createElement("img");l.draggable=!1;const c=V(this.options.HTMLAttributes,s);
140Object.entries(c).forEach(([g,y])=>{if(y!=null)switch(g){case"src":case"width":case"height":break;default:l.setAttribute(g,y);break}}),c.src!==null&&(l.src=c.src);let u={...s};const h=g=>{if(typeof g=="string"&&g!==""){l.getAttribute("src")!==g&&(l.src=g);return}l.hasAttribute("src")&&l.removeAttribute("src"),l.src!==""&&(l.src="")};h(s.src);const d=g=>{if(g.type!==a.type)return!1;const y=f.extensionManager.attributes.filter(L=>L.type===g.type.name),M=ln(g,y);return Object.keys(u).forEach(L=>{!i.has(L)&&!(L in M)&&l.removeAttribute(L)}),Object.entries(M).forEach(([L,w])=>{i.has(L)||(w!=null?l.setAttribute(L,w):l.removeAttribute(L))}),h(M.src),u=M,!0},p=new Fg({element:l,editor:f,node:a,getPos:o,onResize:(g,y)=>{l.style.width=`${g}px`,l.style.height=`${y}px`},onCommit:(g,y)=>{const M=o();M!==void 0&&this.editor.chain().setNodeSelection(M).updateAttributes(this.name,{width:g,height:y}).run()},onUpdate:d,options:{directions:t,min:{width:e,height:n},preserveAspectRatio:r===!0}}),m=p.dom;return m.style.visibility="hidden",m.style.pointerEvents="none",l.onload=()=>{m.style.visibility="",m.style.pointerEvents=""},p}},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}}
140,addInputRules(){return[au({find:Ly,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),vy=/^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,ky=/^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/g,lo=t=>t.match(vy),ff=(t,e)=>e?"https://www.youtube-nocookie.com/embed/videoseries?list=":t?"https://www.youtube-nocookie.com/embed/":"https://www.youtube.com/embed/",Sy=t=>{const{url:e,allowFullscreen:n,autoplay:r,ccLanguage:i,ccLoadPolicy:a,controls:o,disableKBcontrols:s,enableIFrameApi:f,endTime:l,interfaceLanguage:c,ivLoadPolicy:u,loop:h,modestBranding:d,nocookie:p,origin:m,playlist:g,progressBarColor:y,startAt:M,rel:L}=t;if(!lo(e))return null;if(e.includes("/embed/"))return e;if(e.includes("youtu.be")){const x=e.split("/").pop();return x?`${ff(p)}${x}`:null}const v=/(?:(v|list)=|shorts\/)([-\w]+)/gm.exec(e);if(!v||!v[2])return null;let S=`${ff(p,v[1]==="list")}${v[2]}`;const C=[];return n===!1&&C.push("fs=0"),r&&C.push("autoplay=1"),i&&C.push(`cc_lang_pref=${i}`),a&&C.push("cc_load_policy=1"),o||C.push("controls=0"),s&&C.push("disablekb=1"),f&&C.push("enablejsapi=1"),l&&C.push(`end=${l}`),c&&C.push(`hl=${c}`),u&&C.push(`iv_load_policy=${u}`),h&&C.push("loop=1"),d&&C.push("modestbranding=1"),m&&C.push(`origin=${m}`),g&&C.push(`playlist=${g}`),M&&C.push(`start=${M}`),y&&C.push(`color=${y}`),L!==void 0&&C.push(`rel=${L}`),C.length&&(S+=`${v[1]==="list"?"&":"?"}${C.join("&")}`),S},jy=t=>{let e;try{e=new URL(t)}catch{return null}const n=e.hostname.replace(/^www\./,"");if(n!=="youtube.com"&&n!=="youtube-nocookie.com")return null;let r=null;if(e.pathname==="/embed/videoseries"){const o=e.searchParams.get("list");if(!o)return null;r=`https://www.youtube.com/playlist?list=${o}`}else{const o=e.pathname.match(/^\/embed\/([\w-]+)$/);if(!(o!=null&&o[1]))return null;r=`https://www.youtube.com/watch?v=${o[1]}`}if(!lo(r))return null;const i={src:r},a=e.searchParams.get("start");if(a){const o=Number.parseInt(a,10);Number.isNaN(o)||(i.start=o)}return i},lf=t=>{if(!t)return null;const e=t.trim();if(e==="")return null;const n=Number(e);return Number.isNaN(n)?e:n},cf=t=>{const e=t.getAttribute("src");if(!e)return null;const n=jy(e);return n||{src:e}},xy=we.create({name:"youtube",addOptions(){return{addPasteHandler:!0,allowFullscreen:!0,autoplay:!1,ccLanguage:void 0,ccLoadPolicy:void 0,controls:!0,disableKBcontrols:!1,enableIFrameApi:!1,endTime:0,height:480,interfaceLanguage:void 0,ivLoadPolicy:0,loop:!1,modestBranding:!1,HTMLAttributes:{},inline:!1,nocookie:!1,origin:"",playlist:"",progressBarColor:void 0,width:640,rel:1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null,parseHTML:t=>{var e;return(e=cf(t))==null?void 0:e.src}},start:{default:0,parseHTML:t=>{var e;return(e=cf(t))==null?void 0:e.start}},width:{default:this.options.width,parseHTML:t=>lf(t.getAttribute("width"))},height:{default:this.options.height,parseHTML:t=>lf(t.getAttribute("height"))}}},parseHTML(){return[{tag:"div[data-youtube-video] iframe"}]},addCommands(){return{setYoutubeVideo:t=>({commands:e})=>lo(t.src)?e.insertContent({type:this.name,attrs:t}):!1}},addPasteRules(){return this.options.addPasteHandler?[_g({find:ky,type:this.t
140ype,getAttributes:t=>({src:t.input})})]:[]},renderHTML({HTMLAttributes:t}){const e=Sy({url:t.src,allowFullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,controls:this.options.controls,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,nocookie:this.options.nocookie,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,startAt:t.start||0,rel:this.options.rel});return t.src=e,["div",{"data-youtube-video":""},["iframe",V(this.options.HTMLAttributes,{width:this.options.width,height:this.options.height,allowfullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,rel:this.options.rel},t)]]},...Hc({nodeName:"youtube",allowedAttributes:["src","width","height","start"]})});function La(t){return[].concat(t)}function co(t){return t.startsWith(":")}function Uu(t){return fi(t)&&(t==="*"||t.length>1&&":>~.+*".includes(t.slice(0,1))||Gu(t))}function Qu(t,e){return(fi(e)||typeof e=="number")&&!Hu(t)&&!co(t)&&!Yu(t)}function Yu(t){return t.startsWith("@media")}function Iy(t){return t==="."}function Hu(t){return t==="--"}function fi(t){return t+""===t}function Gu(t){return fi(t)&&(t.startsWith("&")||co(t))}function Hr(t,e=""){return t.filter(Boolean).join(e)}function Fu(t,e){let n=0;if(e.length===0)return n.toString();for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}return`${t??"cl"}_${n.toString(36)}`}function Ty(t,e){return t==="content"?`"${e}"`:e}function Ny(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function uf(t,e){return`${t}:${e}`}function Dy(t){return t?`.${t}`:""}function Ey(t,e){return t?`${t}
141${e}`:e}var _u=class Vu{constructor(e,n,r,i){this.sheet=e,this.property=n,this.value=r,this.selector=i,this.property=n,this.value=r,this.joined=uf(n,r);const a=this.selector.preconditions.concat(this.selector.postconditions);this.hash=this.selector.hasConditions?this.selector.scopeClassName:Fu(this.sheet.name,this.joined),this.key=Hr([this.joined,a,this.hash])}toString(){let e=Ca(this.selector.preconditions,{right:this.hash});return e=Ca(this.selector.postconditions,{left:e}),`${e} {${Vu.genRule(this.property,this.value)}}`}static genRule(e,n){const r=Ny(e);return uf(r,Ty(e,n))+";"}};function Ca(t,{left:e="",right:n=""}={}){const r=t.reduce((i,a)=>co(a)?i+a:Gu(a)?i+a.slice(1):Hr([i,a]," "),e);return Hr([r,Dy(n)]," ")}var Ay=class kr{constructor(e,n=null,{preconditions:r,postconditions:i}={}){this.sheet=e,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=r?La(r):[],this.postconditions=i?La(i):[],this.setScope(n)}setScope(e){return e?(this.scopeClassName||(this.scopeName=e,this.scopeClassName=Fu(this.sheet.name,e+this.sheet.count)),this):this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(e){return new kr(this.sheet,e,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(e){return new kr(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(e)})}addPostcondition(e){return new kr(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(e)})}createRule(e,n){return new _u(this.sheet,e,n,this)}},zy=class{constructor(t,e){this.name=t,this.rootNode=e,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${t}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(t){this.style=Ey(this.style,t)}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){if(typeof document>"u"||this.isApplied()||this.rootNode===null)return this.styleTag;const t=document.createElement("style");return t.type="text/css",t.id=this.id,(this.rootNode??document.head).appendChild(t),t}addRule(t){const e=this.storedClasses[t.key];return fi(e)?e:(this.storedClasses[t.key]=t.hash,this.storedStyles[t.hash]=[t.property,t.value],this.append(t.toString()),t.hash)}};function uo(t,e){for(const n in t)e(n.trim(),t[n])}function J(...t){const e=t.reduce((n,r)=>(r instanceof Set?n.push(...r):typeof r=="string"?n.push(r):Array.isArray(r)?n.push(J(...r)):typeof r=="object"&&Object.entries(r).forEach(([i,a])=>{a&&n.push(i)}),n),[]);return Hr(e," ").trim()}function Ry(t,e){const n=new zy(t,e);return{create:r,getStyle:n.getStyle.bind(n),isApplied:n.isApplied.bind(n)};function r(i){const a={};
vendor: 8,753 bytes, lines 141-142
141return Wu(n,i,new Ay(n)).forEach(([s,f,l])=>{li(n,f,l).forEach(c=>{o(s,c)})}),n.apply(),a;function o(s,f){a[s]=a[s]??new Set,a[s].add(f)}}}function Wu(t,e,n){const r=[];return uo(e,(i,a)=>{if(Uu(i))return Wu(t,a,n.addPrecondition(i)).forEach(o=>r.push(o));r.push([i,e[i],n.addScope(i)])}),r}function li(t,e,n){const r=new Set;return uo(e,(i,a)=>{let o=[];if(Uu(i))o=li(t,a,n.addPostcondition(i));else if(Iy(i))o=La(a);else if(Yu(i))o=Py(t,a,i,n);else if(Hu(i))o=Oy(t,a,n);else if(Qu(i,a)){const s=n.createRule(i,a);t.addRule(s),r.add(s.hash)}return Zu(o,r)}),r}function Zu(t,e){return t.forEach(n=>e.add(n)),e}function Oy(t,e,n){const r=new Set,i=[];if(uo(e,(a,o)=>{if(Qu(a,o)){i.push(_u.genRule(a,o));return}const s=li(t,o??{},n);Zu(s,r)}),!n.scopeClassName)return r;if(i.length){const a=i.join(" ");t.append(`${Ca(n.preconditions,{right:n.scopeClassName})} {${a}}`)}return r.add(n.scopeClassName),r}function Py(t,e,n,r){t.append(n+" {");const i=li(t,e,r);return t.append("}"),i}function df(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function By(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Uy(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
142In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(null,arguments)}function Jy(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,va(t,e)}function $u(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function va(t,e){return va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},va(t,e)}function Uy(t,e){if(t){if(typeof t=="string")return df(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(t,e):void 0}}var U;(function(t){t.hiddenOnSearch="epr-hidden-on-search",t.searchActive="epr-search-active",t.hidden="epr-hidden",t.visible="epr-visible",t.active="epr-active",t.emoji="epr-emoji",t.category="epr-emoji-category",t.label="epr-emoji-category-label",t.categoryContent="epr-emoji-category-content",t.emojiHasVariations="epr-emoji-has-variations",t.scrollBody="epr-body",t.emojiList="epr-emoji-list",t.external="__EmojiPicker__",t.emojiPicker="EmojiPickerReact",t.open="epr-open",t.vertical="epr-vertical",t.horizontal="epr-horizontal",t.variationPicker="epr-emoji-variation-picker",t.darkTheme="epr-dark-theme",t.autoTheme="epr-auto-theme"})(U||(U={}));function Oe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.map(function(r){return"."+r}).join("")}var q=Ry("epr",null),Sr={display:"none",opacity:"0",pointerEvents:"none",visibility:"hidden",overflow:"hidden"},ho=q.create({hidden:F({".":U.hidden},Sr)}),Qy=b.memo(function(e){var n=e.nonce;return b.createElement("style",{nonce:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:q.getStyle()}})}),Jt=q.create({".epr-main":{":has(input:not(:placeholder-shown))":{categoryBtn:{":hover":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"}},hiddenOnSearch:F({".":U.hiddenOnSearch},Sr)},":has(input:placeholder-shown)":{visibleOnSearchOnly:Sr}},hiddenOnReactions:{transition:"all 0.5s ease-in-out"},".epr-reactions":{hiddenOnReactions:{height:"0px",width:"0px",opacity:"0",pointerEvents:"none",overflow:"hidden"}},".EmojiPickerReact:not(.epr-search-active)":{categoryBtn:{":hover":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"},"&.epr-active":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"}},visibleOnSearchOnly:F({".":"epr-visible-on-search-only"},Sr)}});function bt(t,e){var n,r;return{".epr-dark-theme":(n={},n[t]=e,n),".epr-auto-theme":(r={},r[t]={"@media (prefers-color-scheme: dark)":e},r)}}function Ku(t,e){var n,r,i=(n=t.customEmojis)!=null?n:[],a=(r=e.customEmojis)!=null?r:[];return t.open===e.open&&t.emojiVersion===e.emojiVersion&&t.reactionsDefaultOpen===e.reactionsDefaultOpen&&t.searchPlaceHolder===e.searchPlaceHolder&&t.searchPlaceholder===e.searchPlaceholder&&t.searchClearButtonLabel===e.searchClearButtonLabel&&t.defaultSkinTone===e.defaultSkinTone&&t.skinTonesDisabled===e.skinTonesDisabled&&t.autoFocusSearch===e.autoFocusSearch&&t.emojiStyle===e.emojiStyle&&t.theme===e.theme&&t.suggestedEmojisMode===e.suggestedEmojisMode&&t.lazyLoadEmojis===e.lazyLoadEmojis&&t.className===e.className&&t.height===e.height&&t.width===e.width&&t.style===e.style&&t.searchDisabled===e.searchDisabled&&t.skinTonePickerLocation===e.skinTonePickerLocation&&i.length===a.length&&t.emojiData===e.emojiData}var Yy=["1f44d","2764-fe0f","1f603","1f622","1f64f","1f44e","1f621"],Hn;(function(t){t.RECENT="recent",t.FREQUENT="frequent"})(Hn||(Hn={}));var ve;(function(t){t.NATIVE="native",t.APPLE="apple",t.TWITTER="twitter",t.GOOGLE="google",t.FACEBOOK="facebook"})(ve||(ve={}));var un;(function(t){t.DARK="dark",t.LIGHT="light",t.AUTO="auto"})(un||(un={}));var Be;(function(t){t.NEUTRAL="neutral",t.LIGHT="1f3fb",t.MEDIUM_LIGHT="1f3fc",t.MEDIUM="1f3fd",t.MEDIUM_DARK="1f3fe",t.DARK="1f3ff"})(Be||(Be={}));var B;(function(t){t.SUGGESTED="suggested",t.CUSTOM="custom",t.SMILEYS_PEOPLE="smileys_people",t.ANIMALS_NATURE="animals_nature",t.FOOD_DRINK="food_drink",t.TRAVEL_PLACES="travel_places",t.ACTIVITIES="activities",t.OBJECTS="objects",t.SYMBOLS="symbols",t.FLAGS="flags"})(B||(B={}));var dn;(function(t){t.SEARCH="SEARCH",t.PREVIEW="PREVIEW"})(dn||(dn={}));var Hy="https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/",Gy="https://cdn.jsdelivr.net/npm/emoji-datasource-facebook/img/facebook/64/",Fy="https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/",_y="https://cdn.jsdelivr.net/npm/emoji-datasource-google/img/google/64/";function Vy(t){switch(t){case ve.TWITTER:return Fy;case ve.GOOGLE:return _y;case ve.FACEBOOK:return Gy;case ve.APPLE:default:return Hy}}var Gr=[Be.NEUTRAL,Be.LIGHT,Be.MEDIUM_LIGHT,Be.MEDIUM,Be.MEDIUM_DARK,Be.DARK],Wy=Object.entries(Be).reduce(function(t,e){var n=e[0],r=e[1];return t[r]=n,t},{}),po=Gr.reduce(function(t,e){var n;return Object.assign(t,(n={},n[e]=e,n))},{}),fe;(function(t){t.name="n",t.unified="u",t.variations="v",t.added_in="a",t.imgUrl="imgUrl"})(fe||(fe={}));function qu(t){var e;return(e=t[fe.name])!=null?e:[]}function Zy(t){return parseFloat(t[fe.added_in]||"0")}function $y(t){if(!t)return"";var e=qu(t);return e[e.length-1]}function Xu(t){var e=t.split("-"),n=e.splice(1,1),r=n[0];return po[r]?e.join("-"):t}function Ut(t,e){var n,r=t[fe.unified];return!e||!Ky(t)?r:(n=qy(t,e))!=null?n:r}function ed(t,e){return""+Vy(e)+t+".png"}function mo(t){var e;return(e=t[fe.variations])!=null?e:[]}function Ky(t){return mo(t).length>0}function qy(t,e){return e?mo(t).find(function(n){return n.includes(e)}):Ut(t)}function Xy(t){var e=t.split("-"),n=e[1];return Object.keys(po).includes(n)?n:null}var De,e4=[B.SUGGESTED,B.CUSTOM,B.SMILEYS_PEOPLE,B.ANIMALS_NATURE,B.FOOD_DRINK,B.TRAVEL_PLACES,B.ACTIVITIES,B.OBJECTS,B.SYMBOLS,B.FLAGS],t4={name:"Recently Used",category:B.SUGGESTED},td=(De={},De[B.SUGGESTED]={category:B.SUGGESTED,name:"Frequently Used"},De[B.CUSTOM]={category:B.CUSTOM,name:"Custom Emojis"},De[B.SMILEYS_PEOPLE]={category:B.SMILEYS_PEOPLE,name:"Smileys & People"},De[B.ANIMALS_NATURE]={category:B.ANIMALS_NATURE,name:"Animals & Nature"},De[B.FOOD_DRINK]={category:B.FOOD_DRINK,name:"Food & Drink"},De[B.TRAVEL_PLACES]={category:B.TRAVEL_PLACES,name:"Travel & Places"},De[B.ACTIVITIES]={category:B.ACTIVITIES,name:"Activities"},De[B.OBJECTS]={category:B.OBJECTS,name:"Objects"},De[B.SYMBOLS]={category:B.SYMBOLS,name:"Symbols"},De[B.FLAGS]={category:B.FLAGS,name:"Flags"},De);function nd(t){return e4.map(function(e){return F({},td[e],t&&t[e]&&t[e])})}function ci(t){return t.category}function rd(t){return t.name}function n4(t,e,n){var r;t===void 0&&(t=[]),e===void 0&&(e={});var i=function(){var o=n!=null&&n.categories?Object.fromEntries(Object.entries(n.categories).filter(function(l){var c=l[1];return!!c})):{};if(e.suggestionMode===Hn.RECENT){var s,f=n==null||(s=n.categories)==null?void 0:s.suggested_recent;o[B.SUGGESTED]=f?{category:B.SUGGESTED,name:f.name}:t4}return o}(),a=nd(i);return(r=t)!=null&&r.length?t.map(function(o){return typeof o=="str
142ing"?hf(o,i[o]):F({},hf(o.category,i[o.category]),o)}):a}function hf(t,e){return e===void 0&&(e={}),Object.assign(td[t],e)}var r4=["2640-fe0f","2642-fe0f","2695-fe0f"],Fr="Search",id="Clear",i4="No results found",ad=" found. Use up and down arrow keys to navigate.",a4="1 result"+ad,o4="%n results"+ad;function pf(t){var e,n,r,i,a;t===void 0&&(t={});var o=od(),s=(e=t.emojiData)==null||(n=e.categories)==null||(r=n.preview_mood)==null?void 0:r.name,f=F({},o.previewConfig,s&&!((i=t.previewConfig)!=null&&i.defaultCaption)?{defaultCaption:s}:{},(a=t.previewConfig)!=null?a:{}),l=Object.assign(o,t),c=n4(t.categories,{suggestionMode:l.suggestedEmojisMode},t.emojiData);l.hiddenEmojis.forEach(function(h){l.unicodeToHide.add(h)});var u=l.searchDisabled?dn.PREVIEW:l.skinTonePickerLocation;return F({},l,{categories:c,previewConfig:f,skinTonePickerLocation:u})}function od(){return{autoFocusSearch:!0,categories:nd(),className:"",customEmojis:[],defaultSkinTone:Be.NEUTRAL,emojiStyle:ve.APPLE,emojiVersion:null,getEmojiUrl:ed,height:450,lazyLoadEmojis:!1,previewConfig:F({},s4),searchDisabled:!1,searchPlaceHolder:Fr,searchPlaceholder:Fr,searchClearButtonLabel:id,skinTonePickerLocation:dn.SEARCH,skinTonesDisabled:!1,style:{},suggestedEmojisMode:Hn.FREQUENT,theme:un.LIGHT,unicodeToHide:new Set(r4),width:350,reactionsDefaultOpen:!1,reactions:Yy,open:!0,allowExpandReactions:!0,hiddenEmojis:[],emojiData:void 0,categoryIcons:{},nonce:void 0}}var s4={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},f4=["children"],sd=b.createContext(od());function l4(t){var e=t.children,n=$u(t,f4),r=c4(n);return b.createElement(sd.Provider,{value:r},e)}function c4(t){var e,n=b.useState(function(){return pf(t)}),r=n[0],i=n[1];return b.useEffect(function(){Ku(r,t)||i(pf(t))},[(e=t.customEmojis)==null?void 0:e.length,t.open,t.emojiVersion,t.reactionsDefaultOpen,t.searchPlaceHolder,t.searchPlaceholder,t.searchClearButtonLabel,t.defaultSkinTone,t.skinTonesDisabled,t.autoFocusSearch,t.emojiStyle,t.theme,t.suggestedEmojisMode,t.lazyLoadEmojis,t.className,t.height,t.width,t.searchDisabled,t.skinTonePickerLocation,t.allowExpandReactions,t.emojiData]),r}function $(){return b.useContext(sd)}function mf(t,e){e===void 0&&(e=0);var n=b.useState(t),r=n[0],i=n[1],a=b.useRef(null);function o(s){return new Promise(function(f){var l;a.current&&clearTimeout(a.current),a.current=(l=window)==null?void 0:l.setTimeout(function(){i(s),f(s)},e)})}return[r,o]}var u4={smileys_people:{category:"smileys_people",name:"people & body"},animals_nature:{category:"animals_nature",name:"animals & nature"},food_drink:{category:"food_drink",name:"food & drink"},travel_places:{category:"travel_places",name:"travel & places"},activities:{category:"activities",name:"activities"},objects:{category:"objects",name:"objects"},symbols:{category:"symbols",name:"symbols"},flags:{category:"flags",name:"flags"},suggested:{category:"suggested",name:"Frequently Used"},custom:{category:"custom",name:"Custom Emojis"},suggested_recent:{category:"suggested",name:"Recently Used"},preview_mood:{category:"preview_mood",name:"What's your mood?"}},d4=
vendor: 184,245 bytes, line 142
142{custom:[],smileys_people:[{n:["face","grin","grinning face"],u:"1f600",a:"1"},{n:["face","open","mouth","smile","grinning face with big eyes"],u:"1f603",a:"0.6"},{n:["eye","face","open","mouth","smile","grinning face with smiling eyes"],u:"1f604",a:"0.6"},{n:["eye","face","grin","smile","beaming face with smiling eyes"],u:"1f601",a:"0.6"},{n:["face","laugh","mouth","smile","satisfied","grinning squinting face"],u:"1f606",a:"0.6"},{n:["cold","face","open","smile","sweat","grinning face with sweat"],u:"1f605",a:"0.6"},{n:["face","rofl","floor","laugh","rotfl","rolling","rolling on the floor laughing"],u:"1f923",a:"3"},{n:["joy","face","tear","laugh","face with tears of joy"],u:"1f602",a:"0.6"},{n:["face","smile","slightly smiling face"],u:"1f642",a:"1"},{n:["face","upside down","upside down face"],u:"1f643",a:"1"},{n:["melt","liquid","dissolve","disappear","melting face"],u:"1fae0",a:"14"},{n:["face","wink","winking face"],u:"1f609",a:"0.6"},{n:["eye","face","blush","smile","smiling face with smiling eyes"],u:"1f60a",a:"0.6"},{n:["face","halo","angel","fantasy","innocent","smiling face with halo"],u:"1f607",a:"1"},{n:["adore","crush","hearts","in love","smiling face with hearts"],u:"1f970",a:"11"},{n:["eye","face","love","smile","smiling face with heart eyes"],u:"1f60d",a:"0.6"},{n:["eyes","face","star","grinning","star struck"],u:"1f929",a:"5"},{n:["face","kiss","face blowing a kiss"],u:"1f618",a:"0.6"},{n:["face","kiss","kissing face"],u:"1f617",a:"1"},{n:["face","smile","relaxed","outlined","smiling face"],u:"263a-fe0f",a:"0.6"},{n:["eye","face","kiss","closed","kissing face with closed eyes"],u:"1f61a",a:"0.6"},{n:["eye","face","kiss","smile","kissing face with smiling eyes"],u:"1f619",a:"1"},{n:["tear","proud","smiling","touched","grateful","relieved","smiling face with tear"],u:"1f972",a:"13"},{n:["yum","face","smile","delicious","savouring","face savoring food"],u:"1f60b",a:"0.6"},{n:["face","tongue","face with tongue"],u:"1f61b",a:"1"},{n:["eye","face","joke","wink","tongue","winking face with tongue"],u:"1f61c",a:"0.6"},{n:["eye","goofy","large","small","zany face"],u:"1f92a",a:"5"},{n:["eye","face","taste","tongue","horrible","squinting face with tongue"],u:"1f61d",a:"0.6"},{n:["face","money","mouth","money mouth face"],u:"1f911",a:"1"},{n:["hug","face","hugging","open hands","smiling face","smiling face with open hands"],u:"1f917",a:"1"},{n:["whoops","face with hand over mouth"],u:"1f92d",a:"5"},{n:["awe","scared","surprise","amazement","disbelief","embarrass","face with open eyes and hand over mouth"],u:"1fae2",a:"14"},{n:["peep","stare","captivated","face with peeking eye"],u:"1fae3",a:"14"},{n:["quiet","shush","shushing face"],u:"1f92b",a:"5"},{n:["face","thinking","thinking face"],u:"1f914",a:"1"},{n:["ok","yes","sunny","salute","troops","saluting face"],u:"1fae1",a:"14"},{n:["zip","face","mouth","zipper","zipper mouth face"],u:"1f910",a:"1"},{n:["skeptic","distrust","face with raised eyebrow"],u:"1f928",a:"5"},{n:["meh","face","deadpan","neutral","neutral face"],u:"1f610",a:"0.7"},{n:["meh","face","inexpressive","unexpressive","expressionless","expressionless face"],u:"1f611",a:"1"},{n:["face","mouth","quiet","silent","face without mouth"],u:"1f636",a:"1"},{n:["hide","depressed","disappear","introvert","invisible","dotted line face"],u:"1fae5",a:"14"},{n:["absentminded","face in clouds","head in clouds","face in the fog"],u:"1f636-200d-1f32b-fe0f",a:"13.1"},{n:["face","smirk","smirking face"],u:"1f60f",a:"0.6"},{n:["face","unhappy","unamused","unamused face"],u:"1f612",a:"0.6"},{n:["eyes","face","eyeroll","rolling","face with rolling eyes"],u:"1f644",a:"1"},{n:["face","grimace","grimacing face"],u:"1f62c",a:"1"},{n:["gasp","groan","exhale","relief","whisper","whistle","face exhaling"],u:"1f62e-200d-1f4a8",a:"13.1"},{n:["lie","face","pinocchio","lying face"],u:"1f925",a:"3"},{n:["face","shock","shaking","vibrate","earthquake","shaking face"],u:"1fae8",a:"15"},{n:["no","shake","head shaking horizontally"],u:"1f642-200d-2194-fe0f",a:"15.1"},{n:["nod","yes","head shaking vertically"],u:"1f642-200d-2195-fe0f",a:"15.1"},{n:["face","relieved","relieved face"],u:"1f60c",a:"0.6"},{n:["face","pensive","dejected","pensive face"],u:"1f614",a:"0.6"},{n:["face","sleep","good night","sleepy face"],u:"1f62a",a:"0.6"},{n:["face","drooling","drooling face"],u:"1f924",a:"3"},{n:["zzz","face","sleep","good night","sleeping face"],u:"1f634",a:"1"},{n:["cold","face","mask","sick","doctor","face with medical mask"],u:"1f637",a:"0.6"},{n:["ill","face","sick","thermometer","face with thermometer"],u:"1f912",a:"1"},{n:["face","hurt","injury","bandage","face with head bandage"],u:"1f915",a:"1"},{n:["face","vomit","nauseated","nauseated face"],u:"1f922",a:"3"},{n:["puke","sick","vomit","face vomiting"],u:"1f92e",a:"5"},{n:["face","sneeze","gesundheit","sneezing face"],u:"1f927",a:"3"},{n:["hot","hot face","feverish","sweating","red faced","heat stroke"],u:"1f975",a:"11"},{n:["cold","icicles","freezing","cold face","frostbite","blue faced"],u:"1f976",a:"11"},{n:["dizzy","tipsy","woozy face","wavy mouth","intoxicated","uneven eyes"],u:"1f974",a:"11"},{n:["dead","face","knocked out","crossed out eyes","face with crossed out eyes"],u:"1f635",a:"0.6"},{n:["whoa","dizzy","spiral","trouble","hypnotized","face with spiral eyes"],u:"1f635-200d-1f4ab",a:"13.1"},{n:["shocked","mind blown","exploding head"],u:"1f92f",a:"5"},{n:["hat","face","cowboy","cowgirl","cowboy hat face"],u:"1f920",a:"3"},{n:["hat","horn","party","celebration","partying face"],u:"1f973",a:"11"},{n:["face","nose","glasses","disguise","incognito","disguised face"],u:"1f978",a:"13"},{n:["sun","cool","face","bright","sunglasses","smiling face with sunglasses"],u:"1f60e",a:"1"},{n:["face","geek","nerd","nerd face"],u:"1f913",a:"1"},{n:["face","stuffy","monocle","face with monocle"],u:"1f9d0",a:"5"},{n:["meh","face","confused","confused face"],u:"1f615",a:"1"},{n:["meh","unsure","skeptical","disappointed","face with diagonal mouth"],u:"1fae4",a:"14"},{n:["face","worried","worried face"],u:"1f61f",a:"1"},{n:["face","frown","slightly frowning face"],u:"1f641",a:"1"},{n:["face","frown","frowning face"],u:"2639-fe0f",a:"0.7"},{n:["face","open","mouth","sympathy","face with open mouth"],u:"1f62e",a:"1"},{n:["face","hushed","stunned","surprised","hushed face"],u:"1f62f",a:"1"},{n:["face","shocked","totally","astonished","astonished face"],u:"1f632",a:"0.6"},{n:["face","dazed","flushed","flushed face"],u:"1f633",a:"0.6"},{n:["mercy","begging","puppy eyes","pleading face"],u:"1f97a",a:"11"},{n:["cry","sad","angry","proud","resist","face holding back tears"],u:"1f979",a:"14"},{n:["face","open","frown","mouth","frowning face with open mouth"],u:"1f626",a:"1"},{n:["face","anguished","anguished face"],u:"1f627",a:"1"},{n:["face","fear","scared","fearful","fearful face"],u:"1f628",a:"0.6"},{n:["blue","cold","face","sweat","rushed","anxious face with sweat"],u:"1f630",a:"0.6"},{n:["face","whew","relieved","disappointed","sad but relieved face"],u:"1f625",a:"0.6"},{n:["cry","sad","face","tear","crying face"],u:"1f622",a:"0.6"},{n:["cry","sad","sob","face","tear","loudly crying face"],u:"1f62d",a:"0.6"},{n:["face","fear","munch","scared","scream","face screaming in fear"],u:"1f631",a:"0.6"},{n:["face","confounded","confounded face"],u:"1f616",a:"0.6"},{n:["face","persevere","persevering face"],u:"1f623",a:"0.6"},{n:["face","disappointed","disappointed face"],u:"1f61e",a:"0.6"},{n:["cold","face","sweat","downcast face with sweat"],u:"1f613",a:"0.6"},{n:["face","tired","weary","weary face"],u:"1f629",a:"0.6"},{n:["face","tired","tired face"],u:"1f62b",a:"0.6"},{n:["yawn","bored","tired","yawning face"],u:"1f971",a:"12"},{n:["won","face","triumph","face with steam from nose"],u:"1f624",a:"0.6"},{n:["mad","red","face","rage","angry","enraged","pouting","enraged face"],u:"1f621",a:"0.6"},{n:["mad","face","anger","angry","angry face"],u:"1f620",a:"0.6"},{n:["swearing","face with symbols on mouth"],u:"1f92c",a:"5"},{n:["face","horns","smile","fantasy","fairy tale","smiling face with horns"],u:"1f608",a:"1"},{n:["imp","face","demon","devil","fantasy","angry face with horns"],u:"1f47f",a:"0.6"},{n:["face","skull","death","monster","fairy tale"],u:"1f480",a:"0.6"},{n:["face","death","skull","monster","crossbones","skull and crossbones"],u:"2620-fe0f",a:"1"},{n:["poo","dung","face","poop","monster","pile of poo"],u:"1f4a9",a:"0.6"},{n:["face","clown","clown face"],u:"1f921",a:"3"},{n:["ogre","face","fantasy","monster","creature","fairy tale"],u:"1f479",a:"0.6"},{n:["face","goblin","fantasy","monster","creature","fairy tale"],u:"1f47a",a:"0.6"},{n:["face","ghost","fantasy","monster","creature","fairy tale"],u:"1f47b",a:"0.6"},{n:["ufo","face","alien","fantasy","creature","extraterrestrial"],u:"1f47d",a:"0.6"},{n:["ufo","face","alien","monster","creature","alien monster","extraterrestrial"],u:"1f47e",a:"0.6"},{n:["face","robot","monster"],u:"1f916",a:"1"},{n:["cat","face","open","mouth","smile","grinning","grinning cat"],u:"1f63a",a:"0.6"},{n:["cat","eye","face","grin","smile","grinning cat with smiling eyes"],u:"1f638",a:"0.6"},{n:["cat","joy","face","tear","cat with tears of joy"],u:"1f639",a:"0.6"},{n:["cat","eye","face","love","heart","smile","smiling cat with heart eyes"],u:"1f63b",a:"0.6"},{n:["cat","wry","face","smile","ironic","cat with wry smile"],u:"1f63c",a:"0.6"},{n:["cat","eye","face","kiss","kissing cat"],u:"1f63d",a:"0.6"},{n:["oh","cat","face","weary","weary cat","surprised"],u:"1f640",a:"0.6"},{n:["cat","cry","sad","face","tear","crying cat"],u:"1f63f",a:"0.6"},{n:["cat","face","pouting","pouting cat"],u:"1f63e",a:"0.6"},{n:["see","evil","face","monkey","forbidden","see no evil monkey"],u:"1f648",a:"0.6"},{n:["evil","face","hear","monkey","forbidden","hear no evil monkey"],u:"1f649",a:"0.6"},{n:["evil","face","speak","monkey","forbidden","speak no evil monkey"],u:"1f64a",a:"0.6"},{n:["love","mail","heart","letter","love letter"],u:"1f48c",a:"0.6"},{n:["arrow","cupid","heart with arrow"],u:"1f498",a:"0.6"},{n:["ribbon","valentine","heart with ribbon"],u:"1f49d",a:"0.6"},{n:["excited","sparkle","sparkling heart"],u:"1f496",a:"0.6"},{n:["pulse","excited","growing","nervous","growing heart"],u:"1f497",a:"0.6"},{n:["beating","heartbeat","pulsating","beating heart"],u:"1f493",a:"0.6"},{n:["revolving","revolving hearts"],u:"1f49e",a:"0.6"},{n:["love","two hearts"],u:"1f495",a:"0.6"},{n:["heart","heart decoration"],u:"1f49f",a:"0.6"},{n:["mark","exclamation","punctuation","heart exclamation"],u:"2763-fe0f",a:"1"},{n:["break","broken","broken heart"],u:"1f494",a:"0.6"},{n:["burn","love","lust","heart","sacred heart","heart on fire"],u:"2764-fe0f-200d-1f525",a:"13.1"},{n:["well","mending","healthier","improving","recovering","recuperating","mending heart"],u:"2764-fe0f-200d-1fa79",a:"13.1"},{n:["heart","red heart"],u:"2764-fe0f",a:"0.6"},{n:["cute","like","love","pink","heart","pink heart"],u:"1fa77",a:"15"},{n:["orange","orange heart"],u:"1f9e1",a:"5"},{n:["yellow","yellow heart"],u:"1f49b",a:"0.6"},{n:["green","green heart"],u:"1f49a",a:"0.6"},{n:["blue","blue heart"],u:"1f499",a:"0.6"},{n:["cyan","teal","heart","light blue","light blue heart"],u:"1fa75",a:"15"},{n:["purple","purple heart"],u:"1f49c",a:"0.6"},{n:["brown","heart","brown heart"],u:"1f90e",a:"12"},{n:["evil","black","wicked","black heart"],u:"1f5a4",a:"3"},{n:["gray","heart","slate","silver","grey heart"],u:"1fa76",a:"15"},{n:["heart","white","white heart"],u:"1f90d",a:"12"},{n:["kiss","lips","kiss mark"],u:"1f48b",a:"0.6"},{n:["100","full","score","hundred","hundred points"],u:"1f4af",a:"0.6"},{n:["mad","angry","comic","anger symbol"],u:"1f4a2",a:"0.6"},{n:["boom","comic","collision"],u:"1f4a5",a:"0.6"},{n:["star","dizzy","comic"],u:"1f4ab",a:"0.6"},{n:["comic","sweat","splashing","sweat droplets"],u:"1f4a6",a:"0.6"},{n:["dash","comic","running","dashing away"],u:"1f4a8",a:"0.6"},{n:["hole"],u:"1f573-fe0f",a:"0.7"},{n:["comic","bubble","dialog","speech","balloon","speech balloon"],u:"1f4ac",a:"0.6"},{n:["eye","bubble","speech","balloon","witness","eye in speech bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f",a:"2"},{n:["bubble","dialog","speech","balloon","left speech bubble"],u:"1f5e8-fe0f",a:"2"},{n:["mad","angry","bubble","balloon","right anger bubble"],u:"1f5ef-fe0f",a:"0.7"},{n:["comic","bubble","balloon","thought","thought balloon"],u:"1f4ad",a:"1"},{n:["ZZZ","zzz","comic","sleep","good night"],u:"1f4a4",a:"0.6"},{n:["hand","wave","waving","waving hand"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"],a:"0.6"},{n:["raised","backhand","raised back of hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"],a:"3"},{n:["hand","finger","splayed","hand with fingers splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"],a:"0.7"},{n:["hand","high 5","high five","raised hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"],a:"0.6"},{n:["hand","spock","finger","vulcan","vulcan salute"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"],a:"1"},{n:["hand","right","rightward","rightwards hand"],u:"1faf1",v:["1faf1-1f3fb","1faf1-1f3fc","1faf1-1f3fd","1faf1-1f3fe","1faf1-1f3ff"],a:"14"},{n:["hand","left","leftward","leftwards hand"],u:"1faf2",v:["1faf2-1f3fb","1faf2-1f3fc","1faf2-1f3fd","1faf2-1f3fe","1faf2-1f3ff"],a:"14"},{n:["drop","shoo","dismiss","palm down hand"],u:"1faf3",v:["1faf3-1f3fb","1faf3-1f3fc","1faf3-1f3fd","1faf3-1f3fe","1faf3-1f3ff"],a:"14"},{n:["come","catch","offer","beckon","palm up hand"],u:"1faf4",v:["1faf4-1f3fb","1faf4-1f3fc","1faf4-1f3fd","1faf4-1f3fe","1faf4-1f3ff"],a:"14"},{n:["push","stop","wait","refuse","leftward","high five","leftwards pushing hand"],u:"1faf7",v:["1faf7-1f3fb","1faf7-1f3fc","1faf7-1f3fd","1faf7-1f3fe","1faf7-1f3ff"],a:"15"},{n:["push","stop","wait","refuse","high five","rightward","rightwards pushing hand"],u:"1faf8",v:["1faf8-1f3fb","1faf8-1f3fc","1faf8-1f3fd","1faf8-1f3fe","1faf8-1f3ff"],a:"15"},{n:["ok","hand","OK hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"],a:"0.6"},{n:["fingers","pinched","sarcastic","hand gesture","interrogation","pinched fingers"],u:"1f90c",v:["1f90c-1f3fb","1f90c-1f3fc","1f90c-1f3fd","1f90c-1f3fe","1f90c-1f3ff"],a:"13"},{n:["small amount","pinching hand"],u:"1f90f",v:["1f90f-1f3fb","1f90f-1f3fc","1f90f-1f3fd","1f90f-1f3fe","1f90f-1f3ff"],a:"12"},{n:["v","hand","victory","victory hand"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"],a:"0.6"},{n:["hand","luck","cross","finger","crossed fingers"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"],a:"3"},{n:["love","snap","heart","money","expensive","hand with index finger and thumb crossed"],u:"1faf0",v:["1faf0-1f3fb","1faf0-1f3fc","1faf0-1f3fd","1faf0-1f3fe","1faf0-1f3ff"],a:"14"},{n:["ily","hand","love you gesture"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"],a:"5"},{n:["hand","horns","finger","rock on","sign of the horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"],a:"1"},{n:["call","hand","shaka","hang loose","call me hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"],a:"3"},{n:["hand","index","point","finger","backhand","backhand index pointing left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"],a:"0.6"},{n:["hand","index","point","finger","backhand","backhand index pointing right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"],a:"0.6"},{n:["up","hand","point","finger","backhand","backhand index pointing up"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"],a:"0.6"},{n:["hand","finger","middle finger"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"],a:"1"},{n:["down","hand","point","finger","backhand","backhand index pointing down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"],a:"0.6"},{n:["up","hand","index","point","finger","index pointing up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"],a:"0.6"},{n:["you","point","index pointing at the viewer"],u:"1faf5",v:["1faf5-1f3fb","1faf5-1f3fc","1faf5-1f3fd","1faf5-1f3fe","1faf5-1f3ff"],a:"14"},{n:["+1","up","hand","thumb","thumbs up"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"],a:"0.6"},{n:[" 1","down","hand","thumb","thumbs down"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"],a:"0.6"},{n:["fist","hand","punch","clenched","raised fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"],a:"0.6"},{n:["fist","hand","punch","clenched","oncoming fist"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"],a:"0.6"},{n:["fist","leftwards","left facing fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"],a:"3"},{n:["fist","rightwards","right facing fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"],a:"3"},{n:["clap","hand","clapping hands"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"],a:"0.6"},{n:["hand","hooray","raised","gesture","celebration","raising hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"],a:"0.6"},{n:["love","heart hands"],u:"1faf6",v:["1faf6-1f3fb","1faf6-1f3fc","1faf6-1f3fd","1faf6-1f3fe","1faf6-1f3ff"],a:"14"},{n:["hand","open","open hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"],a:"0.6"},{n:["prayer","palms up together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"],a:"5"},{n:["hand","shake","meeting","handshake","agreement"],u:"1f91d",v:["1f91d-1f3fb","1f91d-1f3fc","1f91d-1f3fd","1f91d-1f3fe","1f91d-1f3ff","1faf1-1f3fb-200d-1faf2-1f3fc","1faf1-1f3fb-200d-1faf2-1f3fd","1faf1-1f3fb-200d-1faf2-1f3fe","1faf1-1f3fb-200d-1faf2-1f3ff","1faf1-1f3fc-200d-1faf2-1f3fb","1faf1-1f3fc-200d-1faf2-1f3fd","1faf1-1f3fc-200d-1faf2-1f3fe","1faf1-1f3fc-200d-1faf2-1f3ff","1faf1-1f3fd-200d-1faf2-1f3fb","1faf1-1f3fd-200d-1faf2-1f3fc","1faf1-1f3fd-200d-1faf2-1f3fe","1faf1-1f3fd-200d-1faf2-1f3ff","1faf1-1f3fe-200d-1faf2-1f3fb","1faf1-1f3fe-200d-1faf2-1f3fc","1faf1-1f3fe-200d-1faf2-1f3fd","1faf1-1f3fe-200d-1faf2-1f3ff","1faf1-1f3ff-200d-1faf2-1f3fb","1faf1-1f3ff-200d-1faf2-1f3fc","1faf1-1f3ff-200d-1faf2-1f3fd","1faf1-1f3ff-200d-1faf2-1f3fe"],a:"3"},{n:["ask","hand","pray","high 5","please","thanks","high five","folded hands"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"],a:"0.6"},{n:["hand","write","writing hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"],a:"0.7"},{n:["care","nail","polish","manicure","cosmetics","nail polish"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"],a:"0.6"},{n:["phone","selfie","camera"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"],a:"3"},{n:["flex","comic","biceps","muscle","flexed biceps"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"],a:"0.6"},{n:["prosthetic","accessibility","mechanical arm"],u:"1f9be",a:"12"},{n:["prosthetic","accessibility","mechanical leg"],u:"1f9bf",a:"12"},{n:["leg","kick","limb"],u:"1f9b5",v:["1f9b5-1f3fb","1f9b5-1f3fc","1f9b5-1f3fd","1f9b5-1f3fe","1f9b5-1f3ff"],a:"11"},{n:["foot","kick","stomp"],u:"1f9b6",v:["1f9b6-1f3fb","1f9b6-1f3fc","1f9b6-1f3fd","1f9b6-1f3fe","1f9b6-1f3ff"],a:"11"},{n:["ear","body"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"],a:"0.6"},{n:["accessibility","hard of hearing","ear with hearing aid"],u:"1f9bb",v:["1f9bb-1f3fb","1f9bb-1f3fc","1f9bb-1f3fd","1f9bb-1f3fe","1f9bb-1f3ff"],a:"12"},{n:["nose","body"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"],a:"0.6"},{n:["brain","intelligent"],u:"1f9e0",a:"5"},{n:["heart","organ","pulse","anatomical","cardiology","anatomical heart"],u:"1fac0",a:"13"},{n:["lungs","organ","breath","exhalation","inhalation","respiration"],u:"1fac1",a:"13"},{n:["tooth","dentist"],u:"1f9b7",a:"11"},{n:["bone","skeleton"],u:"1f9b4",a:"11"},{n:["eye","eyes","face"],u:"1f440",a:"0.6"},{n:["eye","body"],u:"1f441-fe0f",a:"0.7"},{n:["body","tongue"],u:"1f445",a:"0.6"},{n:["lips","mouth"],u:"1f444",a:"0.6"},{n:["fear","anxious","nervous","worried","flirting","biting lip","uncomfortable"],u:"1fae6",a:"14"},{n:["baby","young"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"],a:"0.6"},{n:["child","young","gender neutral","unspecified gender"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"],a:"5"},{n:["boy","young"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"],a:"0.6"},{n:["girl","virgo","young","zodiac"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"],a:"0.6"},{n:["adult","person","gender neutral","unspecified gender"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"],a:"5"},{n:["hair","blond","person: blond hair","blond haired person"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"],a:"0.6"},{n:["man","adult"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"],a:"0.6"},{n:["beard","person","person: beard"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"],a:"5"},{n:["man","beard","man: beard"],u:"1f9d4-200d-2642-fe0f",v:["1f9d4-1f3fb-200d-2642-fe0f","1f9d4-1f3fc-200d-2642-fe0f","1f9d4-1f3fd-200d-2642-fe0f","1f9d4-1f3fe-200d-2642-fe0f","1f9d4-1f3ff-200d-2642-fe0f"],a:"13.1"},{n:["beard","woman","woman: beard"],u:"1f9d4-200d-2640-fe0f",v:["1f9d4-1f3fb-200d-2640-fe0f","1f9d4-1f3fc-200d-2640-fe0f","1f9d4-1f3fd-200d-2640-fe0f","1f9d4-1f3fe-200d-2640-fe0f","1f9d4-1f3ff-200d-2640-fe0f"],a:"13.1"},{n:["man","adult","red hair","man: red hair"],u:"1f468-200d-1f9b0",v:["1f468-1f3fb-200d-1f9b0","1f468-1f3fc-200d-1f9b0","1f468-1f3fd-200d-1f9b0","1f468-1f3fe-200d-1f9b0","1f468-1f3ff-200d-1f9b0"],a:"11"},{n:["man","adult","curly hair","man: curly hair"],u:"1f468-200d-1f9b1",v:["1f468-1f3fb-200d-1f9b1","1f468-1f3fc-200d-1f9b1","1f468-1f3fd-200d-1f9b1","1f468-1f3fe-200d-1f9b1","1f468-1f3ff-200d-1f9b1"],a:"11"},{n:["man","adult","white hair","man: white hair"],u:"1f468-200d-1f9b3",v:["1f468-1f3fb-200d-1f9b3","1f468-1f3fc-200d-1f9b3","1f468-1f3fd-200d-1f9b3","1f468-1f3fe-200d-1f9b3","1f468-1f3ff-200d-1f9b3"],a:"11"},{n:["man","bald","adult","man: bald"],u:"1f468-200d-1f9b2",v:["1f468-1f3fb-200d-1f9b2","1f468-1f3fc-200d-1f9b2","1f468-1f3fd-200d-1f9b2","1f468-1f3fe-200d-1f9b2","1f468-1f3ff-200d-1f9b2"],a:"11"},{n:["woman","adult"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"],a:"0.6"},{n:["adult","woman","red hair","woman: red hair"],u:"1f469-200d-1f9b0",v:["1f469-1f3fb-200d-1f9b0","1f469-1f3fc-200d-1f9b0","1f469-1f3fd-200d-1f9b0","1f469-1f3fe-200d-1f9b0","1f469-1f3ff-200d-1f9b0"],a:"11"},{n:["adult","person","red hair","gender neutral","person: red hair","unspecified gender"],u:"1f9d1-200d-1f9b0",v:["1f9d1-1f3fb-200d-1f9b0","1f9d1-1f3fc-200d-1f9b0","1f9d1-1f3fd-200d-1f9b0","1f9d1-1f3fe-200d-1f9b0","1f9d1-1f3ff-200d-1f9b0"],a:"12.1"},{n:["adult","woman","curly hair","woman: curly hair"],u:"1f469-200d-1f9b1",v:["1f469-1f3fb-200d-1f9b1","1f469-1f3fc-200d-1f9b1","1f469-1f3fd-200d-1f9b1","1f469-1f3fe-200d-1f9b1","1f469-1f3ff-200d-1f9b1"],a:"11"},{n:["adult","person","curly hair","gender neutral","person: curly hair","unspecified gender"],u:"1f9d1-200d-1f9b1",v:["1f9d1-1f3fb-200d-1f9b1","1f9d1-1f3fc-200d-1f9b1","1f9d1-1f3fd-200d-1f9b1","1f9d1-1f3fe-200d-1f9b1","1f9d1-1f3ff-200d-1f9b1"],a:"12.1"},{n:["adult","woman","white hair","woman: white hair"],u:"1f469-200d-1f9b3",v:["1f469-1f3fb-200d-1f9b3","1f469-1f3fc-200d-1f9b3","1f469-1f3fd-200d-1f9b3","1f469-1f3fe-200d-1f9b3","1f469-1f3ff-200d-1f9b3"],a:"11"},{n:["adult","person","white hair","gender neutral","person: white hair","unspecified gender"],u:"1f9d1-200d-1f9b3",v:["1f9d1-1f3fb-200d-1f9b3","1f9d1-1f3fc-200d-1f9b3","1f9d1-1f3fd-200d-1f9b3","1f9d1-1f3fe-200d-1f9b3","1f9d1-1f3ff-200d-1f9b3"],a:"12.1"},{n:["bald","adult","woman","woman: bald"],u:"1f469-200d-1f9b2",v:["1f469-1f3fb-200d-1f9b2","1f469-1f3fc-200d-1f9b2","1f469-1f3fd-200d-1f9b2","1f469-1f3fe-200d-1f9b2","1f469-1f3ff-200d-1f9b2"],a:"11"},{n:["bald","adult","person","person: bald","gender neutral","unspecified gender"],u:"1f9d1-200d-1f9b2",v:["1f9d1-1f3fb-200d-1f9b2","1f9d1-1f3fc-200d-1f9b2","1f9d1-1f3fd-200d-1f9b2","1f9d1-1f3fe-200d-1f9b2","1f9d1-1f3ff-200d-1f9b2"],a:"12.1"},{n:["hair","woman","blonde","woman: blond hair","blond haired woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"],a:"4"},{n:["man","hair","blond","man: blond hair","blond haired man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"],a:"4"},{n:["old","adult","older person","gender neutral","unspecified gender"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"],a:"5"},{n:["man","old","adult","old man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"],a:"0.6"},{n:["old","adult","woman","old woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"],a:"0.6"},{n:["frown","gesture","person frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"],a:"0.6"},{n:["man","gesture","frowning","man frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","gesture","frowning","woman frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"],a:"4"},{n:["gesture","pouting","person pouting"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"],a:"0.6"},{n:["man","gesture","pouting","man pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","gesture","pouting","woman pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"],a:"4"},{n:["hand","gesture","forbidden","prohibited","person gesturing NO","person gesturing no"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"],a:"0.6"},{n:["man","hand","gesture","forbidden","prohibited","man gesturing NO","man gesturing no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"],a:"4"},{n:["hand","woman","gesture","forbidden","prohibited","woman gesturing NO","woman gesturing no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"],a:"4"},{n:["ok","hand","gesture","person gesturing OK","person gesturing ok"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"],a:"0.6"},{n:["ok","man","hand","gesture","man gesturing OK","man gesturing ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"],a:"4"},{n:["ok","hand","woman","gesture","woman gesturing OK","woman gesturing ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"],a:"4"},{n:["hand","help","sassy","tipping","information","person tipping hand"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"],a:"0.6"},{n:["man","sassy","tipping hand","man tipping hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"],a:"4"},{n:["sassy","woman","tipping hand","woman tipping hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"],a:"4"},{n:["hand","happy","raised","gesture","person raising hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"],a:"0.6"},{n:["man","gesture","raising hand","man raising hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","gesture","raising hand","woman raising hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"],a:"4"},{n:["ear","deaf","hear","deaf person","accessibility"],u:"1f9cf",v:["1f9cf-1f3fb","1f9cf-1f3fc","1f9cf-1f3fd","1f9cf-1f3fe","1f9cf-1f3ff"],a:"12"},{n:["man","deaf","deaf man"],u:"1f9cf-200d-2642-fe0f",v:["1f9cf-1f3fb-200d-2642-fe0f","1f9cf-1f3fc-200d-2642-fe0f","1f9cf-1f3fd-200d-2642-fe0f","1f9cf-1f3fe-200d-2642-fe0f","1f9cf-1f3ff-200d-2642-fe0f"],a:"12"},{n:["deaf","woman","deaf woman"],u:"1f9cf-200d-2640-fe0f",v:["1f9cf-1f3fb-200d-2640-fe0f","1f9cf-1f3fc-200d-2640-fe0f","1f9cf-1f3fd-200d-2640-fe0f","1f9cf-1f3fe-200d-2640-fe0f","1f9cf-1f3ff-200d-2640-fe0f"],a:"12"},{n:["bow","sorry","apology","gesture","person bowing"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"],a:"0.6"},{n:["man","favor","sorry","bowing","apology","gesture","man bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"],a:"4"},{n:["favor","sorry","woman","bowing","apology","gesture","woman bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"],a:"4"},{n:["face","palm","disbelief","exasperation","person facepalming"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"],a:"3"},{n:["man","facepalm","disbelief","exasperation","man facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","facepalm","disbelief","exasperation","woman facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"],a:"4"},{n:["doubt","shrug","ignorance","indifference","person shrugging"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"],a:"3"},{n:["man","doubt","shrug","ignorance","indifference","man shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"],a:"4"},{n:["doubt","shrug","woman","ignorance","indifference","woman shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"],a:"4"},{n:["nurse","doctor","therapist","healthcare","health worker"],u:"1f9d1-200d-2695-fe0f",v:["1f9d1-1f3fb-200d-2695-fe0f","1f9d1-1f3fc-200d-2695-fe0f","1f9d1-1f3fd-200d-2695-fe0f","1f9d1-1f3fe-200d-2695-fe0f","1f9d1-1f3ff-200d-2695-fe0f"],a:"12.1"},{n:["man","nurse","doctor","therapist","healthcare","man health worker"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"],a:"4"},{n:["nurse","woman","doctor","therapist","healthcare","woman health worker"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"],a:"4"},{n:["student","graduate"],u:"1f9d1-200d-1f393",v:["1f9d1-1f3fb-200d-1f393","1f9d1-1f3fc-200d-1f393","1f9d1-1f3fd-200d-1f393","1f9d1-1f3fe-200d-1f393","1f9d1-1f3ff-200d-1f393"],a:"12.1"},{n:["man","student","graduate","man student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"],a:"4"},{n:["woman","student","graduate","woman student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"],a:"4"},{n:["teacher","lecturer","professor","instructor"],u:"1f9d1-200d-1f3eb",v:["1f9d1-1f3fb-200d-1f3eb","1f9d1-1f3fc-200d-1f3eb","1f9d1-1f3fd-200d-1f3eb","1f9d1-1f3fe-200d-1f3eb","1f9d1-1f3ff-200d-1f3eb"],a:"12.1"},{n:["man","teacher","lecturer","professor","instructor","man teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"],a:"4"},{n:["woman","teacher","lecturer","professor","instructor","woman teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"],a:"4"},{n:["law","judge","scales","justice"],u:"1f9d1-200d-2696-fe0f",v:["1f9d1-1f3fb-200d-2696-fe0f","1f9d1-1f3fc-200d-2696-fe0f","1f9d1-1f3fd-200d-2696-fe0f","1f9d1-1f3fe-200d-2696-fe0f","1f9d1-1f3ff-200d-2696-fe0f"],a:"12.1"},{n:["law","man","judge","scales","justice","man judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"],a:"4"},{n:["law","judge","woman","scales","justice","woman judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"],a:"4"},{n:["farmer","rancher","gardener"],u:"1f9d1-200d-1f33e",v:["1f9d1-1f3fb-200d-1f33e","1f9d1-1f3fc-200d-1f33e","1f9d1-1f3fd-200d-1f33e","1f9d1-1f3fe-200d-1f33e","1f9d1-1f3ff-200d-1f33e"],a:"12.1"},{n:["man","farmer","rancher","gardener","man farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"],a:"4"},{n:["woman","farmer","rancher","gardener","woman farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"],a:"4"},{n:["cook","chef"],u:"1f9d1-200d-1f373",v:["1f9d1-1f3fb-200d-1f373","1f9d1-1f3fc-200d-1f373","1f9d1-1f3fd-200d-1f373","1f9d1-1f3fe-200d-1f373","1f9d1-1f3ff-200d-1f373"],a:"12.1"},{n:["man","chef","cook","man cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"],a:"4"},{n:["chef","cook","woman","woman cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"],a:"4"},{n:["plumber","mechanic","electrician","tradesperson"],u:"1f9d1-200d-1f527",v:["1f9d1-1f3fb-200d-1f527","1f9d1-1f3fc-200d-1f527","1f9d1-1f3fd-200d-1f527","1f9d1-1f3fe-200d-1f527","1f9d1-1f3ff-200d-1f527"],a:"12.1"},{n:["man","plumber","mechanic","electrician","man mechanic","tradesperson"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"],a:"4"},{n:["woman","plumber","mechanic","electrician","tradesperson","woman mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"],a:"4"},{n:["worker","factory","assembly","industrial","factory worker"],u:"1f9d1-200d-1f3ed",v:["1f9d1-1f3fb-200d-1f3ed","1f9d1-1f3fc-200d-1f3ed","1f9d1-1f3fd-200d-1f3ed","1f9d1-1f3fe-200d-1f3ed","1f9d1-1f3ff-200d-1f3ed"],a:"12.1"},{n:["man","worker","factory","assembly","industrial","man factory worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"],a:"4"},{n:["woman","worker","factory","assembly","industrial","woman factory worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"],a:"4"},{n:["manager","business","architect","white collar","office worker"],u:"1f9d1-200d-1f4bc",v:["1f9d1-1f3fb-200d-1f4bc","1f9d1-1f3fc-200d-1f4bc","1f9d1-1f3fd-200d-1f4bc","1f9d1-1f3fe-200d-1f4bc","1f9d1-1f3ff-200d-1f4bc"],a:"12.1"},{n:["man","manager","business","architect","white collar","man office worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"],a:"4"},{n:["woman","manager","business","architect","white collar","woman office worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"],a:"4"},{n:["chemist","engineer","scientist","biologist","physicist"],u:"1f9d1-200d-1f52c",v:["1f9d1-1f3fb-200d-1f52c","1f9d1-1f3fc-200d-1f52c","1f9d1-1f3fd-200d-1f52c","1f9d1-1f3fe-200d-1f52c","1f9d1-1f3ff-200d-1f52c"],a:"12.1"},{n:["man","chemist","engineer","biologist","physicist","scientist","man scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"],a:"4"},{n:["woman","chemist","engineer","biologist","physicist","scientist","woman scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"],a:"4"},{n:["coder","inventor","software","developer","technologist"],u:"1f9d1-200d-1f4bb",v:["1f9d1-1f3fb-200d-1f4bb","1f9d1-1f3fc-200d-1f4bb","1f9d1-1f3fd-200d-1f4bb","1f9d1-1f3fe-200d-1f4bb","1f9d1-1f3ff-200d-1f4bb"],a:"12.1"},{n:["man","coder","inventor","software","developer","technologist","man technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"],a:"4"},{n:["coder","woman","inventor","software","developer","technologist","woman technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"],a:"4"},{n:["rock","star","actor","singer","entertainer"],u:"1f9d1-200d-1f3a4",v:["1f9d1-1f3fb-200d-1f3a4","1f9d1-1f3fc-200d-1f3a4","1f9d1-1f3fd-200d-1f3a4","1f9d1-1f3fe-200d-1f3a4","1f9d1-1f3ff-200d-1f3a4"],a:"12.1"},{n:["man","rock","star","actor","singer","man singer","entertainer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"],a:"4"},{n:["rock","star","actor","woman","singer","entertainer","woman singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"],a:"4"},{n:["artist","palette"],u:"1f9d1-200d-1f3a8",v:["1f9d1-1f3fb-200d-1f3a8","1f9d1-1f3fc-200d-1f3a8","1f9d1-1f3fd-200d-1f3a8","1f9d1-1f3fe-200d-1f3a8","1f9d1-1f3ff-200d-1f3a8"],a:"12.1"},{n:["man","artist","palette","man artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"],a:"4"},{n:["woman","artist","palette","woman artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"],a:"4"},{n:["pilot","plane"],u:"1f9d1-200d-2708-fe0f",v:["1f9d1-1f3fb-200d-2708-fe0f","1f9d1-1f3fc-200d-2708-fe0f","1f9d1-1f3fd-200d-2708-fe0f","1f9d1-1f3fe-200d-2708-fe0f","1f9d1-1f3ff-200d-2708-fe0f"],a:"12.1"},{n:["man","pilot","plane","man pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"],a:"4"},{n:["pilot","plane","woman","woman pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"],a:"4"},{n:["rocket","astronaut"],u:"1f9d1-200d-1f680",v:["1f9d1-1f3fb-200d-1f680","1f9d1-1f3fc-200d-1f680","1f9d1-1f3fd-200d-1f680","1f9d1-1f3fe-200d-1f680","1f9d1-1f3ff-200d-1f680"],a:"12.1"},{n:["man","rocket","astronaut","man astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"],a:"4"},{n:["woman","rocket","astronaut","woman astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"],a:"4"},{n:["fire","firetruck","firefighter"],u:"1f9d1-200d-1f692",v:["1f9d1-1f3fb-200d-1f692","1f9d1-1f3fc-200d-1f692","1f9d1-1f3fd-200d-1f692","1f9d1-1f3fe-200d-1f692","1f9d1-1f3ff-200d-1f692"],a:"12.1"},{n:["man","firetruck","firefighter","man firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"],a:"4"},{n:["woman","firetruck","firefighter","woman firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"],a:"4"},{n:["cop","police","officer","police officer"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"],a:"0.6"},{n:["cop","man","police","officer","man police officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"],a:"4"},{n:["cop","woman","police","officer","woman police officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"],a:"4"},{n:["spy","sleuth","detective"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"],a:"0.7"},{n:["man","spy","sleuth","detective","man detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"],a:"4"},{n:["spy","woman","sleuth","detective","woman detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"],a:"4"},{n:["guard"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"],a:"0.6"},{n:["man","guard","man guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"],a:"4"},{n:["guard","woman","woman guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"],a:"4"},{n:["ninja","hidden","fighter","stealth"],u:"1f977",v:["1f977-1f3fb","1f977-1f3fc","1f977-1f3fd","1f977-1f3fe","1f977-1f3ff"],a:"13"},{n:["hat","worker","construction","construction worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"],a:"0.6"},{n:["man","worker","construction","man construction worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","worker","construction","woman construction worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"],a:"4"},{n:["noble","regal","monarch","royalty","person with crown"],u:"1fac5",v:["1fac5-1f3fb","1fac5-1f3fc","1fac5-1f3fd","1fac5-1f3fe","1fac5-1f3ff"],a:"14"},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"],a:"3"},{n:["fantasy","princess","fairy tale"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"],a:"0.6"},{n:["turban","person wearing turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"],a:"0.6"},{n:["man","turban","man wearing turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","turban","woman wearing turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"],a:"4"},{n:["cap","hat","person","skullcap","gua pi mao","person with skullcap"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"],a:"0.6"},{n:["hijab","tichel","mantilla","headscarf","woman with headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"],a:"5"},{n:["groom","person","tuxedo","person in tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"],a:"3"},{n:["man","tuxedo","man in tuxedo"],u:"1f935-200d-2642-fe0f",v:["1f935-1f3fb-200d-2642-fe0f","1f935-1f3fc-200d-2642-fe0f","1f935-1f3fd-200d-2642-fe0f","1f935-1f3fe-200d-2642-fe0f","1f935-1f3ff-200d-2642-fe0f"],a:"13"},{n:["woman","tuxedo","woman in tuxedo"],u:"1f935-200d-2640-fe0f",v:["1f935-1f3fb-200d-2640-fe0f","1f935-1f3fc-200d-2640-fe0f","1f935-1f3fd-200d-2640-fe0f","1f935-1f3fe-200d-2640-fe0f","1f935-1f3ff-200d-2640-fe0f"],a:"13"},{n:["veil","bride","person","wedding","person with veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"],a:"0.6"},{n:["man","veil","man with veil"],u:"1f470-200d-2642-fe0f",v:["1f470-1f3fb-200d-2642-fe0f","1f470-1f3fc-200d-2642-fe0f","1f470-1f3fd-200d-2642-fe0f","1f470-1f3fe-200d-2642-fe0f","1f470-1f3ff-200d-2642-fe0f"],a:"13"},{n:["veil","woman","woman with veil"],u:"1f470-200d-2640-fe0f",v:["1f470-1f3fb-200d-2640-fe0f","1f470-1f3fc-200d-2640-fe0f","1f470-1f3fd-200d-2640-fe0f","1f470-1f3fe-200d-2640-fe0f","1f470-1f3ff-200d-2640-fe0f"],a:"13"},{n:["woman","pregnant","pregnant woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"],a:"3"},{n:["full","belly","bloated","pregnant","pregnant man"],u:"1fac3",v:["1fac3-1f3fb","1fac3-1f3fc","1fac3-1f3fd","1fac3-1f3fe","1fac3-1f3ff"],a:"14"},{n:["full","belly","bloated","pregnant","pregnant person"],u:"1fac4",v:["1fac4-1f3fb","1fac4-1f3fc","1fac4-1f3fd","1fac4-1f3fe","1fac4-1f3ff"],a:"14"},{n:["baby","breast","nursing","breast feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"],a:"5"},{n:["baby","woman","feeding","nursing","woman feeding baby"],u:"1f469-200d-1f37c",v:["1f469-1f3fb-200d-1f37c","1f469-1f3fc-200d-1f37c","1f469-1f3fd-200d-1f37c","1f469-1f3fe-200d-1f37c","1f469-1f3ff-200d-1f37c"],a:"13"},{n:["man","baby","feeding","nursing","man feeding baby"],u:"1f468-200d-1f37c",v:["1f468-1f3fb-200d-1f37c","1f468-1f3fc-200d-1f37c","1f468-1f3fd-200d-1f37c","1f468-1f3fe-200d-1f37c","1f468-1f3ff-200d-1f37c"],a:"13"},{n:["baby","person","feeding","nursing","person feeding baby"],u:"1f9d1-200d-1f37c",v:["1f9d1-1f3fb-200d-1f37c","1f9d1-1f3fc-200d-1f37c","1f9d1-1f3fd-200d-1f37c","1f9d1-1f3fe-200d-1f37c","1f9d1-1f3ff-200d-1f37c"],a:"13"},{n:["baby","face","angel","fantasy","baby angel","fairy tale"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"],a:"0.6"},{n:["claus","santa","father","christmas","Santa Claus","celebration"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"],a:"0.6"},{n:["mrs.","claus","mother","christmas","Mrs. Claus","celebration"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"],a:"3"},{n:["claus","mx claus","christmas"],u:"1f9d1-200d-1f384",v:["1f9d1-1f3fb-200d-1f384","1f9d1-1f3fc-200d-1f384","1f9d1-1f3fd-200d-1f384","1f9d1-1f3fe-200d-1f384","1f9d1-1f3ff-200d-1f384"],a:"13"},{n:["good","hero","heroine","superhero","superpower"],u:"1f9b8",v:["1f9b8-1f3fb","1f9b8-1f3fc","1f9b8-1f3fd","1f9b8-1f3fe","1f9b8-1f3ff"],a:"11"},{n:["man","good","hero","superpower","man superhero"],u:"1f9b8-200d-2642-fe0f",v:["1f9b8-1f3fb-200d-2642-fe0f","1f9b8-1f3fc-200d-2642-fe0f","1f9b8-1f3fd-200d-2642-fe0f","1f9b8-1f3fe-200d-2642-fe0f","1f9b8-1f3ff-200d-2642-fe0f"],a:"11"},{n:["good","hero","woman","heroine","superpower","woman superhero"],u:"1f9b8-200d-2640-fe0f",v:["1f9b8-1f3fb-200d-2640-fe0f","1f9b8-1f3fc-200d-2640-fe0f","1f9b8-1f3fd-200d-2640-fe0f","1f9b8-1f3fe-200d-2640-fe0f","1f9b8-1f3ff-200d-2640-fe0f"],a:"11"},{n:["evil","villain","criminal","superpower","supervillain"],u:"1f9b9",v:["1f9b9-1f3fb","1f9b9-1f3fc","1f9b9-1f3fd","1f9b9-1f3fe","1f9b9-1f3ff"],a:"11"},{n:["man","evil","villain","criminal","superpower","man supervillain"],u:"1f9b9-200d-2642-fe0f",v:["1f9b9-1f3fb-200d-2642-fe0f","1f9b9-1f3fc-200d-2642-fe0f","1f9b9-1f3fd-200d-2642-fe0f","1f9b9-1f3fe-200d-2642-fe0f","1f9b9-1f3ff-200d-2642-fe0f"],a:"11"},{n:["evil","woman","villain","criminal","superpower","woman supervillain"],u:"1f9b9-200d-2640-fe0f",v:["1f9b9-1f3fb-200d-2640-fe0f","1f9b9-1f3fc-200d-2640-fe0f","1f9b9-1f3fd-200d-2640-fe0f","1f9b9-1f3fe-200d-2640-fe0f","1f9b9-1f3ff-200d-2640-fe0f"],a:"11"},{n:["mage","witch","wizard","sorcerer","sorceress"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"],a:"5"},{n:["wizard","man mage","sorcerer"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"],a:"5"},{n:["witch","sorceress","woman mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"],a:"5"},{n:["puck","fairy","oberon","titania"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"],a:"5"},{n:["puck","oberon","man fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"],a:"5"},{n:["titania","woman fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"],a:"5"},{n:["undead","vampire","dracula"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"],a:"5"},{n:["undead","dracula","man vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"],a:"5"},{n:["undead","woman vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"],a:"5"},{n:["merman","mermaid","merwoman","merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"],a:"5"},{n:["merman","triton"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"],a:"5"},{n:["mermaid","merwoman"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"],a:"5"},{n:["elf","magical"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"],a:"5"},{n:["man elf","magical"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"],a:"5"},{n:["magical","woman elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"],a:"5"},{n:["genie","djinn"],u:"1f9de",a:"5"},{n:["djinn","man genie"],u:"1f9de-200d-2642-fe0f",a:"5"},{n:["djinn","woman genie"],u:"1f9de-200d-2640-fe0f",a:"5"},{n:["zombie","undead","walking dead"],u:"1f9df",a:"5"},{n:["undead","man zombie","walking dead"],u:"1f9df-200d-2642-fe0f",a:"5"},{n:["undead","woman zombie","walking dead"],u:"1f9df-200d-2640-fe0f",a:"5"},{n:["troll","fantasy","monster","fairy tale"],u:"1f9cc",a:"14"},{n:["face","salon","massage","person getting massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"],a:"0.6"},{n:["man","face","massage","man getting massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"],a:"4"},{n:["face","woman","massage","woman getting massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"],a:"4"},{n:["barber","beauty","parlor","haircut","person getting haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"],a:"0.6"},{n:["man","haircut","man getting haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","haircut","woman getting haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"],a:"4"},{n:["hike","walk","walking","person walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"],a:"0.6"},{n:["man","hike","walk","man walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"],a:"4"},{n:["hike","walk","woman","woman walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"],a:"4"},{n:["hike","walk","walking","person walking","person walking facing right"],u:"1f6b6-200d-27a1-fe0f",v:["1f6b6-1f3fb-200d-27a1-fe0f","1f6b6-1f3fc-200d-27a1-fe0f","1f6b6-1f3fd-200d-27a1-fe0f","1f6b6-1f3fe-200d-27a1-fe0f","1f6b6-1f3ff-200d-27a1-fe0f"],a:"15.1"},{n:["hike","walk","woman","woman walking","woman walking facing right"],u:"1f6b6-200d-2640-fe0f-200d-27a1-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f-200d-27a1-fe0f","1f6b6-1f3fc-200d-2640-fe0f-200d-27a1-fe0f","1f6b6-1f3fd-200d-2640-fe0f-200d-27a1-fe0f","1f6b6-1f3fe-200d-2640-fe0f-200d-27a1-fe0f","1f6b6-1f3ff-200d-2640-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["man","hike","walk","man walking","man walking facing right"],u:"1f6b6-200d-2642-fe0f-200d-27a1-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f-200d-27a1-fe0f","1f6b6-1f3fc-200d-2642-fe0f-200d-27a1-fe0f","1f6b6-1f3fd-200d-2642-fe0f-200d-27a1-fe0f","1f6b6-1f3fe-200d-2642-fe0f-200d-27a1-fe0f","1f6b6-1f3ff-200d-2642-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["stand","standing","person standing"],u:"1f9cd",v:["1f9cd-1f3fb","1f9cd-1f3fc","1f9cd-1f3fd","1f9cd-1f3fe","1f9cd-1f3ff"],a:"12"},{n:["man","standing","man standing"],u:"1f9cd-200d-2642-fe0f",v:["1f9cd-1f3fb-200d-2642-fe0f","1f9cd-1f3fc-200d-2642-fe0f","1f9cd-1f3fd-200d-2642-fe0f","1f9cd-1f3fe-200d-2642-fe0f","1f9cd-1f3ff-200d-2642-fe0f"],a:"12"},{n:["woman","standing","woman standing"],u:"1f9cd-200d-2640-fe0f",v:["1f9cd-1f3fb-200d-2640-fe0f","1f9cd-1f3fc-200d-2640-fe0f","1f9cd-1f3fd-200d-2640-fe0f","1f9cd-1f3fe-200d-2640-fe0f","1f9cd-1f3ff-200d-2640-fe0f"],a:"12"},{n:["kneel","kneeling","person kneeling"],u:"1f9ce",v:["1f9ce-1f3fb","1f9ce-1f3fc","1f9ce-1f3fd","1f9ce-1f3fe","1f9ce-1f3ff"],a:"12"},{n:["man","kneeling","man kneeling"],u:"1f9ce-200d-2642-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f","1f9ce-1f3fc-200d-2642-fe0f","1f9ce-1f3fd-200d-2642-fe0f","1f9ce-1f3fe-200d-2642-fe0f","1f9ce-1f3ff-200d-2642-fe0f"],a:"12"},{n:["woman","kneeling","woman kneeling"],u:"1f9ce-200d-2640-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f","1f9ce-1f3fc-200d-2640-fe0f","1f9ce-1f3fd-200d-2640-fe0f","1f9ce-1f3fe-200d-2640-fe0f","1f9ce-1f3ff-200d-2640-fe0f"],a:"12"},{n:["kneel","kneeling","person kneeling","person kneeling facing right"],u:"1f9ce-200d-27a1-fe0f",v:["1f9ce-1f3fb-200d-27a1-fe0f","1f9ce-1f3fc-200d-27a1-fe0f","1f9ce-1f3fd-200d-27a1-fe0f","1f9ce-1f3fe-200d-27a1-fe0f","1f9ce-1f3ff-200d-27a1-fe0f"],a:"15.1"},{n:["woman","kneeling","woman kneeling facing right"],u:"1f9ce-200d-2640-fe0f-200d-27a1-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f-200d-27a1-fe0f","1f9ce-1f3fc-200d-2640-fe0f-200d-27a1-fe0f","1f9ce-1f3fd-200d-2640-fe0f-200d-27a1-fe0f","1f9ce-1f3fe-200d-2640-fe0f-200d-27a1-fe0f","1f9ce-1f3ff-200d-2640-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["man","kneeling","man kneeling facing right"],u:"1f9ce-200d-2642-fe0f-200d-27a1-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f-200d-27a1-fe0f","1f9ce-1f3fc-200d-2642-fe0f-200d-27a1-fe0f","1f9ce-1f3fd-200d-2642-fe0f-200d-27a1-fe0f","1f9ce-1f3fe-200d-2642-fe0f-200d-27a1-fe0f","1f9ce-1f3ff-200d-2642-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["blind","accessibility","person with white cane"],u:"1f9d1-200d-1f9af",v:["1f9d1-1f3fb-200d-1f9af","1f9d1-1f3fc-200d-1f9af","1f9d1-1f3fd-200d-1f9af","1f9d1-1f3fe-200d-1f9af","1f9d1-1f3ff-200d-1f9af"],a:"12.1"},{n:["blind","accessibility","person with white cane","person with white cane facing right"],u:"1f9d1-200d-1f9af-200d-27a1-fe0f",v:["1f9d1-1f3fb-200d-1f9af-200d-27a1-fe0f","1f9d1-1f3fc-200d-1f9af-200d-27a1-fe0f","1f9d1-1f3fd-200d-1f9af-200d-27a1-fe0f","1f9d1-1f3fe-200d-1f9af-200d-27a1-fe0f","1f9d1-1f3ff-200d-1f9af-200d-27a1-fe0f"],a:"15.1"},{n:["man","blind","accessibility","man with white cane"],u:"1f468-200d-1f9af",v:["1f468-1f3fb-200d-1f9af","1f468-1f3fc-200d-1f9af","1f468-1f3fd-200d-1f9af","1f468-1f3fe-200d-1f9af","1f468-1f3ff-200d-1f9af"],a:"12"},{n:["man","blind","accessibility","man with white cane","man with white cane facing right"],u:"1f468-200d-1f9af-200d-27a1-fe0f",v:["1f468-1f3fb-200d-1f9af-200d-27a1-fe0f","1f468-1f3fc-200d-1f9af-200d-27a1-fe0f","1f468-1f3fd-200d-1f9af-200d-27a1-fe0f","1f468-1f3fe-200d-1f9af-200d-27a1-fe0f","1f468-1f3ff-200d-1f9af-200d-27a1-fe0f"],a:"15.1"},{n:["blind","woman","accessibility","woman with white cane"],u:"1f469-200d-1f9af",v:["1f469-1f3fb-200d-1f9af","1f469-1f3fc-200d-1f9af","1f469-1f3fd-200d-1f9af","1f469-1f3fe-200d-1f9af","1f469-1f3ff-200d-1f9af"],a:"12"},{n:["blind","woman","accessibility","woman with white cane","woman with white cane facing right"],u:"1f469-200d-1f9af-200d-27a1-fe0f",v:["1f469-1f3fb-200d-1f9af-200d-27a1-fe0f","1f469-1f3fc-200d-1f9af-200d-27a1-fe0f","1f469-1f3fd-200d-1f9af-200d-27a1-fe0f","1f469-1f3fe-200d-1f9af-200d-27a1-fe0f","1f469-1f3ff-200d-1f9af-200d-27a1-fe0f"],a:"15.1"},{n:["wheelchair","accessibility","person in motorized wheelchair"],u:"1f9d1-200d-1f9bc",v:["1f9d1-1f3fb-200d-1f9bc","1f9d1-1f3fc-200d-1f9bc","1f9d1-1f3fd-200d-1f9bc","1f9d1-1f3fe-200d-1f9bc","1f9d1-1f3ff-200d-1f9bc"],a:"12.1"},{n:["wheelchair","accessibility","person in motorized wheelchair","person in motorized wheelchair facing right"],u:"1f9d1-200d-1f9bc-200d-27a1-fe0f",v:["1f9d1-1f3fb-200d-1f9bc-200d-27a1-fe0f","1f9d1-1f3fc-200d-1f9bc-200d-27a1-fe0f","1f9d1-1f3fd-200d-1f9bc-200d-27a1-fe0f","1f9d1-1f3fe-200d-1f9bc-200d-27a1-fe0f","1f9d1-1f3ff-200d-1f9bc-200d-27a1-fe0f"],a:"15.1"},{n:["man","wheelchair","accessibility","man in motorized wheelchair"],u:"1f468-200d-1f9bc",v:["1f468-1f3fb-200d-1f9bc","1f468-1f3fc-200d-1f9bc","1f468-1f3fd-200d-1f9bc","1f468-1f3fe-200d-1f9bc","1f468-1f3ff-200d-1f9bc"],a:"12"},{n:["man","wheelchair","accessibility","man in motorized wheelchair","man in motorized wheelchair facing right"],u:"1f468-200d-1f9bc-200d-27a1-fe0f",v:["1f468-1f3fb-200d-1f9bc-200d-27a1-fe0f","1f468-1f3fc-200d-1f9bc-200d-27a1-fe0f","1f468-1f3fd-200d-1f9bc-200d-27a1-fe0f","1f468-1f3fe-200d-1f9bc-200d-27a1-fe0f","1f468-1f3ff-200d-1f9bc-200d-27a1-fe0f"],a:"15.1"},{n:["woman","wheelchair","accessibility","woman in motorized wheelchair"],u:"1f469-200d-1f9bc",v:["1f469-1f3fb-200d-1f9bc","1f469-1f3fc-200d-1f9bc","1f469-1f3fd-200d-1f9bc","1f469-1f3fe-200d-1f9bc","1f469-1f3ff-200d-1f9bc"],a:"12"},{n:["woman","wheelchair","accessibility","woman in motorized wheelchair","woman in motorized wheelchair facing right"],u:"1f469-200d-1f9bc-200d-27a1-fe0f",v:["1f469-1f3fb-200d-1f9bc-200d-27a1-fe0f","1f469-1f3fc-200d-1f9bc-200d-27a1-fe0f","1f469-1f3fd-200d-1f9bc-200d-27a1-fe0f","1f469-1f3fe-200d-1f9bc-200d-27a1-fe0f","1f469-1f3ff-200d-1f9bc-200d-27a1-fe0f"],a:"15.1"},{n:["wheelchair","accessibility","person in manual wheelchair"],u:"1f9d1-200d-1f9bd",v:["1f9d1-1f3fb-200d-1f9bd","1f9d1-1f3fc-200d-1f9bd","1f9d1-1f3fd-200d-1f9bd","1f9d1-1f3fe-200d-1f9bd","1f9d1-1f3ff-200d-1f9bd"],a:"12.1"},{n:["wheelchair","accessibility","person in manual wheelchair","person in manual wheelchair facing right"],u:"1f9d1-200d-1f9bd-200d-27a1-fe0f",v:["1f9d1-1f3fb-200d-1f9bd-200d-27a1-fe0f","1f9d1-1f3fc-200d-1f9bd-200d-27a1-fe0f","1f9d1-1f3fd-200d-1f9bd-200d-27a1-fe0f","1f9d1-1f3fe-200d-1f9bd-200d-27a1-fe0f","1f9d1-1f3ff-200d-1f9bd-200d-27a1-fe0f"],a:"15.1"},{n:["man","wheelchair","accessibility","man in manual wheelchair"],u:"1f468-200d-1f9bd",v:["1f468-1f3fb-200d-1f9bd","1f468-1f3fc-200d-1f9bd","1f468-1f3fd-200d-1f9bd","1f468-1f3fe-200d-1f9bd","1f468-1f3ff-200d-1f9bd"],a:"12"},{n:["man","wheelchair","accessibility","man in manual wheelchair","man in manual wheelchair facing right"],u:"1f468-200d-1f9bd-200d-27a1-fe0f",v:["1f468-1f3fb-200d-1f9bd-200d-27a1-fe0f","1f468-1f3fc-200d-1f9bd-200d-27a1-fe0f","1f468-1f3fd-200d-1f9bd-200d-27a1-fe0f","1f468-1f3fe-200d-1f9bd-200d-27a1-fe0f","1f468-1f3ff-200d-1f9bd-200d-27a1-fe0f"],a:"15.1"},{n:["woman","wheelchair","accessibility","woman in manual wheelchair"],u:"1f469-200d-1f9bd",v:["1f469-1f3fb-200d-1f9bd","1f469-1f3fc-200d-1f9bd","1f469-1f3fd-200d-1f9bd","1f469-1f3fe-200d-1f9bd","1f469-1f3ff-200d-1f9bd"],a:"12"},{n:["woman","wheelchair","accessibility","woman in manual wheelchair","woman in manual wheelchair facing right"],u:"1f469-200d-1f9bd-200d-27a1-fe0f",v:["1f469-1f3fb-200d-1f9bd-200d-27a1-fe0f","1f469-1f3fc-200d-1f9bd-200d-27a1-fe0f","1f469-1f3fd-200d-1f9bd-200d-27a1-fe0f","1f469-1f3fe-200d-1f9bd-200d-27a1-fe0f","1f469-1f3ff-200d-1f9bd-200d-27a1-fe0f"],a:"15.1"},{n:["running","marathon","person running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"],a:"0.6"},{n:["man","racing","running","marathon","man running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","racing","running","marathon","woman running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"],a:"4"},{n:["running","marathon","person running","person running facing right"],u:"1f3c3-200d-27a1-fe0f",v:["1f3c3-1f3fb-200d-27a1-fe0f","1f3c3-1f3fc-200d-27a1-fe0f","1f3c3-1f3fd-200d-27a1-fe0f","1f3c3-1f3fe-200d-27a1-fe0f","1f3c3-1f3ff-200d-27a1-fe0f"],a:"15.1"},{n:["woman","racing","running","marathon","woman running facing right"],u:"1f3c3-200d-2640-fe0f-200d-27a1-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f-200d-27a1-fe0f","1f3c3-1f3fc-200d-2640-fe0f-200d-27a1-fe0f","1f3c3-1f3fd-200d-2640-fe0f-200d-27a1-fe0f","1f3c3-1f3fe-200d-2640-fe0f-200d-27a1-fe0f","1f3c3-1f3ff-200d-2640-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["man","racing","running","marathon","man running facing right"],u:"1f3c3-200d-2642-fe0f-200d-27a1-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f-200d-27a1-fe0f","1f3c3-1f3fc-200d-2642-fe0f-200d-27a1-fe0f","1f3c3-1f3fd-200d-2642-fe0f-200d-27a1-fe0f","1f3c3-1f3fe-200d-2642-fe0f-200d-27a1-fe0f","1f3c3-1f3ff-200d-2642-fe0f-200d-27a1-fe0f"],a:"15.1"},{n:["dance","woman","dancing","woman dancing"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"],a:"0.6"},{n:["man","dance","dancing","man dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"],a:"3"},{n:["suit","person","business","person in suit levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"],a:"0.7"},{n:["dancer","partying","bunny ear","people with bunny ears"],u:"1f46f",a:"0.6"},{n:["men","dancer","partying","bunny ear","men with bunny ears"],u:"1f46f-200d-2642-fe0f",a:"4"},{n:["women","dancer","partying","bunny ear","women with bunny ears"],u:"1f46f-200d-2640-fe0f",a:"4"},{n:["sauna","steam room","person in steamy room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"],a:"5"},{n:["sauna","steam room","man in steamy room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"],a:"5"},{n:["sauna","steam room","woman in steamy room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"],a:"5"},{n:["climber","person climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"],a:"5"},{n:["climber","man climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"],a:"5"},{n:["climber","woman climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"],a:"5"},{n:["sword","fencer","fencing","person fencing"],u:"1f93a",a:"3"},{n:["horse","jockey","racing","racehorse","horse racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"],a:"1"},{n:["ski","snow","skier"],u:"26f7-fe0f",a:"0.7"},{n:["ski","snow","snowboard","snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"],a:"0.6"},{n:["ball","golf","person golfing"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"],a:"0.7"},{n:["man","golf","man golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"],a:"4"},{n:["golf","woman","woman golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"],a:"4"},{n:["surfing","person surfing"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"],a:"0.6"},{n:["man","surfing","man surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","surfing","woman surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"],a:"4"},{n:["boat","rowboat","person rowing boat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"],a:"1"},{n:["man","boat","rowboat","man rowing boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"],a:"4"},{n:["boat","woman","rowboat","woman rowing boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"],a:"4"},{n:["swim","person swimming"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"],a:"0.6"},{n:["man","swim","man swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"],a:"4"},{n:["swim","woman","woman swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"],a:"4"},{n:["ball","person bouncing ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"],a:"0.7"},{n:["man","ball","man bouncing ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"],a:"4"},{n:["ball","woman","woman bouncing ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"],a:"4"},{n:["lifter","weight","person lifting weights"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"],a:"0.7"},{n:["man","weight lifter","man lifting weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","weight lifter","woman lifting weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"],a:"4"},{n:["biking","bicycle","cyclist","person biking"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"],a:"1"},{n:["man","biking","bicycle","cyclist","man biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","biking","bicycle","cyclist","woman biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"],a:"4"},{n:["bike","bicycle","cyclist","mountain","bicyclist","person mountain biking"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"],a:"1"},{n:["man","bike","bicycle","cyclist","mountain","man mountain biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"],a:"4"},{n:["bike","woman","biking","bicycle","cyclist","mountain","woman mountain biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"],a:"4"},{n:["cartwheel","gymnastics","person cartwheeling"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"],a:"3"},{n:["man","cartwheel","gymnastics","man cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","cartwheel","gymnastics","woman cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"],a:"4"},{n:["wrestle","wrestler","people wrestling"],u:"1f93c",a:"3"},{n:["men","wrestle","men wrestling"],u:"1f93c-200d-2642-fe0f",a:"4"},{n:["women","wrestle","women wrestling"],u:"1f93c-200d-2640-fe0f",a:"4"},{n:["polo","water","person playing water polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"],a:"3"},{n:["man","water polo","man playing water polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","water polo","woman playing water polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"],a:"4"},{n:["ball","handball","person playing handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"],a:"3"},{n:["man","handball","man playing handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","handball","woman playing handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"],a:"4"},{n:["skill","juggle","balance","multitask","person juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"],a:"3"},{n:["man","juggling","multitask","man juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"],a:"4"},{n:["woman","juggling","multitask","woman juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"],a:"4"},{n:["yoga","meditation","person in lotus position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"],a:"5"},{n:["yoga","meditation","man in lotus position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"],a:"5"},{n:["yoga","meditation","woman in lotus position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"],a:"5"},{n:["bath","bathtub","person taking bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"],a:"0.6"},{n:["hotel","sleep","good night","person in bed"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"],a:"1"},{n:["hand","hold","couple","person","holding hands","people holding hands"],u:"1f9d1-200d-1f91d-200d-1f9d1",v:["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff"],a:"12"},{n:["hand","women","couple","holding hands","women holding hands"],u:"1f46d",v:["1f46d-1f3fb","1f46d-1f3fc","1f46d-1f3fd","1f46d-1f3fe","1f46d-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe"],a:"1"},{n:["man","hand","hold","woman","couple","holding hands","woman and man holding hands"],u:"1f46b",v:["1f46b-1f3fb","1f46b-1f3fc","1f46b-1f3fd","1f46b-1f3fe","1f46b-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"0.6"},{n:["man","men","twins","couple","gemini","zodiac","holding hands","men holding hands"],u:"1f46c",v:["1f46c-1f3fb","1f46c-1f3fc","1f46c-1f3fd","1f46c-1f3fe","1f46c-1f3ff","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"1"},{n:["kiss","couple"],u:"1f48f",v:["1f48f-1f3fb","1f48f-1f3fc","1f48f-1f3fd","1f48f-1f3fe","1f48f-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe"],a:"0.6"},{n:["man","kiss","woman","couple","kiss: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2"},{n:["man","kiss","couple","kiss: man, man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2"},{n:["kiss","woman","couple","kiss: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff"],a:"2"},{n:["love","couple","couple with heart"],u:"1f491",v:["1f491-1f3fb","1f491-1f3fc","1f491-1f3fd","1f491-1f3fe","1f491-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe"],a:"0.6"},{n:["man","love","woman","couple","couple with heart","couple with heart: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2"},{n:["man","love","couple","couple with heart","couple with heart: man, man"],u:"1f468-200d-2764-fe0f-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2"},{n:["love","woman","couple","couple with heart","couple with heart: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff"],a:"2"},{n:["boy","man","woman","family","family: man, woman, boy"],u:"1f468-200d-1f469-200d-1f466",a:"2"},{n:["man","girl","woman","family","family: man, woman, girl"],u:"1f468-200d-1f469-200d-1f467",a:"2"},{n:["boy","man","girl","woman","family","family: man, woman, girl, boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466",a:"2"},{n:["boy","man","woman","family","family: man, woman, boy, boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466",a:"2"},{n:["man","girl","woman","family","family: man, woman, girl, girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467",a:"2"},{n:["boy","man","family","family: man, man, boy"],u:"1f468-200d-1f468-200d-1f466",a:"2"},{n:["man","girl","family","family: man, man, girl"],u:"1f468-200d-1f468-200d-1f467",a:"2"},{n:["boy","man","girl","family","family: man, man, girl, boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466",a:"2"},{n:["boy","man","family","family: man, man, boy, boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466",a:"2"},{n:["man","girl","family","family: man, man, girl, girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467",a:"2"},{n:["boy","woman","family","family: woman, woman, boy"],u:"1f469-200d-1f469-200d-1f466",a:"2"},{n:["girl","woman","family","family: woman, woman, girl"],u:"1f469-200d-1f469-200d-1f467",a:"2"},{n:["boy","girl","woman","family","family: woman, woman, girl, boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466",a:"2"},{n:["boy","woman","family","family: woman, woman, boy, boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466",a:"2"},{n:["girl","woman","family","family: woman, woman, girl, girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467",a:"2"},{n:["boy","man","family","family: man, boy"],u:"1f468-200d-1f466",a:"4"},{n:["boy","man","family","family: man, boy, boy"],u:"1f468-200d-1f466-200d-1f466",a:"4"},{n:["man","girl","family","family: man, girl"],u:"1f468-200d-1f467",a:"4"},{n:["boy","man","girl","family","family: man, girl, boy"],u:"1f468-200d-1f467-200d-1f466",a:"4"},{n:["man","girl","family","family: man, girl, girl"],u:"1f468-200d-1f467-200d-1f467",a:"4"},{n:["boy","woman","family","family: woman, boy"],u:"1f469-200d-1f466",a:"4"},{n:["boy","woman","family","family: woman, boy, boy"],u:"1f469-200d-1f466-200d-1f466",a:"4"},{n:["girl","woman","family","family: woman, girl"],u:"1f469-200d-1f467",a:"4"},{n:["boy","girl","woman","family","family: woman, girl, boy"],u:"1f469-200d-1f467-200d-1f466",a:"4"},{n:["girl","woman","family","family: woman, girl, girl"],u:"1f469-200d-1f467-200d-1f467",a:"4"},{n:["face","head","speak","speaking","silhouette","speaking head"],u:"1f5e3-fe0f",a:"0.7"},{n:["bust","silhouette","bust in silhouette"],u:"1f464",a:"0.6"},{n:["bust","silhouette","busts in silhouette"],u:"1f465",a:"1"},{n:["hug","hello","thanks","goodbye","people hugging"],u:"1fac2",a:"13"},{n:["family"],u:"1f46a",a:"0.6"},{n:["family: adult, adult, child"],u:"1f9d1-200d-1f9d1-200d-1f9d2",a:"15.1"},{n:["family: adult, adult, child, child"],u:"1f9d1-200d-1f9d1-200d-1f9d2-200d-1f9d2",a:"15.1"},{n:["family: adult, child"],u:"1f9d1-200d-1f9d2",a:"15.1"},{n:["family: adult, child, child"],u:"1f9d1-200d-1f9d2-200d-1f9d2",a:"15.1"},{n:["print","clothing","footprint","footprints"],u:"1f463",a:"0.6"}],animals_nature:[{n:["face","monkey","monkey face"],u:"1f435",a:"0.6"},{n:["monkey"],u:"1f412",a:"0.6"},{n:["gorilla"],u:"1f98d",a:"3"},{n:["ape","orangutan"],u:"1f9a7",a:"12"},{n:["dog","pet","face","dog face"],u:"1f436",a:"0.6"},{n:["dog","pet"],u:"1f415",a:"0.7"},{n:["blind","guide","guide dog","accessibility"],u:"1f9ae",a:"12"},{n:["dog","service","assistance","service dog","accessibility"],u:"1f415-200d-1f9ba",a:"12"},{n:["dog","poodle"],u:"1f429",a:"0.6"},{n:["wolf","face"],u:"1f43a",a:"0.6"},{n:["fox","face"],u:"1f98a",a:"3"},{n:["sly","raccoon","curious"],u:"1f99d",a:"11"},{n:["cat","pet","face","cat face"],u:"1f431",a:"0.6"},{n:["cat","pet"],u:"1f408",a:"0.7"},{n:["cat","black","unlucky","black cat"],u:"1f408-200d-2b1b",a:"13"},{n:["leo","lion","face","zodiac"],u:"1f981",a:"1"},{n:["face","tiger","tiger face"],u:"1f42f",a:"0.6"},{n:["tiger"],u:"1f405",a:"1"},{n:["leopard"],u:"1f406",a:"1"},{n:["face","horse","horse face"],u:"1f434",a:"0.6"},{n:["elk","moose","animal","mammal","antlers"],u:"1face",a:"15"},{n:["ass","mule","burro","donkey","animal","mammal","stubborn"],u:"1facf",a:"15"},{n:["horse","racing","racehorse","equestrian"],u:"1f40e",a:"0.6"},{n:["face","unicorn"],u:"1f984",a:"1"},{n:["zebra","stripe"],u:"1f993",a:"5"},{n:["deer"],u:"1f98c",a:"3"},{n:["herd","bison","wisent","buffalo"],u:"1f9ac",a:"13"},{n:["cow","face","cow face"],u:"1f42e",a:"0.6"},{n:["ox","bull","taurus","zodiac"],u:"1f402",a:"1"},{n:["water","buffalo","water buffalo"],u:"1f403",a:"1"},{n:["cow"],u:"1f404",a:"1"},{n:["pig","face","pig face"],u:"1f437",a:"0.6"},{n:["pig","sow"],u:"1f416",a:"1"},{n:["pig","boar"],u:"1f417",a:"0.6"},{n:["pig","face","nose","pig nose"],u:"1f43d",a:"0.6"},{n:["ram","male","aries","sheep","zodiac"],u:"1f40f",a:"1"},{n:["ewe","sheep","female"],u:"1f411",a:"0.6"},{n:["goat","zodiac","capricorn"],u:"1f410",a:"1"},{n:["hump","camel","dromedary"],u:"1f42a",a:"1"},{n:["hump","camel","bactrian","two hump camel"],u:"1f42b",a:"0.6"},{n:["wool","llama","alpaca","vicuña","guanaco"],u:"1f999",a:"11"},{n:["spots","giraffe"],u:"1f992",a:"5"},{n:["elephant"],u:"1f418",a:"0.6"},{n:["tusk","large","woolly","mammoth","extinction"],u:"1f9a3",a:"13"},{n:["rhinoceros"],u:"1f98f",a:"3"},{n:["hippo","hippopotamus"],u:"1f99b",a:"11"},{n:["face","mouse","mouse face"],u:"1f42d",a:"0.6"},{n:["mouse"],u:"1f401",a:"1"},{n:["rat"],u:"1f400",a:"1"},{n:["pet","face","hamster"],u:"1f439",a:"0.6"},{n:["pet","face","bunny","rabbit","rabbit face"],u:"1f430",a:"0.6"},{n:["pet","bunny","rabbit"],u:"1f407",a:"1"},{n:["chipmunk","squirrel"],u:"1f43f-fe0f",a:"0.7"},{n:["dam","beaver"],u:"1f9ab",a:"13"},{n:["spiny","hedgehog"],u:"1f994",a:"5"},{n:["bat","vampire"],u:"1f987",a:"3"},{n:["bear","face"],u:"1f43b",a:"0.6"},{n:["bear","white","arctic","polar bear"],u:"1f43b-200d-2744-fe0f",a:"13"},{n:["face","koala","marsupial"],u:"1f428",a:"0.6"},{n:["face","panda"],u:"1f43c",a:"0.6"},{n:["lazy","slow","sloth"],u:"1f9a5",a:"12"},{n:["otter","fishing","playful"],u:"1f9a6",a:"12"},{n:["skunk","stink"],u:"1f9a8",a:"12"},{n:["joey","jump","kangaroo","marsupial"],u:"1f998",a:"11"},{n:["badger","pester","honey badger"],u:"1f9a1",a:"11"},{n:["paw","feet","print","paw prints"],u:"1f43e",a:"0.6"},{n:["bird","turkey"],u:"1f983",a:"1"},{n:["bird","chicken"],u:"1f414",a:"0.6"},{n:["bird","rooster"],u:"1f413",a:"1"},{n:["baby","bird","chick","hatching","hatching chick"],u:"1f423",a:"0.6"},{n:["baby","bird","chick","baby chick"],u:"1f424",a:"0.6"},{n:["baby","bird","chick","front facing baby chick"],u:"1f425",a:"0.6"},{n:["bird"],u:"1f426",a:"0.6"},{n:["bird","penguin"],u:"1f427",a:"0.6"},{n:["fly","dove","bird","peace"],u:"1f54a-fe0f",a:"0.7"},{n:["bird","eagle"],u:"1f985",a:"3"},{n:["duck","bird"],u:"1f986",a:"3"},{n:["swan","bird","cygnet","ugly duckling"],u:"1f9a2",a:"11"},{n:["owl","bird","wise"],u:"1f989",a:"3"},{n:["dodo","large","mauritius","extinction"],u:"1f9a4",a:"13"},{n:["bird","light","flight","feather","plumage"],u:"1fab6",a:"13"},{n:["flamingo","tropical","flamboyant"],u:"1f9a9",a:"12"},{n:["bird","proud","peahen","peacock","ostentatious"],u:"1f99a",a:"11"},{n:["bird","talk","parrot","pirate"],u:"1f99c",a:"11"},{n:["wing","bird","flying","angelic","aviation","mythology"],u:"1fabd",a:"15"},{n:["bird","crow","rook","black","raven","black bird"],u:"1f426-200d-2b1b",a:"15"},{n:["bird","fowl","honk","goose","silly"],u:"1fabf",a:"15"},{n:["phoenix","fantasy","rebirth","firebird","reincarnation"],u:"1f426-200d-1f525",a:"15.1"},{n:["frog","face"],u:"1f438",a:"0.6"},{n:["crocodile"],u:"1f40a",a:"1"},{n:["turtle","terrapin","tortoise"],u:"1f422",a:"0.6"},{n:["lizard","reptile"],u:"1f98e",a:"3"},{n:["snake","bearer","zodiac","serpent","ophiuchus"],u:"1f40d",a:"0.6"},{n:["face","dragon","fairy tale","dragon face"],u:"1f432",a:"0.6"},{n:["dragon","fairy tale"],u:"1f409",a:"1"},{n:["sauropod","diplodocus","brontosaurus","brachiosaurus"],u:"1f995",a:"5"},{n:["T Rex","t rex","tyrannosaurus rex"],u:"1f996",a:"5"},{n:["face","whale","spouting","spouting whale"],u:"1f433",a:"0.6"},{n:["whale"],u:"1f40b",a:"1"},{n:["dolphin","flipper"],u:"1f42c",a:"0.6"},{n:["seal","sea lion"],u:"1f9ad",a:"13"},{n:["fish","pisces","zodiac"],u:"1f41f",a:"0.6"},{n:["fish","tropical","tropical fish"],u:"1f420",a:"0.6"},{n:["fish","blowfish"],u:"1f421",a:"0.6"},{n:["fish","shark"],u:"1f988",a:"3"},{n:["octopus"],u:"1f419",a:"0.6"},{n:["shell","spiral","spiral shell"],u:"1f41a",a:"0.6"},{n:["reef","coral","ocean"],u:"1fab8",a:"14"},{n:["burn","ouch","jelly","marine","stinger","jellyfish","invertebrate"],u:"1fabc",a:"15"},{n:["snail"],u:"1f40c",a:"0.6"},{n:["insect","pretty","butterfly"],u:"1f98b",a:"3"},{n:["bug","insect"],u:"1f41b",a:"0.6"},{n:["ant","insect"],u:"1f41c",a:"0.6"},{n:["bee","insect","honeybee"],u:"1f41d",a:"0.6"},{n:["bug","beetle","insect"],u:"1fab2",a:"13"},{n:["beetle","insect","ladybug","ladybird","lady beetle"],u:"1f41e",a:"0.6"},{n:["cricket","grasshopper"],u:"1f997",a:"5"},{n:["pest","roach","insect","cockroach"],u:"1fab3",a:"13"},{n:["spider","insect"],u:"1f577-fe0f",a:"0.7"},{n:["web","spider","spider web"],u:"1f578-fe0f",a:"0.7"},{n:["zodiac","scorpio","scorpion"],u:"1f982",a:"1"},{n:["pest","fever","virus","disease","malaria","mosquito"],u:"1f99f",a:"11"},{n:["fly","pest","maggot","disease","rotting"],u:"1fab0",a:"13"},{n:["worm","annelid","parasite","earthworm"],u:"1fab1",a:"13"},{n:["virus","amoeba","microbe","bacteria"],u:"1f9a0",a:"11"},{n:["flower","bouquet"],u:"1f490",a:"0.6"},{n:["cherry","flower","blossom","cherry blossom"],u:"1f338",a:"0.6"},{n:["flower","white flower"],u:"1f4ae",a:"0.6"},{n:["lotus","flower","purity","buddhism","hinduism"],u:"1fab7",a:"14"},{n:["plant","rosette"],u:"1f3f5-fe0f",a:"0.7"},{n:["rose","flower"],u:"1f339",a:"0.6"},{n:["flower","wilted","wilted flower"],u:"1f940",a:"3"},{n:["flower","hibiscus"],u:"1f33a",a:"0.6"},{n:["sun","flower","sunflower"],u:"1f33b",a:"0.6"},{n:["flower","blossom"],u:"1f33c",a:"0.6"},{n:["tulip","flower"],u:"1f337",a:"0.6"},{n:["flower","lupine","hyacinth","lavender","bluebonnet","snapdragon"],u:"1fabb",a:"15"},{n:["young","seedling"],u:"1f331",a:"0.6"},{n:["grow","house","plant","boring","useless","nurturing","potted plant"],u:"1fab4",a:"13"},{n:["tree","evergreen tree"],u:"1f332",a:"1"},{n:["tree","shedding","deciduous","deciduous tree"],u:"1f333",a:"1"},{n:["palm","tree","palm tree"],u:"1f334",a:"0.6"},{n:["plant","cactus"],u:"1f335",a:"0.6"},{n:["ear","rice","grain","sheaf of rice"],u:"1f33e",a:"0.6"},{n:["herb","leaf"],u:"1f33f",a:"0.6"},{n:["plant","shamrock"],u:"2618-fe0f",a:"1"},{n:["4","four","leaf","clover","four leaf clover"],u:"1f340",a:"0.6"},{n:["leaf","maple","falling","maple leaf"],u:"1f341",a:"0.6"},{n:["leaf","falling","fallen leaf"],u:"1f342",a:"0.6"},{n:["blow","leaf","wind","flutter","leaf fluttering in wind"],u:"1f343",a:"0.6"},{n:["nesting","empty nest"],u:"1fab9",a:"14"},{n:["nesting","nest with eggs"],u:"1faba",a:"14"},{n:["mushroom","toadstool"],u:"1f344",a:"0.6"}],food_drink:[{n:["fruit","grape","grapes"],u:"1f347",a:"0.6"},{n:["melon","fruit"],u:"1f348",a:"0.6"},{n:["fruit","watermelon"],u:"1f349",a:"0.6"},{n:["fruit","orange","tangerine"],u:"1f34a",a:"0.6"},{n:["lemon","fruit","citrus"],u:"1f34b",a:"1"},{n:["lime","fruit","citrus","tropical"],u:"1f34b-200d-1f7e9",a:"15.1"},{n:["fruit","banana"],u:"1f34c",a:"0.6"},{n:["fruit","pineapple"],u:"1f34d",a:"0.6"},{n:["mango","fruit","tropical"],u:"1f96d",a:"11"},{n:["red","apple","fruit","red apple"],u:"1f34e",a:"0.6"},{n:["apple","fruit","green","green apple"],u:"1f34f",a:"0.6"},{n:["pear","fruit"],u:"1f350",a:"1"},{n:["peach","fruit"],u:"1f351",a:"0.6"},{n:["red","fruit","cherry","berries","cherries"],u:"1f352",a:"0.6"},{n:["berry","fruit","strawberry"],u:"1f353",a:"0.6"},{n:["blue","berry","bilberry","blueberry","blueberries"],u:"1fad0",a:"13"},{n:["food","kiwi","fruit","kiwi fruit"],u:"1f95d",a:"3"},{n:["fruit","tomato","vegetable"],u:"1f345",a:"0.6"},{n:["food","olive"],u:"1fad2",a:"13"},{n:["palm","coconut","piña colada"],u:"1f965",a:"5"},{n:["food","fruit","avocado"],u:"1f951",a:"3"},{n:["eggplant","aubergine","vegetable"],u:"1f346",a:"0.6"},{n:["food","potato","vegetable"],u:"1f954",a:"3"},{n:["food","carrot","vegetable"],u:"1f955",a:"3"},{n:["ear","corn","maze","maize","ear of corn"],u:"1f33d",a:"0.6"},{n:["hot","pepper","hot pepper"],u:"1f336-fe0f",a:"0.7"},{n:["pepper","capsicum","vegetable","bell pepper"],u:"1fad1",a:"13"},{n:["food","pickle","cucumber","vegetable"],u:"1f952",a:"3"},{n:["kale","cabbage","lettuce","bok choy","leafy green"],u:"1f96c",a:"11"},{n:["broccoli","wild cabbage"],u:"1f966",a:"5"},{n:["garlic","flavoring"],u:"1f9c4",a:"12"},{n:["onion","flavoring"],u:"1f9c5",a:"12"},{n:["nut","food","peanut","peanuts","vegetable"],u:"1f95c",a:"3"},{n:["food","beans","kidney","legume"],u:"1fad8",a:"14"},{n:["plant","chestnut"],u:"1f330",a:"0.6"},{n:["beer","root","spice","ginger root"],u:"1fada",a:"15"},{n:["pea","pod","beans","legume","pea pod","edamame","vegetable"],u:"1fadb",a:"15"},{n:["food","fungus","nature","vegetable","brown mushroom"],u:"1f344-200d-1f7eb",a:"15.1"},{n:["loaf","bread"],u:"1f35e",a:"0.6"},{n:["food","roll","bread","french","croissant","breakfast"],u:"1f950",a:"3"},{n:["food","bread","french","baguette","baguette bread"],u:"1f956",a:"3"},{n:["naan","pita","arepa","lavash","flatbread"],u:"1fad3",a:"13"},{n:["pretzel","twisted"],u:"1f968",a:"5"},{n:["bagel","bakery","schmear","breakfast"],u:"1f96f",a:"11"},{n:["food","crêpe","hotcake","pancake","pancakes","breakfast"],u:"1f95e",a:"3"},{n:["iron","waffle","breakfast","indecisive"],u:"1f9c7",a:"12"},{n:["cheese","cheese wedge"],u:"1f9c0",a:"1"},{n:["bone","meat","meat on bone"],u:"1f356",a:"0.6"},{n:["leg","bone","chicken","poultry","drumstick","poultry leg"],u:"1f357",a:"0.6"},{n:["chop","steak","lambchop","porkchop","cut of meat"],u:"1f969",a:"5"},{n:["food","meat","bacon","breakfast"],u:"1f953",a:"3"},{n:["burger","hamburger"],u:"1f354",a:"0.6"},{n:["fries","french","french fries"],u:"1f35f",a:"0.6"},{n:["pizza","slice","cheese"],u:"1f355",a:"0.6"},{n:["hotdog","hot dog","sausage","frankfurter"],u:"1f32d",a:"1"},{n:["bread","sandwich"],u:"1f96a",a:"5"},{n:["taco","mexican"],u:"1f32e",a:"1"},{n:["wrap","burrito","mexican"],u:"1f32f",a:"1"},{n:["tamale","mexican","wrapped"],u:"1fad4",a:"13"},{n:["food","gyro","kebab","falafel","stuffed","flatbread","stuffed flatbread"],u:"1f959",a:"3"},{n:["falafel","chickpea","meatball"],u:"1f9c6",a:"12"},{n:["egg","food","breakfast"],u:"1f95a",a:"3"},{n:["egg","pan","frying","cooking","breakfast"],u:"1f373",a:"0.6"},{n:["pan","food","paella","shallow","casserole","shallow pan of food"],u:"1f958",a:"3"},{n:["pot","stew","pot of food"],u:"1f372",a:"0.6"},{n:["pot","swiss","fondue","cheese","melted","chocolate"],u:"1fad5",a:"13"},{n:["cereal","congee","breakfast","bowl with spoon"],u:"1f963",a:"5"},{n:["food","green","salad","green salad"],u:"1f957",a:"3"},{n:["popcorn"],u:"1f37f",a:"1"},{n:["dairy","butter"],u:"1f9c8",a:"12"},{n:["salt","shaker","condiment"],u:"1f9c2",a:"11"},{n:["can","canned food"],u:"1f96b",a:"5"},{n:["box","bento","bento box"],u:"1f371",a:"0.6"},{n:["rice","cracker","rice cracker"],u:"1f358",a:"0.6"},{n:["ball","rice","japanese","rice ball"],u:"1f359",a:"0.6"},{n:["rice","cooked","cooked rice"],u:"1f35a",a:"0.6"},{n:["rice","curry","curry rice"],u:"1f35b",a:"0.6"},{n:["bowl","ramen","noodle","steaming","steaming bowl"],u:"1f35c",a:"0.6"},{n:["pasta","spaghetti"],u:"1f35d",a:"0.6"},{n:["sweet","potato","roasted","roasted sweet potato"],u:"1f360",a:"0.6"},{n:["oden","kebab","stick","skewer","seafood"],u:"1f362",a:"0.6"},{n:["sushi"],u:"1f363",a:"0.6"},{n:["fried","prawn","shrimp","tempura","fried shrimp"],u:"1f364",a:"0.6"},{n:["cake","fish","swirl","pastry","fish cake with swirl"],u:"1f365",a:"0.6"},{n:["autumn","yuèbǐng","festival","moon cake"],u:"1f96e",a:"11"},{n:["dango","stick","sweet","skewer","dessert","japanese"],u:"1f361",a:"0.6"},{n:["gyōza","jiaozi","pierogi","dumpling","empanada","potsticker"],u:"1f95f",a:"5"},{n:["prophecy","fortune cookie"],u:"1f960",a:"5"},{n:["takeout box","oyster pail"],u:"1f961",a:"5"},{n:["crab","cancer","zodiac"],u:"1f980",a:"1"},{n:["claws","bisque","lobster","seafood"],u:"1f99e",a:"11"},{n:["food","small","shrimp","shellfish"],u:"1f990",a:"3"},{n:["food","squid","molusc"],u:"1f991",a:"3"},{n:["pearl","oyster","diving"],u:"1f9aa",a:"12"},{n:["ice","soft","cream","sweet","dessert","icecream","soft ice cream"],u:"1f366",a:"0.6"},{n:["ice","sweet","shaved","dessert","shaved ice"],u:"1f367",a:"0.6"},{n:["ice","cream","sweet","dessert","ice cream"],u:"1f368",a:"0.6"},{n:["donut","sweet","dessert","doughnut","breakfast"],u:"1f369",a:"0.6"},{n:["sweet","cookie","dessert"],u:"1f36a",a:"0.6"},{n:["cake","sweet","pastry","dessert","birthday","celebration","birthday cake"],u:"1f382",a:"0.6"},{n:["cake","slice","sweet","pastry","dessert","shortcake"],u:"1f370",a:"0.6"},{n:["sweet","bakery","cupcake"],u:"1f9c1",a:"11"},{n:["pie","pastry","filling"],u:"1f967",a:"5"},{n:["bar","sweet","dessert","chocolate","chocolate bar"],u:"1f36b",a:"0.6"},{n:["candy","sweet","dessert"],u:"1f36c",a:"0.6"},{n:["candy","sweet","dessert","lollipop"],u:"1f36d",a:"0.6"},{n:["sweet","custard","dessert","pudding"],u:"1f36e",a:"0.6"},{n:["pot","honey","sweet","honeypot","honey pot"],u:"1f36f",a:"0.6"},{n:["baby","milk","drink","bottle","baby bottle"],u:"1f37c",a:"1"},{n:["milk","drink","glass","glass of milk"],u:"1f95b",a:"3"},{n:["hot","tea","drink","coffee","beverage","steaming","hot beverage"],u:"2615",a:"0.6"},{n:["pot","tea","drink","teapot"],u:"1fad6",a:"13"},{n:["cup","tea","drink","teacup","beverage","teacup without handle"],u:"1f375",a:"0.6"},{n:["bar","cup","sake","drink","bottle","beverage"],u:"1f376",a:"0.6"},{n:["bar","cork","drink","bottle","popping","bottle with popping cork"],u:"1f37e",a:"1"},{n:["bar","wine","drink","glass","beverage","wine glass"],u:"1f377",a:"0.6"},{n:["bar","drink","glass","cocktail","cocktail glass"],u:"1f378",a:"0.6"},{n:["bar","drink","tropical","tropical drink"],u:"1f379",a:"0.6"},{n:["bar","mug","beer","drink","beer mug"],u:"1f37a",a:"0.6"},{n:["bar","mug","beer","clink","drink","clinking beer mugs"],u:"1f37b",a:"0.6"},{n:["clink","drink","glass","celebrate","clinking glasses"],u:"1f942",a:"3"},{n:["shot","glass","liquor","whisky","tumbler","tumbler glass"],u:"1f943",a:"3"},{n:["drink","empty","glass","spill","pouring liquid"],u:"1fad7",a:"14"},{n:["soda","juice","cup with straw"],u:"1f964",a:"5"},{n:["tea","milk","pearl","bubble","bubble tea"],u:"1f9cb",a:"13"},{n:["box","juice","straw","sweet","beverage","beverage box"],u:"1f9c3",a:"12"},{n:["mate","drink"],u:"1f9c9",a:"12"},{n:["ice","cold","iceberg","ice cube"],u:"1f9ca",a:"12"},{n:["hashi","chopsticks"],u:"1f962",a:"5"},{n:["fork","knife","plate","cooking","fork and knife with plate"],u:"1f37d-fe0f",a:"0.7"},{n:["fork","knife","cooking","cutlery","fork and knife"],u:"1f374",a:"0.6"},{n:["spoon","tableware"],u:"1f944",a:"3"},{n:["tool","hocho","knife","weapon","cooking","kitchen knife"],u:"1f52a",a:"0.6"},{n:["jar","empty","sauce","store","condiment","container"],u:"1fad9",a:"14"},{n:["jug","drink","zodiac","amphora","cooking","aquarius"],u:"1f3fa",a:"1"}],travel_places:[{n:["earth","globe","world","africa","europe","globe showing Europe Africa","globe showing europe africa"],u:"1f30d",a:"0.7"},{n:["earth","globe","world","americas","globe showing Americas","globe showing americas"],u:"1f30e",a:"0.7"},{n:["asia","earth","globe","world","australia","globe showing Asia Australia","globe showing asia australia"],u:"1f30f",a:"0.6"},{n:["earth","globe","world","meridians","globe with meridians"],u:"1f310",a:"1"},{n:["map","world","world map"],u:"1f5fa-fe0f",a:"0.7"},{n:["map","japan","map of Japan","map of japan"],u:"1f5fe",a:"0.6"},{n:["compass","magnetic","navigation","orienteering"],u:"1f9ed",a:"11"},{n:["cold","snow","mountain","snow capped mountain"],u:"1f3d4-fe0f",a:"0.7"},{n:["mountain"],u:"26f0-fe0f",a:"0.7"},{n:["volcano","eruption","mountain"],u:"1f30b",a:"0.6"},{n:["fuji","mountain","mount fuji"],u:"1f5fb",a:"0.6"},{n:["camping"],u:"1f3d5-fe0f",a:"0.7"},{n:["beach","umbrella","beach with umbrella"],u:"1f3d6-fe0f",a:"0.7"},{n:["desert"],u:"1f3dc-fe0f",a:"0.7"},{n:["desert","island","desert island"],u:"1f3dd-fe0f",a:"0.7"},{n:["park","national park"],u:"1f3de-fe0f",a:"0.7"},{n:["stadium"],u:"1f3df-fe0f",a:"0.7"},{n:["classical","classical building"],u:"1f3db-fe0f",a:"0.7"},{n:["construction","building construction"],u:"1f3d7-fe0f",a:"0.7"},{n:["clay","wall","brick","bricks","mortar"],u:"1f9f1",a:"11"},{n:["rock","heavy","solid","stone","boulder"],u:"1faa8",a:"13"},{n:["log","wood","lumber","timber"],u:"1fab5",a:"13"},{n:["hut","yurt","house","roundhouse"],u:"1f6d6",a:"13"},{n:["houses"],u:"1f3d8-fe0f",a:"0.7"},{n:["house","derelict","derelict house"],u:"1f3da-fe0f",a:"0.7"},{n:["home","house"],u:"1f3e0",a:"0.6"},{n:["home","house","garden","house with garden"],u:"1f3e1",a:"0.6"},{n:["building","office building"],u:"1f3e2",a:"0.6"},{n:["post","japanese","Japanese post office","japanese post office"],u:"1f3e3",a:"0.6"},{n:["post","european","post office"],u:"1f3e4",a:"1"},{n:["doctor","hospital","medicine"],u:"1f3e5",a:"0.6"},{n:["bank","building"],u:"1f3e6",a:"0.6"},{n:["hotel","building"],u:"1f3e8",a:"0.6"},{n:["love","hotel","love hotel"],u:"1f3e9",a:"0.6"},{n:["store","convenience","convenience store"],u:"1f3ea",a:"0.6"},{n:["school","building"],u:"1f3eb",a:"0.6"},{n:["store","department","department store"],u:"1f3ec",a:"0.6"},{n:["factory","building"],u:"1f3ed",a:"0.6"},{n:["castle","japanese","Japanese castle"],u:"1f3ef",a:"0.6"},{n:["castle","european"],u:"1f3f0",a:"0.6"},{n:["chapel","wedding","romance"],u:"1f492",a:"0.6"},{n:["tokyo","tower","Tokyo tower"],u:"1f5fc",a:"0.6"},{n:["statue","liberty","Statue of Liberty","statue of liberty"],u:"1f5fd",a:"0.6"},{n:["cross","church","religion","christian"],u:"26ea",a:"0.6"},{n:["islam","mosque","muslim","religion"],u:"1f54c",a:"1"},{n:["hindu","temple","hindu temple"],u:"1f6d5",a:"12"},{n:["jew","jewish","temple","religion","synagogue"],u:"1f54d",a:"1"},{n:["shinto","shrine","religion","shinto shrine"],u:"26e9-fe0f",a:"0.7"},{n:["kaaba","islam","muslim","religion"],u:"1f54b",a:"1"},{n:["fountain"],u:"26f2",a:"0.6"},{n:["tent","camping"],u:"26fa",a:"0.6"},{n:["fog","foggy"],u:"1f301",a:"0.6"},{n:["star","night","night with stars"],u:"1f303",a:"0.6"},{n:["city","cityscape"],u:"1f3d9-fe0f",a:"0.7"},{n:["sun","morning","sunrise","mountain","sunrise over mountains"],u:"1f304",a:"0.6"},{n:["sun","sunrise","morning"],u:"1f305",a:"0.6"},{n:["city","dusk","sunset","evening","landscape","cityscape at dusk"],u:"1f306",a:"0.6"},{n:["sun","dusk","sunset"],u:"1f307",a:"0.6"},{n:["night","bridge","bridge at night"],u:"1f309",a:"0.6"},{n:["hot","springs","steaming","hotsprings","hot springs"],u:"2668-fe0f",a:"0.6"},{n:["horse","carousel","carousel horse"],u:"1f3a0",a:"0.6"},{n:["play","theme park","amusement park","playground slide"],u:"1f6dd",a:"14"},{n:["wheel","ferris","theme park","ferris wheel","amusement park"],u:"1f3a1",a:"0.6"},{n:["roller","coaster","theme park","roller coaster","amusement park"],u:"1f3a2",a:"0.6"},{n:["pole","barber","haircut","barber pole"],u:"1f488",a:"0.6"},{n:["tent","circus","circus tent"],u:"1f3aa",a:"0.6"},{n:["steam","train","engine","railway","locomotive"],u:"1f682",a:"1"},{n:["car","tram","train","railway","electric","trolleybus","railway car"],u:"1f683",a:"0.6"},{n:["speed","train","railway","shinkansen","high speed train"],u:"1f684",a:"0.6"},{n:["speed","train","bullet","railway","shinkansen","bullet train"],u:"1f685",a:"0.6"},{n:["train","railway"],u:"1f686",a:"1"},{n:["metro","subway"],u:"1f687",a:"0.6"},{n:["railway","light rail"],u:"1f688",a:"1"},{n:["train","station","railway"],u:"1f689",a:"0.6"},{n:["tram","trolleybus"],u:"1f68a",a:"1"},{n:["vehicle","monorail"],u:"1f69d",a:"1"},{n:["car","railway","mountain","mountain railway"],u:"1f69e",a:"1"},{n:["car","tram","tram car","trolleybus"],u:"1f68b",a:"1"},{n:["bus","vehicle"],u:"1f68c",a:"0.6"},{n:["bus","oncoming","oncoming bus"],u:"1f68d",a:"0.7"},{n:["bus","tram","trolley","trolleybus"],u:"1f68e",a:"1"},{n:["bus","minibus"],u:"1f690",a:"1"},{n:["vehicle","ambulance"],u:"1f691",a:"0.6"},{n:["fire","truck","engine","fire engine"],u:"1f692",a:"0.6"},{n:["car","patrol","police","police car"],u:"1f693",a:"0.6"},{n:["car","police","oncoming","oncoming police car"],u:"1f694",a:"0.7"},{n:["taxi","vehicle"],u:"1f695",a:"0.6"},{n:["taxi","oncoming","oncoming taxi"],u:"1f696",a:"1"},{n:["car","automobile"],u:"1f697",a:"0.6"},{n:["car","oncoming","automobile","oncoming automobile"],u:"1f698",a:"0.7"},{n:["recreational","sport utility","sport utility vehicle"],u:"1f699",a:"0.6"},{n:["truck","pickup","pick up","pickup truck"],u:"1f6fb",a:"13"},{n:["truck","delivery","delivery truck"],u:"1f69a",a:"0.6"},{n:["semi","lorry","truck","articulated lorry"],u:"1f69b",a:"1"},{n:["tractor","vehicle"],u:"1f69c",a:"1"},{n:["car","racing","racing car"],u:"1f3ce-fe0f",a:"0.7"},{n:["racing","motorcycle"],u:"1f3cd-fe0f",a:"0.7"},{n:["motor","scooter","motor scooter"],u:"1f6f5",a:"3"},{n:["accessibility","manual wheelchair"],u:"1f9bd",a:"12"},{n:["accessibility","motorized wheelchair"],u:"1f9bc",a:"12"},{n:["tuk tuk","auto rickshaw"],u:"1f6fa",a:"12"},{n:["bike","bicycle"],u:"1f6b2",a:"0.6"},{n:["kick","scooter","kick scooter"],u:"1f6f4",a:"3"},{n:["board","skateboard"],u:"1f6f9",a:"11"},{n:["skate","roller","roller skate"],u:"1f6fc",a:"13"},{n:["bus","stop","bus stop"],u:"1f68f",a:"0.6"},{n:["road","highway","motorway"],u:"1f6e3-fe0f",a:"0.7"},{n:["train","railway","railway track"],u:"1f6e4-fe0f",a:"0.7"},{n:["oil","drum","oil drum"],u:"1f6e2-fe0f",a:"0.7"},{n:["gas","fuel","pump","diesel","station","fuelpump","fuel pump"],u:"26fd",a:"0.6"},{n:["tire","turn","wheel","circle"],u:"1f6de",a:"14"},{n:["car","light","beacon","police","revolving","police car light"],u:"1f6a8",a:"0.6"},{n:["light","signal","traffic","horizontal traffic light"],u:"1f6a5",a:"0.6"},{n:["light","signal","traffic","vertical traffic light"],u:"1f6a6",a:"1"},{n:["sign","stop","stop sign","octagonal"],u:"1f6d1",a:"3"},{n:["barrier","construction"],u:"1f6a7",a:"0.6"},{n:["ship","tool","anchor"],u:"2693",a:"0.6"},{n:["float","rescue","safety","ring buoy","life saver","life preserver"],u:"1f6df",a:"14"},{n:["sea","boat","yacht","resort","sailboat"],u:"26f5",a:"0.6"},{n:["boat","canoe"],u:"1f6f6",a:"3"},{n:["boat","speedboat"],u:"1f6a4",a:"0.6"},{n:["ship","passenger","passenger ship"],u:"1f6f3-fe0f",a:"0.7"},{n:["boat","ferry","passenger"],u:"26f4-fe0f",a:"0.7"},{n:["boat","motorboat","motor boat"],u:"1f6e5-fe0f",a:"0.7"},{n:["ship","boat","passenger"],u:"1f6a2",a:"0.6"},{n:["airplane","aeroplane"],u:"2708-fe0f",a:"0.6"},{n:["airplane","aeroplane","small airplane"],u:"1f6e9-fe0f",a:"0.7"},{n:["airplane","check in","aeroplane","departure","departures","airplane departure"],u:"1f6eb",a:"1"},{n:["landing","airplane","arrivals","arriving","aeroplane","airplane arrival"],u:"1f6ec",a:"1"},{n:["skydive","parasail","parachute","hang glide"],u:"1fa82",a:"12"},{n:["seat","chair"],u:"1f4ba",a:"0.6"},{n:["vehicle","helicopter"],u:"1f681",a:"1"},{n:["railway","suspension","suspension railway"],u:"1f69f",a:"1"},{n:["cable","gondola","mountain","mountain cableway"],u:"1f6a0",a:"1"},{n:["car","cable","aerial","gondola","tramway","aerial tramway"],u:"1f6a1",a:"1"},{n:["space","satellite"],u:"1f6f0-fe0f",a:"0.7"},{n:["space","rocket"],u:"1f680",a:"0.6"},{n:["ufo","flying saucer"],u:"1f6f8",a:"5"},{n:["bell","hotel","bellhop","bellhop bell"],u:"1f6ce-fe0f",a:"0.7"},{n:["travel","luggage","packing"],u:"1f9f3",a:"11"},{n:["sand","timer","hourglass done"],u:"231b",a:"0.6"},{n:["sand","timer","hourglass","hourglass not done"],u:"23f3",a:"0.6"},{n:["watch","clock"],u:"231a",a:"0.6"},{n:["alarm","clock","alarm clock"],u:"23f0",a:"0.6"},{n:["clock","stopwatch"],u:"23f1-fe0f",a:"1"},{n:["clock","timer","timer clock"],u:"23f2-fe0f",a:"1"},{n:["clock","mantelpiece clock"],u:"1f570-fe0f",a:"0.7"},{n:["00","12","12:00","clock","twelve","o’clock","twelve o’clock"],u:"1f55b",a:"0.6"},{n:["12","12:30","clock","thirty","twelve","twelve thirty"],u:"1f567",a:"0.7"},{n:["1","00","one","1:00","clock","o’clock","one o’clock"],u:"1f550",a:"0.6"},{n:["1","one","1:30","clock","thirty","one thirty"],u:"1f55c",a:"0.7"},{n:["2","00","two","2:00","clock","o’clock","two o’clock"],u:"1f551",a:"0.6"},{n:["2","two","2:30","clock","thirty","two thirty"],u:"1f55d",a:"0.7"},{n:["3","00","3:00","clock","three","o’clock","three o’clock"],u:"1f552",a:"0.6"},{n:["3","3:30","clock","three","thirty","three thirty"],u:"1f55e",a:"0.7"},{n:["4","00","4:00","four","clock","o’clock","four o’clock"],u:"1f553",a:"0.6"},{n:["4","4:30","four","clock","thirty","four thirty"],u:"1f55f",a:"0.7"},{n:["5","00","5:00","five","clock","o’clock","five o’clock"],u:"1f554",a:"0.6"},{n:["5","5:30","five","clock","thirty","five thirty"],u:"1f560",a:"0.7"},{n:["6","00","six","6:00","clock","o’clock","six o’clock"],u:"1f555",a:"0.6"},{n:["6","six","6:30","clock","thirty","six thirty"],u:"1f561",a:"0.7"},{n:["7","00","7:00","clock","seven","o’clock","seven o’clock"],u:"1f556",a:"0.6"},{n:["7","7:30","clock","seven","thirty","seven thirty"],u:"1f562",a:"0.7"},{n:["8","00","8:00","clock","eight","o’clock","eight o’clock"],u:"1f557",a:"0.6"},{n:["8","8:30","clock","eight","thirty","eight thirty"],u:"1f563",a:"0.7"},{n:["9","00","9:00","nine","clock","o’clock","nine o’clock"],u:"1f558",a:"0.6"},{n:["9","9:30","nine","clock","thirty","nine thirty"],u:"1f564",a:"0.7"},{n:["00","10","ten","10:00","clock","o’clock","ten o’clock"],u:"1f559",a:"0.6"},{n:["10","ten","10:30","clock","thirty","ten thirty"],u:"1f565",a:"0.7"},{n:["00","11","11:00","clock","eleven","o’clock","eleven o’clock"],u:"1f55a",a:"0.6"},{n:["11","11:30","clock","eleven","thirty","eleven thirty"],u:"1f566",a:"0.7"},{n:["dark","moon","new moon"],u:"1f311",a:"0.6"},{n:["moon","waxing","crescent","waxing crescent moon"],u:"1f312",a:"1"},{n:["moon","quarter","first quarter moon"],u:"1f313",a:"0.6"},{n:["moon","waxing","gibbous","waxing gibbous moon"],u:"1f314",a:"0.6"},{n:["full","moon","full moon"],u:"1f315",a:"0.6"},{n:["moon","waning","gibbous","waning gibbous moon"],u:"1f316",a:"1"},{n:["moon","quarter","last quarter moon"],u:"1f317",a:"1"},{n:["moon","waning","crescent","waning crescent moon"],u:"1f318",a:"1"},{n:["moon","crescent","crescent moon"],u:"1f319",a:"0.6"},{n:["face","moon","new moon face"],u:"1f31a",a:"1"},{n:["face","moon","quarter","first quarter moon face"],u:"1f31b",a:"0.6"},{n:["face","moon","quarter","last quarter moon face"],u:"1f31c",a:"0.7"},{n:["weather","thermometer"],u:"1f321-fe0f",a:"0.7"},{n:["sun","rays","sunny","bright"],u:"2600-fe0f",a:"0.6"},{n:["face","full","moon","bright","full moon face"],u:"1f31d",a:"1"},{n:["sun","face","bright","sun with face"],u:"1f31e",a:"1"},{n:["saturn","saturnine","ringed planet"],u:"1fa90",a:"12"},{n:["star"],u:"2b50",a:"0.6"},{n:["glow","star","shining","sparkle","glittery","glowing star"],u:"1f31f",a:"0.6"},{n:["star","falling","shooting","shooting star"],u:"1f320",a:"0.6"},{n:["space","milky way"],u:"1f30c",a:"0.6"},{n:["cloud","weather"],u:"2601-fe0f",a:"0.6"},{n:["sun","cloud","sun behind cloud"],u:"26c5",a:"0.6"},{n:["rain","cloud","thunder","cloud with lightning and rain"],u:"26c8-fe0f",a:"0.7"},{n:["sun","cloud","sun behind small cloud"],u:"1f324-fe0f",a:"0.7"},{n:["sun","cloud","sun behind large cloud"],u:"1f325-fe0f",a:"0.7"},{n:["sun","rain","cloud","sun behind rain cloud"],u:"1f326-fe0f",a:"0.7"},{n:["rain","cloud","cloud with rain"],u:"1f327-fe0f",a:"0.7"},{n:["cold","snow","cloud","cloud with snow"],u:"1f328-fe0f",a:"0.7"},{n:["cloud","lightning","cloud with lightning"],u:"1f329-fe0f",a:"0.7"},{n:["cloud","tornado","whirlwind"],u:"1f32a-fe0f",a:"0.7"},{n:["fog","cloud"],u:"1f32b-fe0f",a:"0.7"},{n:["blow","face","wind","cloud","wind face"],u:"1f32c-fe0f",a:"0.7"},{n:["dizzy","cyclone","twister","typhoon","hurricane"],u:"1f300",a:"0.6"},{n:["rain","rainbow"],u:"1f308",a:"0.6"},{n:["rain","clothing","umbrella","closed umbrella"],u:"1f302",a:"0.6"},{n:["rain","umbrella","clothing"],u:"2602-fe0f",a:"0.7"},{n:["drop","rain","clothing","umbrella","umbrella with rain drops"],u:"2614",a:"0.6"},{n:["sun","rain","umbrella","umbrella on ground"],u:"26f1-fe0f",a:"0.7"},{n:["zap","danger","voltage","electric","lightning","high voltage"],u:"26a1",a:"0.6"},{n:["cold","snow","snowflake"],u:"2744-fe0f",a:"0.6"},{n:["cold","snow","snowman"],u:"2603-fe0f",a:"0.7"},{n:["cold","snow","snowman","snowman without snow"],u:"26c4",a:"0.6"},{n:["comet","space"],u:"2604-fe0f",a:"1"},{n:["fire","tool","flame"],u:"1f525",a:"0.6"},{n:["cold","drop","comic","sweat","droplet"],u:"1f4a7",a:"0.6"},{n:["wave","ocean","water","water wave"],u:"1f30a",a:"0.6"}],activities:[{n:["jack","lantern","halloween","celebration","jack o lantern"],u:"1f383",a:"0.6"},{n:["tree","christmas","celebration","Christmas tree"],u:"1f384",a:"0.6"},{n:["fireworks","celebration"],u:"1f386",a:"0.6"},{n:["sparkle","sparkler","fireworks","celebration"],u:"1f387",a:"0.6"},{n:["dynamite","explosive","fireworks","firecracker"],u:"1f9e8",a:"11"},{n:["*","star","sparkle","sparkles"],u:"2728",a:"0.6"},{n:["balloon","celebration"],u:"1f388",a:"0.6"},{n:["tada","party","popper","celebration","party popper"],u:"1f389",a:"0.6"},{n:["ball","confetti","celebration","confetti ball"],u:"1f38a",a:"0.6"},{n:["tree","banner","japanese","celebration","tanabata tree"],u:"1f38b",a:"0.6"},{n:["pine","bamboo","japanese","celebration","pine decoration"],u:"1f38d",a:"0.6"},{n:["doll","festival","japanese","celebration","Japanese dolls","japanese dolls"],u:"1f38e",a:"0.6"},{n:["carp","streamer","celebration","carp streamer"],u:"1f38f",a:"0.6"},{n:["bell","wind","chime","wind chime","celebration"],u:"1f390",a:"0.6"},{n:["moon","ceremony","celebration","moon viewing ceremony"],u:"1f391",a:"0.6"},{n:["gift","money","hóngbāo","lai see","good luck","red envelope"],u:"1f9e7",a:"11"},{n:["ribbon","celebration"],u:"1f380",a:"0.6"},{n:["box","gift","present","wrapped","celebration","wrapped gift"],u:"1f381",a:"0.6"},{n:["ribbon","reminder","celebration","reminder ribbon"],u:"1f397-fe0f",a:"0.7"},{n:["ticket","admission","admission tickets"],u:"1f39f-fe0f",a:"0.7"},{n:["ticket","admission"],u:"1f3ab",a:"0.6"},{n:["medal","military","celebration","military medal"],u:"1f396-fe0f",a:"0.7"},{n:["prize","trophy"],u:"1f3c6",a:"0.6"},{n:["medal","sports medal"],u:"1f3c5",a:"1"},{n:["gold","first","medal","1st place medal"],u:"1f947",a:"3"},{n:["medal","second","silver","2nd place medal"],u:"1f948",a:"3"},{n:["medal","third","bronze","3rd place medal"],u:"1f949",a:"3"},{n:["ball","soccer","football","soccer ball"],u:"26bd",a:"0.6"},{n:["ball","baseball"],u:"26be",a:"0.6"},{n:["ball","glove","softball","underarm"],u:"1f94e",a:"11"},{n:["ball","hoop","basketball"],u:"1f3c0",a:"0.6"},{n:["ball","game","volleyball"],u:"1f3d0",a:"1"},{n:["ball","american","football","american football"],u:"1f3c8",a:"0.6"},{n:["ball","rugby","football","rugby football"],u:"1f3c9",a:"1"},{n:["ball","tennis","racquet"],u:"1f3be",a:"0.6"},{n:["ultimate","flying disc"],u:"1f94f",a:"11"},{n:["ball","game","bowling"],u:"1f3b3",a:"0.6"},{n:["bat","ball","game","cricket game"],u:"1f3cf",a:"1"},{n:["ball","game","field","stick","hockey","field hockey"],u:"1f3d1",a:"1"},{n:["ice","game","puck","stick","hockey","ice hockey"],u:"1f3d2",a:"1"},{n:["ball","goal","stick","lacrosse"],u:"1f94d",a:"11"},{n:["bat","ball","game","paddle","ping pong","table tennis"],u:"1f3d3",a:"1"},{n:["game","birdie","racquet","badminton","shuttlecock"],u:"1f3f8",a:"1"},{n:["glove","boxing","boxing glove"],u:"1f94a",a:"3"},{n:["judo","karate","uniform","taekwondo","martial arts","martial arts uniform"],u:"1f94b",a:"3"},{n:["net","goal","goal net"],u:"1f945",a:"3"},{n:["golf","hole","flag in hole"],u:"26f3",a:"0.6"},{n:["ice","skate","ice skate"],u:"26f8-fe0f",a:"0.7"},{n:["fish","pole","fishing pole"],u:"1f3a3",a:"0.6"},{n:["scuba","diving","snorkeling","diving mask"],u:"1f93f",a:"12"},{n:["sash","shirt","running","athletics","running shirt"],u:"1f3bd",a:"0.6"},{n:["ski","skis","snow"],u:"1f3bf",a:"0.6"},{n:["sled","sledge","sleigh"],u:"1f6f7",a:"5"},{n:["game","rock","curling stone"],u:"1f94c",a:"5"},{n:["hit","dart","game","target","bullseye","direct hit"],u:"1f3af",a:"0.6"},{n:["toy","yo yo","fluctuate"],u:"1fa80",a:"12"},{n:["fly","kite","soar"],u:"1fa81",a:"12"},{n:["gun","tool","water","pistol","weapon","handgun","revolver","water pistol"],u:"1f52b",a:"0.6"},{n:["8","ball","game","eight","billiard","pool 8 ball"],u:"1f3b1",a:"0.6"},{n:["ball","tool","crystal","fantasy","fortune","fairy tale","crystal ball"],u:"1f52e",a:"0.6"},{n:["magic","witch","wizard","magic wand"],u:"1fa84",a:"13"},{n:["game","video game","controller"],u:"1f3ae",a:"0.6"},{n:["game","joystick","video game"],u:"1f579-fe0f",a:"0.7"},{n:["game","slot","slot machine"],u:"1f3b0",a:"0.6"},{n:["die","dice","game","game die"],u:"1f3b2",a:"0.6"},{n:["clue","piece","jigsaw","puzzle","puzzle piece","interlocking"],u:"1f9e9",a:"11"},{n:["toy","plush","stuffed","plaything","teddy bear"],u:"1f9f8",a:"11"},{n:["party","piñata","celebration"],u:"1fa85",a:"13"},{n:["dance","disco","party","glitter","mirror ball"],u:"1faa9",a:"14"},{n:["doll","russia","nesting","nesting dolls"],u:"1fa86",a:"13"},{n:["card","game","spade suit"],u:"2660-fe0f",a:"0.6"},{n:["card","game","heart suit"],u:"2665-fe0f",a:"0.6"},{n:["card","game","diamond suit"],u:"2666-fe0f",a:"0.6"},{n:["card","game","club suit"],u:"2663-fe0f",a:"0.6"},{n:["dupe","chess","chess pawn","expendable"],u:"265f-fe0f",a:"11"},{n:["card","game","joker","wildcard"],u:"1f0cf",a:"0.6"},{n:["red","game","mahjong","mahjong red dragon"],u:"1f004",a:"0.6"},{n:["card","game","flower","playing","japanese","flower playing cards"],u:"1f3b4",a:"0.6"},{n:["art","mask","theater","theatre","performing","performing arts"],u:"1f3ad",a:"0.6"},{n:["art","frame","museum","picture","painting","framed picture"],u:"1f5bc-fe0f",a:"0.7"},{n:["art","museum","palette","painting","artist palette"],u:"1f3a8",a:"0.6"},{n:["spool","thread","needle","sewing","string"],u:"1f9f5",a:"11"},{n:["needle","sewing","sutures","stitches","tailoring","embroidery","sewing needle"],u:"1faa1",a:"13"},{n:["yarn","ball","knit","crochet"],u:"1f9f6",a:"11"},{n:["tie","knot","rope","twine","twist","tangled"],u:"1faa2",a:"13"}],objects:[{n:["eye","glasses","eyewear","clothing","eyeglasses"],u:"1f453",a:"0.6"},{n:["eye","dark","eyewear","glasses","sunglasses"],u:"1f576-fe0f",a:"0.7"},{n:["goggles","welding","swimming","eye protection"],u:"1f97d",a:"11"},{n:["doctor","lab coat","scientist","experiment"],u:"1f97c",a:"11"},{n:["vest","safety","emergency","safety vest"],u:"1f9ba",a:"12"},{n:["tie","necktie","clothing"],u:"1f454",a:"0.6"},{n:["shirt","tshirt","t shirt","clothing"],u:"1f455",a:"0.6"},{n:["jeans","pants","clothing","trousers"],u:"1f456",a:"0.6"},{n:["neck","scarf"],u:"1f9e3",a:"5"},{n:["hand","gloves"],u:"1f9e4",a:"5"},{n:["coat","jacket"],u:"1f9e5",a:"5"},{n:["socks","stocking"],u:"1f9e6",a:"5"},{n:["dress","clothing"],u:"1f457",a:"0.6"},{n:["kimono","clothing"],u:"1f458",a:"0.6"},{n:["sari","dress","clothing"],u:"1f97b",a:"12"},{n:["bathing suit","one piece swimsuit"],u:"1fa71",a:"12"},{n:["briefs","swimsuit","one piece","underwear","bathing suit"],u:"1fa72",a:"12"},{n:["pants","shorts","underwear","bathing suit"],u:"1fa73",a:"12"},{n:["swim","bikini","clothing"],u:"1f459",a:"0.6"},{n:["woman","clothing","woman’s clothes"],u:"1f45a",a:"0.6"},{n:["fan","hot","shy","dance","cooling","flutter","folding hand fan"],u:"1faad",a:"15"},{n:["coin","purse","clothing"],u:"1f45b",a:"0.6"},{n:["bag","purse","handbag","clothing"],u:"1f45c",a:"0.6"},{n:["bag","pouch","clothing","clutch bag"],u:"1f45d",a:"0.6"},{n:["bag","hotel","shopping","shopping bags"],u:"1f6cd-fe0f",a:"0.7"},{n:["bag","school","satchel","backpack","rucksack"],u:"1f392",a:"0.6"},{n:["zōri","thongs","sandals","thong sandal","beach sandals","thong sandals"],u:"1fa74",a:"13"},{n:["man","shoe","clothing","man’s shoe"],u:"1f45e",a:"0.6"},{n:["shoe","sneaker","athletic","clothing","running shoe"],u:"1f45f",a:"0.6"},{n:["boot","hiking","camping","hiking boot","backpacking"],u:"1f97e",a:"11"},{n:["slip on","slipper","flat shoe","ballet flat"],u:"1f97f",a:"11"},{n:["heel","shoe","woman","clothing","high heeled shoe"],u:"1f460",a:"0.6"},{n:["shoe","woman","sandal","clothing","woman’s sandal"],u:"1f461",a:"0.6"},{n:["dance","ballet","ballet shoes"],u:"1fa70",a:"12"},{n:["boot","shoe","woman","clothing","woman’s boot"],u:"1f462",a:"0.6"},{n:["afro","comb","hair","pick","hair pick"],u:"1faae",a:"15"},{n:["king","crown","queen","clothing"],u:"1f451",a:"0.6"},{n:["hat","woman","clothing","woman’s hat"],u:"1f452",a:"0.6"},{n:["hat","top","tophat","top hat","clothing"],u:"1f3a9",a:"0.6"},{n:["cap","hat","clothing","graduation","celebration","graduation cap"],u:"1f393",a:"0.6"},{n:["billed cap","baseball cap"],u:"1f9e2",a:"5"},{n:["army","helmet","soldier","warrior","military","military helmet"],u:"1fa96",a:"13"},{n:["aid","hat","face","cross","helmet","rescue worker’s helmet"],u:"26d1-fe0f",a:"0.7"},{n:["beads","prayer","clothing","necklace","religion","prayer beads"],u:"1f4ff",a:"1"},{n:["makeup","lipstick","cosmetics"],u:"1f484",a:"0.6"},{n:["ring","diamond"],u:"1f48d",a:"0.6"},{n:["gem","jewel","diamond","gem stone"],u:"1f48e",a:"0.6"},{n:["mute","quiet","silent","speaker","muted speaker"],u:"1f507",a:"1"},{n:["soft","speaker low volume"],u:"1f508",a:"0.7"},{n:["medium","speaker medium volume"],u:"1f509",a:"1"},{n:["loud","speaker high volume"],u:"1f50a",a:"0.6"},{n:["loud","loudspeaker","public address"],u:"1f4e2",a:"0.6"},{n:["cheering","megaphone"],u:"1f4e3",a:"0.6"},{n:["horn","post","postal","postal horn"],u:"1f4ef",a:"1"},{n:["bell"],u:"1f514",a:"0.6"},{n:["bell","mute","quiet","silent","forbidden","bell with slash"],u:"1f515",a:"1"},{n:["music","score","musical score"],u:"1f3bc",a:"0.6"},{n:["note","music","musical note"],u:"1f3b5",a:"0.6"},{n:["note","music","notes","musical notes"],u:"1f3b6",a:"0.6"},{n:["mic","music","studio","microphone","studio microphone"],u:"1f399-fe0f",a:"0.7"},{n:["level","music","slider","level slider"],u:"1f39a-fe0f",a:"0.7"},{n:["knobs","music","control","control knobs"],u:"1f39b-fe0f",a:"0.7"},{n:["mic","karaoke","microphone"],u:"1f3a4",a:"0.6"},{n:["earbud","headphone"],u:"1f3a7",a:"0.6"},{n:["radio","video"],u:"1f4fb",a:"0.6"},{n:["sax","music","saxophone","instrument"],u:"1f3b7",a:"0.6"},{n:["accordion","concertina","squeeze box"],u:"1fa97",a:"13"},{n:["music","guitar","instrument"],u:"1f3b8",a:"0.6"},{n:["music","piano","keyboard","instrument","musical keyboard"],u:"1f3b9",a:"0.6"},{n:["music","trumpet","instrument"],u:"1f3ba",a:"0.6"},{n:["music","violin","instrument"],u:"1f3bb",a:"0.6"},{n:["banjo","music","stringed"],u:"1fa95",a:"12"},{n:["drum","music","drumsticks"],u:"1f941",a:"3"},{n:["beat","drum","conga","rhythm","long drum"],u:"1fa98",a:"13"},{n:["music","shake","rattle","maracas","instrument","percussion"],u:"1fa87",a:"15"},{n:["fife","pipe","flute","music","recorder","woodwind"],u:"1fa88",a:"15"},{n:["cell","phone","mobile","telephone","mobile phone"],u:"1f4f1",a:"0.6"},{n:["cell","arrow","phone","mobile","receive","mobile phone with arrow"],u:"1f4f2",a:"0.6"},{n:["phone","telephone"],u:"260e-fe0f",a:"0.6"},{n:["phone","receiver","telephone","telephone receiver"],u:"1f4de",a:"0.6"},{n:["pager"],u:"1f4df",a:"0.6"},{n:["fax","fax machine"],u:"1f4e0",a:"0.6"},{n:["battery"],u:"1f50b",a:"0.6"},{n:["electronic","low energy","low battery"],u:"1faab",a:"14"},{n:["plug","electric","electricity","electric plug"],u:"1f50c",a:"0.6"},{n:["pc","laptop","computer","personal"],u:"1f4bb",a:"0.6"},{n:["desktop","computer","desktop computer"],u:"1f5a5-fe0f",a:"0.7"},{n:["printer","computer"],u:"1f5a8-fe0f",a:"0.7"},{n:["keyboard","computer"],u:"2328-fe0f",a:"1"},{n:["computer","computer mouse"],u:"1f5b1-fe0f",a:"0.7"},{n:["computer","trackball"],u:"1f5b2-fe0f",a:"0.7"},{n:["disk","optical","computer","minidisk","computer disk"],u:"1f4bd",a:"0.6"},{n:["disk","floppy","computer","floppy disk"],u:"1f4be",a:"0.6"},{n:["cd","disk","optical","computer","optical disk"],u:"1f4bf",a:"0.6"},{n:["dvd","disk","blu ray","optical","computer"],u:"1f4c0",a:"0.6"},{n:["abacus","calculation"],u:"1f9ee",a:"11"},{n:["movie","camera","cinema","movie camera"],u:"1f3a5",a:"0.6"},{n:["film","movie","cinema","frames","film frames"],u:"1f39e-fe0f",a:"0.7"},{n:["film","movie","video","cinema","projector","film projector"],u:"1f4fd-fe0f",a:"0.7"},{n:["movie","clapper","clapper board"],u:"1f3ac",a:"0.6"},{n:["tv","video","television"],u:"1f4fa",a:"0.6"},{n:["video","camera"],u:"1f4f7",a:"0.6"},{n:["flash","video","camera","camera with flash"],u:"1f4f8",a:"1"},{n:["video","camera","video camera"],u:"1f4f9",a:"0.6"},{n:["vhs","tape","video","videocassette"],u:"1f4fc",a:"0.6"},{n:["tool","glass","search","magnifying","magnifying glass tilted left"],u:"1f50d",a:"0.6"},{n:["tool","glass","search","magnifying","magnifying glass tilted right"],u:"1f50e",a:"0.6"},{n:["light","candle"],u:"1f56f-fe0f",a:"0.7"},{n:["bulb","idea","comic","light","electric","light bulb"],u:"1f4a1",a:"0.6"},{n:["tool","light","torch","electric","flashlight"],u:"1f526",a:"0.6"},{n:["bar","red","light","lantern","red paper lantern"],u:"1f3ee",a:"0.6"},{n:["oil","diya","lamp","diya lamp"],u:"1fa94",a:"12"},{n:["book","cover","notebook","decorated","notebook with decorative cover"],u:"1f4d4",a:"0.6"},{n:["book","closed","closed book"],u:"1f4d5",a:"0.6"},{n:["book","open","open book"],u:"1f4d6",a:"0.6"},{n:["book","green","green book"],u:"1f4d7",a:"0.6"},{n:["blue","book","blue book"],u:"1f4d8",a:"0.6"},{n:["book","orange","orange book"],u:"1f4d9",a:"0.6"},{n:["book","books"],u:"1f4da",a:"0.6"},{n:["notebook"],u:"1f4d3",a:"0.6"},{n:["ledger","notebook"],u:"1f4d2",a:"0.6"},{n:["curl","page","document","page with curl"],u:"1f4c3",a:"0.6"},{n:["paper","scroll"],u:"1f4dc",a:"0.6"},{n:["page","document","page facing up"],u:"1f4c4",a:"0.6"},{n:["news","paper","newspaper"],u:"1f4f0",a:"0.6"},{n:["news","paper","rolled","newspaper","rolled up newspaper"],u:"1f5de-fe0f",a:"0.7"},{n:["mark","tabs","marker","bookmark","bookmark tabs"],u:"1f4d1",a:"0.6"},{n:["mark","bookmark"],u:"1f516",a:"0.6"},{n:["label"],u:"1f3f7-fe0f",a:"0.7"},{n:["bag","money","dollar","moneybag","money bag"],u:"1f4b0",a:"0.6"},{n:["coin","gold","metal","money","silver","treasure"],u:"1fa99",a:"13"},{n:["yen","bill","note","money","banknote","currency","yen banknote"],u:"1f4b4",a:"0.6"},{n:["bill","note","money","dollar","banknote","currency","dollar banknote"],u:"1f4b5",a:"0.6"},{n:["bill","euro","note","money","banknote","currency","euro banknote"],u:"1f4b6",a:"1"},{n:["bill","note","money","pound","banknote","currency","pound banknote"],u:"1f4b7",a:"1"},{n:["fly","bill","money","wings","banknote","money with wings"],u:"1f4b8",a:"0.6"},{n:["card","money","credit","credit card"],u:"1f4b3",a:"0.6"},{n:["proof","receipt","evidence","accounting","bookkeeping"],u:"1f9fe",a:"11"},{n:["yen","chart","graph","money","growth","chart increasing with yen"],u:"1f4b9",a:"0.6"},{n:["email","letter","envelope"],u:"2709-fe0f",a:"0.6"},{n:["mail","email","e mail","letter"],u:"1f4e7",a:"0.6"},{n:["email","e mail","letter","receive","envelope","incoming","incoming envelope"],u:"1f4e8",a:"0.6"},{n:["arrow","email","e mail","envelope","outgoing","envelope with arrow"],u:"1f4e9",a:"0.6"},{n:["box","mail","sent","tray","letter","outbox","outbox tray"],u:"1f4e4",a:"0.6"},{n:["box","mail","tray","inbox","letter","receive","inbox tray"],u:"1f4e5",a:"0.6"},{n:["box","parcel","package"],u:"1f4e6",a:"0.6"},{n:["mail","closed","mailbox","postbox","closed mailbox with raised flag"],u:"1f4eb",a:"0.6"},{n:["mail","closed","lowered","mailbox","postbox","closed mailbox with lowered flag"],u:"1f4ea",a:"0.6"},{n:["mail","open","mailbox","postbox","open mailbox with raised flag"],u:"1f4ec",a:"0.7"},{n:["mail","open","lowered","mailbox","postbox","open mailbox with lowered flag"],u:"1f4ed",a:"0.7"},{n:["mail","postbox","mailbox"],u:"1f4ee",a:"0.6"},{n:["box","ballot","ballot box with ballot"],u:"1f5f3-fe0f",a:"0.7"},{n:["pencil"],u:"270f-fe0f",a:"0.6"},{n:["nib","pen","black nib"],u:"2712-fe0f",a:"0.6"},{n:["pen","fountain","fountain pen"],u:"1f58b-fe0f",a:"0.7"},{n:["pen","ballpoint"],u:"1f58a-fe0f",a:"0.7"},{n:["painting","paintbrush"],u:"1f58c-fe0f",a:"0.7"},{n:["crayon"],u:"1f58d-fe0f",a:"0.7"},{n:["memo","pencil"],u:"1f4dd",a:"0.6"},{n:["briefcase"],u:"1f4bc",a:"0.6"},{n:["file","folder","file folder"],u:"1f4c1",a:"0.6"},{n:["file","open","folder","open file folder"],u:"1f4c2",a:"0.6"},{n:["card","index","dividers","card index dividers"],u:"1f5c2-fe0f",a:"0.7"},{n:["date","calendar"],u:"1f4c5",a:"0.6"},{n:["calendar","tear off calendar"],u:"1f4c6",a:"0.6"},{n:["pad","note","spiral","spiral notepad"],u:"1f5d2-fe0f",a:"0.7"},{n:["pad","spiral","calendar","spiral calendar"],u:"1f5d3-fe0f",a:"0.7"},{n:["card","index","rolodex","card index"],u:"1f4c7",a:"0.6"},{n:["chart","graph","trend","growth","upward","chart increasing"],u:"1f4c8",a:"0.6"},{n:["down","chart","graph","trend","chart decreasing"],u:"1f4c9",a:"0.6"},{n:["bar","chart","graph","bar chart"],u:"1f4ca",a:"0.6"},{n:["clipboard"],u:"1f4cb",a:"0.6"},{n:["pin","pushpin"],u:"1f4cc",a:"0.6"},{n:["pin","pushpin","round pushpin"],u:"1f4cd",a:"0.6"},{n:["paperclip"],u:"1f4ce",a:"0.6"},{n:["link","paperclip","linked paperclips"],u:"1f587-fe0f",a:"0.7"},{n:["ruler","straight edge","straight ruler"],u:"1f4cf",a:"0.6"},{n:["set","ruler","triangle","triangular ruler"],u:"1f4d0",a:"0.6"},{n:["tool","cutting","scissors"],u:"2702-fe0f",a:"0.6"},{n:["box","card","file","card file box"],u:"1f5c3-fe0f",a:"0.7"},{n:["file","filing","cabinet","file cabinet"],u:"1f5c4-fe0f",a:"0.7"},{n:["wastebasket"],u:"1f5d1-fe0f",a:"0.7"},{n:["locked","closed"],u:"1f512",a:"0.6"},{n:["lock","open","unlock","unlocked"],u:"1f513",a:"0.6"},{n:["ink","nib","pen","lock","privacy","locked with pen"],u:"1f50f",a:"0.6"},{n:["key","lock","closed","secure","locked with key"],u:"1f510",a:"0.6"},{n:["key","lock","password"],u:"1f511",a:"0.6"},{n:["key","old","clue","lock","old key"],u:"1f5dd-fe0f",a:"0.7"},{n:["tool","hammer"],u:"1f528",a:"0.6"},{n:["axe","chop","wood","split","hatchet"],u:"1fa93",a:"12"},{n:["pick","tool","mining"],u:"26cf-fe0f",a:"0.7"},{n:["pick","tool","hammer","hammer and pick"],u:"2692-fe0f",a:"1"},{n:["tool","hammer","wrench","spanner","hammer and wrench"],u:"1f6e0-fe0f",a:"0.7"},{n:["knife","dagger","weapon"],u:"1f5e1-fe0f",a:"0.7"},{n:["swords","weapon","crossed","crossed swords"],u:"2694-fe0f",a:"1"},{n:["bomb","comic"],u:"1f4a3",a:"0.6"},{n:["rebound","boomerang","repercussion"],u:"1fa83",a:"13"},{n:["bow","arrow","archer","zodiac","sagittarius","bow and arrow"],u:"1f3f9",a:"1"},{n:["shield","weapon"],u:"1f6e1-fe0f",a:"0.7"},{n:["saw","tool","lumber","carpenter","carpentry saw"],u:"1fa9a",a:"13"},{n:["tool","wrench","spanner"],u:"1f527",a:"0.6"},{n:["tool","screw","screwdriver"],u:"1fa9b",a:"13"},{n:["nut","bolt","tool","nut and bolt"],u:"1f529",a:"0.6"},{n:["cog","gear","tool","cogwheel"],u:"2699-fe0f",a:"1"},{n:["tool","vice","clamp","compress"],u:"1f5dc-fe0f",a:"0.7"},{n:["libra","scale","zodiac","balance","justice","balance scale"],u:"2696-fe0f",a:"1"},{n:["blind","white cane","accessibility"],u:"1f9af",a:"12"},{n:["link"],u:"1f517",a:"0.6"},{n:["break","chain","cuffs","freedom","breaking","broken chain"],u:"26d3-fe0f-200d-1f4a5",a:"15.1"},{n:["chain","chains"],u:"26d3-fe0f",a:"0.7"},{n:["hook","catch","crook","curve","ensnare","selling point"],u:"1fa9d",a:"13"},{n:["tool","chest","toolbox","mechanic"],u:"1f9f0",a:"11"},{n:["magnet","magnetic","horseshoe","attraction"],u:"1f9f2",a:"11"},{n:["rung","step","climb","ladder"],u:"1fa9c",a:"13"},{n:["tool","alembic","chemistry"],u:"2697-fe0f",a:"1"},{n:["lab","chemist","science","test tube","chemistry","experiment"],u:"1f9ea",a:"11"},{n:["lab","biology","culture","bacteria","biologist","petri dish"],u:"1f9eb",a:"11"},{n:["dna","gene","life","genetics","biologist","evolution"],u:"1f9ec",a:"11"},{n:["tool","science","microscope"],u:"1f52c",a:"1"},{n:["tool","science","telescope"],u:"1f52d",a:"1"},{n:["dish","antenna","satellite","satellite antenna"],u:"1f4e1",a:"0.6"},{n:["shot","sick","needle","syringe","medicine"],u:"1f489",a:"0.6"},{n:["bleed","injury","medicine","menstruation","drop of blood","blood donation"],u:"1fa78",a:"12"},{n:["pill","sick","doctor","medicine"],u:"1f48a",a:"0.6"},{n:["bandage","adhesive bandage"],u:"1fa79",a:"12"},{n:["cane","hurt","stick","crutch","disability","mobility aid"],u:"1fa7c",a:"14"},{n:["heart","doctor","medicine","stethoscope"],u:"1fa7a",a:"12"},{n:["x ray","bones","doctor","medical","skeleton"],u:"1fa7b",a:"14"},{n:["door"],u:"1f6aa",a:"0.6"},{n:["lift","hoist","elevator","accessibility"],u:"1f6d7",a:"13"},{n:["mirror","speculum","reflector","reflection"],u:"1fa9e",a:"13"},{n:["view","frame","window","opening","fresh air","transparent"],u:"1fa9f",a:"13"},{n:["bed","hotel","sleep"],u:"1f6cf-fe0f",a:"0.7"},{n:["lamp","couch","hotel","couch and lamp"],u:"1f6cb-fe0f",a:"0.7"},{n:["sit","seat","chair"],u:"1fa91",a:"12"},{n:["toilet"],u:"1f6bd",a:"0.6"},{n:["toilet","plunger","plumber","suction","force cup"],u:"1faa0",a:"13"},{n:["water","shower"],u:"1f6bf",a:"1"},{n:["bath","bathtub"],u:"1f6c1",a:"1"},{n:["bait","trap","snare","mousetrap","mouse trap"],u:"1faa4",a:"13"},{n:["razor","sharp","shave"],u:"1fa92",a:"12"},{n:["lotion","shampoo","sunscreen","moisturizer","lotion bottle"],u:"1f9f4",a:"11"},{n:["diaper","punk rock","safety pin"],u:"1f9f7",a:"11"},{n:["broom","witch","cleaning","sweeping"],u:"1f9f9",a:"11"},{n:["basket","picnic","farming","laundry"],u:"1f9fa",a:"11"},{n:["paper towels","toilet paper","roll of paper"],u:"1f9fb",a:"11"},{n:["vat","cask","pail","bucket"],u:"1faa3",a:"13"},{n:["bar","soap","lather","bathing","cleaning","soapdish"],u:"1f9fc",a:"11"},{n:["burp","soap","clean","bubbles","underwater"],u:"1fae7",a:"14"},{n:["brush","clean","teeth","dental","hygiene","bathroom","toothbrush"],u:"1faa5",a:"13"},{n:["sponge","porous","cleaning","absorbing"],u:"1f9fd",a:"11"},{n:["fire","quench","extinguish","fire extinguisher"],u:"1f9ef",a:"11"},{n:["cart","trolley","shopping","shopping cart"],u:"1f6d2",a:"3"},{n:["smoking","cigarette"],u:"1f6ac",a:"0.6"},{n:["death","coffin"],u:"26b0-fe0f",a:"1"},{n:["grave","cemetery","headstone","graveyard","tombstone"],u:"1faa6",a:"13"},{n:["urn","ashes","death","funeral","funeral urn"],u:"26b1-fe0f",a:"1"},{n:["bead","charm","nazar","evil eye","talisman","nazar amulet"],u:"1f9ff",a:"11"},{n:["hand","mary","hamsa","amulet","fatima","miriam","protection"],u:"1faac",a:"14"},{n:["moai","face","moyai","statue"],u:"1f5ff",a:"0.6"},{n:["sign","picket","placard","protest","demonstration"],u:"1faa7",a:"13"},{n:["id","license","security","credentials","identification card"],u:"1faaa",a:"14"}],symbols:[{n:["atm","bank","teller","ATM sign","atm sign","automated"],u:"1f3e7",a:"0.6"},{n:["litter","litter bin","litter in bin sign"],u:"1f6ae",a:"1"},{n:["water","potable","drinking","potable water"],u:"1f6b0",a:"1"},{n:["access","wheelchair symbol"],u:"267f",a:"0.6"},{n:["wc","man","toilet","bathroom","lavatory","restroom","men’s room"],u:"1f6b9",a:"0.6"},{n:["wc","woman","toilet","bathroom","lavatory","restroom","women’s room"],u:"1f6ba",a:"0.6"},{n:["wc","toilet","restroom","bathroom","lavatory"],u:"1f6bb",a:"0.6"},{n:["baby","changing","baby symbol"],u:"1f6bc",a:"0.6"},{n:["wc","water","closet","toilet","bathroom","lavatory","restroom","water closet"],u:"1f6be",a:"0.6"},{n:["control","passport","passport control"],u:"1f6c2",a:"1"},{n:["customs"],u:"1f6c3",a:"1"},{n:["claim","baggage","baggage claim"],u:"1f6c4",a:"1"},{n:["locker","baggage","luggage","left luggage"],u:"1f6c5",a:"1"},{n:["warning"],u:"26a0-fe0f",a:"0.6"},{n:["child","traffic","crossing","pedestrian","children crossing"],u:"1f6b8",a:"1"},{n:["no","not","entry","traffic","no entry","forbidden","prohibited"],u:"26d4",a:"0.6"},{n:["no","not","entry","forbidden","prohibited"],u:"1f6ab",a:"0.6"},{n:["no","bike","bicycle","forbidden","prohibited","no bicycles"],u:"1f6b3",a:"1"},{n:["no","not","smoking","forbidden","no smoking","prohibited"],u:"1f6ad",a:"0.6"},{n:["no","not","litter","forbidden","prohibited","no littering"],u:"1f6af",a:"1"},{n:["water","non potable","non drinking","non potable water"],u:"1f6b1",a:"1"},{n:["no","not","forbidden","pedestrian","prohibited","no pedestrians"],u:"1f6b7",a:"1"},{n:["no","cell","phone","mobile","forbidden","no mobile phones"],u:"1f4f5",a:"1"},{n:["18","eighteen","underage","prohibited","age restriction","no one under eighteen"],u:"1f51e",a:"0.6"},{n:["sign","radioactive"],u:"2622-fe0f",a:"1"},{n:["sign","biohazard"],u:"2623-fe0f",a:"1"},{n:["arrow","north","up arrow","cardinal","direction"],u:"2b06-fe0f",a:"0.6"},{n:["arrow","direction","northeast","intercardinal","up right arrow"],u:"2197-fe0f",a:"0.6"},{n:["east","arrow","cardinal","direction","right arrow"],u:"27a1-fe0f",a:"0.6"},{n:["arrow","direction","southeast","intercardinal","down right arrow"],u:"2198-fe0f",a:"0.6"},{n:["down","arrow","south","cardinal","direction","down arrow"],u:"2b07-fe0f",a:"0.6"},{n:["arrow","direction","southwest","intercardinal","down left arrow"],u:"2199-fe0f",a:"0.6"},{n:["west","arrow","cardinal","direction","left arrow"],u:"2b05-fe0f",a:"0.6"},{n:["arrow","direction","northwest","up left arrow","intercardinal"],u:"2196-fe0f",a:"0.6"},{n:["arrow","up down arrow"],u:"2195-fe0f",a:"0.6"},{n:["arrow","left right arrow"],u:"2194-fe0f",a:"0.6"},{n:["arrow","right arrow curving left"],u:"21a9-fe0f",a:"0.6"},{n:["arrow","left arrow curving right"],u:"21aa-fe0f",a:"0.6"},{n:["arrow","right arrow curving up"],u:"2934-fe0f",a:"0.6"},{n:["down","arrow","right arrow curving down"],u:"2935-fe0f",a:"0.6"},{n:["arrow","reload","clockwise","clockwise vertical arrows"],u:"1f503",a:"0.6"},{n:["arrow","withershins","anticlockwise","counterclockwise","counterclockwise arrows button"],u:"1f504",a:"1"},{n:["back","arrow","BACK arrow"],u:"1f519",a:"0.6"},{n:["end","arrow","END arrow"],u:"1f51a",a:"0.6"},{n:["on","on!","mark","arrow","ON! arrow"],u:"1f51b",a:"0.6"},{n:["soon","arrow","SOON arrow"],u:"1f51c",a:"0.6"},{n:["up","top","arrow","TOP arrow"],u:"1f51d",a:"0.6"},{n:["worship","religion","place of worship"],u:"1f6d0",a:"1"},{n:["atom","atheist","atom symbol"],u:"269b-fe0f",a:"1"},{n:["om","hindu","religion"],u:"1f549-fe0f",a:"0.7"},{n:["jew","star","david","jewish","religion","star of David","star of david"],u:"2721-fe0f",a:"0.7"},{n:["wheel","dharma","buddhist","religion","wheel of dharma"],u:"2638-fe0f",a:"0.7"},{n:["tao","yin","yang","taoist","yin yang","religion"],u:"262f-fe0f",a:"0.7"},{n:["cross","religion","christian","latin cross"],u:"271d-fe0f",a:"0.7"},{n:["cross","religion","christian","orthodox cross"],u:"2626-fe0f",a:"1"},{n:["islam","muslim","religion","star and crescent"],u:"262a-fe0f",a:"0.7"},{n:["peace","peace symbol"],u:"262e-fe0f",a:"1"},{n:["menorah","religion","candelabrum","candlestick"],u:"1f54e",a:"1"},{n:["star","fortune","dotted six pointed star"],u:"1f52f",a:"0.6"},{n:["sikh","khanda","religion"],u:"1faaf",a:"15"},{n:["ram","Aries","aries","zodiac"],u:"2648",a:"0.6"},{n:["ox","bull","Taurus","taurus","zodiac"],u:"2649",a:"0.6"},{n:["twins","Gemini","gemini","zodiac"],u:"264a",a:"0.6"},{n:["crab","Cancer","cancer","zodiac"],u:"264b",a:"0.6"},{n:["Leo","leo","lion","zodiac"],u:"264c",a:"0.6"},{n:["Virgo","virgo","zodiac"],u:"264d",a:"0.6"},{n:["Libra","libra","scales","zodiac","balance","justice"],u:"264e",a:"0.6"},{n:["zodiac","Scorpio","scorpio","scorpion","scorpius"],u:"264f",a:"0.6"},{n:["archer","zodiac","Sagittarius","sagittarius"],u:"2650",a:"0.6"},{n:["goat","zodiac","Capricorn","capricorn"],u:"2651",a:"0.6"},{n:["water","bearer","zodiac","Aquarius","aquarius"],u:"2652",a:"0.6"},{n:["fish","Pisces","pisces","zodiac"],u:"2653",a:"0.6"},{n:["snake","bearer","zodiac","serpent","Ophiuchus","ophiuchus"],u:"26ce",a:"0.6"},{n:["arrow","crossed","shuffle tracks button"],u:"1f500",a:"1"},{n:["arrow","repeat","clockwise","repeat button"],u:"1f501",a:"1"},{n:["once","arrow","clockwise","repeat single button"],u:"1f502",a:"1"},{n:["play","arrow","right","triangle","play button"],u:"25b6-fe0f",a:"0.6"},{n:["fast","arrow","double","forward","fast forward button"],u:"23e9",a:"0.6"},{n:["arrow","triangle","next scene","next track","next track button"],u:"23ed-fe0f",a:"0.7"},{n:["play","arrow","pause","right","triangle","play or pause button"],u:"23ef-fe0f",a:"1"},{n:["left","arrow","reverse","triangle","reverse button"],u:"25c0-fe0f",a:"0.6"},{n:["arrow","double","rewind","fast reverse button"],u:"23ea",a:"0.6"},{n:["arrow","triangle","previous scene","previous track","last track button"],u:"23ee-fe0f",a:"0.7"},{n:["arrow","button","upwards button"],u:"1f53c",a:"0.6"},{n:["arrow","double","fast up button"],u:"23eb",a:"0.6"},{n:["down","arrow","button","downwards button"],u:"1f53d",a:"0.6"},{n:["down","arrow","double","fast down button"],u:"23ec",a:"0.6"},{n:["bar","pause","double","vertical","pause button"],u:"23f8-fe0f",a:"0.7"},{n:["stop","square","stop button"],u:"23f9-fe0f",a:"0.7"},{n:["circle","record","record button"],u:"23fa-fe0f",a:"0.7"},{n:["eject","eject button"],u:"23cf-fe0f",a:"1"},{n:["film","movie","cinema","camera"],u:"1f3a6",a:"0.6"},{n:["dim","low","dim button","brightness"],u:"1f505",a:"1"},{n:["bright","brightness","bright button"],u:"1f506",a:"1"},{n:["bar","cell","phone","mobile","antenna","antenna bars"],u:"1f4f6",a:"0.6"},{n:["wifi","wi fi","network","wireless","computer","internet"],u:"1f6dc",a:"15"},{n:["cell","mode","phone","mobile","telephone","vibration","vibration mode"],u:"1f4f3",a:"0.6"},{n:["off","cell","phone","mobile","telephone","mobile phone off"],u:"1f4f4",a:"0.6"},{n:["woman","female sign"],u:"2640-fe0f",a:"4"},{n:["man","male sign"],u:"2642-fe0f",a:"4"},{n:["transgender","transgender symbol"],u:"26a7-fe0f",a:"13"},{n:["x","×","sign","cancel","multiply","multiplication"],u:"2716-fe0f",a:"0.6"},{n:["+","plus","math","sign"],u:"2795",a:"0.6"},{n:[" ","−","math","sign","minus"],u:"2796",a:"0.6"},{n:["÷","math","sign","divide","division"],u:"2797",a:"0.6"},{n:["math","equality","heavy equals sign"],u:"1f7f0",a:"14"},{n:["forever","infinity","unbounded","universal"],u:"267e-fe0f",a:"11"},{n:["!","!!","mark","bangbang","exclamation","double exclamation mark"],u:"203c-fe0f",a:"0.6"},{n:["!","?","!?","mark","question","exclamation","interrobang","punctuation","exclamation question mark"],u:"2049-fe0f",a:"0.6"},{n:["?","mark","question","punctuation","red question mark"],u:"2753",a:"0.6"},{n:["?","mark","outlined","question","punctuation","white question mark"],u:"2754",a:"0.6"},{n:["!","mark","outlined","exclamation","punctuation","white exclamation mark"],u:"2755",a:"0.6"},{n:["!","mark","exclamation","punctuation","red exclamation mark"],u:"2757",a:"0.6"},{n:["dash","wavy","wavy dash","punctuation"],u:"3030-fe0f",a:"0.6"},{n:["bank","money","currency","exchange","currency exchange"],u:"1f4b1",a:"0.6"},{n:["money","dollar","currency","heavy dollar sign"],u:"1f4b2",a:"0.6"},{n:["staff","medicine","aesculapius","medical symbol"],u:"2695-fe0f",a:"4"},{n:["recycle","recycling symbol"],u:"267b-fe0f",a:"0.6"},{n:["fleur de lis"],u:"269c-fe0f",a:"1"},{n:["ship","tool","anchor","emblem","trident","trident emblem"],u:"1f531",a:"0.6"},{n:["name","badge","name badge"],u:"1f4db",a:"0.6"},{n:["leaf","chevron","beginner","japanese","Japanese symbol for beginner","japanese symbol for beginner"],u:"1f530",a:"0.6"},{n:["o","red","large","circle","hollow red circle"],u:"2b55",a:"0.6"},{n:["✓","mark","check","button","check mark button"],u:"2705",a:"0.6"},{n:["✓","box","check","check box with check"],u:"2611-fe0f",a:"0.6"},{n:["✓","mark","check","check mark"],u:"2714-fe0f",a:"0.6"},{n:["x","×","mark","cross","cancel","multiply","cross mark","multiplication"],u:"274c",a:"0.6"},{n:["x","×","mark","square","cross mark button"],u:"274e",a:"0.6"},{n:["curl","loop","curly loop"],u:"27b0",a:"0.6"},{n:["curl","loop","double","double curly loop"],u:"27bf",a:"1"},{n:["mark","part","part alternation mark"],u:"303d-fe0f",a:"0.6"},{n:["*","asterisk","eight spoked asterisk"],u:"2733-fe0f",a:"0.6"},{n:["*","star","eight pointed star"],u:"2734-fe0f",a:"0.6"},{n:["*","sparkle"],u:"2747-fe0f",a:"0.6"},{n:["c","copyright"],u:"00a9-fe0f",a:"0.6"},{n:["r","registered"],u:"00ae-fe0f",a:"0.6"},{n:["tm","mark","trademark","trade mark"],u:"2122-fe0f",a:"0.6"},{n:["keycap","keycap: #"],u:"0023-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: *"],u:"002a-fe0f-20e3",a:"2"},{n:["keycap","keycap: 0"],u:"0030-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 1"],u:"0031-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 2"],u:"0032-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 3"],u:"0033-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 4"],u:"0034-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 5"],u:"0035-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 6"],u:"0036-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 7"],u:"0037-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 8"],u:"0038-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 9"],u:"0039-fe0f-20e3",a:"0.6"},{n:["keycap","keycap: 10"],u:"1f51f",a:"0.6"},{n:["abcd","input","latin","letters","uppercase","input latin uppercase"],u:"1f520",a:"0.6"},{n:["abcd","input","latin","letters","lowercase","input latin lowercase"],u:"1f521",a:"0.6"},{n:["1234","input","numbers","input numbers"],u:"1f522",a:"0.6"},{n:["〒♪&%","input","input symbols"],u:"1f523",a:"0.6"},{n:["abc","input","latin","letters","alphabet","input latin letters"],u:"1f524",a:"0.6"},{n:["a","blood type","A button (blood type)","a button (blood type)"],u:"1f170-fe0f",a:"0.6"},{n:["ab","blood type","AB button (blood type)","ab button (blood type)"],u:"1f18e",a:"0.6"},{n:["b","blood type","B button (blood type)","b button (blood type)"],u:"1f171-fe0f",a:"0.6"},{n:["cl","CL button","cl button"],u:"1f191",a:"0.6"},{n:["cool","COOL button","cool button"],u:"1f192",a:"0.6"},{n:["free","FREE button","free button"],u:"1f193",a:"0.6"},{n:["i","information"],u:"2139-fe0f",a:"0.6"},{n:["id","identity","ID button","id button"],u:"1f194",a:"0.6"},{n:["m","circle","circled M","circled m"],u:"24c2-fe0f",a:"0.6"},{n:["new","NEW button","new button"],u:"1f195",a:"0.6"},{n:["ng","NG button","ng button"],u:"1f196",a:"0.6"},{n:["o","blood type","O button (blood type)","o button (blood type)"],u:"1f17e-fe0f",a:"0.6"},{n:["ok","OK button","ok button"],u:"1f197",a:"0.6"},{n:["p","parking","P button","p button"],u:"1f17f-fe0f",a:"0.6"},{n:["sos","help","SOS button","sos button"],u:"1f198",a:"0.6"},{n:["up","up!","mark","UP! button","up! button"],u:"1f199",a:"0.6"},{n:["vs","versus","VS button","vs button"],u:"1f19a",a:"0.6"},{n:["ココ","“here”","japanese","katakana","Japanese “here” button","japanese “here” button"],u:"1f201",a:"0.6"},{n:["サ","japanese","katakana","“service charge”","Japanese “service charge” button","japanese “service charge” button"],u:"1f202-fe0f",a:"0.6"},{n:["月","japanese","ideograph","“monthly amount”","Japanese “monthly amount” button","japanese “monthly amount” button"],u:"1f237-fe0f",a:"0.6"},{n:["有","japanese","ideograph","“not free of charge”","Japanese “not free of charge” button","japanese “not free of charge” button"],u:"1f236",a:"0.6"},{n:["指","japanese","ideograph","“reserved”","Japanese “reserved” button","japanese “reserved” button"],u:"1f22f",a:"0.6"},{n:["得","japanese","ideograph","“bargain”","Japanese “bargain” button","japanese “bargain” button"],u:"1f250",a:"0.6"},{n:["割","japanese","ideograph","“discount”","Japanese “discount” button","japanese “discount” button"],u:"1f239",a:"0.6"},{n:["無","japanese","ideograph","“free of charge”","Japanese “free of charge” button","japanese “free of charge” button"],u:"1f21a",a:"0.6"},{n:["禁","japanese","ideograph","“prohibited”","Japanese “prohibited” button","japanese “prohibited” button"],u:"1f232",a:"0.6"},{n:["可","japanese","ideograph","“acceptable”","Japanese “acceptable” button","japanese “acceptable” button"],u:"1f251",a:"0.6"},{n:["申","japanese","ideograph","“application”","Japanese “application” button","japanese “application” button"],u:"1f238",a:"0.6"},{n:["合","japanese","ideograph","“passing grade”","Japanese “passing grade” button","japanese “passing grade” button"],u:"1f234",a:"0.6"},{n:["空","japanese","ideograph","“vacancy”","Japanese “vacancy” button","japanese “vacancy” button"],u:"1f233",a:"0.6"},{n:["祝","japanese","ideograph","“congratulations”","Japanese “congratulations” button","japanese “congratulations” button"],u:"3297-fe0f",a:"0.6"},{n:["秘","japanese","“secret”","ideograph","Japanese “secret” button","japanese “secret” button"],u:"3299-fe0f",a:"0.6"},{n:["営","japanese","ideograph","“open for business”","Japanese “open for business” button","japanese “open for business” button"],u:"1f23a",a:"0.6"},{n:["満","japanese","ideograph","“no vacancy”","Japanese “no vacancy” button","japanese “no vacancy” button"],u:"1f235",a:"0.6"},{n:["red","circle","geometric","red circle"],u:"1f534",a:"0.6"},{n:["circle","orange","orange circle"],u:"1f7e0",a:"12"},{n:["circle","yellow","yellow circle"],u:"1f7e1",a:"12"},{n:["green","circle","green circle"],u:"1f7e2",a:"12"},{n:["blue","circle","geometric","blue circle"],u:"1f535",a:"0.6"},{n:["circle","purple","purple circle"],u:"1f7e3",a:"12"},{n:["brown","circle","brown circle"],u:"1f7e4",a:"12"},{n:["circle","geometric","black circle"],u:"26ab",a:"0.6"},{n:["circle","geometric","white circle"],u:"26aa",a:"0.6"},{n:["red","square","red square"],u:"1f7e5",a:"12"},{n:["orange","square","orange square"],u:"1f7e7",a:"12"},{n:["square","yellow","yellow square"],u:"1f7e8",a:"12"},{n:["green","square","green square"],u:"1f7e9",a:"12"},{n:["blue","square","blue square"],u:"1f7e6",a:"12"},{n:["purple","square","purple square"],u:"1f7ea",a:"12"},{n:["brown","square","brown square"],u:"1f7eb",a:"12"},{n:["square","geometric","black large square"],u:"2b1b",a:"0.6"},{n:["square","geometric","white large square"],u:"2b1c",a:"0.6"},{n:["square","geometric","black medium square"],u:"25fc-fe0f",a:"0.6"},{n:["square","geometric","white medium square"],u:"25fb-fe0f",a:"0.6"},{n:["square","geometric","black medium small square"],u:"25fe",a:"0.6"},{n:["square","geometric","white medium small square"],u:"25fd",a:"0.6"},{n:["square","geometric","black small square"],u:"25aa-fe0f",a:"0.6"},{n:["square","geometric","white small square"],u:"25ab-fe0f",a:"0.6"},{n:["orange","diamond","geometric","large orange diamond"],u:"1f536",a:"0.6"},{n:["blue","diamond","geometric","large blue diamond"],u:"1f537",a:"0.6"},{n:["orange","diamond","geometric","small orange diamond"],u:"1f538",a:"0.6"},{n:["blue","diamond","geometric","small blue diamond"],u:"1f539",a:"0.6"},{n:["red","geometric","red triangle pointed up"],u:"1f53a",a:"0.6"},{n:["red","down","geometric","red triangle pointed down"],u:"1f53b",a:"0.6"},{n:["comic","inside","diamond","geometric","diamond with a dot"],u:"1f4a0",a:"0.6"},{n:["radio","button","geometric","radio button"],u:"1f518",a:"0.6"},{n:["button","square","outlined","geometric","white square button"],u:"1f533",a:"0.6"},{n:["button","square","geometric","black square button"],u:"1f532",a:"0.6"}],flags:[{n:["racing","checkered","chequered","chequered flag"],u:"1f3c1",a:"0.6"},{n:["post","triangular flag"],u:"1f6a9",a:"0.6"},{n:["cross","crossed","japanese","celebration","crossed flags"],u:"1f38c",a:"0.6"},{n:["waving","black flag"],u:"1f3f4",a:"1"},{n:["waving","white flag"],u:"1f3f3-fe0f",a:"0.7"},{n:["pride","rainbow","rainbow flag"],u:"1f3f3-fe0f-200d-1f308",a:"4"},{n:["flag","pink","white","light blue","transgender","transgender flag"],u:"1f3f3-fe0f-200d-26a7-fe0f",a:"13"},{n:["pirate","plunder","treasure","pirate flag","jolly roger"],u:"1f3f4-200d-2620-fe0f",a:"11"},{n:["AC","flag","flag: Ascension Island","flag: ascension island"],u:"1f1e6-1f1e8",a:"2"},{n:["AD","flag","flag: Andorra","flag: andorra"],u:"1f1e6-1f1e9",a:"2"},{n:["AE","flag","flag: United Arab Emirates","flag: united arab emirates"],u:"1f1e6-1f1ea",a:"2"},{n:["AF","flag","flag: Afghanistan","flag: afghanistan"],u:"1f1e6-1f1eb",a:"2"},{n:["AG","flag","flag: Antigua & Barbuda","flag: antigua & barbuda"],u:"1f1e6-1f1ec",a:"2"},{n:["AI","flag","flag: Anguilla","flag: anguilla"],u:"1f1e6-1f1ee",a:"2"},{n:["AL","flag","flag: Albania","flag: albania"],u:"1f1e6-1f1f1",a:"2"},{n:["AM","flag","flag: Armenia","flag: armenia"],u:"1f1e6-1f1f2",a:"2"},{n:["AO","flag","flag: Angola","flag: angola"],u:"1f1e6-1f1f4",a:"2"},{n:["AQ","flag","flag: Antarctica","flag: antarctica"],u:"1f1e6-1f1f6",a:"2"},{n:["AR","flag","flag: Argentina","flag: argentina"],u:"1f1e6-1f1f7",a:"2"},{n:["AS","flag","flag: American Samoa","flag: american samoa"],u:"1f1e6-1f1f8",a:"2"},{n:["AT","flag","flag: Austria","flag: austria"],u:"1f1e6-1f1f9",a:"2"},{n:["AU","flag","flag: Australia","flag: australia"],u:"1f1e6-1f1fa",a:"2"},{n:["AW","flag","flag: Aruba","flag: aruba"],u:"1f1e6-1f1fc",a:"2"},{n:["AX","flag","flag: Åland Islands","flag: åland islands"],u:"1f1e6-1f1fd",a:"2"},{n:["AZ","flag","flag: Azerbaijan","flag: azerbaijan"],u:"1f1e6-1f1ff",a:"2"},{n:["BA","flag","flag: Bosnia & Herzegovina","flag: bosnia & herzegovina"],u:"1f1e7-1f1e6",a:"2"},{n:["BB","flag","flag: Barbados","flag: barbados"],u:"1f1e7-1f1e7",a:"2"},{n:["BD","flag","flag: Bangladesh","flag: bangladesh"],u:"1f1e7-1f1e9",a:"2"},{n:["BE","flag","flag: Belgium","flag: belgium"],u:"1f1e7-1f1ea",a:"2"},{n:["BF","flag","flag: Burkina Faso","flag: burkina faso"],u:"1f1e7-1f1eb",a:"2"},{n:["BG","flag","flag: Bulgaria","flag: bulgaria"],u:"1f1e7-1f1ec",a:"2"},{n:["BH","flag","flag: Bahrain","flag: bahrain"],u:"1f1e7-1f1ed",a:"2"},{n:["BI","flag","flag: Burundi","flag: burundi"],u:"1f1e7-1f1ee",a:"2"},{n:["BJ","flag","flag: Benin","flag: benin"],u:"1f1e7-1f1ef",a:"2"},{n:["BL","flag","flag: St. Barthélemy","flag: st. barthélemy"],u:"1f1e7-1f1f1",a:"2"},{n:["BM","flag","flag: Bermuda","flag: bermuda"],u:"1f1e7-1f1f2",a:"2"},{n:["BN","flag","flag: Brunei","flag: brunei"],u:"1f1e7-1f1f3",a:"2"},{n:["BO","flag","flag: Bolivia","flag: bolivia"],u:"1f1e7-1f1f4",a:"2"},{n:["BQ","flag","flag: Caribbean Netherlands","flag: caribbean netherlands"],u:"1f1e7-1f1f6",a:"2"},{n:["BR","flag","flag: Brazil","flag: brazil"],u:"1f1e7-1f1f7",a:"2"},{n:["BS","flag","flag: Bahamas","flag: bahamas"],u:"1f1e7-1f1f8",a:"2"},{n:["BT","flag","flag: Bhutan","flag: bhutan"],u:"1f1e7-1f1f9",a:"2"},{n:["BV","flag","flag: Bouvet Island","flag: bouvet island"],u:"1f1e7-1f1fb",a:"2"},{n:["BW","flag","flag: Botswana","flag: botswana"],u:"1f1e7-1f1fc",a:"2"},{n:["BY","flag","flag: Belarus","flag: belarus"],u:"1f1e7-1f1fe",a:"2"},{n:["BZ","flag","flag: Belize","flag: belize"],u:"1f1e7-1f1ff",a:"2"},{n:["CA","flag","flag: Canada","flag: canada"],u:"1f1e8-1f1e6",a:"2"},{n:["CC","flag","flag: Cocos (Keeling) Islands","flag: cocos (keeling) islands"],u:"1f1e8-1f1e8",a:"2"},{n:["CD","flag","flag: Congo   Kinshasa","flag: congo   kinshasa"],u:"1f1e8-1f1e9",a:"2"},{n:["CF","flag","flag: Central African Republic","flag: central african republic"],u:"1f1e8-1f1eb",a:"2"},{n:["CG","flag","flag: Congo   Brazzaville","flag: congo   brazzaville"],u:"1f1e8-1f1ec",a:"2"},{n:["CH","flag","flag: Switzerland","flag: switzerland"],u:"1f1e8-1f1ed",a:"2"},{n:["CI","flag","flag: Côte d’Ivoire","flag: côte d’ivoire"],u:"1f1e8-1f1ee",a:"2"},{n:["CK","flag","flag: Cook Islands","flag: cook islands"],u:"1f1e8-1f1f0",a:"2"},{n:["CL","flag","flag: Chile","flag: chile"],u:"1f1e8-1f1f1",a:"2"},{n:["CM","flag","flag: Cameroon","flag: cameroon"],u:"1f1e8-1f1f2",a:"2"},{n:["CN","flag","flag: China","flag: china"],u:"1f1e8-1f1f3",a:"0.6"},{n:["CO","flag","flag: Colombia","flag: colombia"],u:"1f1e8-1f1f4",a:"2"},{n:["CP","flag","flag: Clipperton Island","flag: clipperton island"],u:"1f1e8-1f1f5",a:"2"},{n:["CR","flag","flag: Costa Rica","flag: costa rica"],u:"1f1e8-1f1f7",a:"2"},{n:["CU","flag","flag: Cuba","flag: cuba"],u:"1f1e8-1f1fa",a:"2"},{n:["CV","flag","flag: Cape Verde","flag: cape verde"],u:"1f1e8-1f1fb",a:"2"},{n:["CW","flag","flag: Curaçao","flag: curaçao"],u:"1f1e8-1f1fc",a:"2"},{n:["CX","flag","flag: Christmas Island","flag: christmas island"],u:"1f1e8-1f1fd",a:"2"},{n:["CY","flag","flag: Cyprus","flag: cyprus"],u:"1f1e8-1f1fe",a:"2"},{n:["CZ","flag","flag: Czechia","flag: czechia"],u:"1f1e8-1f1ff",a:"2"},{n:["DE","flag","flag: Germany","flag: germany"],u:"1f1e9-1f1ea",a:"0.6"},{n:["DG","flag","flag: Diego Garcia","flag: diego garcia"],u:"1f1e9-1f1ec",a:"2"},{n:["DJ","flag","flag: Djibouti","flag: djibouti"],u:"1f1e9-1f1ef",a:"2"},{n:["DK","flag","flag: Denmark","flag: denmark"],u:"1f1e9-1f1f0",a:"2"},{n:["DM","flag","flag: Dominica","flag: dominica"],u:"1f1e9-1f1f2",a:"2"},{n:["DO","flag","flag: Dominican Republic","flag: dominican republic"],u:"1f1e9-1f1f4",a:"2"},{n:["DZ","flag","flag: Algeria","flag: algeria"],u:"1f1e9-1f1ff",a:"2"},{n:["EA","flag","flag: Ceuta & Melilla","flag: ceuta & melilla"],u:"1f1ea-1f1e6",a:"2"},{n:["EC","flag","flag: Ecuador","flag: ecuador"],u:"1f1ea-1f1e8",a:"2"},{n:["EE","flag","flag: Estonia","flag: estonia"],u:"1f1ea-1f1ea",a:"2"},{n:["EG","flag","flag: Egypt","flag: egypt"],u:"1f1ea-1f1ec",a:"2"},{n:["EH","flag","flag: Western Sahara","flag: western sahara"],u:"1f1ea-1f1ed",a:"2"},{n:["ER","flag","flag: Eritrea","flag: eritrea"],u:"1f1ea-1f1f7",a:"2"},{n:["ES","flag","flag: Spain","flag: spain"],u:"1f1ea-1f1f8",a:"0.6"},{n:["ET","flag","flag: Ethiopia","flag: ethiopia"],u:"1f1ea-1f1f9",a:"2"},{n:["EU","flag","flag: European Union","flag: european union"],u:"1f1ea-1f1fa",a:"2"},{n:["FI","flag","flag: Finland","flag: finland"],u:"1f1eb-1f1ee",a:"2"},{n:["FJ","flag","flag: Fiji","flag: fiji"],u:"1f1eb-1f1ef",a:"2"},{n:["FK","flag","flag: Falkland Islands","flag: falkland islands"],u:"1f1eb-1f1f0",a:"2"},{n:["FM","flag","flag: Micronesia","flag: micronesia"],u:"1f1eb-1f1f2",a:"2"},{n:["FO","flag","flag: Faroe Islands","flag: faroe islands"],u:"1f1eb-1f1f4",a:"2"},{n:["FR","flag","flag: France","flag: france"],u:"1f1eb-1f1f7",a:"0.6"},{n:["GA","flag","flag: Gabon","flag: gabon"],u:"1f1ec-1f1e6",a:"2"},{n:["GB","flag","flag: United Kingdom","flag: united kingdom"],u:"1f1ec-1f1e7",a:"0.6"},{n:["GD","flag","flag: Grenada","flag: grenada"],u:"1f1ec-1f1e9",a:"2"},{n:["GE","flag","flag: Georgia","flag: georgia"],u:"1f1ec-1f1ea",a:"2"},{n:["GF","flag","flag: French Guiana","flag: french guiana"],u:"1f1ec-1f1eb",a:"2"},{n:["GG","flag","flag: Guernsey","flag: guernsey"],u:"1f1ec-1f1ec",a:"2"},{n:["GH","flag","flag: Ghana","flag: ghana"],u:"1f1ec-1f1ed",a:"2"},{n:["GI","flag","flag: Gibraltar","flag: gibraltar"],u:"1f1ec-1f1ee",a:"2"},{n:["GL","flag","flag: Greenland","flag: greenland"],u:"1f1ec-1f1f1",a:"2"},{n:["GM","flag","flag: Gambia","flag: gambia"],u:"1f1ec-1f1f2",a:"2"},{n:["GN","flag","flag: Guinea","flag: guinea"],u:"1f1ec-1f1f3",a:"2"},{n:["GP","flag","flag: Guadeloupe","flag: guadeloupe"],u:"1f1ec-1f1f5",a:"2"},{n:["GQ","flag","flag: Equatorial Guinea","flag: equatorial guinea"],u:"1f1ec-1f1f6",a:"2"},{n:["GR","flag","flag: Greece","flag: greece"],u:"1f1ec-1f1f7",a:"2"},{n:["GS","flag","flag: South Georgia & South Sandwich Islands","flag: south georgia & south sandwich islands"],u:"1f1ec-1f1f8",a:"2"},{n:["GT","flag","flag: Guatemala","flag: guatemala"],u:"1f1ec-1f1f9",a:"2"},{n:["GU","flag","flag: Guam","flag: guam"],u:"1f1ec-1f1fa",a:"2"},{n:["GW","flag","flag: Guinea Bissau","flag: guinea bissau"],u:"1f1ec-1f1fc",a:"2"},{n:["GY","flag","flag: Guyana","flag: guyana"],u:"1f1ec-1f1fe",a:"2"},{n:["HK","flag","flag: Hong Kong SAR China","flag: hong kong sar china"],u:"1f1ed-1f1f0",a:"2"},{n:["HM","flag","flag: Heard & McDonald Islands","flag: heard & mcdonald islands"],u:"1f1ed-1f1f2",a:"2"},{n:["HN","flag","flag: Honduras","flag: honduras"],u:"1f1ed-1f1f3",a:"2"},{n:["HR","flag","flag: Croatia","flag: croatia"],u:"1f1ed-1f1f7",a:"2"},{n:["HT","flag","flag: Haiti","flag: haiti"],u:"1f1ed-1f1f9",a:"2"},{n:["HU","flag","flag: Hungary","flag: hungary"],u:"1f1ed-1f1fa",a:"2"},{n:["IC","flag","flag: Canary Islands","flag: canary islands"],u:"1f1ee-1f1e8",a:"2"},{n:["ID","flag","flag: Indonesia","flag: indonesia"],u:"1f1ee-1f1e9",a:"2"},{n:["IE","flag","flag: Ireland","flag: ireland"],u:"1f1ee-1f1ea",a:"2"},{n:["IL","flag","flag: Israel","flag: israel"],u:"1f1ee-1f1f1",a:"2"},{n:["IM","flag","flag: Isle of Man","flag: isle of man"],u:"1f1ee-1f1f2",a:"2"},{n:["IN","flag","flag: India","flag: india"],u:"1f1ee-1f1f3",a:"2"},{n:["IO","flag","flag: British Indian Ocean Territory","flag: british indian ocean territory"],u:"1f1ee-1f1f4",a:"2"},{n:["IQ","flag","flag: Iraq","flag: iraq"],u:"1f1ee-1f1f6",a:"2"},{n:["IR","flag","flag: Iran","flag: iran"],u:"1f1ee-1f1f7",a:"2"},{n:["IS","flag","flag: Iceland","flag: iceland"],u:"1f1ee-1f1f8",a:"2"},{n:["IT","flag","flag: Italy","flag: italy"],u:"1f1ee-1f1f9",a:"0.6"},{n:["JE","flag","flag: Jersey","flag: jersey"],u:"1f1ef-1f1ea",a:"2"},{n:["JM","flag","flag: Jamaica","flag: jamaica"],u:"1f1ef-1f1f2",a:"2"},{n:["JO","flag","flag: Jordan","flag: jordan"],u:"1f1ef-1f1f4",a:"2"},{n:["JP","flag","flag: Japan","flag: japan"],u:"1f1ef-1f1f5",a:"0.6"},{n:["KE","flag","flag: Kenya","flag: kenya"],u:"1f1f0-1f1ea",a:"2"},{n:["KG","flag","flag: Kyrgyzstan","flag: kyrgyzstan"],u:"1f1f0-1f1ec",a:"2"},{n:["KH","flag","flag: Cambodia","flag: cambodia"],u:"1f1f0-1f1ed",a:"2"},{n:["KI","flag","flag: Kiribati","flag: kiribati"],u:"1f1f0-1f1ee",a:"2"},{n:["KM","flag","flag: Comoros","flag: comoros"],u:"1f1f0-1f1f2",a:"2"},{n:["KN","flag","flag: St. Kitts & Nevis","flag: st. kitts & nevis"],u:"1f1f0-1f1f3",a:"2"},{n:["KP","flag","flag: North Korea","flag: north korea"],u:"1f1f0-1f1f5",a:"2"},{n:["KR","flag","flag: South Korea","flag: south korea"],u:"1f1f0-1f1f7",a:"0.6"},{n:["KW","flag","flag: Kuwait","flag: kuwait"],u:"1f1f0-1f1fc",a:"2"},{n:["KY","flag","flag: Cayman Islands","flag: cayman islands"],u:"1f1f0-1f1fe",a:"2"},{n:["KZ","flag","flag: Kazakhstan","flag: kazakhstan"],u:"1f1f0-1f1ff",a:"2"},{n:["LA","flag","flag: Laos","flag: laos"],u:"1f1f1-1f1e6",a:"2"},{n:["LB","flag","flag: Lebanon","flag: lebanon"],u:"1f1f1-1f1e7",a:"2"},{n:["LC","flag","flag: St. Lucia","flag: st. lucia"],u:"1f1f1-1f1e8",a:"2"},{n:["LI","flag","flag: Liechtenstein","flag: liechtenstein"],u:"1f1f1-1f1ee",a:"2"},{n:["LK","flag","flag: Sri Lanka","flag: sri lanka"],u:"1f1f1-1f1f0",a:"2"},{n:["LR","flag","flag: Liberia","flag: liberia"],u:"1f1f1-1f1f7",a:"2"},{n:["LS","flag","flag: Lesotho","flag: lesotho"],u:"1f1f1-1f1f8",a:"2"},{n:["LT","flag","flag: Lithuania","flag: lithuania"],u:"1f1f1-1f1f9",a:"2"},{n:["LU","flag","flag: Luxembourg","flag: luxembourg"],u:"1f1f1-1f1fa",a:"2"},{n:["LV","flag","flag: Latvia","flag: latvia"],u:"1f1f1-1f1fb",a:"2"},{n:["LY","flag","flag: Libya","flag: libya"],u:"1f1f1-1f1fe",a:"2"},{n:["MA","flag","flag: Morocco","flag: morocco"],u:"1f1f2-1f1e6",a:"2"},{n:["MC","flag","flag: Monaco","flag: monaco"],u:"1f1f2-1f1e8",a:"2"},{n:["MD","flag","flag: Moldova","flag: moldova"],u:"1f1f2-1f1e9",a:"2"},{n:["ME","flag","flag: Montenegro","flag: montenegro"],u:"1f1f2-1f1ea",a:"2"},{n:["MF","flag","flag: St. Martin","flag: st. martin"],u:"1f1f2-1f1eb",a:"2"},{n:["MG","flag","flag: Madagascar","flag: madagascar"],u:"1f1f2-1f1ec",a:"2"},{n:["MH","flag","flag: Marshall Islands","flag: marshall islands"],u:"1f1f2-1f1ed",a:"2"},{n:["MK","flag","flag: North Macedonia","flag: north macedonia"],u:"1f1f2-1f1f0",a:"2"},{n:["ML","flag","flag: Mali","flag: mali"],u:"1f1f2-1f1f1",a:"2"},{n:["MM","flag","flag: Myanmar (Burma)","flag: myanmar (burma)"],u:"1f1f2-1f1f2",a:"2"},{n:["MN","flag","flag: Mongolia","flag: mongolia"],u:"1f1f2-1f1f3",a:"2"},{n:["MO","flag","flag: Macao SAR China","flag: macao sar china"],u:"1f1f2-1f1f4",a:"2"},{n:["MP","flag","flag: Northern Mariana Islands","flag: northern mariana islands"],u:"1f1f2-1f1f5",a:"2"},{n:["MQ","flag","flag: Martinique","flag: martinique"],u:"1f1f2-1f1f6",a:"2"},{n:["MR","flag","flag: Mauritania","flag: mauritania"],u:"1f1f2-1f1f7",a:"2"},{n:["MS","flag","flag: Montserrat","flag: montserrat"],u:"1f1f2-1f1f8",a:"2"},{n:["MT","flag","flag: Malta","flag: malta"],u:"1f1f2-1f1f9",a:"2"},{n:["MU","flag","flag: Mauritius","flag: mauritius"],u:"1f1f2-1f1fa",a:"2"},{n:["MV","flag","flag: Maldives","flag: maldives"],u:"1f1f2-1f1fb",a:"2"},{n:["MW","flag","flag: Malawi","flag: malawi"],u:"1f1f2-1f1fc",a:"2"},{n:["MX","flag","flag: Mexico","flag: mexico"],u:"1f1f2-1f1fd",a:"2"},{n:["MY","flag","flag: Malaysia","flag: malaysia"],u:"1f1f2-1f1fe",a:"2"},{n:["MZ","flag","flag: Mozambique","flag: mozambique"],u:"1f1f2-1f1ff",a:"2"},{n:["NA","flag","flag: Namibia","flag: namibia"],u:"1f1f3-1f1e6",a:"2"},{n:["NC","flag","flag: New Caledonia","flag: new caledonia"],u:"1f1f3-1f1e8",a:"2"},{n:["NE","flag","flag: Niger","flag: niger"],u:"1f1f3-1f1ea",a:"2"},{n:["NF","flag","flag: Norfolk Island","flag: norfolk island"],u:"1f1f3-1f1eb",a:"2"},{n:["NG","flag","flag: Nigeria","flag: nigeria"],u:"1f1f3-1f1ec",a:"2"},{n:["NI","flag","flag: Nicaragua","flag: nicaragua"],u:"1f1f3-1f1ee",a:"2"},{n:["NL","flag","flag: Netherlands","flag: netherlands"],u:"1f1f3-1f1f1",a:"2"},{n:["NO","flag","flag: Norway","flag: norway"],u:"1f1f3-1f1f4",a:"2"},{n:["NP","flag","flag: Nepal","flag: nepal"],u:"1f1f3-1f1f5",a:"2"},{n:["NR","flag","flag: Nauru","flag: nauru"],u:"1f1f3-1f1f7",a:"2"},{n:["NU","flag","flag: Niue","flag: niue"],u:"1f1f3-1f1fa",a:"2"},{n:["NZ","flag","flag: New Zealand","flag: new zealand"],u:"1f1f3-1f1ff",a:"2"},{n:["OM","flag","flag: Oman","flag: oman"],u:"1f1f4-1f1f2",a:"2"},{n:["PA","flag","flag: Panama","flag: panama"],u:"1f1f5-1f1e6",a:"2"},{n:["PE","flag","flag: Peru","flag: peru"],u:"1f1f5-1f1ea",a:"2"},{n:["PF","flag","flag: French Polynesia","flag: french polynesia"],u:"1f1f5-1f1eb",a:"2"},{n:["PG","flag","flag: Papua New Guinea","flag: papua new guinea"],u:"1f1f5-1f1ec",a:"2"},{n:["PH","flag","flag: Philippines","flag: philippines"],u:"1f1f5-1f1ed",a:"2"},{n:["PK","flag","flag: Pakistan","flag: pakistan"],u:"1f1f5-1f1f0",a:"2"},{n:["PL","flag","flag: Poland","flag: poland"],u:"1f1f5-1f1f1",a:"2"},{n:["PM","flag","flag: St. Pierre & Miquelon","flag: st. pierre & miquelon"],u:"1f1f5-1f1f2",a:"2"},{n:["PN","flag","flag: Pitcairn Islands","flag: pitcairn islands"],u:"1f1f5-1f1f3",a:"2"},{n:["PR","flag","flag: Puerto Rico","flag: puerto rico"],u:"1f1f5-1f1f7",a:"2"},{n:["PS","flag","flag: Palestinian Territories","flag: palestinian territories"],u:"1f1f5-1f1f8",a:"2"},{n:["PT","flag","flag: Portugal","flag: portugal"],u:"1f1f5-1f1f9",a:"2"},{n:["PW","flag","flag: Palau","flag: palau"],u:"1f1f5-1f1fc",a:"2"},{n:["PY","flag","flag: Paraguay","flag: paraguay"],u:"1f1f5-1f1fe",a:"2"},{n:["QA","flag","flag: Qatar","flag: qatar"],u:"1f1f6-1f1e6",a:"2"},{n:["RE","flag","flag: Réunion","flag: réunion"],u:"1f1f7-1f1ea",a:"2"},{n:["RO","flag","flag: Romania","flag: romania"],u:"1f1f7-1f1f4",a:"2"},{n:["RS","flag","flag: Serbia","flag: serbia"],u:"1f1f7-1f1f8",a:"2"},{n:["RU","flag","flag: Russia","flag: russia"],u:"1f1f7-1f1fa",a:"0.6"},{n:["RW","flag","flag: Rwanda","flag: rwanda"],u:"1f1f7-1f1fc",a:"2"},{n:["SA","flag","flag: Saudi Arabia","flag: saudi arabia"],u:"1f1f8-1f1e6",a:"2"},{n:["SB","flag","flag: Solomon Islands","flag: solomon islands"],u:"1f1f8-1f1e7",a:"2"},{n:["SC","flag","flag: Seychelles","flag: seychelles"],u:"1f1f8-1f1e8",a:"2"},{n:["SD","flag","flag: Sudan","flag: sudan"],u:"1f1f8-1f1e9",a:"2"},{n:["SE","flag","flag: Sweden","flag: sweden"],u:"1f1f8-1f1ea",a:"2"},{n:["SG","flag","flag: Singapore","flag: singapore"],u:"1f1f8-1f1ec",a:"2"},{n:["SH","flag","flag: St. Helena","flag: st. helena"],u:"1f1f8-1f1ed",a:"2"},{n:["SI","flag","flag: Slovenia","flag: slovenia"],u:"1f1f8-1f1ee",a:"2"},{n:["SJ","flag","flag: Svalbard & Jan Mayen","flag: svalbard & jan mayen"],u:"1f1f8-1f1ef",a:"2"},{n:["SK","flag","flag: Slovakia","flag: slovakia"],u:"1f1f8-1f1f0",a:"2"},{n:["SL","flag","flag: Sierra Leone","flag: sierra leone"],u:"1f1f8-1f1f1",a:"2"},{n:["SM","flag","flag: San Marino","flag: san marino"],u:"1f1f8-1f1f2",a:"2"},{n:["SN","flag","flag: Senegal","flag: senegal"],u:"1f1f8-1f1f3",a:"2"},{n:["SO","flag","flag: Somalia","flag: somalia"],u:"1f1f8-1f1f4",a:"2"},{n:["SR","flag","flag: Suriname","flag: suriname"],u:"1f1f8-1f1f7",a:"2"},{n:["SS","flag","flag: South Sudan","flag: south sudan"],u:"1f1f8-1f1f8",a:"2"},{n:["ST","flag","flag: São Tomé & Príncipe","flag: são tomé & príncipe"],u:"1f1f8-1f1f9",a:"2"},{n:["SV","flag","flag: El Salvador","flag: el salvador"],u:"1f1f8-1f1fb",a:"2"},{n:["SX","flag","flag: Sint Maarten","flag: sint maarten"],u:"1f1f8-1f1fd",a:"2"},{n:["SY","flag","flag: Syria","flag: syria"],u:"1f1f8-1f1fe",a:"2"},{n:["SZ","flag","flag: Eswatini","flag: eswatini"],u:"1f1f8-1f1ff",a:"2"},{n:["TA","flag","flag: Tristan da Cunha","flag: tristan da cunha"],u:"1f1f9-1f1e6",a:"2"},{n:["TC","flag","flag: Turks & Caicos Islands","flag: turks & caicos islands"],u:"1f1f9-1f1e8",a:"2"},{n:["TD","flag","flag: Chad","flag: chad"],u:"1f1f9-1f1e9",a:"2"},{n:["TF","flag","flag: French Southern Territories","flag: french southern territories"],u:"1f1f9-1f1eb",a:"2"},{n:["TG","flag","flag: Togo","flag: togo"],u:"1f1f9-1f1ec",a:"2"},{n:["TH","flag","flag: Thailand","flag: thailand"],u:"1f1f9-1f1ed",a:"2"},{n:["TJ","flag","flag: Tajikistan","flag: tajikistan"],u:"1f1f9-1f1ef",a:"2"},{n:["TK","flag","flag: Tokelau","flag: tokelau"],u:"1f1f9-1f1f0",a:"2"},{n:["TL","flag","flag: Timor Leste","flag: timor leste"],u:"1f1f9-1f1f1",a:"2"},{n:["TM","flag","flag: Turkmenistan","flag: turkmenistan"],u:"1f1f9-1f1f2",a:"2"},{n:["TN","flag","flag: Tunisia","flag: tunisia"],u:"1f1f9-1f1f3",a:"2"},{n:["TO","flag","flag: Tonga","flag: tonga"],u:"1f1f9-1f1f4",a:"2"},{n:["TR","flag","flag: Türkiye","flag: türkiye"],u:"1f1f9-1f1f7",a:"2"},{n:["TT","flag","flag: Trinidad & Tobago","flag: trinidad & tobago"],u:"1f1f9-1f1f9",a:"2"},{n:["TV","flag","flag: Tuvalu","flag: tuvalu"],u:"1f1f9-1f1fb",a:"2"},{n:["TW","flag","flag: Taiwan","flag: taiwan"],u:"1f1f9-1f1fc",a:"2"},{n:["TZ","flag","flag: Tanzania","flag: tanzania"],u:"1f1f9-1f1ff",a:"2"},{n:["UA","flag","flag: Ukraine","flag: ukraine"],u:"1f1fa-1f1e6",a:"2"},{n:["UG","flag","flag: Uganda","flag: uganda"],u:"1f1fa-1f1ec",a:"2"},{n:["UM","flag","flag: U.S. Outlying Islands","flag: u.s. outlying islands"],u:"1f1fa-1f1f2",a:"2"},{n:["UN","flag","flag: United Nations","flag: united nations"],u:"1f1fa-1f1f3",a:"4"},{n:["US","flag","flag: United States","flag: united states"],u:"1f1fa-1f1f8",a:"0.6"},{n:["UY","flag","flag: Uruguay","flag: uruguay"],u:"1f1fa-1f1fe",a:"2"},{n:["UZ","flag","flag: Uzbekistan","flag: uzbekistan"],u:"1f1fa-1f1ff",a:"2"},{n:["VA","flag","flag: Vatican City","flag: vatican city"],u:"1f1fb-1f1e6",a:"2"},{n:["VC","flag","flag: St. Vincent & Grenadines","flag: st. vincent & grenadines"],u:"1f1fb-1f1e8",a:"2"},{n:["VE","flag","flag: Venezuela","flag: venezuela"],u:"1f1fb-1f1ea",a:"2"},{n:["VG","flag","flag: British Virgin Islands","flag: british virgin islands"],u:"1f1fb-1f1ec",a:"2"},{n:["VI","flag","flag: U.S. Virgin Islands","flag: u.s. virgin islands"],u:"1f1fb-1f1ee",a:"2"},{n:["VN","flag","flag: Vietnam","flag: vietnam"],u:"1f1fb-1f1f3",a:"2"},{n:["VU","flag","flag: Vanuatu","flag: vanuatu"],u:"1f1fb-1f1fa",a:"2"},{n:["WF","flag","flag: Wallis & Futuna","flag: wallis & futuna"],u:"1f1fc-1f1eb",a:"2"},{n:["WS","flag","flag: Samoa","flag: samoa"],u:"1f1fc-1f1f8",a:"2"},{n:["XK","flag","flag: Kosovo","flag: kosovo"],u:"1f1fd-1f1f0",a:"2"},{n:["YE","flag","flag: Yemen","flag: yemen"],u:"1f1fe-1f1ea",a:"2"},{n:["YT","flag","flag: Mayotte","flag: mayotte"],u:"1f1fe-1f1f9",a:"2"},{n:["ZA","flag","flag: South Africa","flag: south africa"],u:"1f1ff-1f1e6",a:"2"},{n:["ZM","flag","flag: Zambia","flag: zambia"],u:"1f1ff-1f1f2",a:"2"},{n:["ZW","flag","flag: Zimbabwe","flag: zimbabwe"],u:"1f1ff-1f1fc",a:"2"},{n:["flag","gbeng","flag: England","flag: england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",a:"5"},{n:["flag","gbsct","flag: Scotland","flag: scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",a:"5"},{n:["flag","gbwls","flag: Wales","flag: wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",a:"5"}]}
vendor: 11,208 bytes, line 142
142,go={categories:u4,emojis:d4},fd="epr_suggested";function bo(t){try{var e,n,r;if(!((e=window)!=null&&e.localStorage))return[];var i=JSON.parse((n=(r=window)==null?void 0:r.localStorage.getItem(fd))!=null?n:"[]");return t===Hn.FREQUENT?i.sort(function(a,o){return o.count-a.count}):i}catch{return[]}}function h4(t,e){var n=bo(),r=Ge(t,e),i=Ge(t),a=n.find(function(f){var l=f.unified;return l===r}),o;a?o=[a].concat(n.filter(function(f){return f!==a})):(a={unified:r,original:i,count:0},o=[a].concat(n)),a.count++,o.length=Math.min(o.length,14);try{var s;(s=window)==null||s.localStorage.setItem(fd,JSON.stringify(o))}catch{}}function yo(t){var e;return(e=t[fe.name])!=null?e:[]}function gf(t){if(!t)return"";var e=yo(t);return e[e.length-1]}function ld(t){var e=t.split("-"),n=e.splice(1,1),r=n[0];return po[r]?e.join("-"):t}function Ge(t,e){var n,r=t[fe.unified];return!e||!mn(t)?r:(n=m4(t,e))!=null?n:r}function p4(){var t=wd(),e=Co(),n=e[0],r=se.useMemo(function(){var i,a=(i=bo(t))!=null?i:[];return a.map(function(o){return di(o.unified)}).filter(Boolean)},[n,t]);return function(a){var o;return a===B.SUGGESTED?r:(o=go.emojis[a])!=null?o:[]}}function ui(t){var e;return(e=t[fe.variations])!=null?e:[]}function mn(t){return ui(t).length>0}function m4(t,e){return e?ui(t).find(function(n){return n.includes(e)}):Ge(t)}function di(t){if(t){if(jr[t])return jr[t];var e=ld(t);return jr[e]}}var g4=Object.values(go.emojis).flat(),jr={};g4.reduce(function(t,e){return t[Ge(e)]=e,mn(e)&&ui(e).forEach(function(n){t[n]=e}),t},jr);function b4(t){var e=t.split("-"),n=e[1];return Gr.includes(n)?n:null}var cd=se.createContext({emojiData:{},allEmojis:[],allEmojisByUnified:{},searchIndex:{},emojiByUnified:di,activeVariationFromUnified:function(){return null}});function y4(t){var e=t.children,n=$(),r=n.customEmojis,i=n.emojiData,a=se.useMemo(function(){var s=i||go,f=JSON.parse(JSON.stringify(s));r&&r.length>0&&(f.emojis[B.CUSTOM]=r.map(M4));var l=f.emojis||{},c=Object.values(l).flat(),u={},h={};return c.forEach(function(d){var p=d[fe.unified];if(u[p]=d,d[fe.variations]){var m;(m=d[fe.variations])==null||m.forEach(function(y){u[y]=d})}var g=(d[fe.name]||[]).join("").toLowerCase().split("");g.forEach(function(y){var M;h[y]=(M=h[y])!=null?M:{},h[y][p]=d})}),{emojiData:f,allEmojis:c,allEmojisByUnified:u,searchIndex:h}},[i,r]),o=se.useCallback(function(s){var f;if(s){var l=(f=a.allEmojisByUnified[s])!=null?f:a.allEmojisByUnified[Xu(s)];return l}},[a.allEmojisByUnified]);return se.createElement(cd.Provider,{value:F({},a,{emojiByUnified:o,activeVariationFromUnified:Xy})},e)}function gn(){return se.useContext(cd)}function w4(){var t=gn(),e=t.emojiData,n=t.emojiByUnified,r=wd(),i=Co(),a=i[0],o=se.useMemo(function(){var s,f=(s=bo(r))!=null?s:[];return f.map(function(l){var c,u=n(l.unified);if(u)return F({},u,(c={},c[fe.unified]=l.unified,c))}).filter(Boolean)},[a,r,n]);return function(f){var l,c;return f===B.SUGGESTED?o:(l=(c=e.emojis)==null?void 0:c[f])!=null?l:[]}}function M4(t){var e;return e={},e[fe.name]=t.names.map(function(n){return n.toLowerCase()}),e[fe.unified]=t.id.toLowerCase(),e[fe.added_in]="0",e[fe.imgUrl]=t.imgUrl,e}function L4(){var t=Y4();return function(e){return t.has(e)}}function ud(){var t=b.useRef({}),e=Q4(),n=gn(),r=n.allEmojis;return b.useMemo(function(){var i=parseFloat(""+e);return!e||Number.isNaN(i)?t.current:r.reduce(function(a,o){return v4(o,i)&&(a[Ut(o)]=!0),a},t.current)},[e,r])}function C4(){var t=ud(),e=L4();return function(r){var i=Xu(Ut(r));return!!(t[i]||e(i))}}function v4(t,e){return Zy(t)>e}function k4(t){b.useEffect(function(){t(!0)},[t])}function S4(t){var e=t.children,n=ud(),r=N4(),i=U4(),a=gn(),o=a.searchIndex,s=b.useRef(o);b.useEffect(function(){s.current=o},[o]);var f=b.useRef(!1),l=b.useRef(!1),c=b.useRef(n),u=mf(Date.now(),200),h=mf("",100),d=b.useState(!1),p=b.useState(r),m=b.useState(null),g=b.useState(new Set),y=b.useState(null),M=b.useState(i),L=b.useState(!1),w=L[0],v=L[1],S=b.useState([]),C=b.useState(null);return k4(v),b.createElement(xe.Provider,{value:{activeCategoryState:m,activeSkinTone:p,disallowClickRef:f,disallowMouseRef:l,disallowedEmojisRef:c,emojiVariationPickerState:y,emojisThatFailedToLoadState:g,filterRef:s,isPastInitialLoad:w,searchTerm:h,skinToneFanOpenState:d,suggestedUpdateState:u,reactionsModeState:M,visibleCategoriesState:S,emojiSizeState:C}},e)}var xe=b.createContext({activeCategoryState:[null,function(){}],activeSkinTone:[Be.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise(function(){})}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}],reactionsModeState:[!1,function(){}],visibleCategoriesState:[[],function(){return[]}],emojiSizeState:[null,function(){}]});function wo(){var t=b.useContext(xe),e=t.filterRef;return e}function j4(){var t=b.useContext(xe),e=t.disallowClickRef;return e}function Mo(){var t=b.useContext(xe),e=t.disallowMouseRef;return e}function Qt(){var t=b.useContext(xe),e=t.reactionsModeState;return e}function hi(){var t=b.useContext(xe),e=t.searchTerm;return e}function pi(){var t=b.useContext(xe),e=t.activeSkinTone;return e}function dd(){var t=b.useContext(xe),e=t.emojisThatFailedToLoadState;return e}function bn(){var t=b.useContext(xe),e=t.emojiVariationPickerState;return e}function nr(){var t=b.useContext(xe),e=t.skinToneFanOpenState;return e}function Lo(){var t=b.useContext(xe),e=t.visibleCategoriesState;return e}function hd(){var t=b.useContext(xe),e=t.emojiSizeState;return e}function Co(){var t=b.useContext(xe),e=t.suggestedUpdateState,n=e[0],r=e[1];return[n,function(){r(Date.now())}]}var pd=se.createContext({});function md(){var t=se.useContext(pd);return t}function x4(t){var e=se.useRef({onEmojiClick:t.onEmojiClick||mr,onReactionClick:t.onReactionClick||t.onEmojiClick,onSkinToneChange:t.onSkinToneChange||mr});return se.useEffect(function(){e.current.onEmojiClick=t.onEmojiClick||mr,e.current.onReactionClick=t.onReactionClick||t.onEmojiClick},[t.onEmojiClick,t.onReactionClick]),se.useEffect(function(){e.current.onSkinToneChange=t.onSkinToneChange||mr},[t.onSkinToneChange]),e}function mr(){}var Gn;(function(t){t.REACTIONS="reactions",t.PICKER="picker"})(Gn||(Gn={}));function I4(){var t,e=$(),n=e.searchPlaceHolder,r=e.searchPlaceholder;return(t=[n,r].find(function(i){return i!==Fr}))!=null?t:Fr}function T4(){var t=$(),e=t.searchClearButtonLabel;return e??id}function N4(){var t=$(),e=t.defaultSkinTone;return e}function gd(){var t=$(),e=t.allowExpandReactions;return e}function bd(){var t=$(),e=t.skinTonesDisabled;return e}function Yt(){var t=$(),e=t.emojiStyle;return e}function D4(){var t=$(),e=t.autoFocusSearch;return e}function vo(){var t=$(),e=t.categories;return e}function E4(){var t=$(),e=t.categoryIcons;return e}function A4(){var t=$(),e=t.customEmojis;return e}function z4(){var t=$(),e=t.open;return e}function R4(t){var e=md(),n=e.current,r=Qt(),i=r[1],a=n.onEmojiClick||function(){},o=n.onReactionClick;return t===Gn.REACTIONS&&o?function(){for(var s=arguments.length,f=new Array(s),l=0;l<s;l++)f[l]=arguments[l];return o.apply(void 0,f.concat([{collapseToReactions:function(){i(function(u){return u})}}]))}:function(){for(var s=arguments.length,f=new Array(s),l=0;l<s;l++)f[l]=arguments[l];a.apply(void 0,f.concat([{collapseToReactions:function(){i(!0)}}]))}}function O4(){var t=md(),e=t.current;return e.onSkinToneChange||function(){}}function yd(){var t=$(),e=t.previewConfig;return e}function P4(){var t=$(),e=t.theme;return e}function wd(){var t=$(),e=t.suggestedEmojisMode;return e}function Md(){var t=$(),e=t.lazyLoadEmojis;return e}function B4(){var t=$(),e=t.className;return e}function J4(){var t=$(),e=t.height,n=t.width,r=t.style;return F({height:bf(e),width:bf(n)},r)}function U4(){var t=$(),e=t.reactionsDefaultOpen;return e}function Q4(){var t=$(),e=t.emojiVersion;return e}function Ld(){var t=$(),e=t.searchDisabled;return e}function Cd(){var t=$(),e=t.skinTonePickerLocation;return e}function Y4(){var t=$(),e=t.unicodeToHide;return e}function H4(){var t=$(),e=t.reactions;return e}function Ht(){var t=$(),e=t.getEmojiUrl;return e}function bf(t){return typeof t=="number"?t+"px":t}function G4(t){var e=t>0,n=t>1;return e?n?o4.replace("%n",t.toString()):a4:i4}function mi(){var t=hi(),e=t[0];return!!e}function Ie(t){t&&requestAnimationFrame(function(){t.focus()})}function vd(t){if(t){var e=t.previousElementSibling;Ie(e)}}function kd(t){if(t){var e=t.nextElementSibling;Ie(e)}}function Sd(t){if(t){var e=t.firstElementChild;Ie(e)}}function Fn(){return document.activeElement}function F4(t){var e=t.children,n=b.useRef(null),r=b.useRef(null),i=b.useRef(null),a=b.useRef(null),o=b.useRef(null),s=b.useRef(null),f=b.useRef(null),l=b.useRef(null),c=b.useRef(null);return b.createElement(jd.Provider,{value:{AnchoredEmojiRef:r,BodyRef:i,EmojiListRef:a,CategoryNavigationRef:f,PickerMainRef:n,SearchInputRef:o,SkinTonePickerRef:s,VariationPickerRef:l,ReactionsRef:c}},e)}var jd=b.createContext({AnchoredEmojiRef:b.createRef(),BodyRef:b.createRef(),CategoryNavigationRef:b.createRef(),EmojiListRef:b.createRef(),PickerMainRef:b.createRef(),SearchInputRef:b.createRef(),SkinTonePickerRef:b.createRef(),VariationPickerRef:b.createRef(),ReactionsRef:b.createRef()});function nt(){return b.useContext(jd)}function xd(){return nt().EmojiListRef}function yn(){return nt().PickerMainRef}function gi(){return nt().AnchoredEmojiRef}function Id(){var t=gi();return function(e){e===null&&t.current!==null&&Ie(t.current),t.current=e}}function Te(){return nt().BodyRef}function _4(){return nt().ReactionsRef}function Lt(){return nt().SearchInputRef}function ko(){return nt().SkinTonePickerRef}function So(){return nt().CategoryNavigationRef}function V4(){return nt().VariationPickerRef}function Td(t,e){e===void 0&&(e=0);var n=Hd(t);n&&requestAnimationFrame(function(){n.scrollTop=e})}function W4(t,e){var n=Hd(t);n&&requestAnimationFrame(function(){n.scrollTop=n.scrollTop+e})}function Z4(){var t=Te();return b.useCallback(function(e){requestAnimationFrame(function(){t.current&&(t.current.scrollTop=e)})},[t])}function bi(t){if(!(!t||!zw(t))&&!t.closest(Oe(U.variationPicker))){var e=Fd(t),n=Gd(t);W4(e,-(To(Ct(t))-n))}}function yi(t){var e=zo(t);Ie(e),bi(e)}function $4(t){var e=zo(t);Ie(e),e==null||e.click()}function K4(t){Ie(Wd(t))}function q4(t){if(t){var e=Zd(t);if(!e)return yi(Mi(t));Ie(e),bi(e)}}function X4(t){if(t){var e=Ao(t);if(!e)return K4(wi(t));Ie(e),bi(e)}}function ew(t,e){if(t){var n=nw(t);if(!n)return e();Ie(n),bi(n)}}function tw(t){if(t){var e=rw(t);return Ie(e)}}function nw(t){if(!t)return null;var e=$d(t),n=Ct(e),r=Jd(e,t),i=hn(n),a=i.indexOf(t),o=a%r;if(a===-1)return null;if(i[a-r])return i[a-r];var s=wi(n);if(!s)return null;var f=hn(s),l=f.length%r-1;if(o>l)return f.at(-1);for(var c=f.length-1;c>=0;c--)if(c%r===o)return f[c];return f.at(-1)}function rw(t){var e;if(!t)return null;var n=$d(t),r=Ct(n),i=Jd(n,t),a=hn(r),o=a.indexOf(t);if(o===-1)return null;var s=i-o%i-1,f=o+s+1;if(a[f]){for(var l=o+i;l%i>=0;
142l--)if(a[l])return a[l]}var c=o%i,u=Mi(r),h=hn(u);return h[c]?h[c]:(e=h.at(0))!=null?e:null}function Gt(){var t=bn(),e=t[0],n=t[1],r=nr(),i=r[0],a=r[1],o=b.useCallback(function(){e&&n(null),i&&a(!1)},[e,i,n,a]);return o}function Nd(){var t=bn(),e=t[0],n=nr(),r=n[0];return function(){return!!e||r}}function iw(){var t=Mo();return function(){t.current=!0}}function Dd(){var t=Mo();return function(){t.current=!1}}function Ed(){var t=Mo();return function(){return t.current}}function aw(){var t=Te(),e=Dd(),n=Ed();b.useEffect(function(){var r=t.current;r==null||r.addEventListener("mousemove",i,{passive:!0});function i(){n()&&e()}return function(){r==null||r.removeEventListener("mousemove",i)}},[t,e,n])}function Ft(){var t=Lt();return b.useCallback(function(){Ie(t.current)},[t])}function ow(){var t=ko();return b.useCallback(function(){t.current&&Sd(t.current)},[t])}function Ad(){var t=So();return b.useCallback(function(){t.current&&Sd(t.current)},[t])}function sw(){var t=wo();return function e(n){if(typeof n=="function")return e(n(t.current));t.current=n}}function zd(){var t=jo(),e=Lt(),n=Ft();return function(){e.current&&(e.current.value=""),t(""),n()}}function fw(){var t=Lt(),e=jo();return function(r){t.current?(t.current.value=""+t.current.value+r,e(yf(t.current.value))):e(yf(r))}}function lw(){var t=Lt(),e=wo(),n=sw(),r=jo(),i=hi(),a=i[0],o=mw(e.current,a);return{onChange:s,searchTerm:a,SearchInputRef:t,statusSearchResults:o};function s(f){var l=e.current,c=f.toLowerCase();if(l!=null&&l[c]||c.length<=1)return r(c);var u=pw(c,l);if(!u)return r(c);n(function(h){var d;return Object.assign(h,(d={},d[c]=cw(u,c),d))}),r(c)}}function jo(){var t=hi(),e=t[1],n=yn();return function(i){requestAnimationFrame(function(){e(i&&(i==null?void 0:i.toLowerCase())).then(function(){Td(n.current,0)})})}}function cw(t,e){var n={};for(var r in t){var i=t[r];uw(i,e)&&(n[r]=i)}return n}function uw(t,e){return qu(t).some(function(n){return n.includes(e)})}function dw(){var t=wo(),e=t.current,n=hi(),r=n[0];return function(i){return hw(i,e,r)}}function hw(t,e,n){var r;return!e||!n?!1:!((r=e[n])!=null&&r[t])}function pw(t,e){if(!e)return null;if(e[t])return e[t];var n=Object.keys(e).sort(function(r,i){return i.length-r.length}).find(function(r){return t.includes(r)});return n?e[n]:null}function yf(t){return!t||typeof t!="string"?"":t.trim().toLowerCase()}function mw(t,e){var n;if(!(t!=null&&t[e]))return"";var r=((n=Object.entries(t==null?void 0:t[e]))==null?void 0:n.length)||0;return G4(r)}function Rd(){var t=Id(),e=bn(),n=e[1];return function(i){var a=Qd(i),o=a[0];o&&(t(i),n(o))}}function xo(){var t=Cd();return t===dn.SEARCH}function Od(){var t=Cd();return t===dn.PREVIEW}var re;(function(t){t.ArrowDown="ArrowDown",t.ArrowUp="ArrowUp",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.Escape="Escape",t.Enter="Enter",t.Space=" "})(re||(re={}));function gw(){bw(),yw(),ww(),Mw(),Lw()}function bw(){var t=yn(),e=zd(),n=Z4(),r=Lt(),i=Ft(),a=Nd(),o=iw(),s=Gt(),f=b.useMemo(function(){return function(c){var u=c.key;switch(o(),u){case re.Escape:if(c.preventDefault(),a()){s();return}e(),n(0),i();break}}},[n,e,s,i,a,o]);b.useEffect(function(){var l=t.current;if(l)return l.addEventListener("keydown",f),function(){l.removeEventListener("keydown",f)}},[t,r,n,f])}
142function yw(){var t=ow(),e=yn(),n=Te(),r=Lt(),i=nr(),a=i[1],o=Pd(),s=xo(),f=b.useMemo(function(){return function(c){var u=c.key;switch(u){case re.ArrowRight:if(!s)return;c.preventDefault(),a(!0),t();break;case re.ArrowDown:c.preventDefault(),o();break;case re.Enter:c.preventDefault(),$4(n.current);break}}},[t,o,a,n,s]);b.useEffect(function(){var l=r.current;if(l)return l.addEventListener("keydown",f),function(){l.removeEventListener("keydown",f)}},[e,r,f])}function ww(){var t=ko(),e=Ft(),n=Lt(),r=Pd(),i=nr(),a=i[0],o=i[1],s=Od(),f=xo(),l=Io(),c=b.useMemo(function(){return function(h){var d=h.key;if(f)switch(d){case re.ArrowLeft:if(h.preventDefault(),!a)return e();wf(e);break;case re.ArrowRight:if(h.preventDefault(),!a)return e();Mf();break;case re.ArrowDown:h.preventDefault(),a&&o(!1),r();break;default:l(h);break}if(s)switch(d){case re.ArrowUp:if(h.preventDefault(),!a)return e();wf(e);break;case re.ArrowDown:if(h.preventDefault(),!a)return e();Mf();break;default:l(h);break}}},[a,e,o,r,l,s,f]);b.useEffect(function(){var u=t.current;if(u)return u.addEventListener("keydown",c),function(){u.removeEventListener("keydown",c)}},[t,n,a,c])}function Mw(){var t=Ft(),e=So(),n=Te(),r=Io(),i=b.useMemo(function(){return function(o){var s=o.key;switch(s){case re.ArrowUp:o.preventDefault(),t();break;case re.ArrowRight:o.preventDefault(),kd(Fn());break;case re.ArrowLeft:o.preventDefault(),vd(Fn());break;case re.ArrowDown:o.preventDefault(),yi(n.current);break;default:r(o);break}}},[n,t,r]);b.useEffect(function(){var a=e.current;if(a)return a.addEventListener("keydown",i),function(){a.removeEventListener("keydown",i)}},[e,n,i])}function Lw(){var t=Te(),e=Cw(),n=Rd(),r=Nd(),i=Gt(),a=Io(),o=b.useMemo(function(){return function(f){var l=f.key,c=Ye(Fn());switch(l){case re.ArrowRight:f.preventDefault(),q4(c);break;case re.ArrowLeft:f.preventDefault(),X4(c);break;case re.ArrowDown:if(f.preventDefault(),r()){i();break}tw(c);break;case re.ArrowUp:if(f.preventDefault(),r()){i();break}ew(c,e);break;case re.Space:f.preventDefault(),n(f.target);break;default:a(f);break}}},[e,a,n,r,i]);b.useEffect(function(){var s=t.current;if(s)return s.addEventListener("keydown",o),function(){s.removeEventListener("keydown",o)}},[t,o])}function Pd(){var t=Ad(),e=mi(),n=Te();return b.useCallback(function(){return e?yi(n.current):t()},[n,t,e])}function Cw(){var t=Ft(),e=Ad(),n=mi();return b.useCallback(function(){return n?t():e()},[t,n,e])}function wf(t){var e=Fn();e&&(Dw(e)||t(),kd(e))}function Mf(){var t=Fn();t&&vd(t)}function Io(){var t=fw(),e=Ft(),n=Ld(),r=Gt();return function(a){var o=a.key;vw(a)||n||o.match(/(^[a-zA-Z0-9]$){1}/)&&(a.preventDefault(),r(),e(),t(o))}}function vw(t){var e=t.metaKey,n=t.ctrlKey,r=t.altKey;return e||n||r}function kw(t,e,n,r,i,a,o,s){if(t&&e!==ve.NATIVE){var f=Ut(t);ka.has(f)||!a||!o||setTimeout(function(){var l=i+a.top,c=n+r,u=l>=c&&l<c+o.emojiSize*2;u&&Bd(s,t,e)})}}function Bd(t,e,n){if(e){var r=Ut(e);ka.has(r)||(ka.add(r),mo(e).concat(r).forEach(function(i){var a=t(i,n);Sw(a)}))}}var ka=new Set;function Sw(t){var e=new Image;e.src=t}function jw(){var t=Te(),e=Yt(),n=Ht();b.useEffect(function(){if(e===ve.NATIVE)return;var r=t.current;return r==null||r.addEventListener("focusin",i),function(){r==null||r.removeEventListener("focusin",i)};function i(a){var o=Ye(a.target);if(o){var s=Qd(o),f=s[0];f&&mn(f)&&Bd(n,f,e)}}},[t,e,n])}var xw=["width","height"],Sa=40;function Iw(t){var e=t.children;return b.createElement(S4,null,b.createElement(Tw,null,e))}function Tw(t){var e,n=t.children,r=Qt(),i=r[0],a=P4(),o=mi(),s=yn(),f=B4(),l=J4();gw(),jw();var c=l||{},u=c.width,h=c.height,d=$u(c,xw);return b.createElement("aside",{className:J(Ln.main,Ln.baseVariables,a===un.DARK&&Ln.darkTheme,a===un.AUTO&&Ln.autoThemeDark,(e={},e[U.searchActive]=o,e),i&&Ln.reactionsMenu,f),ref:s,style:F({},d,!i&&{height:h,width:u})},n)}var Lf={"--epr-emoji-variation-picker-bg-color":"var(--epr-dark-emoji-variation-picker-bg-color)","--epr-hover-bg-color-reduced-opacity":"var(--epr-dark-hover-bg-color-reduced-opacity)","--epr-highlight-color":"var(--epr-dark-highlight-color)","--epr-text-color":"var(--epr-dark-text-color)","--epr-hover-bg-color":"var(--epr-dark-h
142over-bg-color)","--epr-focus-bg-color":"var(--epr-dark-focus-bg-color)","--epr-search-input-bg-color":"var(--epr-dark-search-input-bg-color)","--epr-category-label-bg-color":"var(--epr-dark-category-label-bg-color)","--epr-picker-border-color":"var(--epr-dark-picker-border-color)","--epr-bg-color":"var(--epr-dark-bg-color)","--epr-reactions-bg-color":"var(--epr-dark-reactions-bg-color)","--epr-search-input-bg-color-active":"var(--epr-dark-search-input-bg-color-active)","--epr-emoji-variation-indicator-color":"var(--epr-dark-emoji-variation-indicator-color)","--epr-category-icon-active-color":"var(--epr-dark-category-icon-active-color)","--epr-skin-tone-picker-menu-color":"var(--epr-dark-skin-tone-picker-menu-color)","--epr-skin-tone-outer-border-color":"var(--epr-dark-skin-tone-outer-border-color)","--epr-skin-tone-inner-border-color":"var(--epr-dark-skin-tone-inner-border-color)"},Ln=q.create({main:{".":["epr-main",U.emojiPicker],position:"relative",display:"flex",flexDirection:"column",borderWidth:"1px",borderStyle:"solid",borderRadius:"var(--epr-picker-border-radius)",borderColor:"var(--epr-picker-border-color)",backgroundColor:"var(--epr-bg-color)",overflow:"hidden",transition:"height 0.3s ease-in-out, background-color 0.1s ease-in-out","*":{boxSizing:"border-box",fontFamily:"sans-serif"}},baseVariables:{"--":{"--epr-highlight-color":"#007aeb","--epr-hover-bg-color":"#e5f0fa","--epr-hover-bg-color-reduced-opacity":"#e5f0fa80","--epr-focus-bg-color":"#e0f0ff","--epr-text-color":"#858585","--epr-search-input-bg-color":"#f6f6f6","--epr-picker-border-color":"#e7e7e7","--epr-bg-color":"#fff","--epr-reactions-bg-color":"#ffffff90","--epr-category-icon-active-color":"#6aa8de","--epr-skin-tone-picker-menu-color":"#ffffff95","--epr-skin-tone-outer-border-color":"#555555","--epr-skin-tone-inner-border-color":"var(--epr-bg-color)","--epr-horizontal-padding":"10px","--epr-picker-border-radius":"8px","--epr-header-padding":"15px var(--epr-horizontal-padding)","--epr-active-skin-tone-indicator-border-color":"var(--epr-highlight-color)","--epr-active-skin-hover-color":"var(--epr-hover-bg-color)","--epr-search-input-bg-color-active":"var(--epr-search-input-bg-color)","--epr-search-input-padding":"0 30px","--epr-search-input-border-radius":"8px","--epr-search-input-height":"40px","--epr-search-input-text-color":"var(--epr-text-color)","--epr-search-input-placeholder-color":"var(--epr-text-color)","--epr-search-bar-inner-padding":"var(--epr-horizontal-padding)","--epr-search-border-color":"var(--epr-search-input-bg-color)","--epr-search-border-color-active":"var(--epr-highlight-color)","--epr-category-navigation-button-size":"30px","--epr-emoji-variation-picker-height":"45px","--epr-emoji-variation-picker-bg-color":"var(--epr-bg-color)","--epr-preview-height":"70px","--epr-preview-text-size":"14px","--epr-preview-text-padding":"0 var(--epr-horizontal-padding)","--epr-preview-border-color":"var(--epr-picker-border-color)","--epr-preview-text-color":"var(--epr-text-color)","--epr-category-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-bg-color":"#ffffffe6","--epr-category-label-text-color":"var(--epr-text-color)","--epr-category-label-padding":"0 var(--epr-horizontal-padding)","--epr-category-label-height":Sa+"px","--epr-emoji-size":"30px","--epr-emoji-padding":"5px","--epr-emoji-fullsize":"calc(var(--epr-emoji-size) + var(--epr-emoji-padding) * 2)","--epr-emoji-hover-color":"var(--epr-hover-bg-color)","--epr-emoji-variation-indicator-color":"var(--epr-picker-border-color)","--epr-emoji-variation-indicator-color-hover":"var(--epr-text-color)","--epr-header-overlay-z-index":"3","--epr-emoji-variations-indictator-z-index":"1","--epr-category-label-z-index":"2","--epr-skin-variation-picker-z-index":"5","--epr-preview-z-index":"6","--epr-dark":"#000","--epr-dark-emoji-variation-picker-bg-color":"var(--epr-dark)","--epr-dark-highlight-color":"#c0c0c0","--epr-dark-text-color":"var(--epr-highlight-color)","--epr-dark-hover-bg-color":"#363636f6","--epr-dark-hover-bg-color-reduced-opacity":"#36363680","--epr-dark-focus-bg-color":"#474747","--epr-dark-search-input-bg-color":"#333333","--epr-dark-category-label-bg-color":"#222222e6","--epr-dark-picker-border-color":"#151617","--epr-dark-bg-color":"#222222","--epr-dark-reactions-bg-color":"#22222290","--epr-dark-search-input-bg-color-active":"var(--epr-dark)","--epr-dark-emoji-variation-indicator-color":"#444","--epr-dark-category-icon-active-color":"#3271b7","--epr-dark-skin-tone-picker-menu-color":"#22222295","--epr-dark-skin-tone-outer-border-color":"var(--epr-dark-picker-border-color)","--epr-dark-skin-tone-inner-border-color":"#00000000"}},autoThemeDark:{".":U.autoTheme,"@media (prefers-color-scheme: dark)":{"--":Lf}},darkTheme:{".":U.darkTheme,"--":Lf},reactionsMenu:{".":"epr-reactions",height:"50px",display:"inline-flex",backgroundColor:"var(--epr-reactions-bg-color)",backdropFilter:"blur(8px)","--":{"--epr-picker-border-radius":"50px"}}});function Jd(t,e){if(!t||!e)return 0;var n=t.getBoundingClientRect().width,r=e.getBoundingClientRect().width;return Math.floor(n/r)}function Nw(t,e,n){if(!t||!e.length)return null;var r=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom,a=r+Ud(t),o=e.find(function(s){var f=s.getBoundingClientRect().top,l=s.getBoundingClientRect().bottom,c=s.clientHeight*n,u=f+c,h=l-c;return u<a?!1:u>=r&&u<=i||h>=r&&h<=i});return o||null}function Dw(t){return!!t.nextElementSibling}function Ud(t){if(!t)return Sa;var e=t.querySelector(Oe(U.label));if(e){var n=e.getBoundingClientRect().height;if(n>0)return n}return Sa}var _n="button"+Oe(U.emoji),Ew=[_n,Oe(U.visible),":not("+Oe(U.hidden)+")"].join("");function Ye(t){var e;return(e=t==null?void 0:t.closest(_n))!=null?e:null}function Qd(t){var e=_d(t),n=No(t);if(!e)return[];var r=di(n??e);return r?[r,n]:[]}function Aw(t){var e;return!!(t!=null&&t.matches(_n)||!(t==null||(e=t.parentElement)==null)&&e.matches(_n))}function Cf(t){var e;return(e=t==null?void 0:t.clientHeight)!=null?e:0}function Yd(t){if(!t)return 0;var e=Ye(t),n=Ct(e),r=To(n);return vf(e)+vf(n)+r}function To(t){var e,n;if(!t)return 0;var r=t.querySelector(Oe(U.categoryContent));return((e=t==null?void 0:t.clientHeight)!=null?e:0)-((n=r==null?void 0:r.clientHeight)!=null?n:0)}function zw(t){return t?Gd(t)<To(Ct(t)):!1}function Hd(t){return t?t.matches(Oe(U.scrollBody))?t:t.querySelector(Oe(U.scrollBody)):null}function Gd(t){var e,n;return t?Yd(t)-((e=(n=Fd(t))==null?void 0:n.scrollTop)!=null?e:0):0}function Fd(t){var e;return t&&(e=t.closest(Oe(U.scrollBody)))!=null?e:null}function Rw(t){var e=Ye(t),n=Ct(e);return kf(e)+kf(n)}function vf(t){var e;return(e=t==null?void 0:t.offsetTop)!=null?e:0}function kf(t){var e;return(e=t==null?void 0:t.offsetLeft)!=null?e:0}function No(t){var e;return(e=Ow(Ye(t),"unified"))!=null?e:null}function _d(t){var e=No(t);return e?ld(e):null}function Do(t){return t?{unified:No(t),originalUnified:_d(t)}:{unified:null,originalUnified:null}}function Ow(t,e){var n;return(n=Pw(t)[e])!=null?n:null}function Pw(t){var e;return(e=t==null?void 0:t.dataset)!=null?e:{}}function Eo(t){return t.classList.contains(U.visible)}function Vd(t){return t?t.classList.contains(U.hidden):!0}function hn(t){return t?Array.from(t.querySelectorAll(Ew)):[]}function Wd(t){if(!t)return null;var e=hn(t),n=e.slice(-1),r=n[0];return r?Eo(r)?r:Ao(r):null}function Zd(t){var e=t.nextElementSibling;return e?Eo(e)?e:Zd(e):zo(Mi(t))}function Ao(t){var e=t.previousElementSibling;return e?Eo(e)?e:Ao(e):Wd(wi(t))}function zo(t){if(!t)return null;var e=hn(t);return Nw(t,e,.1)}function wi(t){var e=Ct(t);if(!e)return null;var n=e.previousElementSibling;return n?Vd(n)?wi(n):n:null}function Mi(t){var e=Ct(t);if(!e)return null;var n=e.nextElementSibling;return n?Vd(n)?Mi(n):n:null}function Ct(t){return t?t.closest(Oe(U.category)):null}function $d(t){return t?t.closest(Oe(U.categoryContent)):null}function Kd(t){return t.split("-").map(function(e){return String.fromCodePoint(parseInt(e,16))}).join("")}function Bw(t){return t.category===B.CUSTOM}function qd(t){return t.imgUrl!==void 0}function Xd(t,e){var n=b.useRef(),r=Rd(),i=j4(),a=bn(),o=a[1],s=Gt(),f=pi(),l=f[0],c=R4(e),u=Co(),h=u[1],d=Ht(),p=Yt(),m=gn(),g=m.emojiByUnified,y=b.useCallback(function(v){if(!i.current){s();var S=Sf(v,g),C=S[0],x=S[1];if(!(!C||!x)){var E=b4(x)||l;h(),h4(C,E),c(Jw(C,E,p,d),v)}}},[l,s,i,g,c,h,d,p]),M=b.useCallback(function(v){var S;n.current&&clearTimeout(n.current);var C=Sf(v,g),x=C[0];!x||!mn(x)||(n.current=(S=window)==null?void 0:S.setTimeout(function(){i.current=!0,n.current=void 0,s(),r(v.target),o(x)},500))},[i,g,s,r,o]),L=b.useCallback(function(){n.current?(clearTimeout(n.current),n.current=void 0):i.current&&requestAnimationFrame(function(){i.current=!1})},[i]);b.useEffect(function(){if(t.current){var w=t.current;return w.addEventListener("click",y,{passive:!0}),w.addEventListener("mousedown",M,{passive:!0}),w.addEventListener("mouseup",L,{passive:!0}),function(){w==null||w.removeEventListener("click",y),w==null||w.removeEventListener("mousedown",M),w==null||w.removeEventListener("mouseup",L)}}},[t,y,M,L])}function Sf(t,e){var n=t==null?void 0:t.target;if(!Aw(n))return[];var r=Do(n),i=r.unified,a=r.originalUnified,o=i??a;if(!o)return[];var s=e(o);return s?[s,i??o]:[]}function Jw(t,e,n,r){var i=yo(t);if(qd(t)){var a=Ge(t);return{activeSkinTone:e,emoji:a,getImageUrl:function(){return t.imgUrl},imageUrl:t.imgUrl,isCustom:!0,names:i,unified:a,unifiedWithoutSkinTone:a}}var o=Ge(t,e);return{activeSkinTone:e,emoji:Kd(o),getImageUrl:function(f){return f===void 0&&(f=n??ve.APPLE),r(o,f)},imageUrl:r(o,n??ve.APPLE),isCustom:!1,names:i,unified:o,unifiedWithoutSkinTone:Ge(t)}}function rr(t){return b.createElement("button",Object.assign({type:"button"},t,{className:J(Uw.button,t.className)}),t.children)}var Uw=q.create({button:{".":"epr-btn",cursor:"pointer",border:"0",background:"none",outline:"none"}});function Qw(t){var e,n=t.emojiNames,r=t.unified,i=t.hidden,a=t.hiddenOnSearch,o=t.showVariations,s=o===void 0?!0:o,f=t.hasVariations,l=t.children,c=t.className,u=t.noBackgroun
vendor: 4,845 bytes, line 142
142d,h=u===void 0?!1:u,d=t.style;return b.createElement(rr,{className:J(Fi.emoji,i&&ho.hidden,a&&Jt.hiddenOnSearch,(e={},e[U.visible]=!i&&!a,e),!!(f&&s)&&Fi.hasVariations,h&&Fi.noBackground,c),"data-unified":r,"aria-label":Yw(n),"data-full-name":n,style:d},l)}function Yw(t){return t[t.length-1]}var Fi=q.create({emoji:{".":U.emoji,position:"relative",width:"var(--epr-emoji-fullsize)",height:"var(--epr-emoji-fullsize)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",borderRadius:"8px",overflow:"hidden",transition:"background-color 0.2s",":hover":{backgroundColor:"var(--epr-emoji-hover-color)"},":focus":{backgroundColor:"var(--epr-focus-bg-color)"}},noBackground:{background:"none",":hover":{backgroundColor:"transparent",background:"none"},":focus":{backgroundColor:"transparent",background:"none"}},hasVariations:{".":U.emojiHasVariations,":after":{content:"",display:"block",width:"0",height:"0",right:"0px",bottom:"1px",position:"absolute",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",transform:"rotate(135deg)",borderBottom:"4px solid var(--epr-emoji-variation-indicator-color)",zIndex:"var(--epr-emoji-variations-indictator-z-index)"},":hover:after":{borderBottom:"4px solid var(--epr-emoji-variation-indicator-color-hover)"}}}),_r=q.create({external:{".":U.external,fontSize:"0"},common:{alignSelf:"center",justifySelf:"center",display:"block"}});function jf(t){var e=t.emojiName,n=t.style,r=t.lazyLoad,i=r===void 0?!1:r,a=t.imgUrl,o=t.onError,s=t.className;return b.createElement("img",{src:a,alt:e,className:J(Hw.emojiImag,_r.external,_r.common,s),loading:i?"lazy":"eager",onError:o,style:n})}var Hw=q.create({emojiImag:{".":"epr-emoji-img",maxWidth:"var(--epr-emoji-fullsize)",maxHeight:"var(--epr-emoji-fullsize)",minWidth:"var(--epr-emoji-fullsize)",minHeight:"var(--epr-emoji-fullsize)",padding:"var(--epr-emoji-padding)"}});function Gw(t){var e=t.unified,n=t.style,r=t.className;return b.createElement("span",{className:J(Fw.nativeEmoji,_r.common,_r.external,r),"data-unified":e,style:n},Kd(e))}var Fw=q.create({nativeEmoji:{".":"epr-emoji-native",fontFamily:'"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',position:"relative",lineHeight:"100%",fontSize:"var(--epr-emoji-size)",textAlign:"center",alignSelf:"center",justifySelf:"center",letterSpacing:"0",padding:"var(--epr-emoji-padding)"}});function ja(t){var e=t.emoji,n=t.unified,r=t.emojiStyle,i=t.size,a=t.lazyLoad,o=t.getEmojiUrl,s=o===void 0?ed:o,f=t.className,l=dd(),c=l[1],u=gn(),h=u.emojiByUnified,d={};i&&(d.width=d.height=d.fontSize=i+"px");var p=e||h(n);if(!p)return null;if(qd(p))return b.createElement(jf,{style:d,emojiName:n,emojiStyle:ve.NATIVE,lazyLoad:a,imgUrl:p.imgUrl,onError:m,className:f});return b.createElement(b.Fragment,null,r===ve.NATIVE?b.createElement(Gw,{unified:n,style:d,className:f}):b.createElement(jf,{style:d,emojiName:$y(p),emojiStyle:r,lazyLoad:a,imgUrl:s(n,r),onError:m,className:f}));function m(){c(function(g){return new Set(g).add(n)})}}function Li(t){var e=t.emoji,n=t.unified,r=t.hidden,i=t.hiddenOnSearch,a=t.emojiStyle,o=t.showVariations,s=o===void 0?!0:o,f=t.size,l=t.lazyLoad,c=t.getEmojiUrl,u=t.className,h=t.noBackground,d=h===void 0?!1:h,p=t.style,m=mn(e);return b.createElement(Qw,{hasVariations:m,showVariations:s,hidden:r,hiddenOnSearch:i,emojiNames:yo(e),unified:n,noBackground:d,style:p},b.createElement(ja,{unified:n,emoji:e,size:f,emojiStyle:a,lazyLoad:l,getEmojiUrl:c,className:u}))}var _w="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4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LjUsMC4yLTAuNSwwLjV2My40SDYuMgoJQzUuOSwyOS45LDUuNywzMC4xLDUuNywzMC40TDUuNywzMC40eiIvPgo8cGF0aCBmaWxsPSIjQzBDMEJGIiBkPSJNNS43LDUwLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40QzYsNTAuOSw2LjEsNTEsNi4zLDUxaDMuNHYzLjRjMCwwLjEsMC4xLDAuMywwLjIsMC40CgljMC4xLDAuMSwwLjIsMC4yLDAuNCwwLjJjMC4zLDAsMC41LTAuMiwwLjUtMC41di0zLjRoMy40YzAuMywwLDAuNS0wLjIsMC41LTAuNXMtMC4yLTAuNS0wLjUtMC41aC0zLjR2LTMuNGMwLTAuMy0wLjItMC41LTAuNS0wLjUKCXMtMC41LDAuMi0wLjUsMC41djMuNEg2LjJDNS45LDQ5LjksNS43LDUwLjEsNS43LDUwLjRMNS43LDUwLjR6Ii8+CjxwYXRoIGZpbGw9IiM2QUE5REQiIGQ9Ik01LjcsNzAuNGMwLDAuMSwwLjEsMC4zLDAuMiwwLjRTNi4xLDcxLDYuMyw3MWgzLjR2My40YzAsMC4xLDAuMSwwLjMsMC4yLDAuNGMwLjEsMC4xLDAuMiwwLjIsMC40LDAuMgoJYzAuMywwLDAuNS0wLjIsMC41LTAuNXYtMy40aDMuNGMwLjMsMCwwLjUtMC4yLDAuNS0wLjVzLTAuMi0wLjUtMC41LTAuNWgtMy40di0zLjRjMC0wLjMtMC4yLTAuNS0wLjUtMC41cy0wLjUsMC4yLTAuNSwwLjV2My40SDYuNAoJQzUuOSw2OS45LDUuNyw3MC4xLDUuNyw3MC40TDUuNyw3MC40eiIvPgo8L3N2Zz4=";function Vw(){var t=Qt(),e=t[1];return b.createElement(rr,{"aria-label":"Show all Emojis",title:"Show all Emojis",tabIndex:0,className:J(Ww.plusSign),onClick:function(){return e(!1)}})}var Ww=q.create(F({plusSign:{fontSize:"20px",padding:"17px",color:"var(--epr-text-color)",borderRadius:"50%",textAlign:"center",lineHeight:"100%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.2s ease-in-out",":after":{content:"",minWidth:"20px",minHeight:"20px",backgroundImage:"url("+_w+")",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",backgroundPositionY:"0"},":hover":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-20px"}},":focus":{color:"var(--epr-highlight-color)",backgroundColor:"var(--epr-hover-bg-color-reduced-opacity)",":after":{backgroundPositionY:"-40px"}}}},bt("plusSign",{":after":{backgroundPositionY:"-40px"},":hover:after":{backgroundPositionY:"-60px"}})));function Zw(){var t=Qt(),e=t[0],n=_4(),r=H4();Xd(n,Gn.REACTIONS);var i=Yt(),a=gd(),o=Ht();return e?b.createElement("ul",{className:J(xf.list,!e&&ho.hidden),ref:n,"aria-label":"Reactions"},r.map(function(s){var f=di(s);return f?b.createElement("li",{key:s},b.createElement(Li,{emoji:f,emojiStyle:i,unified:s,showVariations:!1,className:J(xf.emojiButton),noBackground:!0,getEmojiUrl:o})):null}),a?b.createElement("li",null,b.createElement(Vw,null)):null):null}var xf=q.create({list:{listStyle:"none",margin:"0",padding:"0 5px",display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},emojiButton:{":hover":{transform:"scale(1.2)"},":focus":{transform:"scale(1.2)"},":active":{transform:"scale(1.1)"},transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5)"}});function $w(t){var e=Gt(),n=b.useState(0),r=n[0],i=n[1];return b.useEffect(function(){var a=t.current;if(!a)return;a.addEventListener("scroll",o,{passive:!0});function o(){var s;i((s=a==null?void 0:a.scrollTop)!=null?s:0),e()}return function(){a==null||a.removeEventListener("scroll",o)}},[t,e]),r}function Kw(t){var e=t.scrollTop,n=t.clientHeight,r=t.topOffset,i=t.style,a=t.dimensions;if(!i||!a)return!1;var o=r+i.top,s=o+a.emojiSize,f=s+a.emojiSize*2>=e&&o<=e+n+a.emojiSize;return!f}function qw(t,e){return t?{top:Math.floor(e/t.emojisPerRow)*t.emojiSize,left:e%t.emojisPerRow*t.emojiSize}:void 0}var Xw=40;function eM(t){var e=xd(),n=Qt(),r=n[0],i=yn(),a=b.useRef(),o=Lo(),s=o[0],f=hd(),l=f[0],c=b.useState(),u=c[0],h=c[1],d=b.useCallback(function(){var p=e.current;if(p){var m=p.querySelector(_n),g=m==null?void 0:m.clientHeight;g&&(a.current=g);var y=l||g||a.current||Xw,M=p.clientWidth;if(!(M===0||y===0)){var L=Math.max(1,Math.floor(M/y)),w=Math.ceil(t/L),v=w*y;h({categoryHeight:v,emojisPerRow:L,emojiSize:y})}}},[e,t,l]);return b.useEffect(function(){d()},[t,r,d,s.length]),b.useEffect(function(){var p=i.current;if(p){var m=function(y){var M=y,L=M.propertyName;(L==="width"||L==="max-width"||L==="min-width"||L==="height"||L==="max-height"||L==="min-height")&&(typeof queueMicrotask=="function"?queueMicrotask(function(){return d()}):requestAnimationFrame(function(){return d()}))};return p.addEventListener("transitionend",m,{passive:!0}),function(){p.removeEventListener("transitionend",m)}}},[i,d]),u}function tM(){var t=dd(),e=t[0],n=dw();return function(r){var i=Ut(r),a=e.has(i),o=n(i);return{failedToLoad:a,filteredOut:o,hidden:a||o}}}function nM(t){var e=t.categoryEmojis,n=t.topOffset,r=t.onHeightReady,i=t.scrollTop,a=t.isCategoryVisible,o=tM(),s=Md(),f=Yt(),l=pi(),c=l[0],u=C4(),h=Ht(),d=!bd(),p=Te(),m=0,g=e.filter(function(w){var v=u(w),S=o(w),C=S.failedToLoad,x=S.filteredOut,E=S.hidden;return!C&&!x&&!E&&!v}),y=eM(g.length);b.useEffect(function(){y&&r(y.categoryHeight)},[y,r,g.length]);var M=function(v){var S,C;
142return y&&p.current&&Kw({scrollTop:i,clientHeight:(S=(C=p.current)==null?void 0:C.clientHeight)!=null?S:0,topOffset:n,style:v,dimensions:y})},L=g.reduce(function(w,v,S){var C=Ut(v,c),x=qw(y,S);if(M(x)){var E,j;return m++,kw(v,f,i,(E=(j=p.current)==null?void 0:j.clientHeight)!=null?E:0,n,x,y,h),w}return a?(w.push(b.createElement(Li,{showVariations:d,key:C,emoji:v,unified:C,emojiStyle:f,lazyLoad:s,getEmojiUrl:h,style:F({},x,{position:"absolute"})})),w):(m++,w)},[]);return{virtualizedCounter:m,emojis:L,dimensions:y}}function rM(t){var e=t.categoryConfig,n=t.children,r=t.hidden,i=t.hiddenOnSearch,a=t.height,o=ci(e),s=rd(e);return b.createElement("li",{className:J(_i.category,r&&ho.hidden,i&&Jt.hiddenOnSearch),"data-name":o,"aria-label":s},b.createElement("h2",{className:J(_i.label)},s),b.createElement("div",{className:J(_i.categoryContent),style:{height:a}},n))}var _i=q.create({category:{".":U.category,minHeight:"calc(var(--epr-emoji-fullsize) + var(--epr-category-label-height))",position:"relative"},categoryContent:{".":U.categoryContent,display:"grid",gridGap:"0",gridTemplateColumns:"repeat(auto-fill, var(--epr-emoji-fullsize))",justifyContent:"space-between",margin:"var(--epr-category-padding)",position:"relative"},label:{".":U.label,alignItems:"center",backdropFilter:"blur(3px)",backgroundColor:"var(--epr-category-label-bg-color)",color:"var(--epr-category-label-text-color)",display:"flex",fontSize:"16px",fontWeight:"bold",height:"var(--epr-category-label-height)",margin:"0",padding:"var(--epr-category-label-padding)",position:"sticky",textTransform:"capitalize",top:"0",width:"100%",zIndex:"var(--epr-category-label-z-index)"}});function iM(){var t=vo(),e=p4(),n=Yt(),r=Ht(),i=Md(),a=pi(),o=a[0],s=hd(),f=s[0],l=s[1],c=b.useRef(null);if(b.useLayoutEffect(function(){c.current&&l(c.current.clientHeight)}),f)return null;var u=t[0],h=e(ci(u))[0],d=h?Ge(h,o):"";return h?b.createElement("div",{ref:c},b.createElement(Li,{emoji:h,unified:d,emojiStyle:n,getEmojiUrl:r,lazyLoad:i,showVariations:!1,hidden:!1,style:{opacity:0,pointerEvents:"none",position:"absolute",top:0,left:0,zIndex:-1,height:"var(--epr-emoji-fullsize)",width:"var(--epr-emoji-fullsize)"}})):null}function aM(t){var e=t.scrollTop,n=vo(),r=b.useState({}),i=r[0],a=r[1],o=xd(),s=w4(),f=Ud(o.current),l=0;return b.createElement("ul",{className:J(sM.emojiList),ref:o},b.createElement(iM,null),n.map(function(c){var u=ci(c),h=l,d=i[u];return d&&(l+=d+f),b.createElement(b.Suspense,{key:u},b.createElement(oM,{categoryEmojis:s(u),categoryConfig:c,topOffset:h,onHeightReady:function(m){i[u]!==m&&a(function(g){var y;return F({},g,(y={},y[u]=m,y))})},scrollTop:e}))}))}function oM(t){var e=t.categoryEmojis,n=t.categoryConfig,r=t.topOffset,i=t.onHeightReady,a=t.scrollTop,o=Lo(),s=o[0],f=nM({categoryEmojis:e,topOffset:r,onHeightReady:i,scrollTop:a,isCategoryVisible:s.includes(n.category)}),l=f.virtualizedCounter,c=f.emojis,u=f.dimensions;return b.createElement(rM,{categoryConfig:n,height:u==null?void 0:u.categoryHeight,hidden:!c.length&&l===0},c)}var sM=q.create({emojiList:{".":U.emojiList,listStyle:"none",margin:"0",padding:"0"}}),fM="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MHB4IgoJIGhlaWdodD0iMTVweCIgdmlld0JveD0iMCAwIDUwIDE1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MCAxNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnIGlkPSJMYXllcl8xIj4KPC9nPgo8ZyBpZD0iTGF5ZXJfMiI+Cgk8cGF0aCBmaWxsPSIjRkZGRkZGIiBzdHJva2U9IiNFOEU3RTciIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KCTxwYXRoIGZpbGw9IiMwMTAyMDIiIHN0cm9rZT0iIzE1MTYxNyIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMjYuODYtMC40M2w5LjgzLDExLjUzYzAuNTksMC42OSwxLjU2LDAuNjksMi4xNCwwbDkuODMtMTEuNTMiLz4KPC9nPgo8L3N2Zz4=",tn;(function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"})(tn||(tn={}));function lM(){var t=gi(),e=V4(),n=bn(),r=n[0],i=Yt(),a=uM(e),o=a.getTop,s=a.getMenuDirection,f=Id(),l=cM(e),c=Ht(),u=Ye(t.current),h=!!(r&&u&&mn(r)&&u.classList.contains(U.emojiHasVariations));b.useEffect(function(){h&&yi(e.current)},[e,h,t]);var d,p;return!h&&t.current?f(null):(d=o(),p=l()),b.createElement("div",{ref:e,className:J(gr.variationPicker,s()===tn.Down&&gr.pointingUp,h&&gr.visible),style:{to
142p:d}},h&&r?[Ge(r)].concat(ui(r)).slice(0,6).map(function(m){return b.createElement(Li,{key:m,emoji:r,unified:m,emojiStyle:i,showVariations:!1,getEmojiUrl:c})}):null,b.createElement("div",{className:J(gr.pointer),style:p}))}function cM(t){var e=gi();return function(){var r={};if(!t.current)return r;if(e.current){var i=Ye(e.current),a=Rw(i);if(!i)return r;r.left=a+(i==null?void 0:i.clientWidth)/2}return r}}function uM(t){var e=gi(),n=Te(),r=tn.Up;return{getMenuDirection:i,getTop:a};function i(){return r}function a(){r=tn.Up;var o=0;if(!t.current)return 0;var s=Cf(t.current);if(e.current){var f,l=n.current,c=Ye(e.current),u=Cf(c);o=Yd(c);var h=(f=l==null?void 0:l.scrollTop)!=null?f:0;h>o-s&&(r=tn.Down,o+=u+s)}return o-s}}var gr=q.create(F({variationPicker:{".":U.variationPicker,position:"absolute",right:"15px",left:"15px",padding:"5px",boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.2)",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"space-around",opacity:"0",visibility:"hidden",pointerEvents:"none",top:"-100%",border:"1px solid var(--epr-picker-border-color)",height:"var(--epr-emoji-variation-picker-height)",zIndex:"var(--epr-skin-variation-picker-z-index)",background:"var(--epr-emoji-variation-picker-bg-color)",transform:"scale(0.9)",transition:"transform 0.1s ease-out, opacity 0.2s ease-out"},visible:{opacity:"1",visibility:"visible",pointerEvents:"all",transform:"scale(1)"},pointingUp:{".":"pointing-up",transformOrigin:"center 0%",transform:"scale(0.9)"},".pointing-up":{pointer:{top:"0",transform:"rotate(180deg) translateY(100%) translateX(18px)"}},pointer:{".":"epr-emoji-pointer",content:"",position:"absolute",width:"25px",height:"15px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"50px 15px",top:"100%",transform:"translateX(-18px)",backgroundImage:"url("+fM+")"}},bt("pointer",{backgroundPosition:"-25px 0"})));function dM(){var t=Te(),e=$w(t);return Xd(t,Gn.PICKER),aw(),b.createElement("div",{className:J(hM.body,Jt.hiddenOnReactions),ref:t},b.createElement(lM,null),b.createElement(aM,{scrollTop:e}))}var hM=q.create({body:{".":U.scrollBody,flex:"1",overflowY:"scroll",overflowX:"hidden",position:"relative"}});function pM(t,e){if(!t||!e)return 0;var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return r.height-(n.y-r.y)}function mM(t,e){var n=Te(),r=Ed(),i=Dd();b.useEffect(function(){if(!t)return;var a=n.current;a==null||a.addEventListener("keydown",f,{passive:!0}),a==null||a.addEventListener("mouseover",l,!0),a==null||a.addEventListener("focus",o,!0),a==null||a.addEventListener("mouseout",s,{passive:!0}),a==null||a.addEventListener("blur",s,!0);function o(c){var u=Ye(c.target);if(!u)return s();var h=Do(u),d=h.unified,p=h.originalUnified;if(!d||!p)return s();e({unified:d,originalUnified:p})}function s(c){if(c){var u=c.relatedTarget;if(!Ye(u))return e(null)}e(null)}function f(c){c.key==="Escape"&&e(null)}function l(c){if(!r()){var u=Ye(c.target);if(u){var h=pM(u,a),d=u.getBoundingClientRect().height;if(h<d)return gM(u,e);Ie(u)}}}return function(){a==null||a.removeEventListener("mouseover",l),a==null||a.removeEventListener("mouseout",s),a==null||a.removeEventListener("focus",o,!0),a==null||a.removeEventListener("blur",s,!0),a==null||a.removeEventListener("keydown",f)}},[n,t,e,r,i])}function gM(t,e){var n,r=Do(t),i=r.unified,a=r.originalUnified;!i||!a||((n=document.activeElement)==null||n.blur==null||n.blur(),e({unified:i,originalUnified:a}))}var br,Vn;(function(t){t.ROW="FlexRow",t.COLUMN="FlexColumn"})(Vn||(Vn={}));function e1(t){var e=t.children,n=t.className,r=t.style,i=r===void 0?{}:r,a=t.direction,o=a===void 0?Vn.ROW:a;return b.createElement("div",{style:F({},i),className:J(If.flex,n,If[o])},e)}var If=q.create((br={flex:{display:"flex"}},br[Vn.ROW]={flexDirection:"row"},br[Vn.COLUMN]={flexDirection:"column"},br));function bM(t){var e=t.className,n=t.style,r=n===void 0?{}:n;return b.createElement("div",{style:F({flex:1},r),className:J(e)})}function yM(t){var e=t.children,n=t.className,r=t.style;return b.createElement("div",{style:F({},r,{position:"absolute"}),className:n},e)}function Ci(t){var e=t.children,n=t.className,r=t.style;return b.createElement("div",{style:F({},r,{position:"relative"}),className:n},e)}function wM(t){var e=t.isOpen,n=t.onClick,r=t.isActive,i=t.skinToneVariation,a=t.style;return b.createElement(rr,{style:a,onClick:n,className:J("epr-tone-"+i,Vi.tone,!e&&Vi.closedTone,r&&Vi.active),"aria-pressed":r,"aria-label":"Skin tone "+Wy[i]})}var Vi=q.create({closedTone:{opacity:"0",zIndex:"0"},active:{".":"epr-active",zIndex:"1",opacity:"1"},tone:{".":"epr-tone",width:"var(--epr-skin-tone-size)",display:"block",cursor:"pointer",borderRadius:"4px",height:"var(--epr-skin-tone-size)",position:"absolute",right:"0",transition:"transform 0.3s ease-in-out, opacity 0.35s ease-in-out",zIndex:"0",border:"1px solid var(--epr-skin-tone-outer-border-color)",boxShadow:"inset 0px 0px 0 1px var(--epr-skin-tone-inner-border-color)",":hover":{boxShadow:"0 0 0 3px var(--epr-active-skin-hover-color), inset 0px 0px 0 1px var(--epr-skin-tone-inner-border-color)"},":focus":{boxShadow:"0 0 0 3px var(--epr-focus-bg-color)"},"&.epr-tone-neutral":{backgroundColor:"#ffd225"},"&.epr-tone-1f3fb":{backgroundColor:"#ffdfbd"},"&.epr-tone-1f3fc":{backgroundColor:"#e9c197"},"&.epr-tone-1f3fd":{backgroundColor:"#c88e62"},"&.epr-tone-1f3fe":{backgroundColor:"#a86637"},"&.epr-tone-1f3ff":{backgroundColor:"#60463a"}}}),xn=28;function MM(){return b.createElement(Ci,{style:{height:xn}},b.createElement(yM,{style:{bottom:0,right:0}},b.createElement(t1,{direction:Wn.VERTICAL})))}function t1(t){var e=t.direction,n=e===void 0?Wn.HORIZONTAL:e,r=ko(),i=bd(),a=nr(),o=a[0],s=a[1],f=pi(),l=f[0],c=f[1],u=O4(),h=Gt(),d=Ft();if(i)return null;var p=xn*Gr.length+"px",m=o?p:xn+"px",g=n===Wn.VERTICAL;
142return b.createElement(Ci,{className:J(Cn.skinTones,g&&Cn.vertical,o&&Cn.open,g&&o&&Cn.verticalShadow),style:g?{flexBasis:m,height:m}:{flexBasis:m}},b.createElement("div",{className:J(Cn.select),ref:r},Gr.map(function(y,M){var L=y===l;return b.createElement(wM,{key:y,skinToneVariation:y,isOpen:o,style:{transform:J(g?"translateY(-"+M*(o?xn:0)+"px)":"translateX(-"+M*(o?xn:0)+"px)",o&&L&&"scale(1.3)")},isActive:L,onClick:function(){o?(c(y),u(y),d()):s(!0),h()}})})))}var Wn;(function(t){t.VERTICAL="epr-vertical",t.HORIZONTAL="epr-horizontal"})(Wn||(Wn={}));var Cn=q.create({skinTones:{".":"epr-skin-tones","--":{"--epr-skin-tone-size":"15px"},display:"flex",alignItems:"center",justifyContent:"flex-end",transition:"all 0.3s ease-in-out",padding:"10px 0"},vertical:{padding:"9px",alignItems:"flex-end",flexDirection:"column",borderRadius:"6px",border:"1px solid var(--epr-bg-color)"},verticalShadow:{boxShadow:"0px 0 7px var(--epr-picker-border-color)"},open:{backdropFilter:"blur(5px)",background:"var(--epr-skin-tone-picker-menu-color)",".epr-active":{border:"1px solid var(--epr-active-skin-tone-indicator-border-color)"}},select:{".":"epr-skin-tone-select",position:"relative",width:"var(--epr-skin-tone-size)",height:"var(--epr-skin-tone-size)"}});function LM(){var t=yd(),e=Od(),n=Qt(),r=n[0];return t.showPreview?b.createElement(e1,{className:J(zn.preview,Jt.hiddenOnReactions,r&&zn.hideOnReactions)},b.createElement(CM,null),b.createElement(bM,null),e?b.createElement(MM,null):null):null}function CM(){var t,e=yd(),n=b.useState(null),r=n[0],i=n[1],a=Yt(),o=bn(),s=o[0],f=Ht(),l=gn(),c=l.emojiByUnified;mM(e.showPreview,i);var u=c((t=r==null?void 0:r.unified)!=null?t:r==null?void 0:r.originalUnified),h=u!=null&&r!=null;return b.createElement(d,null);function d(){var p=s??c(e.defaultEmoji);if(!p)return null;var m=s?gf(s):e.defaultCaption;return b.createElement(b.Fragment,null,b.createElement("div",null,h?b.createElement(ja,{unified:r==null?void 0:r.unified,emoji:u,emojiStyle:a,size:45,getEmojiUrl:f,className:J(zn.emoji)}):p?b.createElement(ja,{unified:Ge(p),emoji:p,emojiStyle:a,size:45,getEmojiUrl:f,className:J(zn.emoji)}):null),b.createElement("div",{className:J(zn.label)},h?gf(u):m))}}var zn=q.create({preview:{alignItems:"center",borderTop:"1px solid var(--epr-preview-border-color)",height:"var(--epr-preview-height)",padding:"0 var(--epr-horizontal-padding)",position:"relative",zIndex:"var(--epr-preview-z-index)"},label:{color:"var(--epr-preview-text-color)",fontSize:"var(--epr-preview-text-size)",padding:"var(--epr-preview-text-padding)",textTransform:"capitalize"},emoji:{padding:"0"},hideOnReactions:{opacity:"0",transition:"opacity 0.5s ease-in-out"}});function vM(t){var e;return(e=t==null?void 0:t.getAttribute("data-name"))!=null?e:null}function kM(t){var e=t.setActiveCategory,n=t.setVisibleCategories,r=Te();b.useEffect(function(){var i=new Map,a=new Map,o=r.current,s=new IntersectionObserver(function(f){if(o){for(var l=By(f),c;!(c=l()).done;){var u=c.value,h=vM(u.target);h&&(i.set(h,u.intersectionRatio),a.set(h,u.isIntersecting))}var d=Array.from(i),p=d.filter(function(v){var S=v[0],C=v[1];return C>0||a.get(S)}).map(function(v){var S=v[0];return S});n(p);var m=d[d.length-1];if((m==null?void 0:m[1])==1)return e(m[0]);for(var g=0,y=d;g<y.length;g++){var M=y[g],L=M[0],w=M[1];if(w){e(L);break}}}},{root:o,threshold:[0,1]});return o==null||o.querySelectorAll(Oe(U.category)).forEach(function(f){s.observe(f)}),function(){s.disconnect()}},[r,e,n])}function SM(){var t=Te(),e=yn();return function(r){var i;if(t.current){var a=(i=t.current)==null?void 0:i.querySelector('[data-name="'+r+'"]');if(a){var o=a.offsetTop||0;Td(e.current,o)}}}}function jM(){var t=A4();return t?t.length===0:!1}var xM="
vendor: 42,642 bytes, line 142
142data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Igo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nk9IjAuNyIvPgoJCTxlbGxpcHNlIGZpbGw9IiM4Njg2ODYiIGN4PSIzMi40IiBjeT0iOS43IiByeD0iMC43IiByeT0iMC43Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+
142";function IM(t){var e,n,r=t.isActiveCategory,i=t.category,a=t.allowNavigation,o=t.categoryConfig,s=t.onClick,f=t.customIcon,l=(e=o.icon)!=null?e:f,c=l!=null;return b.createElement(rr,{tabIndex:a?0:-1,className:J(Df.catBtn,Jt.categoryBtn,c?Df.customIcon:"epr-icn-"+i,(n={},n[U.active]=r,n)),onClick:s,"aria-label":rd(o),"aria-selected":r,role:"tab","aria-controls":"epr-category-nav-id"},c?l:null)}var Tf={backgroundPositionY:"calc(var(--epr-category-navigation-button-size) * 3)"},TM={backgroundPositionY:"calc(var(--epr-category-navigation-button-size) * 2)"},Nf={":not(.epr-search-active)":{catBtn:{":hover":Tf,"&.epr-active":Tf}}},Df=q.create(F({catBtn:{".":"epr-cat-btn",display:"inline-block",transition:"opacity 0.2s ease-in-out",position:"relative",height:"var(--epr-category-navigation-button-size)",width:"var(--epr-category-navigation-button-size)",backgroundSize:"calc(var(--epr-category-navigation-button-size) * 10)",outline:"none",backgroundPosition:"0 0",backgroundImage:"url("+xM+")",":focus:before":{content:"",position:"absolute",top:"-2px",left:"-2px",right:"-2px",bottom:"-2px",border:"2px solid var(--epr-category-icon-active-color)",borderRadius:"50%"},"&.epr-icn-suggested":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -8)"},"&.epr-icn-custom":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -9)"},"&.epr-icn-activities":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -4)"},"&.epr-icn-animals_nature":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -1)"},"&.epr-icn-flags":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -7)"},"&.epr-icn-food_drink":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -2)"},"&.epr-icn-objects":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -5)"},"&.epr-icn-smileys_people":{backgroundPositionX:"0px"},"&.epr-icn-symbols":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -6)"},"&.epr-icn-travel_places":{backgroundPositionX:"calc(var(--epr-category-navigation-button-size) * -3)"}},customIcon:{".":"epr-cat-btn-custom-icon",backgroundImage:"none",display:"flex",alignItems:"center",justifyContent:"center"}},bt("catBtn",TM),{".epr-dark-theme":F({},Nf),".epr-auto-theme":F({},Nf)}));function NM(){var t=b.useState(null),e=t[0],n=t[1],r=Lo(),i=r[1],a=SM();kM({setActiveCategory:n,setVisibleCategories:i});var o=mi(),s=vo(),f=E4(),l=So(),c=jM();return b.createElement("div",{className:J(DM.nav),role:"tablist","aria-label":"Category navigation",id:"epr-category-nav-id",ref:l},s.map(function(u){var h=ci(u),d=h===e;if(Bw(u)&&c)return null;var p=!o&&!d;return b.createElement(IM,{key:h,category:h,isActiveCategory:d,allowNavigation:p,categoryConfig:u,customIcon:f[h],onClick:function(){a(h),setTimeout(function(){n(h)},10)}})}))}var DM=q.create({nav:{".":"epr-category-nav",display:"flex",flexDirection:"row",justifyContent:"space-around",padding:"var(--epr-header-padding)"},".epr-search-active":{nav:{opacity:"0.3",cursor:"default",pointerEvents:"none"}},".epr-main:has(input:not(:placeholder-shown))":{nav:{opacity:"0.3",cursor:"default",pointerEvents:"none"}}}),n1="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eG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yMS0wLjIxLDAuMjEtMC41NCwwLTAuNzVsLTIuNDMtMi40M0wxMy4zMiw2OAoJYzAuMjEtMC4yMSwwLjIxLTAuNTQsMC0wLjc1Yy0wLjIxLTAuMjEtMC41NC0wLjIxLTAuNzUsMGwtMi40MiwyLjQybC0yLjQxLTIuNDFjLTAuMjEtMC4yMS0wLjU0LTAuMjEtMC43NSwwCgljLTAuMjEsMC4yMS0wLjIxLDAuNTQsMCwwLjc1bDIuNDEsMi40MWwtMi40MiwyLjQyQzYuNzcsNzMuMDUsNi43Nyw3My4zOSw2Ljk4LDczLjU5TDYuOTgsNzMuNTl6Ii8+CjxwYXRoIGZpbGw9IiM2QUE5REQiIGQ9Ik0xMC4xNSw3OC40M2M0LjQxLDAsOC0zLjU5LDgtOGMwLTQuNDEtMy41OS04LTgtOGMtNC40MSwwLTgsMy41OS04LDhDMi4xNSw3NC44NCw1Ljc0LDc4LjQzLDEwLjE1LDc4LjQzegoJIE0xMC4xNSw2My40OWMzLjgzLDAsNi45NCwzLjExLDYuOTQsNi45NGMwLDMuODMtMy4xMSw2Ljk0LTYuOTQsNi45NGMtMy44MywwLTYuOTQtMy4xMS02Ljk0LTYuOTQKCUMzLjIxLDY2LjYsNi4zMyw2My40OSwxMC4xNSw2My40OUwxMC4xNSw2My40OXoiLz4KPC9zdmc+";function EM(){var t=zd(),e=T4();return b.createElement(rr,{className:J(Ef.btnClearSearch,Jt.visibleOnSearchOnly),onClick:t,"aria-label":e,title:e},b.createElement("div",{className:J(Ef.icnClearnSearch)}))}var AM={":hover":{"> .epr-icn-clear-search":{backgroundPositionY:"-60px"}}},Ef=q.create(F({btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+n1+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},bt("icnClearnSearch",{backgroundPositionY:"-40px"}),bt("btnClearSearch",AM))),zM="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+";function RM(){return b.createElement("div",{className:J(OM.icnSearch)})}var OM=q.create(F({icnSearch:{".":"epr-icn-search",content:"",position:"absolute",top:"50%",left:"var(--epr-search-bar-inner-padding)",transform:"translateY(-50%)",width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"20px",backgroundImage:"url("+zM+")"}},bt("icnSearch",{backgroundPositionY:"-20px"})));function PM(){var t=Ld(),e=xo();return t?null:b.createElement(e1,{className:J(xr.overlay)},b.createElement(BM,null),e?b.createElement(t1,null):null)}
142function BM(){var t=Gt(),e=Lt(),n=I4(),r=D4(),i=lw(),a=i.statusSearchResults,o=i.searchTerm,s=i.onChange,f=e==null?void 0:e.current,l=f==null?void 0:f.value;return b.createElement(Ci,{className:J(xr.searchContainer)},b.createElement("input",{autoFocus:r,"aria-label":"Type to search for an emoji",onFocus:t,className:J(xr.search),type:"text","aria-controls":"epr-search-id",placeholder:n,onChange:function(u){var h,d;s((h=u==null||(d=u.target)==null?void 0:d.value)!=null?h:l)},ref:e}),o?b.createElement("div",{role:"status",className:J("epr-status-search-results",xr.visuallyHidden),"aria-live":"polite",id:"epr-search-id","aria-atomic":"true"},a):null,b.createElement(RM,null),b.createElement(EM,null))}var xr=q.create(F({overlay:{padding:"var(--epr-header-padding)",zIndex:"var(--epr-header-overlay-z-index)"},searchContainer:{".":"epr-search-container",flex:"1",display:"block",minWidth:"0"},visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"},search:{outline:"none",transition:"all 0.2s ease-in-out",color:"var(--epr-search-input-text-color)",borderRadius:"var(--epr-search-input-border-radius)",padding:"var(--epr-search-input-padding)",height:"var(--epr-search-input-height)",backgroundColor:"var(--epr-search-input-bg-color)",border:"1px solid var(--epr-search-border-color)",width:"100%",":focus":{backgroundColor:"var(--epr-search-input-bg-color-active)",border:"1px solid var(--epr-search-border-color-active)"},"::placeholder":{color:"var(--epr-search-input-placeholder-color)"}},btnClearSearch:{".":"epr-btn-clear-search",position:"absolute",right:"var(--epr-search-bar-inner-padding)",height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center",top:"50%",transform:"translateY(-50%)",padding:"0",borderRadius:"50%",":hover":{background:"var(--epr-hover-bg-color)"},":focus":{background:"var(--epr-hover-bg-color)"}},icnClearnSearch:{".":"epr-icn-clear-search",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"20px",height:"20px",width:"20px",backgroundImage:"url("+n1+")",":hover":{backgroundPositionY:"-20px"},":focus":{backgroundPositionY:"-20px"}}},bt("icnClearnSearch",{backgroundPositionY:"-40px"}),bt("btnClearSearch",{":hover > .epr-icn-clear-search":{backgroundPositionY:"-60px"}})));function JM(){return b.createElement(Ci,{className:J("epr-header",Jt.hiddenOnReactions)},b.createElement(PM,null),b.createElement(NM,null))}function UM(t){return b.createElement(F4,null,b.createElement(Qy,{nonce:t.nonce}),b.createElement(l4,Object.assign({},t),b.createElement(y4,null,b.createElement(QM,null))))}function QM(){var t=Qt(),e=t[0],n=gd(),r=b.useState(!e),i=r[0],a=r[1],o=z4();return b.useEffect(function(){e&&!n||i||a(!0)},[i,n,e]),o?b.createElement(Iw,null,b.createElement(Zw,null),b.createElement(YM,{renderAll:i})):null}function YM(t){var e=t.renderAll;return e?b.createElement(b.Fragment,null,b.createElement(JM,null),b.createElement(dM,null),b.createElement(LM,null)):null}var HM=b.memo(UM,Ku),GM=function(t){Jy(e,t);function e(r){var i;return i=t.call(this,r)||this,i.state={hasError:!1},i}e.getDerivedStateFromError=function(){return{hasError:!0}};var n=e.prototype;return n.componentDidCatch=function(i,a){console.error("Emoji Picker React failed to render:",i,a)},n.render=function(){return this.state.hasError?null:this.props.children},e}(b.Component);function FM(t){var e=x4({onEmojiClick:t.onEmojiClick,onReactionClick:t.onReactionClick,onSkinToneChange:t.onSkinToneChange});return b.createElement(GM,null,b.createElement(pd.Provider,{value:e},b.createElement(HM,Object.assign({},t))))}function Af(t){const e=Number(t);return Number.isFinite(e)?e:void 0}function _M(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function VM(t){const e=t==null?void 0:t.data,n=(t==null?void 0:t.meta)??{};return{matches:Array.isArray(e)?e.map(i=>{var a;return{id:i==null?void 0:i.id,username:(a=i==null?void 0:i.attributes)==null?void 0:a.username}}):[],currentPage:Af(n.currentPage),totalPages:Af(n.totalPages)}}function WM({currentPage:t,totalPages:e,matches:n=[]}={}){return!Number.isFinite(t)||!Number.isFinite(e)?!1:t<e&&n.length>0}function ZM({mentionSearch:t,wait:e=y1,onFetchStart:n=()=>{}}={}){if(typeof t!="function")throw new TypeError("createMemberSearchPager requires a `mentionSearch` function");let r=null,i=[],a=0,o=!1,s=!1,f=0,l=1,c=null;function u(){return{query:r,matches:i,hasMore:o}}function h(){return c??(c=_M()),c.promise}function d(){const v=c;c=null,v==null||v.resolve(u())}function p(v){const S=c;c=null,S==null||S.reject(v)}async function m(v){const S=f;s=!0,n(v);try{const C=await t(r,v);if(S!==f)return;const{matches:x,currentPage:E,totalPages:j}=VM(C);i=v===1?x:i.concat(x),a=E??v,o=WM({currentPage:a,totalPages:j,matches:x}),s=!1,d()}catch(C){if(S!==f)return;s=!1,p(C)}}const g=u1(()=>m(l),e);function y(v){const S=typeof v=="string"?v:"";if(S===r){if(a>0&&!s)return Promise.resolve(u());const x=h();return s||(l=1,g()),x}f+=1,r=S,i=[],a=0,o=!1,s=!1,l=1;const C=h();return g(),C}function M(){if(!o||a===0||s)return Promise.resolve(u());l=a+1;const v=h();return g(),v}function L(){return{query:r,matches:i,hasMore:o,page:a}}function w(){g.cancel(),f+=1,s=!1,d()}return{search:y,loadMore:M,getState:L,cancel:w}}const $M=48,yr={status:"idle",matches:[],hasMore:!1,loadingMore:!1,errorMessage:null},xa="Something went wrong",zf=t=>M1(t)||xa;function KM({query:t,mentionSearch:e,command:n,onComboboxStateChange:r=d1,ref:i}
142){const a=b.useRef(null),o=`mention-suggestion-list-${b.useId().replace(/\W/g,"")}`,[s,f]=b.useState(yr),{status:l,matches:c,hasMore:u,loadingMore:h,errorMessage:d}=s,[p,m]=b.useState(0),{announcePolite:g}=w1();a.current||(a.current=ZM({mentionSearch:e,onFetchStart:()=>f(O=>O.status==="idle"?{...O,status:"loading"}:O)}));const y=b.useRef(null),M=b.useRef(!1),L=b.useRef(!1),w=b.useRef(null),v=c.length===0?-1:Math.min(p,c.length-1),S=O=>`${o}-option-${O}`,C=v<0?null:S(v),x=l!=="idle",E=b.useRef(c),j=b.useRef(v),z=b.useRef(x),R=b.useRef(u);b.useEffect(()=>{E.current=c,j.current=v,z.current=x,R.current=u},[c,v,x,u]),b.useEffect(()=>{const O=a.current;if(!t.trim()){f(yr);return}let oe=!0;return f(yr),m(0),j.current=0,w.current=null,L.current=!1,O.search(t).then(Z=>{!oe||L.current||f({status:"ready",matches:Z.matches,hasMore:Z.hasMore,loadingMore:!1})}).catch(Z=>{!oe||L.current||f(Me=>({...Me,status:"error",loadingMore:!1,errorMessage:zf(Z)}))}),()=>{oe=!1,O.cancel()}},[t]),b.useEffect(()=>{const O=y.current;if(!O||!u)return;const oe=a.current;let Z=!0;const Me=()=>{if(M.current)return;const{scrollHeight:vt,scrollTop:ir,clientHeight:i1}=O;vt-ir-i1>$M||(M.current=!0,f(_t=>({..._t,loadingMore:!0})),oe.loadMore().then(_t=>{Z&&(M.current=!1,!L.current&&f(vi=>({...vi,matches:_t.matches,hasMore:_t.hasMore,loadingMore:!1})))}).catch(_t=>{Z&&(M.current=!1,!L.current&&f(vi=>({...vi,status:"error",loadingMore:!1,errorMessage:zf(_t)})))}))};return O.addEventListener("scroll",Me),()=>{Z=!1,M.current=!1,O.removeEventListener("scroll",Me)}},[t,u]),b.useEffect(()=>{const O=y.current,oe=C?document.getElementById(C):null;if(!O||!oe)return;if(v===c.length-1){O.scrollTop=O.scrollHeight;return}const Z=O.getBoundingClientRect(),Me=oe.getBoundingClientRect();Me.top<Z.top?O.scrollTop-=Z.top-Me.top:Me.bottom>Z.bottom&&(O.scrollTop+=Me.bottom-Z.bottom)},[C,v,c.length,h,l]),b.useEffect(()=>{r({expanded:x,listId:o,activeOptionId:C})},[r,x,o,C]);const Q=b.useCallback(O=>{w.current!==O&&(w.current=O,g(O))},[g]);b.useEffect(()=>{if(h){Q("Loading more results");return}if(l==="error"){Q(d||xa);return}l==="ready"&&Q(c.length===0?"No members found":`${c.length} ${c.length===1?"member":"members"} found`)},[Q,l,c.length,h,d]);const G=O=>{const oe=E.current.length;if(oe===0)return!1;const Z=j.current+O;if(Z<0||Z>=oe){if(R.current)return!0;const Me=(Z+oe)%oe;return j.current=Me,m(Me),!0}return j.current=Z,m(Z),!0},K=()=>{const O=E.current[j.current];return O?(n({id:O.id,username:O.username}),!0):!1},_e=O=>{O.stopPropagation(),L.current=!0,a.current.cancel(),f(yr)},Ne=O=>{if(!z.current)return!1;switch(O.key){case"ArrowDown":return G(1);case"ArrowUp":return G(-1);case"Enter":case"Tab":return K();case"Escape":return _e(O),!0;default:return!1}};return b.useImperativeHandle(i,()=>({onKeyDown:Ne})),l==="idle"?null:T.jsxs("ul",{className:"mention-suggestion-list",id:o,ref:y,role:"listbox","aria-label":"Member suggestions","aria-busy":l==="loading"||h,children:[c.map(({id:O,username:oe},Z)=>T.jsx("li",{role:"presentation",children:T.jsxs("button",{type:"button",role:"option",id:S(Z),tabIndex:-1,"aria-selected":Z===v,className:Bf("mention-suggestion-list__option",{"mention-suggestion-list__option--highlighted":Z===v}),onClick:()=>n({id:O,username:oe}),children:["@",oe]})},O)),l==="loading"&&T.jsxs("li",{className:"mention-suggestion-list__status",role:"presentation",children:[T.jsx(Oo,{}),"Loading results..."]}),l==="ready"&&c.length===0&&T.jsx("li",{className:"mention-suggestion-list__status",role:"presentation",children:"No members found"}),h&&T.jsxs("li",{className:"mention-suggestion-list__status",role:"presentation",children:[T.jsx(Oo,{}),"Loading more results..."]}),l==="error"&&T.jsx("li",{className:"mention-suggestion-list__status",role:"presentation",children:d||xa})]})}const qM=264,XM=56,eL=8,tL="--mention-popup-max-height";function nL(t){return Math.max(XM,Math.min(qM,Math.floor(t)))}function rL({mentionSearch:t}){return{char:"@",allowSpaces:!1,items:()=>[],floatingUi:{middleware:[h1({padding:eL,apply:({availableHeight:e,elements:n})=>{n.floating.style.setProperty(tL,`${nL(e)}px`)}})]},render:()=>{let e=null,n=null,r=null,i={expanded:!1,listId:null,activeOptionId:null};const a=s=>{if(i=s,!r)return;const{expanded:f,listId:l,activeOptionId:c}=i;r.setAttribute("aria-expanded",f?"true":"false"),f&&l?r.setAttribute("aria-controls",l):r.removeAttribute("aria-controls"),f&&c?r.setAttribute("aria-activedescendant",c):r.removeAttribute("aria-activedescendant")},o=({query:s,command:f})=>({query:s,mentionSearch:t,command:f,onComboboxStateChange:a});return{onStart:s=>{r=s.editor.view.dom,e=new cb(KM,{props:o(s),editor:s.editor}),n=s.mount(e.element)},onUpdate:s=>{e==null||e.updateProps(o(s)),a(i)},onKeyDown:({event:s})=>{var f;return((f=e==null?void 0:e.ref)==null?void 0:f.onKeyDown(s))??!1},onExit:()=>{a({expanded:!1,listId:null,activeOptionId:null}),r=null,n==null||n(),n=null,e==null||e.destroy(),e=null}}}}}function iL(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:s}=t,f=r&&!i,l=Sg(n),c=new RegExp(`\\s${l}$`),u=o?"^":"",h=i?"":l,d=f?new RegExp(`${u}${l}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${u}(?:^)?${l}[^\\s${h}]*`,"gm"),p=((e=s.nodeBefore)==null?void 0:e.isText)&&s.nodeBefore.text;if(!p)return null;const m=s.pos-p.length,g=Array.from(p.matchAll(d)).pop();if(!g||g.input===void 0||g.index===void 0)return null;const y=g.input.slice(Math.max(0,g.index-1),g.index),M=new RegExp(`^[${a==null?void 0:a.join("")}\0]?$`).test(y);if(a!==null&&!M)return null;const L=m+g.index;let w=L+g[0].length;return f&&c.test(p.slice(w-1,w+1))&&(g[0]+=" ",w+=1),L<s.pos&&w>=s.pos?{range:{from:L,to:w},query:g[0].slice(n.length),text:g[0]}:null}function aL(t){return t.docChanged?t.steps.some(e=>{const n=e.slice;if(!(n!=null&&n.content))return!1;const r=n.content.textBetween(0,n.content.size,`
143`);return/\s/.test(r)}):!1}function oL(t){return()=>{const e=t.state.selection.$anchor.pos,n=t.view.coordsAtPos(e),{top:r,right:i,bottom:a,left
143:o}=n;try{return new DOMRect(o,r,i-o,a-r)}catch{return null}}}function sL(t,e,n,r){return n?()=>{const i=r.getState(t.state),a=i==null?void 0:i.decorationId,o=e.dom.querySelector(`[data-decoration-id="${a}"]`);return(o==null?void 0:o.getBoundingClientRect())||null}:oL(t)}function fL({match:t,dismissedRange:e,state:n,transaction:r,editor:i,shouldResetDismissed:a,effectiveAllowSpaces:o}){return a!=null&&a({editor:i,state:n,range:e,match:t,transaction:r,allowSpaces:o})?!1:o?t.range.from===e.from:t.range.from===e.from&&!aL(r)}function lL({view:t,pluginKeyRef:e}){const n=t.state.tr.setMeta(e,{exit:!0});t.dispatch(n)}function cL({pluginKey:t,decorationTag:e,decorationClass:n,decorationContent:r,decorationEmptyClass:i,renderer:a,dispatchExit:o}){return{handleKeyDown(s,f){var l,c;const u=t.getState(s.state);return u.active?f.key==="Escape"||f.key==="Esc"?((l=a==null?void 0:a.onKeyDown)==null||l.call(a,{view:s,event:f,range:u.range}),o(s),!0):((c=a==null?void 0:a.onKeyDown)==null?void 0:c.call(a,{view:s,event:f,range:u.range}))||!1:!1},decorations(s){const f=t.getState(s),{active:l,range:c,decorationId:u,query:h}=f;if(!l)return null;const d=!(h!=null&&h.length),p=[n];return d&&p.push(i),H.create(s.doc,[ge.inline(c.from,c.to,{nodeName:e,class:p.join(" "),"data-decoration-id":u||void 0,"data-decoration-content":r})])}}}function uL({editor:t,char:e,effectiveAllowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,findSuggestionMatch:o,allow:s,shouldShow:f,shouldKeepDismissed:l,pluginKey:c}){return{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(u,h,d,p){const{isEditable:m}=t,{composing:g}=t.view,{selection:y}=u,{empty:M,from:L}=y,w={...h},v=u.getMeta(c);if(v&&v.exit)return w.active=!1,w.decorationId=null,w.range={from:0,to:0},w.query=null,w.text=null,w.dismissedRange=h.active?{...h.range}:h.dismissedRange,w;if(w.composing=g,u.docChanged&&w.dismissedRange!==null&&(w.dismissedRange={from:u.mapping.map(w.dismissedRange.from),to:u.mapping.map(w.dismissedRange.to)}),m&&(M||t.view.composing)){(L<h.range.from||L>h.range.to)&&!g&&!h.composing&&(w.active=!1);const S=o({char:e,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:y.$from}),C=`id_${Math.floor(Math.random()*4294967295)}`;S&&s({editor:t,state:p,range:S.range,isActive:h.active})&&(!f||f({editor:t,range:S.range,query:S.query,text:S.text,transaction:u}))?(w.dismissedRange!==null&&!l({match:S,dismissedRange:w.dismissedRange,state:p,transaction:u})&&(w.dismissedRange=null),w.dismissedRange===null?(w.active=!0,w.decorationId=h.decorationId||C,w.range=S.range,w.query=S.query,w.text=S.text):w.active=!1):(S||(w.dismissedRange=null),w.active=!1)}else w.active=!1;return w.active||(w.decorationId=null,w.range={from:0,to:0},w.query=null,w.text=null),w}}}function dL({editor:t,items:e}){let n=null,r=null,i=null;const a=()=>{r!==null&&(clearTimeout(r),r=null),i==null||i(),i=null},o=l=>new Promise(c=>{i=c,r=setTimeout(()=>{r=null;const u=i;i=null,u==null||u()},l)}),s=()=>{n==null||n.abort(),a(),n=null};return{abort:s,fetch:async(l,c)=>{s(),n=new AbortController;const u=n;if(c>0&&await o(c),n!==u||u.signal.aborted)return{status:"aborted"};try{const h=await e({editor:t,query:l,signal:u.signal});return n!==u||u.signal.aborted?{status:"aborted"}:{status:"resolved",items:h}}catch{return n!==u||u.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function hL({placement:t,offset:e,flip:n,floatingUi:r}){var i,a,o,s;const f=[p1({mainAxis:(i=e.mainAxis)!=null?i:4,crossAxis:(a=e.crossAxis)!=null?a:0})];return n&&f.push(m1()),(o=r==null?void 0:r.middleware)!=null&&o.length&&f.push(...r.middleware),{placement:t,strategy:(s=r==null?void 0:r.strategy)!=null?s:"absolute",middleware:f}}function pL(t){if(t instanceof HTMLElement)return t;if(typeof t=="string")try{const e=document.querySelector(t);if(e)return e}catch{return document.body}return document.body}function mL({getReferenceRect:t,contextElement:e,config:n,container:r,dismissOnOutsideClick:i,dismiss:a}){return(o,s={})=>{const f={getBoundingClientRect:()=>{var p;return(p=t())!=null?p:new DOMRect},contextElement:e};let l=!1;const c=!o.isConnected;c&&pL(r).appendChild(o),s.onPosition||(o.style.visibility="hidden",o.style.width="max-content");const h=g1(f,o,()=>{b1(f,o,{placement:n.placement,strategy:n.strategy,middleware:n.middleware}).then(({x:p,y:m,placement:g,strategy:y})=>{if(s.onPosition){s.onPosition({x:p,y:m,placement:g,strategy:y});return}Object.assign(o.style,{position:y,left:`${p}px`,top:`${m}px`}),l||(l=!0,o.style.visibility="")})},s.autoUpdate);let d;return i&&(d=p=>{const m=p.target;!(m instanceof Node)||o.contains(m)||e.contains(m)||a()},document.addEventListener("pointerdown",d,!0)),()=>{h(),d&&document.removeEventListener("pointerdown",d,!0),c&&o.remove()}}}function gL({editor:t,pluginKey:e,items:n,renderer:r,minQueryLength:i,debounce:a,initialItems:o,placement:s,offset:f,container:l,flip:c,floatingUi:u,dismissOnOutsideClick:h,command:d,clientRectFor:p,dispatchExit:m}){let g;const y=dL({editor:t,items:n}),M=hL({placement:s,offset:f,flip:c,floatingUi:u});function L(w,v){var S,C,x;switch(w){case"started":(S=r==null?void 0:r.onStart)==null||S.call(r,v);break;case"updated":(C=r==null?void 0:r.onUpdate)==null||C.call(r,v);break;case"stopped":(x=r==null?void 0:r.onExit)==null||x.call(r,v);break}}return{update:async(w,v)=>{var S,C,x,E;const j=e.getState(v),z=e.getState(w.state);if(!j||!z)return;let R=null;const Q=j.query!==z.query,G=j.text!==z.text,K=j.range.from!==z.range.from||j.range.to!==z.range.to,_e=Q||G||K;if(!j.active&&z.active)R="started";else if(j.active&&!z.active)R="stopped";else if(z.active&&_e)R="updated";else return;const Ne=R==="stopped"?j:z,O=w.dom.querySelector(`[data-decoration-id="${Ne.decorationId}"]`),oe=p(w,O),Z=i===0||(Ne.query?Ne.query.length>=i:!1),Me=(R==="started"||R==="updated")&&Z;if(g={editor:t,range:Ne.range,query:Ne.query||"",text:Ne.text||"",items:o??[],command:vt=>d({editor:t,range:Ne.range,props:vt}),decorationNode:O,clientRect:oe,loading:Me,placement:s,offset:{mainAxis:(S=f.mainAxis)!=null?S:4,crossAxis:(C=f.crossAxis)!=null?C:0},container:l,flip:c,floatingUi:M,mount:mL({getReferenceRect:oe,contextElement:w.dom,config:M,container:l,dismissOnOutsideClick:h,dismiss:()=>m(t.view)})},R==="started"&&((x=r==null?void 0:r.onBeforeStart)==null||x.call(r,g)),R==="updated"&&((E=r==null?void 0:r.onBeforeUpdate)==null||E.call(r,g)),R==="started"&&L(R,g),R==="started"||R==="updated")if(!Me)y.abort(),g={...g,items:o??[],loading:!1};else{g={...g,items:o??[],loading:!0},R="updated",L(R,g);const vt=await y.fetch(Ne.query||"",a);if(vt.status==="aborted")return;const ir=e.getState(w.state);if(!(ir!=null&&ir.active)){y.abort();return}g=vt.status==="resolved"?{...g,items:vt.items,loading:!1}:{...g,loading:!1}}if(R==="stopped"){y.abort(),L(R,g),g=void 0;return}R==="updated"&&L(R,g)},destroy:()=>{var w;y.abort(),g&&((w=r==null?void 0:r.onExit)==null||w.call(r,g))}}}var bL=new ee("suggestion");function yL({pluginKey:t=bL,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:f="suggestion",decorationContent:l="",decorationEmptyClass:c="is-empty",command:u=()=>null,items:h=()=>[],minQueryLength:d=0,debounce:p=0,initialItems:m,placement:g="bottom-start",offset:y={},container:M,flip:L=!0,floatingUi:w,dismissOnOutsideClick:v=!0,render:S=()=>({}),allow:C=()=>!0,findSuggestionMatch:x=iL,shouldShow:E,shouldResetDismissed:j}){const z=S==null?void 0:S(),R=r&&!i,Q=(_e,Ne)=>sL(e,_e,Ne,t);function G(_e){return fL({..._e,editor:e,shouldResetDismissed:j,effectiveAllowSpaces:R})}const K=_e=>lL({view:_e,pluginKeyRef:t});return new W({key:t,view:()=>gL({editor:e,pluginKey:t,items:h,renderer:z,minQueryLength:d,debounce:p,initialItems:m,placement:g,offset:y,container:M,flip:L,floatingUi:w,dismissOnOutsideClick:v,command:u,clientRectFor:Q,dispatchExit:K}),state:uL({editor:e,char:n,effectiveAllowSpaces:R,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,findSuggestionMatch:x,allow:C,shouldShow:E,shouldKeepDismissed:G,pluginKey:t}),props:cL({pluginKey:t,decorationTag:s,decorationClass:f,decorationContent:l,decorationEmptyClass:c,renderer:z,dispatchExit:K})})}function wL({editor:t,overrideSuggestionOptions:e,extensionName:n,char:r="@"}){const i=new ee;return{editor:t,char:r,pluginKey:i,command:({editor:a,range:o,props:s})=>{var f,l,c;const u=a.view.state.selection.$to.nodeAfter;((f=u==null?void 0:u.text)==null?void 0:f.startsWith(" "))&&(o.to+=1),a.chain().focus().insertContentAt(o,[{type:n,attrs:{...s,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(c=(l=a.view.dom.ownerDocument.defaultView)==null?void 0:l.getSelection())==null||c.collapseToEnd()},allow:({state:a,range:o})=>{const s=a.doc.resolve(o.from),f=a.schema.nodes[n];return!!s.parent.type.contentMatch.matchType(f)},...e}}function r1(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>wL({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function Rf(t,e){const n=r1(t),r=n.find(i=>i.char===e);return r||(n.length?n[0]:null)}var ML=we.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:t,suggestion:e}){var n,r;return`${(n=e==null?void 0:e.char)!=null?n:"@"}${(r=t.attrs.label)!=null?r:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e,suggestion:n}){var r,i;return["span",V(this.HTMLAttributes,t.HTMLAttributes),`${(r=n==null?void 0:n.char)!=null?r:"@"}${(i=e.attrs.label)!=null?i:e.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>
143t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:t=>t.getAttribute("data-mention-suggestion-char"),renderHTML:t=>({"data-mention-suggestion-char":t.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){const n=Rf(this,t.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",V({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t,suggestion:n})];const r={...this.options};r.HTMLAttributes=V({"data-type":this.name},this.options.HTMLAttributes,e);const i=this.options.renderHTML({options:r,node:t,suggestion:n});return typeof i=="string"?["span",V({"data-type":this.name},this.options.HTMLAttributes,e),i]:i},...Gc({nodeName:"mention",name:"@",selfClosing:!0,allowedAttributes:["id","label",{name:"mentionSuggestionChar",skipIfDefault:"@"}],parseAttributes:t=>{const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,i,a,o]=r,s=a??o;e[i==="char"?"mentionSuggestionChar":i]=s,r=n.exec(t)}return e},serializeAttributes:t=>Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e==="mentionSuggestionChar"?"char":e}="${n}"`).join(" ")}),renderText({node:t}){const e={options:this.options,node:t,suggestion:Rf(this,t.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(e)):this.options.renderText(e)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:i,anchor:a}=r;if(!i)return!1;let o=new lt,s=0;return e.doc.nodesBetween(a-1,a,(f,l)=>{if(f.type.name===this.name)return n=!0,o=f,s=l,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":o.attrs.mentionSuggestionChar,s,s+o.nodeSize),n})}},addProseMirrorPlugins(){return r1(this).map(yL)}});const Ia="data-mention";function Wi(t){return`@${t.attrs.username}`}const LL=ML.extend({addAttributes(){return{id:{default:null,renderHTML:()=>({})},username:{default:null,renderHTML:()=>({})}}},renderHTML({node:t}){return["span",{[Ia]:""},Wi(t)]},renderText({node:t}){return Wi(t)},addNodeView(){return({node:t})=>{const e=document.createElement("span");return e.className="mention-pill",e.textContent=Wi(t),{dom:e}}}});function CL(t){if(!(t!=null&&t.includes(Ia)))return t;const e=document.createElement("template");return e.innerHTML=t,e.content.querySelectorAll(`[${Ia}]`).forEach(n=>n.replaceWith(n.textContent)),e.innerHTML}const vL=t=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...t},b.createElement("line",{x1:8,y1:6,x2:21,y2:6}),b.createElement("line",{x1:8,y1:12,x2:21,y2:12}),b.createElement("line",{x1:8,y1:18,x2:21,y2:18}),b.createElement("circle",{cx:3.5,cy:6,r:1.2,fill:"currentColor",stroke:"none"}),b.createElement("circle",{cx:3.5,cy:12,r:1.2,fill:"currentColor",stroke:"none"}),b.createElement("circle",{cx:3.5,cy:18,r:1.2,fill:"currentColor",stroke:"none"})),kL=t=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...t},b.createElement("circle",{cx:12,cy:12,r:10}),b.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2"}),b.createElement("line",{x1:9,y1:9,x2:9.01,y2:9}),b.createElement("line",{x1:15,y1:9,x2:15.01,y2:9})),SL=t=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...t},b.createElement("path",{d:"M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71"}),b.createElement("path",{d:"M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71"})),jL=t=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...t},b.createElement("line",{x1:10,y1:6,x2:21,y2:6}),b.createElement("line",{x1:10,y1:12,x2:21,y2:12}),b.createElement("line",{x1:10,y1:18,x2:21,y2:18}),b.createElement("text",{x:2,y:8,fontSize:7,fill:"currentColor",stroke:"none",fontWeight:700},"1"),b.createElement("text",{x:2,y:14.5,fontSize:7,fill:"currentColor",stroke:"none",fontWeight:700},"2"),b.createElement("text",{x:2,y:21,fontSize:7,fill:"currentColor",stroke:"none",fontWeight:700},"3"));function NL({onChange:t,placeholder:e="What's on your mind?",ariaLabel:n="Post body",mentionSearch:r}){var E;const[,i]=b.useReducer(j=>j+1,0),[a,o]=b.useState(null),[s,f]=b.useState({open:!1,event:void 0}),l=b.useRef(!1),c=b.useRef(null),[u,h]=b.useState(0),d=ib({extensions:[wy.configure({heading:{levels:[2,3]},link:{openOnClick:!1,autolink:!0,HTMLAttributes:{rel:"noopener noreferrer nofollow",target:"_blank"}}}),My,Cy,xy.configure({controls:!0,nocookie:!0}),ey,dy.configure({placeholder:e}),...r?[LL.configure({suggestion:rL({mentionSearch:r})})]:[]],content:"",editorProps:{attributes:{role:"textbox","aria-multiline":"true","aria-label":n,class:"rich-text-editor__content",...r?{"aria-autocomplete":"list","aria-expanded":"false"}:{}}},onUpdate:({editor:j})=>t({html:CL(j.getHTML()),isEmpty:j.isEmpty})});if(b.useEffect(()=>{if(!d)return;const j=()=>i();return d.on("transaction",j),()=>{d.off("transaction",j)}},[d]),b.useEffect(()=>{var z;const j=(z=c.current)==null?void 0:z.querySelectorAll("button");
143j&&j.forEach((R,Q)=>{R.tabIndex=Q===u?0:-1})},[u,d]),!d)return null;const p=((E=d.storage.characterCount)==null?void 0:E.characters())??0,m=(j,z)=>{if(f({open:!1,event:void 0}),j==="link"){const{from:R,to:Q}=d.state.selection;o({kind:j,event:z.nativeEvent,text:d.state.doc.textBetween(R,Q," "),url:d.getAttributes("link").href||""})}else o({kind:j,event:z.nativeEvent,url:""})},g=()=>{const j=a.url.trim();if(j){const z=d.chain().focus();a.kind==="link"?z.extendMarkRange("link").insertContent({type:"text",text:a.text.trim()||j,marks:[{type:"link",attrs:{href:j}}]}).run():a.kind==="image"?z.setImage({src:j}).run():a.kind==="video"&&z.setYoutubeVideo({src:j}).run()}l.current=!0,o(null)},y=()=>{o(null),l.current&&(l.current=!1,d.commands.focus())},M=j=>{j.key==="Enter"?(j.preventDefault(),g()):j.key==="Escape"&&o(null)},L=j=>{o(null),f({open:!0,event:j.nativeEvent})},w=()=>f({open:!1,event:void 0}),v=()=>{w(),l.current&&(l.current=!1,d.commands.focus())},S=j=>{d.chain().focus().insertContent(j).run(),l.current=!0,w()},C=j=>{var K;const z=(K=c.current)==null?void 0:K.querySelectorAll("button");if(!(z!=null&&z.length))return;const R=Array.prototype.indexOf.call(z,document.activeElement),Q=R>=0?R:u;let G=Q;if(j.key==="ArrowRight")G=(Q+1)%z.length;else if(j.key==="ArrowLeft")G=(Q-1+z.length)%z.length;else if(j.key==="Home")G=0;else if(j.key==="End")G=z.length-1;else return;j.preventDefault(),h(G),z[G].focus()},x=j=>{var G;const z=(G=c.current)==null?void 0:G.querySelectorAll("button"),R=j.target.closest("button");if(!z||!R)return;const Q=Array.prototype.indexOf.call(z,R);Q>=0&&h(Q)};return T.jsxs("div",{className:"rich-text-editor",children:[T.jsxs("div",{className:"rich-text-editor__toolbar",role:"toolbar","aria-label":"Formatting",ref:c,onKeyDown:C,onClick:x,children:[T.jsx(Pe,{label:"Bold",isActive:d.isActive("bold"),onClick:()=>d.chain().focus().toggleBold().run(),children:T.jsx("span",{className:"rich-text-editor__text",children:"B"})}),T.jsx(Pe,{label:"Italic",isActive:d.isActive("italic"),onClick:()=>d.chain().focus().toggleItalic().run(),children:T.jsx("span",{className:"rich-text-editor__text rich-text-editor__text--italic",children:"i"})}),T.jsx(Pe,{label:"Strikethrough",isActive:d.isActive("strike"),onClick:()=>d.chain().focus().toggleStrike().run(),children:T.jsx("span",{className:"rich-text-editor__text rich-text-editor__text--strike",children:"S"})}),T.jsx(Pe,{label:"Superscript",isActive:d.isActive("superscript"),onClick:()=>d.chain().focus().toggleSuperscript().run(),children:T.jsxs("span",{className:"rich-text-editor__text",children:["X",T.jsx("sup",{children:"2"})]})}),T.jsx(Pe,{label:"Heading",isActive:d.isActive("heading",{level:2}),onClick:()=>d.chain().focus().toggleHeading({level:2}).run(),children:T.jsxs("span",{className:"rich-text-editor__text rich-text-editor__text--heading",children:["T",T.jsx("span",{className:"rich-text-editor__text--heading-sm",children:"T"})]})}),T.jsx("span",{className:"rich-text-editor__divider","aria-hidden":"true"}),T.jsx(Pe,{label:"Add link",isActive:d.isActive("link"),onClick:j=>m("link",j),children:T.jsx(SL,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})}),T.jsx(Pe,{label:"Add image",onClick:j=>m("image",j),children:T.jsx(L1,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})}),T.jsx(Pe,{label:"Add video",onClick:j=>m("video",j),children:T.jsx(C1,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})}),T.jsx(Pe,{label:"Add emoji",isActive:s.open,ariaHasPopup:"dialog",ariaExpanded:s.open,onClick:L,children:T.jsx(kL,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})}),T.jsx(Pe,{label:"Bulleted list",isActive:d.isActive("bulletList"),onClick:()=>d.chain().focus().toggleBulletList().run(),children:T.jsx(vL,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})}),T.jsx(Pe,{label:"Numbered list",isActive:d.isActive("orderedList"),onClick:()=>d.chain().focus().toggleOrderedList().run(),children:T.jsx(jL,{className:"rich-text-editor__icon","aria-hidden":"true",focusable:"false"})})]}),T.jsx(Po,{className:"rich-text-editor__prompt-popover",isOpen:!!a,event:a==null?void 0:a.event,reference:"event",side:"bottom",alignment:"start",onDidDismiss:y,children:a&&T.jsxs("div",{className:"rich-text-editor__prompt",children:[a.kind==="link"&&T.jsxs("label",{className:"rich-text-editor__prompt-label",children:["Text",T.jsx("input",{type:"text",className:"rich-text-editor__prompt-input",placeholder:"Link text",value:a.text,autoFocus:!0,onChange:j=>o(z=>({...z,text:j.target.value})),onKeyDown:M})]}),T.jsxs("label",{className:"rich-text-editor__prompt-label",children:[a.kind==="link"&&"Link URL",a.kind==="image"&&"Image URL",a.kind==="video"&&"Video URL (YouTube)",T.jsx("input",{type:"url",className:"rich-text-editor__prompt-input",placeholder:"https://…",value:a.url,autoF
143ocus:a.kind!=="link",onChange:j=>o(z=>({...z,url:j.target.value})),onKeyDown:M})]}),T.jsxs("div",{className:"rich-text-editor__prompt-actions",children:[T.jsx("button",{type:"button",className:"rich-text-editor__prompt-cancel",onClick:()=>o(null),children:"Cancel"}),T.jsx("button",{type:"button",className:"rich-text-editor__prompt-apply",onClick:g,children:"Apply"})]})]})}),T.jsx(su,{editor:d}),T.jsxs("div",{className:"rich-text-editor__count","aria-live":"polite",children:[p," characters"]}),T.jsx(Po,{className:"rich-text-editor__emoji-popover",isOpen:s.open,event:s.event,reference:"event",side:"bottom",alignment:"start",onDidDismiss:v,children:s.open&&T.jsx(FM,{onEmojiClick:j=>S(j.emoji),emojiStyle:ve.NATIVE,theme:un.LIGHT,previewConfig:{showPreview:!1},autoFocusSearch:!1,lazyLoadEmojis:!0,width:"100%",height:360})})]})}function Pe({label:t,isActive:e=!1,onClick:n,children:r,ariaHasPopup:i,ariaExpanded:a}){return T.jsx("button",{type:"button",className:Bf("rich-text-editor__tool",{"rich-text-editor__tool--active":e}),"aria-label":t,"aria-pressed":i?void 0:e,"aria-haspopup":i,"aria-expanded":i?a:void 0,title:t,onClick:n,children:r})}export{NL as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.