@bigbinary/neeto-editor 1.0.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js DELETED
@@ -1,69 +0,0 @@
1
- import*as e from"react";import t,{createContext as n,useContext as i,useState as r,useEffect as o,Children as s,isValidElement as a,cloneElement as l,useRef as c,useCallback as u,forwardRef as p,useLayoutEffect as d,useImperativeHandle as h}from"react";import f,{flushSync as m,createPortal as g}from"react-dom";import b from"http";import v from"https";import y from"url";import x from"stream";import w from"assert";import _ from"tty";import k from"util";import E from"os";import C from"zlib";import M from"path";import O from"fs";import{renderToString as D}from"react-dom/server";function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},T.apply(this,arguments)}function S(e){this.content=e}function N(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(i),o=t.child(i);if(r!=o){if(!r.sameMarkup(o))return n;if(r.isText&&r.text!=o.text){for(let e=0;r.text[e]==o.text[e];e++)n++;return n}if(r.content.size||o.content.size){let e=N(r.content,o.content,n+1);if(null!=e)return e}n+=r.nodeSize}else n+=r.nodeSize}}function A(e,t,n,i){for(let r=e.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:n,b:i};let s=e.child(--r),a=t.child(--o),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:n,b:i};if(s.isText&&s.text!=a.text){let e=0,t=Math.min(s.text.length,a.text.length);for(;e<t&&s.text[s.text.length-e-1]==a.text[a.text.length-e-1];)e++,n--,i--;return{a:n,b:i}}if(s.content.size||a.content.size){let e=A(s.content,a.content,n-1,i-1);if(e)return e}n-=l,i-=l}else n-=l,i-=l}}S.prototype={constructor:S,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,r=i.find(e),o=i.content.slice();return-1==r?o.push(n||e,t):(o[r+1]=t,n&&(o[r]=n)),new S(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new S(n)},addToStart:function(e,t){return new S([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new S(n)},addBefore:function(e,t,n){var i=this.remove(t),r=i.content.slice(),o=i.find(e);return r.splice(-1==o?r.length:o,0,t,n),new S(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=S.from(e)).size?new S(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=S.from(e)).size?new S(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=S.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},S.from=function(e){if(e instanceof S)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new S(t)};class j{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,i=0,r){for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,r||null,o)&&a.content.size){let r=s+1;a.nodesBetween(Math.max(0,e-r),Math.min(a.content.size,t-r),n,i+r)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,i){let r="",o=!0;return this.nodesBetween(e,t,((s,a)=>{s.isText?(r+=s.text.slice(Math.max(e,a)-a,t-a),o=!n):s.isLeaf?(i?r+="function"==typeof i?i(s):i:s.type.spec.leafText&&(r+=s.type.spec.leafText(s)),o=!n):!o&&s.isBlock&&(r+=n,o=!0)}),0),r}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,i=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)i.push(e.content[r]);return new j(i,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],i=0;if(t>e)for(let r=0,o=0;o<t;r++){let s=this.content[r],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),i+=s.nodeSize),o=a}return new j(n,i)}cutByIndex(e,t){return e==t?j.empty:0==e&&t==this.content.length?this:new j(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let i=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new j(i,r)}addToStart(e){return new j([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new j(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))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 t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let i=this.content[t];e(i,n,t),n+=i.nodeSize}}findDiffStart(e,t=0){return N(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return A(this,e,t,n)}findIndex(e,t=-1){if(0==e)return z(0,e);if(e==this.size)return z(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,i=0;;n++){let r=i+this.child(n).nodeSize;if(r>=e)return r==e||t>0?z(n+1,r):z(n,i);i=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return j.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new j(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return j.empty;let t,n=0;for(let i=0;i<e.length;i++){let r=e[i];n+=r.nodeSize,i&&r.isText&&e[i-1].sameMarkup(r)?(t||(t=e.slice(0,i)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}return new j(t||e,n)}static from(e){if(!e)return j.empty;if(e instanceof j)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new j([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}j.empty=new j([],0);const L={index:0,offset:0};function z(e,t){return L.index=e,L.offset=t,L}function I(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!I(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!I(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class R{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let i=0;i<e.length;i++){let r=e[i];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,i));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&I(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return R.none;if(e instanceof R)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}R.none=[];class F extends Error{}class B{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=U(this.content,e+this.openStart,t);return n&&new B(n,this.openStart,this.openEnd)}removeBetween(e,t){return new B(P(this.content,e+this.openStart,t+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,t){if(!t)return B.empty;let n=t.openStart||0,i=t.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new B(j.fromJSON(e,t.content),n,i)}static maxOpen(e,t=!0){let n=0,i=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)i++;return new B(e,n,i)}}function P(e,t,n){let{index:i,offset:r}=e.findIndex(t),o=e.maybeChild(i),{index:s,offset:a}=e.findIndex(n);if(r==t||o.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(i,o.copy(P(o.content,t-r-1,n-r-1)))}function U(e,t,n,i){let{index:r,offset:o}=e.findIndex(t),s=e.maybeChild(r);if(o==t||s.isText)return i&&!i.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=U(s.content,t-o-1,n);return a&&e.replaceChild(r,s.copy(a))}function H(e,t,n){if(n.openStart>e.depth)throw new F("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new F("Inconsistent open depths");return $(e,t,n,0)}function $(e,t,n,i){let r=e.index(i),o=e.node(i);if(r==t.index(i)&&i<e.depth-n.openStart){let s=$(e,t,n,i+1);return o.copy(o.content.replaceChild(r,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=i||t.depth!=i){let{start:r,end:s}=function(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)i=t.node(e).copy(j.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(n,e);return G(o,Y(e,r,s,t,i))}{let i=e.parent,r=i.content;return G(i,r.cut(0,e.parentOffset).append(n.content).append(r.cut(t.parentOffset)))}}return G(o,Q(e,t,i))}function W(e,t){if(!t.type.compatibleContent(e.type))throw new F("Cannot join "+t.type.name+" onto "+e.type.name)}function q(e,t,n){let i=e.node(n);return W(i,t.node(n)),i}function V(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function K(e,t,n,i){let r=(t||e).node(n),o=0,s=t?t.index(n):r.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(V(e.nodeAfter,i),o++));for(let e=o;e<s;e++)V(r.child(e),i);t&&t.depth==n&&t.textOffset&&V(t.nodeBefore,i)}function G(e,t){if(!e.type.validContent(t))throw new F("Invalid content for node "+e.type.name);return e.copy(t)}function Y(e,t,n,i,r){let o=e.depth>r&&q(e,t,r+1),s=i.depth>r&&q(n,i,r+1),a=[];return K(null,e,r,a),o&&s&&t.index(r)==n.index(r)?(W(o,s),V(G(o,Y(e,t,n,i,r+1)),a)):(o&&V(G(o,Q(e,t,r+1)),a),K(t,n,r,a),s&&V(G(s,Q(n,i,r+1)),a)),K(i,null,r,a),new j(a)}function Q(e,t,n){let i=[];if(K(null,e,n,i),e.depth>n){V(G(q(e,t,n+1),Q(e,t,n+1)),i)}return K(t,null,n,i),new j(i)}B.empty=new B(j.empty,0,0);class Z{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?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[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],i=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)i+=n.child(t).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return R.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){let e=n;n=i,i=e}let r=n.marks;for(var o=0;o<r.length;o++)!1!==r[o].type.spec.inclusive||i&&r[o].isInSet(i.marks)||(r=r[o--].removeFromSet(r));return r}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,i=e.parent.maybeChild(e.index());for(var r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||i&&n[r].isInSet(i.marks)||(n=n[r--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new te(this,e,n);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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],i=0,r=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(r),s=r-o;if(n.push(t,e,i+o),!s)break;if(t=t.child(e),t.isText)break;r=s-1,i+=o+1}return new Z(t,n,r)}static resolveCached(e,t){for(let n=0;n<J.length;n++){let i=J[n];if(i.pos==t&&i.doc==e)return i}let n=J[X]=Z.resolve(e,t);return X=(X+1)%ee,n}}let J=[],X=0,ee=12;class te{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}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 ne=Object.create(null);class ie{constructor(e,t,n,i=R.none){this.type=e,this.attrs=t,this.marks=i,this.content=n||j.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,i=0){this.content.nodesBetween(e,t,n,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,t,n,i){return this.content.textBetween(e,t,n,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,t,n){return this.type==e&&I(this.attrs,t||e.defaultAttrs||ne)&&R.sameSet(this.marks,n||R.none)}copy(e=null){return e==this.content?this:new ie(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ie(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return B.empty;let i=this.resolve(e),r=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),a=i.node(o).content.cut(i.pos-s,r.pos-s);return new B(a,i.depth-o,r.depth-o)}replace(e,t,n){return H(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let i=this.content.child(t-1);return{node:i,index:t-1,offset:n-i.nodeSize}}resolve(e){return Z.resolveCached(this,e)}resolveNoCache(e){return Z.resolve(this,e)}rangeHasMark(e,t,n){let i=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.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()+")"),oe(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=j.empty,i=0,r=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,i,r),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=i;e<r;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;let r=this.contentMatchAt(e).matchType(n),o=r&&r.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){if(!this.type.validContent(this.content))throw new RangeError(`Invalid content for node ${this.type.name}: ${this.content.toString().slice(0,50)}`);let e=R.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!R.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let i=j.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)}}ie.prototype.text=void 0;class re extends ie{constructor(e,t,n,i){if(super(e,t,null,i),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new re(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new re(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class se{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new ae(e,t);if(null==n.next)return se.empty;let i=le(n);n.next&&n.err("Unexpected trailing text");let r=function(e){let t=Object.create(null);return n(fe(e,0));function n(i){let r=[];i.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let i;for(let e=0;e<r.length;e++)r[e][0]==t&&(i=r[e][1]);fe(e,n).forEach((e=>{i||r.push([t,i=[]]),-1==i.indexOf(e)&&i.push(e)}))}))}));let o=t[i.join(",")]=new se(i.indexOf(e.length-1)>-1);for(let e=0;e<r.length;e++){let i=r[e][1].sort(he);o.next.push({type:r[e][0],next:t[i.join(",")]||n(i)})}return o}}(function(e){let t=[[]];return r(o(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){let r={term:i,to:n};return t[e].push(r),r}function r(e,t){e.forEach((e=>e.to=t))}function o(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(o(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return i(t,s),r(o(e.expr,s),s),[i(s)]}if("plus"==e.type){let s=n();return r(o(e.expr,t),s),r(o(e.expr,s),s),[i(s)]}if("opt"==e.type)return[i(t)].concat(o(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=n();r(o(e.expr,s),t),s=t}if(-1==e.max)r(o(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=n();i(s,t),r(o(e.expr,s),t),s=t}return[i(s)]}if("name"==e.type)return[i(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let i=0;;i++){let s=o(e.exprs[i],t);if(i==e.exprs.length-1)return s;r(s,t=n())}}}(i));return function(e,t){for(let n=0,i=[e];n<i.length;n++){let e=i[n],r=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),!r||n.isText||n.hasRequiredAttrs()||(r=!1),-1==i.indexOf(s)&&i.push(s)}r&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(r,n),r}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let i=this;for(let r=t;i&&r<n;r++)i=i.matchType(e.child(r).type);return i}get inlineContent(){return this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let i=[this];return function r(o,s){let a=o.matchFragment(e,n);if(a&&(!t||a.validEnd))return j.from(s.map((e=>e.createAndFill())));for(let e=0;e<o.next.length;e++){let{type:t,next:n}=o.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==i.indexOf(n)){i.push(n);let e=r(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let i=n.shift(),r=i.match;if(r.matchType(e)){let e=[];for(let t=i;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<r.next.length;e++){let{type:o,next:s}=r.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||i.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:i}),t[o.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=[];return function t(n){e.push(n);for(let i=0;i<n.next.length;i++)-1==e.indexOf(n.next[i].next)&&t(n.next[i].next)}(this),e.map(((t,n)=>{let i=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)i+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return i})).join("\n")}}se.empty=new se(!0);class ae{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}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 le(e){let t=[];do{t.push(ce(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function ce(e){let t=[];do{t.push(ue(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function ue(e){let t=function(e){if(e.eat("(")){let t=le(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let r=[];for(let e in n){let i=n[e];i.groups.indexOf(t)>-1&&r.push(i)}0==r.length&&e.err("No node type or group '"+t+"' found");return r}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=de(e,t)}return t}function pe(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function de(e,t){let n=pe(e),i=n;return e.eat(",")&&(i="}"!=e.next?pe(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function he(e,t){return t-e}function fe(e,t){let n=[];return function t(i){let r=e[i];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(i);for(let e=0;e<r.length;e++){let{term:i,to:o}=r[e];i||-1!=n.indexOf(o)||t(o)}}(t),n.sort(he)}function me(e){let t=Object.create(null);for(let n in e){let i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function ge(e,t){let n=Object.create(null);for(let i in e){let r=t&&t[i];if(void 0===r){let t=e[i];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+i);r=t.default}n[i]=r}return n}function be(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new ye(e[n]);return t}class ve{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=be(n.attrs),this.defaultAttrs=me(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==se.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ge(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ie(this,this.computeAttrs(e),j.from(t),R.setFrom(n))}createChecked(e=null,t,n){if(t=j.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new ie(this,this.computeAttrs(e),t,R.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=j.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let i=this.contentMatch.matchFragment(t),r=i&&i.fillBefore(j.empty,!0);return r?new ie(this,e,t.append(r),R.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:R.none:e}static compile(e,t){let n=Object.create(null);e.forEach(((e,i)=>n[e]=new ve(e,t,i)));let i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class ye{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class xe{constructor(e,t,n,i){this.name=e,this.rank=t,this.schema=n,this.spec=i,this.attrs=be(i.attrs),this.excluded=null;let r=me(this.attrs);this.instance=r?new R(this,r):null}create(e=null){return!e&&this.instance?this.instance:new R(this,ge(this.attrs,e))}static compile(e,t){let n=Object.create(null),i=0;return e.forEach(((e,r)=>n[e]=new xe(e,i++,t,r))),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class we{constructor(e){this.cached=Object.create(null),this.spec={nodes:S.from(e.nodes),marks:S.from(e.marks||{}),topNode:e.topNode},this.nodes=ve.compile(this.spec.nodes,this),this.marks=xe.compile(this.spec.marks,this);let t=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let n=this.nodes[e],i=n.spec.content||"",r=n.spec.marks;n.contentMatch=t[i]||(t[i]=se.parse(i,this.nodes)),n.inlineContent=n.contentMatch.inlineContent,n.markSet="_"==r?null:r?_e(this,r.split(" ")):""!=r&&n.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:_e(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,i){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ve))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,i)}text(e,t){let n=this.nodes.text;return new re(n,n.defaultAttrs,e,R.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return ie.fromJSON(this,e)}markFromJSON(e){return R.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function _e(e,t){let n=[];for(let i=0;i<t.length;i++){let r=t[i],o=e.marks[r],s=o;if(o)n.push(o);else for(let t in e.marks){let i=e.marks[t];("_"==r||i.spec.group&&i.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=i)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}class ke{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new Ae(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ae(this,t,!0);return n.addAll(e,t.from,t.to),B.maxOpen(n.finish())}matchTag(e,t,n){for(let i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){let n=this.tags[i];if(je(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,i){for(let r=i?this.styles.indexOf(i)+1:0;r<this.styles.length;r++){let i=this.styles[r],o=i.style;if(!(0!=o.indexOf(e)||i.context&&!n.matchesContext(i.context)||o.length>e.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(i.getAttrs){let e=i.getAttrs(t);if(!1===e)continue;i.attrs=e||void 0}return i}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,i=0;for(;i<t.length;i++){let e=t[i];if((null==e.priority?50:e.priority)<n)break}t.splice(i,0,e)}for(let t in e.marks){let i=e.marks[t].spec.parseDOM;i&&i.forEach((e=>{n(e=Le(e)),e.mark=t}))}for(let t in e.nodes){let i=e.nodes[t].spec.parseDOM;i&&i.forEach((e=>{n(e=Le(e)),e.node=t}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ke(e,ke.schemaRules(e)))}}const Ee={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Ce={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Me={ol:!0,ul:!0},Oe=1,De=2,Te=4;function Se(e,t,n){return null!=t?(t?Oe:0)|("full"===t?De:0):e&&"pre"==e.whitespace?Oe|De:n&~Te}class Ne{constructor(e,t,n,i,r,o,s){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=i,this.solid=r,this.options=s,this.content=[],this.activeMarks=R.none,this.stashMarks=[],this.match=o||(s&Te?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(j.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Oe)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=j.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(j.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let i=n[t];(this.type?this.type.allowsMarkType(i.type):ze(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Ee.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ae{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let i,r=t.topNode,o=Se(null,t.preserveWhitespace,0)|(n?Te:0);i=r?new Ne(r.type,r.attrs,R.none,R.none,!0,t.topMatch||r.type.contentMatch,o):new Ne(n?null:e.schema.topNodeType,null,R.none,R.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){let t=e.getAttribute("style"),n=t?this.readStyles(function(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];for(;t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(let e=0;e<n.length;e++)this.addPendingMark(n[e]);if(this.addElement(e),null!=n)for(let e=0;e<n.length;e++)this.removePendingMark(n[e],i)}}addTextNode(e){let t=e.nodeValue,n=this.top;if(n.options&De||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(n.options&Oe)t=n.options&De?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let i=n.content[n.content.length-1],r=e.previousSibling;(!i||r&&"BR"==r.nodeName||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n,i=e.nodeName.toLowerCase();Me.hasOwnProperty(i)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&Me.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let r=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(r?r.ignore:Ce.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!r||r.skip||r.closeParent){r&&r.closeParent?this.open=Math.max(0,this.open-1):r&&r.skip.nodeType&&(e=r.skip);let t,n=this.top,o=this.needsBlock;if(Ee.hasOwnProperty(i))t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),t&&this.sync(n),this.needsBlock=o}else this.addElementByRule(e,r,!1===r.consuming?n:void 0)}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=R.none;e:for(let n=0;n<e.length;n+=2)for(let i;;){let r=this.parser.matchStyle(e[n],e[n+1],this,i);if(!r)continue e;if(r.ignore)return null;if(t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t),!1!==r.consuming)break;i=r}return t}addElementByRule(e,t,n){let i,r,o;if(t.node)r=this.parser.schema.nodes[t.node],r.isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):i=this.enter(r,t.attrs||null,t.preserveWhitespace);else{o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o)}let s=this.top;if(r&&r.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}i&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(e,t,n){let i=t||0;for(let r=t?e.childNodes[t]:e.firstChild,o=null==n?null:e.childNodes[n];r!=o;r=r.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(r);this.findAtPoint(e,i)}findPlace(e){let t,n;for(let i=this.open;i>=0;i--){let r=this.nodes[i],o=r.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=r,!o.length))break;if(r.solid)break}if(!t)return!1;this.sync(n);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let i=0;i<e.marks.length;i++)t.type&&!t.type.allowsMarkType(e.marks[i].type)||(n=e.marks[i].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i}enterInner(e,t=null,n=!1,i){this.closeExtra();let r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e);let o=Se(e,i,r.options);r.options&Te&&0==r.content.length&&(o|=Te),this.nodes.push(new Ne(e,t,r.activeMarks,r.pendingMarks,n,null,o)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)if(null==this.find[i].pos&&1==e.nodeType&&e.contains(this.find[i].node)){t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,i=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),r=-(n?n.depth+1:0)+(i?0:1),o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=r;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&i?this.nodes[s].type:n&&s>=r?n.node(s-r).type:null;if(!e||e.name!=a&&-1==e.groups.indexOf(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let i=this.nodes[n];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);let t=i.popFromStashMark(e);t&&i.type&&i.type.allowsMarkType(t.type)&&(i.activeMarks=t.addToSet(i.activeMarks))}if(i==t)break}}}function je(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Le(e){let t={};for(let n in e)t[n]=e[n];return t}function ze(e,t){let n=t.schema.nodes;for(let i in n){let r=n[i];if(!r.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:i,next:r}=e.edge(n);if(i==t)return!0;if(o.indexOf(r)<0&&s(r))return!0}};if(s(r.contentMatch))return!0}}class Ie{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=Fe(t).createDocumentFragment());let i=n,r=[];return e.forEach((e=>{if(r.length||e.marks.length){let n=0,o=0;for(;n<r.length&&o<e.marks.length;){let t=e.marks[o];if(this.marks[t.type.name]){if(!t.eq(r[n][0])||!1===t.type.spec.spanning)break;n++,o++}else o++}for(;n<r.length;)i=r.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(r.push([n,i]),i.appendChild(s.dom),i=s.contentDOM||s.dom)}}i.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:i}=Ie.renderSpec(Fe(t),this.nodes[e.type.name](e));if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let r=this.serializeMark(e.marks[i],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n}serializeMark(e,t,n={}){let i=this.marks[e.type.name];return i&&Ie.renderSpec(Fe(n),i(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let i,r=t[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));let s=n?e.createElementNS(n,r):e.createElement(r),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let e in a)if(null!=a[e]){let t=e.indexOf(" ");t>0?s.setAttributeNS(e.slice(0,t),e.slice(t+1),a[e]):s.setAttribute(e,a[e])}}for(let r=l;r<t.length;r++){let o=t[r];if(0===o){if(r<t.length-1||r>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:t,contentDOM:r}=Ie.renderSpec(e,o,n);if(s.appendChild(t),r){if(i)throw new RangeError("Multiple content holes");i=r}}}return{dom:s,contentDOM:i}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ie(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Re(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Re(e.marks)}}function Re(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function Fe(e){return e.document||window.document}const Be=65535,Pe=Math.pow(2,16);function Ue(e,t){return e+t*Pe}function He(e){return e&Be}const $e=1,We=2,qe=4,Ve=8;class Ke{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Ve)>0}get deletedBefore(){return(this.delInfo&($e|qe))>0}get deletedAfter(){return(this.delInfo&(We|qe))>0}get deletedAcross(){return(this.delInfo&qe)>0}}class Ge{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Ge.empty)return Ge.empty}recover(e){let t=0,n=He(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(e&Be))/Pe}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let i=0,r=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let a=this.ranges[s]-(this.inverted?i:0);if(a>e)break;let l=this.ranges[s+r],c=this.ranges[s+o],u=a+l;if(e<=u){let r=a+i+((l?e==a?-1:e==u?1:t:t)<0?0:c);if(n)return r;let o=e==(t<0?a:u)?null:Ue(s/3,e-a),p=e==a?We:e==u?$e:qe;return(t<0?e!=a:e!=u)&&(p|=Ve),new Ke(r,p,o)}i+=c-l}return n?e+i:new Ke(e+i,0,null)}touches(e,t){let n=0,i=He(t),r=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+r];if(e<=s+a&&t==3*i)return!0;n+=this.ranges[t+o]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let i=0,r=0;i<this.ranges.length;i+=3){let o=this.ranges[i],s=o-(this.inverted?r:0),a=o+(this.inverted?0:r),l=this.ranges[i+t],c=this.ranges[i+n];e(s,s+l,a,a+c),r+=c-l}}invert(){return new Ge(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?Ge.empty:new Ge(e<0?[0,-e,0]:[0,0,e])}}Ge.empty=new Ge([]);class Ye{constructor(e=[],t,n=0,i=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=i}slice(e=0,t=this.maps.length){return new Ye(this.maps,this.mirror,e,t)}copy(){return new Ye(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let i=e.getMirror(t);this.appendMap(e.maps[t],null!=i&&i<t?n+i:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=i&&i>t?n-i-1:void 0)}}invert(){let e=new Ye;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let i=0;for(let n=this.from;n<this.to;n++){let r=this.maps[n].mapResult(e,t);if(null!=r.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this.maps[t].recover(r.recover);continue}}i|=r.delInfo,e=r.pos}return n?e:new Ke(e,i,null)}}const Qe=Object.create(null);class Ze{getMap(){return Ge.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Qe[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Qe)throw new RangeError("Duplicate use of step JSON ID "+e);return Qe[e]=t,t.prototype.jsonID=e,t}}class Je{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Je(e,null)}static fail(e){return new Je(null,e)}static fromReplace(e,t,n,i){try{return Je.ok(e.replace(t,n,i))}catch(e){if(e instanceof F)return Je.fail(e.message);throw e}}}function Xe(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);o.content.size&&(o=o.copy(Xe(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return j.fromArray(i)}class et extends Ze{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),r=new B(Xe(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),i),t.openStart,t.openEnd);return Je.fromReplace(e,this.from,this.to,r)}invert(){return new tt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new et(t.pos,n.pos,this.mark)}merge(e){return e instanceof et&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new et(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,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new et(t.from,t.to,e.markFromJSON(t.mark))}}Ze.jsonID("addMark",et);class tt extends Ze{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new B(Xe(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return Je.fromReplace(e,this.from,this.to,n)}invert(){return new et(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new tt(t.pos,n.pos,this.mark)}merge(e){return e instanceof tt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new tt(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,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new tt(t.from,t.to,e.markFromJSON(t.mark))}}Ze.jsonID("removeMark",tt);class nt extends Ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Je.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Je.fromReplace(e,this.pos,this.pos+1,new B(j.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new nt(this.pos,t.marks[n]);return new nt(this.pos,this.mark)}}return new it(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new nt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new nt(t.pos,e.markFromJSON(t.mark))}}Ze.jsonID("addNodeMark",nt);class it extends Ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Je.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Je.fromReplace(e,this.pos,this.pos+1,new B(j.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new nt(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new it(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new it(t.pos,e.markFromJSON(t.mark))}}Ze.jsonID("removeNodeMark",it);class rt extends Ze{constructor(e,t,n,i=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=i}apply(e){return this.structure&&st(e,this.from,this.to)?Je.fail("Structure replace would overwrite content"):Je.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ge([this.from,this.to-this.from,this.slice.size])}invert(e){return new rt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new rt(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof rt)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?B.empty:new B(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new rt(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?B.empty:new B(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new rt(this.from,this.to+(e.to-e.from),t,this.structure)}}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,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new rt(t.from,t.to,B.fromJSON(e,t.slice),!!t.structure)}}Ze.jsonID("replace",rt);class ot extends Ze{constructor(e,t,n,i,r,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=i,this.slice=r,this.insert=o,this.structure=s}apply(e){if(this.structure&&(st(e,this.from,this.gapFrom)||st(e,this.gapTo,this.to)))return Je.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Je.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?Je.fromReplace(e,this.from,this.to,n):Je.fail("Content does not fit in gap")}getMap(){return new Ge([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new ot(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),r=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||i<t.pos||r>n.pos?null:new ot(t.pos,n.pos,i,r,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,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ot(t.from,t.to,t.gapFrom,t.gapTo,B.fromJSON(e,t.slice),t.insert,!!t.structure)}}function st(e,t,n){let i=e.resolve(t),r=n-t,o=i.depth;for(;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0){let e=i.node(o).maybeChild(i.indexAfter(o));for(;r>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,r--}}return!1}function at(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function lt(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let i=e.$from.node(n),r=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(r,o,t))return n;if(0==n||i.type.spec.isolating||!at(i,r,o))break}return null}function ct(e,t,n=null,i=e){let r=function(e,t){let{parent:n,startIndex:i,endIndex:r}=e,o=n.contentMatchAt(i).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(i,r,s)?o:null}(e,t),o=r&&function(e,t){let{parent:n,startIndex:i,endIndex:r}=e,o=n.child(i),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=i;a&&e<r;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(i,t);return o?r.map(ut).concat({type:t,attrs:n}).concat(o.map(ut)):null}function ut(e){return{type:e,attrs:null}}function pt(e,t,n=1,i){let r=e.resolve(t),o=r.depth-n,s=i&&i[i.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let e=r.depth-1,t=n-2;e>o;e--,t--){let n=r.node(e),o=r.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),a=i&&i[t]||n;if(a!=n&&(s=s.replaceChild(0,a.type.create(a.attrs))),!n.canReplace(o+1,n.childCount)||!a.type.validContent(s))return!1}let a=r.indexAfter(o),l=i&&i[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function dt(e,t){let n=e.resolve(t),i=n.index();return function(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function ht(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let e=0;e<n.openStart;e++)r=r.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=i.depth;t>=0;t--){let n=t==i.depth?0:i.pos<=(i.start(t+1)+i.end(t+1))/2?-1:1,o=i.index(t)+(n>0?1:0),s=i.node(t),a=!1;if(1==e)a=s.canReplace(o,o,r);else{let e=s.contentMatchAt(o).findWrapping(r.firstChild.type);a=e&&s.canReplaceWith(o,o,e[0])}if(a)return 0==n?i.pos:n<0?i.before(t+1):i.after(t+1)}return null}function ft(e,t,n=t,i=B.empty){if(t==n&&!i.size)return null;let r=e.resolve(t),o=e.resolve(n);return mt(r,o,i)?new rt(t,n,i):new gt(r,o,i).fit()}function mt(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Ze.jsonID("replaceAround",ot);class gt{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=j.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=j.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let r=this.placed,o=n.depth,s=i.depth;for(;o&&s&&1==r.childCount;)r=r.firstChild.content,o--,s--;let a=new B(r,o,s);return e>-1?new ot(n.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||n.pos!=this.$to.pos?new rt(n.pos,i.pos,a):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,i=null;t?(i=yt(this.unplaced.content,t-1).firstChild,n=i.content):n=this.unplaced.content;let r=n.firstChild;for(let n=this.depth;n>=0;n--){let o,{type:s,match:a}=this.frontier[n],l=null;if(1==e&&(r?a.matchType(r.type)||(l=a.fillBefore(j.from(r),!1)):i&&s.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:n,parent:i,inject:l};if(2==e&&r&&(o=a.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:n,parent:i,wrap:o};if(i&&a.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=yt(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new B(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=yt(e,t);if(i.childCount<=1&&t>0){let r=e.size-t<=t+i.size;this.unplaced=new B(bt(e,t-1,1),t-1,r?t-1:n)}else this.unplaced=new B(bt(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:r}){for(;this.depth>t;)this.closeFrontierNode();if(r)for(let e=0;e<r.length;e++)this.openFrontierNode(r[e]);let o=this.unplaced,s=n?n.content:o.content,a=o.openStart-e,l=0,c=[],{match:u,type:p}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));u=u.matchFragment(i)}let d=s.size+e-(o.content.size-o.openEnd);for(;l<s.childCount;){let e=s.child(l),t=u.matchType(e.type);if(!t)break;l++,(l>1||0==a||e.content.size)&&(u=t,c.push(xt(e.mark(p.allowedMarks(e.marks)),1==l?a:0,l==s.childCount?d:-1)))}let h=l==s.childCount;h||(d=-1),this.placed=vt(this.placed,t,j.from(c)),this.frontier[t].match=u,h&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<d;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=h?0==e?B.empty:new B(bt(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new B(bt(o.content,e,l),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!wt(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,i=this.$to.after(n);for(;n>1&&i==this.$to.end(--n);)++i;return i}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:i}=this.frontier[t],r=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=wt(e,t,i,n,r);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:i}=this.frontier[n],r=wt(e,n,i,t,!0);if(!r||r.childCount)continue e}return{depth:t,fit:o,move:r?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=vt(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),i=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,i)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=vt(this.placed,this.depth,j.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(j.empty,!0);e.childCount&&(this.placed=vt(this.placed,this.frontier.length,e))}}function bt(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(bt(e.firstChild.content,t-1,n)))}function vt(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(vt(e.lastChild.content,t-1,n)))}function yt(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function xt(e,t,n){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,xt(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(j.empty,!0)))),e.copy(i)}function wt(e,t,n,i,r){let o=e.node(t),s=r?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=i.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(let i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}(n,o.content,s)?a:null}function _t(e){return e.spec.defining||e.spec.definingForContent}function kt(e,t,n,i,r){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(kt(r.content,t+1,n,i,r)))}if(t>i){let t=r.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(j.empty,!0))}return e}function Et(e,t){let n=[];for(let i=Math.min(e.depth,t.depth);i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class Ct extends Ze{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Je.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return Je.fromReplace(e,this.pos,this.pos+1,new B(j.from(i),0,t.isLeaf?0:1))}getMap(){return Ge.empty}invert(e){return new Ct(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ct(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ct(t.pos,t.attr,t.value)}}Ze.jsonID("attr",Ct);let Mt=class extends Error{};Mt=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(Mt.prototype=Object.create(Error.prototype)).constructor=Mt,Mt.prototype.name="TransformError";class Ot{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ye}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Mt(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=B.empty){let i=ft(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new B(j.from(n),0,0))}delete(e,t){return this.replace(e,t,B.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),o=e.doc.resolve(n);if(mt(r,o,i))return e.step(new rt(t,n,i));let s=Et(r,e.doc.resolve(n));0==s[s.length-1]&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let e=r.depth,t=r.pos-1;e>0;e--,t--){let n=r.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(e)>-1?a=e:r.before(e)==t&&s.splice(1,0,-e)}let l=s.indexOf(a),c=[],u=i.openStart;for(let e=i.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==i.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=c[e].type,n=_t(t);if(n&&r.node(l).type!=t)u=e;else if(n||!t.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+u+1)%(i.openStart+1),p=c[a];if(p)for(let t=0;t<s.length;t++){let c=s[(t+l)%s.length],u=!0;c<0&&(u=!1,c=-c);let d=r.node(c-1),h=r.index(c-1);if(d.canReplaceWith(h,h,p.type,p.marks))return e.replace(r.before(c),u?o.after(c):n,new B(kt(i.content,0,i.openStart,a),a,i.openEnd))}}let p=e.steps.length;for(let a=s.length-1;a>=0&&(e.replace(t,n,i),!(e.steps.length>p));a--){let e=s[a];e<0||(t=r.before(e),n=o.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=function(e,t,n){let i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(0==i.parentOffset)for(let e=i.depth-1;e>=0;e--){let t=i.index(e);if(i.node(e).canReplaceWith(t,t,n))return i.before(e+1);if(t>0)return null}if(i.parentOffset==i.parent.content.size)for(let e=i.depth-1;e>=0;e--){let t=i.indexAfter(e);if(i.node(e).canReplaceWith(t,t,n))return i.after(e+1);if(t<i.node(e).childCount)return null}return null}(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new B(j.from(i),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let i=e.doc.resolve(t),r=e.doc.resolve(n),o=Et(i,r);for(let t=0;t<o.length;t++){let n=o[t],s=t==o.length-1;if(s&&0==n||i.node(n).type.contentMatch.validEnd)return e.delete(i.start(n),r.end(n));if(n>0&&(s||i.node(n-1).canReplace(i.index(n-1),r.indexAfter(n-1))))return e.delete(i.before(n),r.after(n))}for(let o=1;o<=i.depth&&o<=r.depth;o++)if(t-i.start(o)==i.depth-o&&n>i.end(o)&&r.end(o)-n!=r.depth-o)return e.delete(i.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:i,$to:r,depth:o}=t,s=i.before(o+1),a=r.after(o+1),l=s,c=a,u=j.empty,p=0;for(let e=o,t=!1;e>n;e--)t||i.index(e)>0?(t=!0,u=j.from(i.node(e).copy(u)),p++):l--;let d=j.empty,h=0;for(let e=o,t=!1;e>n;e--)t||r.after(e+1)<r.end(e)?(t=!0,d=j.from(r.node(e).copy(d)),h++):c++;e.step(new ot(l,c,s,a,new B(u.append(d),p,h),u.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let i=new rt(t-n,t+n,B.empty,!0);e.step(i)}(this,e,t),this}wrap(e,t){return function(e,t,n){let i=j.empty;for(let e=n.length-1;e>=0;e--){if(i.size){let t=n[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=j.from(n[e].type.create(n[e].attrs,i))}let r=t.start,o=t.end;e.step(new ot(r,o,r,o,new B(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){return function(e,t,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{if(t.isTextblock&&!t.hasMarkup(i,r)&&function(e,t,n){let i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(o).map(n),i)){e.clearIncompatible(e.mapping.slice(o).map(n,1),i);let s=e.mapping.slice(o),a=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new ot(a,l,a+1,l-1,new B(j.from(i.create(r,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,n,i),this}setNodeMarkup(e,t,n=null,i=[]){return function(e,t,n,i,r){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(i,null,r||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ot(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new B(j.from(s),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new Ct(e,t,n)),this}addNodeMark(e,t){return this.step(new nt(e,t)),this}removeNodeMark(e,t){if(!(t instanceof R)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t=t.isInSet(n.marks),!t)return this}return this.step(new it(e,t)),this}split(e,t=1,n){return function(e,t,n=1,i){let r=e.doc.resolve(t),o=j.empty,s=j.empty;for(let e=r.depth,t=r.depth-n,a=n-1;e>t;e--,a--){o=j.from(r.node(e).copy(o));let t=i&&i[a];s=j.from(t?t.type.create(t.attrs,s):r.node(e).copy(s))}e.step(new rt(t,t,new B(o.append(s),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,i){let r,o,s=[],a=[];e.doc.nodesBetween(t,n,((e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!i.isInSet(u)&&c.type.allowsMarkType(i.type)){let c=Math.max(l,t),p=Math.min(l+e.nodeSize,n),d=i.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(d)||(r&&r.to==c&&r.mark.eq(u[e])?r.to=p:s.push(r=new tt(c,p,u[e])));o&&o.to==c?o.to=p:a.push(o=new et(c,p,i))}})),s.forEach((t=>e.step(t))),a.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,i){let r=[],o=0;e.doc.nodesBetween(t,n,((e,s)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof xe){let t,n=e.marks;for(;t=i.isInSet(n);)(a||(a=[])).push(t),n=t.removeFromSet(n)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let i=Math.min(s+e.nodeSize,n);for(let e=0;e<a.length;e++){let n,l=a[e];for(let e=0;e<r.length;e++){let t=r[e];t.step==o-1&&l.eq(r[e].style)&&(n=t)}n?(n.to=i,n.step=o):r.push({style:l,from:Math.max(s,t),to:i,step:o})}}})),r.forEach((t=>e.step(new tt(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return function(e,t,n,i=n.contentMatch){let r=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<r.childCount;t++){let a=r.child(t),l=s+a.nodeSize,c=i.matchType(a.type);if(c){i=c;for(let t=0;t<a.marks.length;t++)n.allowsMarkType(a.marks[t].type)||e.step(new tt(s,l,a.marks[t]))}else o.push(new rt(s,l,B.empty));s=l}if(!i.validEnd){let t=i.fillBefore(j.empty,!0);e.replace(s,s,new B(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}(this,e,t,n),this}}const Dt=Object.create(null);class Tt{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new St(e.min(t),e.max(t))]}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 t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=B.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let r=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:a,$to:l}=o[s],c=e.mapping.slice(r);e.replaceRange(c.map(a.pos),c.map(l.pos),s?B.empty:t),0==s&&Pt(e,r,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,i=this.ranges;for(let r=0;r<i.length;r++){let{$from:o,$to:s}=i[r],a=e.mapping.slice(n),l=a.map(o.pos),c=a.map(s.pos);r?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),Pt(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let i=e.parent.inlineContent?new jt(e):Bt(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(let i=e.depth-1;i>=0;i--){let r=t<0?Bt(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):Bt(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Rt(e.node(0))}static atStart(e){return Bt(e,e,0,0,1)||new Rt(e)}static atEnd(e){return Bt(e,e,e.content.size,e.childCount,-1)||new Rt(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Dt[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Dt)throw new RangeError("Duplicate use of selection JSON ID "+e);return Dt[e]=t,t.prototype.jsonID=e,t}getBookmark(){return jt.between(this.$anchor,this.$head).getBookmark()}}Tt.prototype.visible=!0;class St{constructor(e,t){this.$from=e,this.$to=t}}let Nt=!1;function At(e){Nt||e.parent.inlineContent||(Nt=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class jt extends Tt{constructor(e,t=e){At(e),At(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return Tt.near(n);let i=e.resolve(t.map(this.anchor));return new jt(i.parent.inlineContent?i:n,n)}replace(e,t=B.empty){if(super.replace(e,t),t==B.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof jt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Lt(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new jt(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let i=e.resolve(t);return new this(i,n==t?i:e.resolve(n))}static between(e,t,n){let i=e.pos-t.pos;if(n&&!i||(n=i>=0?1:-1),!t.parent.inlineContent){let e=Tt.findFrom(t,n,!0)||Tt.findFrom(t,-n,!0);if(!e)return Tt.near(t,n);t=e.$head}return e.parent.inlineContent||(0==i||(e=(Tt.findFrom(e,-n,!0)||Tt.findFrom(e,n,!0)).$anchor).pos<t.pos!=i<0)&&(e=t),new jt(e,t)}}Tt.jsonID("text",jt);class Lt{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Lt(e.map(this.anchor),e.map(this.head))}resolve(e){return jt.between(e.resolve(this.anchor),e.resolve(this.head))}}class zt extends Tt{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:i}=t.mapResult(this.anchor),r=e.resolve(i);return n?Tt.near(r):new zt(r)}content(){return new B(j.from(this.node),0,0)}eq(e){return e instanceof zt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new It(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new zt(e.resolve(t.anchor))}static create(e,t){return new zt(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}zt.prototype.visible=!1,Tt.jsonID("node",zt);class It{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new Lt(n,n):new It(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&zt.isSelectable(n)?new zt(t):Tt.near(t)}}class Rt extends Tt{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=B.empty){if(t==B.empty){e.delete(0,e.doc.content.size);let t=Tt.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Rt(e)}map(e){return new Rt(e)}eq(e){return e instanceof Rt}getBookmark(){return Ft}}Tt.jsonID("all",Rt);const Ft={map(){return this},resolve:e=>new Rt(e)};function Bt(e,t,n,i,r,o=!1){if(t.inlineContent)return jt.create(e,n);for(let s=i-(r>0?0:1);r>0?s<t.childCount:s>=0;s+=r){let i=t.child(s);if(i.isAtom){if(!o&&zt.isSelectable(i))return zt.create(e,n-(r<0?i.nodeSize:0))}else{let t=Bt(e,i,n+r,r<0?i.childCount:0,r,o);if(t)return t}n+=i.nodeSize*r}return null}function Pt(e,t,n){let i=e.steps.length-1;if(i<t)return;let r,o=e.steps[i];(o instanceof rt||o instanceof ot)&&(e.mapping.maps[i].forEach(((e,t,n,i)=>{null==r&&(r=i)})),e.setSelection(Tt.near(e.doc.resolve(r),n)))}const Ut=1,Ht=2,$t=4;class Wt extends Ot{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|Ut)&~Ht,this.storedMarks=null,this}get selectionSet(){return(this.updated&Ut)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ht,this}ensureMarks(e){return R.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&Ht)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Ht,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||R.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let i=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let r=this.storedMarks;if(!r){let e=this.doc.resolve(t);r=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,r)),this.selection.empty||this.setSelection(Tt.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=$t,this}get scrolledIntoView(){return(this.updated&$t)>0}}function qt(e,t){return t&&e?e.bind(t):e}class Vt{constructor(e,t,n){this.name=e,this.init=qt(t.init,n),this.apply=qt(t.apply,n)}}const Kt=[new Vt("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new Vt("selection",{init:(e,t)=>e.selection||Tt.atStart(t.doc),apply:e=>e.selection}),new Vt("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,i)=>i.selection.$cursor?e.storedMarks:null}),new Vt("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class Gt{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Kt.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new Vt(e.key,e.spec.state,e))}))}}class Yt{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),i=null;for(;;){let r=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=i?i[o].n:0,l=i?i[o].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let e=0;e<this.config.plugins.length;e++)i.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),r=!0}i&&(i[o]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Yt(this.config),n=this.config.fields;for(let i=0;i<n.length;i++){let r=n[i];t[r.name]=r.apply(e,this[r.name],this,t)}return t}get tr(){return new Wt(this)}static create(e){let t=new Gt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new Yt(t);for(let i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n}reconfigure(e){let t=new Gt(this.schema,e.plugins),n=t.fields,i=new Yt(t);for(let t=0;t<n.length;t++){let r=n[t].name;i[r]=this.hasOwnProperty(r)?this[r]:n[t].init(e,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[n],r=i.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(i,this[i.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Gt(e.schema,e.plugins),r=new Yt(i);return i.fields.forEach((i=>{if("doc"==i.name)r.doc=ie.fromJSON(e.schema,t.doc);else if("selection"==i.name)r.selection=Tt.fromJSON(r.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,o))return void(r[i.name]=a.fromJSON.call(s,e,t[o],r))}r[i.name]=i.init(e,r)}})),r}}function Qt(e,t,n){for(let i in e){let r=e[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=Qt(r,t,{})),n[i]=r}return n}class Zt{constructor(e){this.spec=e,this.props={},e.props&&Qt(e.props,this,this.props),this.key=e.key?e.key.key:Xt("plugin")}getState(e){return e[this.key]}}const Jt=Object.create(null);function Xt(e){return e in Jt?e+"$"+ ++Jt[e]:(Jt[e]=0,e+"$")}class en{constructor(e="key"){this.key=Xt(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const tn="undefined"!=typeof navigator?navigator:null,nn="undefined"!=typeof document?document:null,rn=tn&&tn.userAgent||"",on=/Edge\/(\d+)/.exec(rn),sn=/MSIE \d/.exec(rn),an=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rn),ln=!!(sn||an||on),cn=sn?document.documentMode:an?+an[1]:on?+on[1]:0,un=!ln&&/gecko\/(\d+)/i.test(rn);un&&(/Firefox\/(\d+)/.exec(rn)||[0,0])[1];const pn=!ln&&/Chrome\/(\d+)/.exec(rn),dn=!!pn,hn=pn?+pn[1]:0,fn=!ln&&!!tn&&/Apple Computer/.test(tn.vendor),mn=fn&&(/Mobile\/\w+/.test(rn)||!!tn&&tn.maxTouchPoints>2),gn=mn||!!tn&&/Mac/.test(tn.platform),bn=/Android \d/.test(rn),vn=!!nn&&"webkitFontSmoothing"in nn.documentElement.style,yn=vn?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,xn=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},wn=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let _n=null;const kn=function(e,t,n){let i=_n||(_n=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},En=function(e,t,n,i){return n&&(Mn(e,t,n,i,-1)||Mn(e,t,n,i,1))},Cn=/^(img|br|input|textarea|hr)$/i;function Mn(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:On(e))){let n=e.parentNode;if(!n||1!=n.nodeType||Dn(e)||Cn.test(e.nodeName)||"false"==e.contentEditable)return!1;t=xn(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?On(e):0}}}function On(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Dn(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Tn=function(e){let t=e.isCollapsed;return t&&dn&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Sn(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Nn(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function An(e,t){return"number"==typeof e?e:e[t]}function jn(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Ln(e,t,n){let i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=n||e.dom;s;s=wn(s)){if(1!=s.nodeType)continue;let e=s,n=e==o.body,a=n?Nn(o):jn(e),l=0,c=0;if(t.top<a.top+An(i,"top")?c=-(a.top-t.top+An(r,"top")):t.bottom>a.bottom-An(i,"bottom")&&(c=t.bottom-a.bottom+An(r,"bottom")),t.left<a.left+An(i,"left")?l=-(a.left-t.left+An(r,"left")):t.right>a.right-An(i,"right")&&(l=t.right-a.right+An(r,"right")),l||c)if(n)o.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,i=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let r=e.scrollLeft-n,o=e.scrollTop-i;t={left:t.left-r,top:t.top-o,right:t.right-r,bottom:t.bottom-o}}if(n)break}}function zn(e){let t=[],n=e.ownerDocument;for(let i=e;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=wn(i));return t}function In(e,t){for(let n=0;n<e.length;n++){let{dom:i,top:r,left:o}=e[n];i.scrollTop!=r+t&&(i.scrollTop=r+t),i.scrollLeft!=o&&(i.scrollLeft=o)}}let Rn=null;function Fn(e,t){let n,i,r=2e8,o=0,s=t.top,a=t.top;for(let l=e.firstChild,c=0;l;l=l.nextSibling,c++){let e;if(1==l.nodeType)e=l.getClientRects();else{if(3!=l.nodeType)continue;e=kn(l).getClientRects()}for(let u=0;u<e.length;u++){let p=e[u];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=l,r=e,i=e&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&e&&(o=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=c+1)}}return n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,i=document.createRange();for(let r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);let n=Hn(i,1);if(n.top!=n.bottom&&Bn(t,n))return{node:e,offset:r+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||r&&1==n.nodeType?{node:e,offset:o}:Fn(n,i)}function Bn(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Pn(e,t,n){let i=e.childNodes.length;if(i&&n.top<n.bottom)for(let r=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),o=r;;){let n=e.childNodes[o];if(1==n.nodeType){let e=n.getClientRects();for(let i=0;i<e.length;i++){let r=e[i];if(Bn(t,r))return Pn(n,t,r)}}if((o=(o+1)%i)==r)break}return e}function Un(e,t){let n,i=e.dom.ownerDocument,r=0;if(i.caretPositionFromPoint)try{let e=i.caretPositionFromPoint(t.left,t.top);e&&({offsetNode:n,offset:r}=e)}catch(e){}if(!n&&i.caretRangeFromPoint){let e=i.caretRangeFromPoint(t.left,t.top);e&&({startContainer:n,startOffset:r}=e)}let o,s=(e.root.elementFromPoint?e.root:i).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){let n=e.dom.getBoundingClientRect();if(!Bn(t,n))return null;if(s=Pn(e.dom,t,n),!s)return null}if(fn)for(let e=s;n&&e;e=wn(e))e.draggable&&(n=void 0);if(s=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(un&&1==n.nodeType&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let e,i=n.childNodes[r];"IMG"==i.nodeName&&(e=i.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&r++}n==e.dom&&r==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(o=function(e,t,n,i){let r=-1;for(let n=t;n!=e.dom;){let t=e.docView.nearestDesc(n,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>i.left||e.top>i.top)r=t.posBefore;else{if(!(e.right<i.left||e.bottom<i.top))break;r=t.posAfter}}n=t.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,1)}(e,n,r,t))}null==o&&(o=function(e,t,n){let{node:i,offset:r}=Fn(t,n),o=-1;if(1==i.nodeType&&!i.firstChild){let e=i.getBoundingClientRect();o=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(i,r,o)}(e,s,t));let a=e.docView.nearestDesc(s,!0);return{pos:o,inside:a?a.posAtStart-a.border:-1}}function Hn(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}const $n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Wn(e,t,n){let{node:i,offset:r,atom:o}=e.docView.domFromPos(t,n<0?-1:1),s=vn||un;if(3==i.nodeType){if(!s||!$n.test(i.nodeValue)&&(n<0?r:r!=i.nodeValue.length)){let e=r,t=r,o=n<0?1:-1;return n<0&&!r?(t++,o=-1):n>=0&&r==i.nodeValue.length?(e--,o=1):n<0?e--:t++,qn(Hn(kn(i,e,t),1),o<0)}{let e=Hn(kn(i,r,r),n);if(un&&r&&/\s/.test(i.nodeValue[r-1])&&r<i.nodeValue.length){let t=Hn(kn(i,r-1,r-1),-1);if(t.top==e.top){let n=Hn(kn(i,r,r+1),-1);if(n.top!=e.top)return qn(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(null==o&&r&&(n<0||r==On(i))){let e=i.childNodes[r-1];if(1==e.nodeType)return Vn(e.getBoundingClientRect(),!1)}if(null==o&&r<On(i)){let e=i.childNodes[r];if(1==e.nodeType)return Vn(e.getBoundingClientRect(),!0)}return Vn(i.getBoundingClientRect(),n>=0)}if(null==o&&r&&(n<0||r==On(i))){let e=i.childNodes[r-1],t=3==e.nodeType?kn(e,On(e)-(s?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return qn(Hn(t,1),!1)}if(null==o&&r<On(i)){let e=i.childNodes[r];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?kn(e,0,s?0:1):1==e.nodeType?e:null:null;if(t)return qn(Hn(t,-1),!0)}return qn(Hn(3==i.nodeType?kn(i):i,-n),n>=0)}function qn(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Vn(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Kn(e,t,n){let i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}const Gn=/[\u0590-\u08ac]/;let Yn=null,Qn=null,Zn=!1;function Jn(e,t,n){return Yn==t&&Qn==n?Zn:(Yn=t,Qn=n,Zn="up"==n||"down"==n?function(e,t,n){let i=t.selection,r="up"==n?i.$from:i.$to;return Kn(e,t,(()=>{let{node:t}=e.docView.domFromPos(r.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let i=Wn(e,r.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=kn(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let r=t[e];if(r.bottom>r.top+1&&("up"==n?i.top-r.top>2*(r.bottom-i.top):r.bottom-i.bottom>2*(i.bottom-r.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=e.domSelection();return Gn.test(i.parent.textContent)&&a.modify?Kn(e,t,(()=>{let t=a.getRangeAt(0),r=a.focusNode,o=a.focusOffset,s=a.caretBidiLevel;a.modify("move",n,"character");let l=!(i.depth?e.docView.domAfterPos(i.before()):e.dom).contains(1==a.focusNode.nodeType?a.focusNode:a.focusNode.parentNode)||r==a.focusNode&&o==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?o:s}(e,t,n))}const Xn=0,ei=1,ti=2,ni=3;class ii{constructor(e,t,n,i){this.parent=e,this.children=t,this.dom=n,this.contentDOM=i,this.dirty=Xn,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].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 t=0,n=this.posAtStart;;t++){let i=this.children[t];if(i==e)return n;n+=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,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,i;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(i=n.pmViewDesc)||i.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(i)+i.size:this.posAtStart}{let n,i;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(i=n.pmViewDesc)||i.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(i):this.posAtEnd}}let i;if(e==this.dom&&this.contentDOM)i=t>xn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){i=!1;break}if(t.previousSibling)break}if(null==i&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){i=!0;break}if(t.nextSibling)break}}return(null==i?n>0:i)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,i=e;i;i=i.parentNode){let r,o=this.getDesc(i);if(o&&(!t||o.node)){if(!n||!(r=o.nodeDOM)||(1==r.nodeType?r.contains(1==e.nodeType?e:e.parentNode):r==e))return o;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let i=e;i;i=i.parentNode){let r=this.getDesc(i);if(r)return r.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let i=this.children[t],r=n+i.size;if(n==e&&r!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<r)return i.descAt(e-n-i.border);n=r}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n,i=0,r=0;for(let t=0;i<this.children.length;i++){let n=this.children[i],o=t+n.size;if(o>e||n instanceof ui){r=e-t;break}t=o}if(r)return this.children[i].domFromPos(r-this.children[i].border,t);for(;i&&!(n=this.children[i-1]).size&&n instanceof ri&&n.side>=0;i--);if(t<=0){let e,n=!0;for(;e=i?this.children[i-1]:null,e&&e.dom.parentNode!=this.contentDOM;i--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?xn(e.dom)+1:0}}{let e,n=!0;for(;e=i<this.children.length?this.children[i]:null,e&&e.dom.parentNode!=this.contentDOM;i++,n=!1);return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?xn(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,r=-1;for(let o=n,s=0;;s++){let n=this.children[s],a=o+n.size;if(-1==i&&e<=a){let r=o+n.border;if(e>=r&&t<=a-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,r);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){i=xn(n.dom)+1;break}e-=n.size}-1==i&&(i=0)}if(i>-1&&(a>t||s==this.children.length-1)){t=a;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){r=xn(n.dom);break}t+=n.size}-1==r&&(r=this.contentDOM.childNodes.length);break}o=a}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:r}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,i=!1){let r=Math.min(e,t),o=Math.max(e,t);for(let s=0,a=0;s<this.children.length;s++){let l=this.children[s],c=a+l.size;if(r>a&&o<c)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=c}let s=this.domFromPos(e,e?-1:1),a=t==e?s:this.domFromPos(t,t?-1:1),l=n.getSelection(),c=!1;if((un||fn)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if(c=!(!t||"\n"!=e.nodeValue[t-1]),c&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(s=a={node:t.parentNode,offset:xn(t)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];c=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(un&&l.focusNode&&l.focusNode!=a.node&&1==l.focusNode.nodeType){let e=l.focusNode.childNodes[l.focusOffset];e&&"false"==e.contentEditable&&(i=!0)}if(!(i||c&&fn)&&En(s.node,s.offset,l.anchorNode,l.anchorOffset)&&En(a.node,a.offset,l.focusNode,l.focusOffset))return;let u=!1;if((l.extend||e==t)&&!c){l.collapse(s.node,s.offset);try{if(e!=t)try{l.extend(a.node,a.offset)}catch(e){}u=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!u){if(e>t){let e=s;s=a,a=e}let n=document.createRange();n.setEnd(a.node,a.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,i=0;i<this.children.length;i++){let r=this.children[i],o=n+r.size;if(n==o?e<=o&&t>=n:e<o&&t>n){let i=n+r.border,s=o-r.border;if(e>=i&&t<=s)return this.dirty=e==n||t==o?ti:ei,void(e!=i||t!=s||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-i,t-i):r.dirty=ni);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?ni:ti}n=o}this.dirty=ti}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?ti:ei;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class ri extends ii{constructor(e,t,n,i){let r,o=t.type.toDOM;if("function"==typeof o&&(o=o(n,(()=>r?r.parent?r.parent.posBeforeChild(r):void 0:i))),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,r=this}matchesWidget(e){return this.dirty==Xn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class oi extends ii{constructor(e,t,n,i){super(e,[],t,null),this.textDOM=n,this.text=i}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class si extends ii{constructor(e,t,n,i){super(e,[],n,i),this.mark=t}static create(e,t,n,i){let r=i.nodeViews[t.type.name],o=r&&r(t,i,n);return o&&o.dom||(o=Ie.renderSpec(document,t.type.spec.toDOM(t,n))),new si(e,t,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&ni||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(e){return this.dirty!=ni&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Xn){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=Xn}}slice(e,t,n){let i=si.create(this.parent,this.mark,!0,n),r=this.children,o=this.size;t<o&&(r=ki(r,t,o,n)),e>0&&(r=ki(r,0,e,n));for(let e=0;e<r.length;e++)r[e].parent=i;return i.children=r,i}}class ai extends ii{constructor(e,t,n,i,r,o,s,a,l){super(e,[],r,o),this.node=t,this.outerDeco=n,this.innerDeco=i,this.nodeDOM=s,o&&this.updateChildren(a,l)}static create(e,t,n,i,r,o){let s,a=r.nodeViews[t.type.name],l=a&&a(t,r,(()=>s?s.parent?s.parent.posBeforeChild(s):void 0:o),n,i),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else c||({dom:c,contentDOM:u}=Ie.renderSpec(document,t.type.spec.toDOM(t)));u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let p=c;return c=vi(c,n,t),l?s=new pi(e,t,n,i,c,u||null,p,l,r,o+1):t.isText?new ci(e,t,n,i,c,p,r):new ai(e,t,n,i,c,u||null,p,r,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>j.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==Xn&&e.eq(this.node)&&yi(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,i=t,r=e.composing?this.localCompositionInfo(e,t):null,o=r&&r.pos>-1?r:null,s=r&&r.pos<0,a=new wi(this,o&&o.node,e);!function(e,t,n,i){let r=t.locals(e),o=0;if(0==r.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);i(s,r,t.forChild(o,s),n),o+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){if(s<r.length&&r[s].to==o){let e,t=r[s++];for(;s<r.length&&r[s].to==o;)(e||(e=[t])).push(r[s++]);if(e){e.sort(_i);for(let t=0;t<e.length;t++)n(e[t],c,!!l)}else n(t,c,!!l)}let u,p;if(l)p=-1,u=l,l=null;else{if(!(c<e.childCount))break;p=c,u=e.child(c++)}for(let e=0;e<a.length;e++)a[e].to<=o&&a.splice(e--,1);for(;s<r.length&&r[s].from<=o&&r[s].to>o;)a.push(r[s++]);let d=o+u.nodeSize;if(u.isText){let e=d;s<r.length&&r[s].from<e&&(e=r[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<d&&(l=u.cut(e-o),u=u.cut(0,e-o),d=e,p=-1)}let h=u.isInline&&!u.isLeaf?a.filter((e=>!e.inline)):a.slice();i(u,h,t.forChild(o,u),p),o=d}}(this.node,this.innerDeco,((t,r,o)=>{t.spec.marks?a.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!o&&a.syncToMarks(r==this.node.childCount?R.none:this.node.child(r).marks,n,e),a.placeWidget(t,e,i)}),((t,o,l,c)=>{let u;a.syncToMarks(t.marks,n,e),a.findNodeMatch(t,o,l,c)||s&&e.state.selection.from>i&&e.state.selection.to<i+t.nodeSize&&(u=a.findIndexWithChild(r.node))>-1&&a.updateNodeAt(t,o,l,u,e)||a.updateNextNode(t,o,l,e,c)||a.addNode(t,o,l,e,i),i+=t.nodeSize})),a.syncToMarks([],n,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==ti)&&(o&&this.protectLocalComposition(e,o),di(this.contentDOM,this.children,e),mn&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof jt)||n<t||i>t+this.node.content.size)return null;let r=e.domSelection(),o=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=On(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(r.focusNode,r.focusOffset);if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let e=o.nodeValue,r=function(e,t,n,i){for(let r=0,o=0;r<e.childCount&&o<=i;){let s=e.child(r++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<e.childCount;){let t=e.child(r++);if(o+=t.nodeSize,!t.isText)break;l+=t.text}if(o>=n){let e=a<i?l.lastIndexOf(t,i-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==i&&l.length>=i+t.length-a&&l.slice(i-a,i-a+t.length)==t)return i}}return-1}(this.node.content,e,n-t,i-t);return r<0?null:{node:o,pos:r,text:e}}return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:i}){if(this.getDesc(t))return;let r=t;for(;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=void 0)}let o=new oi(this,r,t,i);e.input.compositionNodes.push(o),this.children=ki(this.children,n,n+i.length,e,o)}update(e,t,n,i){return!(this.dirty==ni||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,i),!0)}updateInner(e,t,n,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Xn}updateOuterDeco(e){if(yi(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=gi(this.dom,this.nodeDOM,mi(this.outerDeco,this.node,t),mi(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function li(e,t,n,i,r){return vi(i,t,e),new ai(void 0,e,t,n,i,i,i,r,0)}class ci extends ai{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,i){return!(this.dirty==ni||this.dirty!=Xn&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==Xn&&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=Xn,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let i=this.node.cut(e,t),r=document.createTextNode(i.text);return new ci(this.parent,i,this.outerDeco,this.innerDeco,r,r,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=ni)}get domAtom(){return!1}}class ui extends ii{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Xn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class pi extends ai{constructor(e,t,n,i,r,o,s,a,l,c){super(e,t,n,i,r,o,s,l,c),this.spec=a}update(e,t,n,i){if(this.dirty==ni)return!1;if(this.spec.update){let r=this.spec.update(e,t,n);return r&&this.updateInner(e,t,n,i),r}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,i){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function di(e,t,n){let i=e.firstChild,r=!1;for(let o=0;o<t.length;o++){let s=t[o],a=s.dom;if(a.parentNode==e){for(;a!=i;)i=xi(i),r=!0;i=i.nextSibling}else r=!0,e.insertBefore(a,i);if(s instanceof si){let t=i?i.previousSibling:e.lastChild;di(s.contentDOM,s.children,n),i=t?t.nextSibling:e.firstChild}}for(;i;)i=xi(i),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const hi=function(e){e&&(this.nodeName=e)};hi.prototype=Object.create(null);const fi=[new hi];function mi(e,t,n){if(0==e.length)return fi;let i=n?fi[0]:new hi,r=[i];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s){s.nodeName&&r.push(i=new hi(s.nodeName));for(let e in s){let o=s[e];null!=o&&(n&&1==r.length&&r.push(i=new hi(t.isInline?"span":"div")),"class"==e?i.class=(i.class?i.class+" ":"")+o:"style"==e?i.style=(i.style?i.style+";":"")+o:"nodeName"!=e&&(i[e]=o))}}}return r}function gi(e,t,n,i){if(n==fi&&i==fi)return t;let r=t;for(let t=0;t<i.length;t++){let o=i[t],s=n[t];if(t){let t;s&&s.nodeName==o.nodeName&&r!=e&&(t=r.parentNode)&&t.nodeName.toLowerCase()==o.nodeName||(t=document.createElement(o.nodeName),t.pmIsDeco=!0,t.appendChild(r),s=fi[0]),r=t}bi(r,s||fi[0],o)}return r}function bi(e,t,n){for(let i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(let i in n)"class"!=i&&"style"!=i&&"nodeName"!=i&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){let i=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<i.length;t++)-1==r.indexOf(i[t])&&e.classList.remove(i[t]);for(let t=0;t<r.length;t++)-1==i.indexOf(r[t])&&e.classList.add(r[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,i=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=i.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function vi(e,t,n){return gi(e,e,fi,mi(t,n,1!=e.nodeType))}function yi(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function xi(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class wi{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,i=n.children.length,r=e.childCount,o=new Map,s=[];e:for(;r>0;){let a;for(;;)if(i){let e=n.children[i-1];if(!(e instanceof si)){a=e,i--;break}n=e,i=e.children.length}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let i=0,r=this.stack.length>>1,o=Math.min(r,e.length);for(;i<o&&(i==r-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<r;)this.destroyRest(),this.top.dirty=Xn,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<e.length;){this.stack.push(this.top,this.index+1);let i=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++)if(this.top.children[t].matchesMark(e[r])){i=t;break}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let i=si.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,i),this.top=i,this.changed=!0}this.index=0,r++}}findNodeMatch(e,t,n,i){let r,o=-1;if(i>=this.preMatch.index&&(r=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&r.matchesNode(e,t,n))o=this.top.children.indexOf(r,this.index);else for(let i=this.index,r=Math.min(this.top.children.length,i+5);i<r;i++){let r=this.top.children[i];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){o=i;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,t,n,i,r){let o=this.top.children[i];return o.dirty==ni&&o.dom==o.contentDOM&&(o.dirty=ti),!!o.update(e,t,n,r)&&(this.destroyBetween(this.index,i),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,i,r){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ai){let a=this.preMatch.matched.get(s);if(null!=a&&a!=r)return!1;let l=s.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=ni&&yi(t,s.outerDeco)))&&s.update(e,t,n,i))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(e,t,n,i,r){this.top.children.splice(this.index++,0,ai.create(this.top,e,t,n,i,r)),this.changed=!0}placeWidget(e,t,n){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){let i=new ri(this.top,e,t,n);this.top.children.splice(this.index++,0,i),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof si;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof ci)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((fn||dn)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let i=new ui(this.top,[],n,null);t!=this.top?t.children.push(i):t.children.splice(this.index++,0,i),this.changed=!0}}}function _i(e,t){return e.type.side-t.type.side}function ki(e,t,n,i,r){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,i)),r&&(o.push(r),r=void 0),u>n&&o.push(l.slice(n-c,l.size,i)))}return o}function Ei(e,t=null){let n=e.domSelection(),i=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),o=r&&0==r.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a,l,c=i.resolve(s);if(Tn(n)){for(a=c;r&&!r.node;)r=r.parent;let e=r.node;if(r&&e.isAtom&&zt.isSelectable(e)&&r.parent&&(!e.isInline||!function(e,t,n){for(let i=0==t,r=t==On(e);i||r;){if(e==n)return!0;let t=xn(e);if(!(e=e.parentNode))return!1;i=i&&0==t,r=r&&t==On(e)}}(n.focusNode,n.focusOffset,r.dom))){let e=r.posBefore;l=new zt(s==e?c:i.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;a=i.resolve(t)}if(!l){l=ji(e,a,c,"pointer"==t||e.state.selection.head<c.pos&&!o?1:-1)}return l}function Ci(e){return e.editable?e.hasFocus():zi(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Mi(e,t=!1){let n=e.state.selection;if(Ni(e,n),Ci(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&dn){let t=e.domSelection(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&En(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange(),i=e.cursorWrapper.dom,r="IMG"==i.nodeName;r?n.setEnd(i.parentNode,xn(i)+1):n.setEnd(i,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&ln&&cn<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{let i,r,{anchor:o,head:s}=n;!Oi||n instanceof jt||(n.$from.parent.inlineContent||(i=Di(e,n.from)),n.empty||n.$from.parent.inlineContent||(r=Di(e,n.to))),e.docView.setSelection(o,s,e.root,t),Oi&&(i&&Si(i),r&&Si(r)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelection(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==i&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{Ci(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Oi=fn||dn&&hn<63;function Di(e,t){let{node:n,offset:i}=e.docView.domFromPos(t,0),r=i<n.childNodes.length?n.childNodes[i]:null,o=i?n.childNodes[i-1]:null;if(fn&&r&&"false"==r.contentEditable)return Ti(r);if(!(r&&"false"!=r.contentEditable||o&&"false"!=o.contentEditable)){if(r)return Ti(r);if(o)return Ti(o)}}function Ti(e){return e.contentEditable="true",fn&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Si(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Ni(e,t){if(t instanceof zt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ai(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ai(e)}function Ai(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function ji(e,t,n,i){return e.someProp("createSelectionBetween",(i=>i(e,t,n)))||jt.between(t,n,i)}function Li(e){return!(e.editable&&!e.hasFocus())&&zi(e)}function zi(e){let t=e.domSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Ii(e,t){let{$anchor:n,$head:i}=e.selection,r=t>0?n.max(i):n.min(i),o=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return o&&Tt.findFrom(o,t)}function Ri(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Fi(e,t,n){let i=e.state.selection;if(!(i instanceof jt)){if(i instanceof zt&&i.node.isInline)return Ri(e,new jt(t>0?i.$to:i.$from));{let n=Ii(e.state,t);return!!n&&Ri(e,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=Ii(e.state,t);return!!(n&&n instanceof zt)&&Ri(e,n)}if(!(gn&&n.indexOf("m")>-1)){let n,r=i.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText)return!1;let s=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(zt.isSelectable(o)?Ri(e,new zt(t<0?e.state.doc.resolve(r.pos-o.nodeSize):r)):!!vn&&Ri(e,new jt(e.state.doc.resolve(t<0?s:s+o.nodeSize))))}}function Bi(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Pi(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Ui(e){let t=e.domSelection(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r,o,s=!1;for(un&&1==n.nodeType&&i<Bi(n)&&Pi(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;{let e=n.childNodes[i-1];if(Pi(e))r=n,o=--i;else{if(3!=e.nodeType)break;n=e,i=n.nodeValue.length}}}else{if($i(n))break;{let t=n.previousSibling;for(;t&&Pi(t);)r=n.parentNode,o=xn(t),t=t.previousSibling;if(t)n=t,i=Bi(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}s?Wi(e,t,n,i):r&&Wi(e,t,r,o)}function Hi(e){let t=e.domSelection(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r,o,s=Bi(n);for(;;)if(i<s){if(1!=n.nodeType)break;if(!Pi(n.childNodes[i]))break;r=n,o=++i}else{if($i(n))break;{let t=n.nextSibling;for(;t&&Pi(t);)r=t.parentNode,o=xn(t)+1,t=t.nextSibling;if(t)n=t,i=0,s=Bi(n);else{if(n=n.parentNode,n==e.dom)break;i=s=0}}}r&&Wi(e,t,r,o)}function $i(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Wi(e,t,n,i){if(Tn(t)){let e=document.createRange();e.setEnd(n,i),e.setStart(n,i),t.removeAllRanges(),t.addRange(e)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();let{state:r}=e;setTimeout((()=>{e.state==r&&Mi(e)}),50)}function qi(e,t,n){let i=e.state.selection;if(i instanceof jt&&!i.empty||n.indexOf("s")>-1)return!1;if(gn&&n.indexOf("m")>-1)return!1;let{$from:r,$to:o}=i;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=Ii(e.state,t);if(n&&n instanceof zt)return Ri(e,n)}if(!r.parent.inlineContent){let n=t<0?r:o,s=i instanceof Rt?Tt.near(n,t):Tt.findFrom(n,t);return!!s&&Ri(e,s)}return!1}function Vi(e,t){if(!(e.state.selection instanceof jt))return!0;let{$head:n,$anchor:i,empty:r}=e.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let i=e.state.tr;return t<0?i.delete(n.pos-o.nodeSize,n.pos):i.delete(n.pos,n.pos+o.nodeSize),e.dispatch(i),!0}return!1}function Ki(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Gi(e,t){let n=t.keyCode,i=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||gn&&72==n&&"c"==i?Vi(e,-1)||Ui(e):46==n||gn&&68==n&&"c"==i?Vi(e,1)||Hi(e):13==n||27==n||(37==n||gn&&66==n&&"c"==i?Fi(e,-1,i)||Ui(e):39==n||gn&&70==n&&"c"==i?Fi(e,1,i)||Hi(e):38==n||gn&&80==n&&"c"==i?qi(e,-1,i)||Ui(e):40==n||gn&&78==n&&"c"==i?function(e){if(!fn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelection();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ki(e,n,"true"),setTimeout((()=>Ki(e,n,"false")),20)}return!1}(e)||qi(e,1,i)||Hi(e):i==(gn?"m":"c")&&(66==n||73==n||89==n||90==n))}function Yi(e,t){e.someProp("transformCopied",(e=>{t=e(t)}));let n=[],{content:i,openStart:r,openEnd:o}=t;for(;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;let e=i.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),i=e.content}let s=e.someProp("clipboardSerializer")||Ie.fromSchema(e.state.schema),a=or(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let c,u=l.firstChild,p=0;for(;u&&1==u.nodeType&&(c=ir[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=a.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),p++}u=l.firstChild}u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${o}${p?` -${p}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",(e=>e(t)))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:l,text:d}}function Qi(e,t,n,i,r){let o,s,a=r.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(i||a||!n);if(l){if(e.someProp("transformPastedText",(e=>{t=e(t,a||i)})),a)return t?new B(j.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):B.empty;let n=e.someProp("clipboardTextParser",(e=>e(t,r,i)));if(n)s=n;else{let n=r.marks(),{schema:i}=e.state,s=Ie.fromSchema(i);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=o.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(i.text(e,n)))}))}}else e.someProp("transformPastedHTML",(e=>{n=e(n)})),o=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,i=or().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);(n=r&&ir[r[1].toLowerCase()])&&(e=n.map((e=>"<"+e+">")).join("")+e+n.map((e=>"</"+e+">")).reverse().join(""));if(i.innerHTML=e,n)for(let e=0;e<n.length;e++)i=i.querySelector(n[e])||i;return i}(n),vn&&function(e){let t=e.querySelectorAll(dn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let i=t[n];1==i.childNodes.length&&" "==i.textContent&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}(o);let c=o&&o.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let e=+u[3];e>0&&o.firstChild;e--)o=o.firstChild;if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||ke.fromSchema(e.state.schema);s=t.parseSlice(o,{preserveWhitespace:!(!l&&!u),context:r,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Zi.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(u)s=function(e,t){if(!e.size)return e;let n,i=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:r,openStart:o,openEnd:s}=e;for(let e=n.length-2;e>=0;e-=2){let t=i.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;r=j.from(t.create(n[e+1],r)),o++,s++}return new B(r,o,s)}(nr(s,+u[1],+u[2]),u[4]);else if(s=B.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i,r=t.node(n).contentMatchAt(t.index(n)),o=[];if(e.forEach((e=>{if(!o)return;let t,n=r.findWrapping(e.type);if(!n)return o=null;if(t=o.length&&i.length&&Xi(n,i,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=er(o[o.length-1],i.length));let t=Ji(e,n);o.push(t),r=r.matchType(t.type),i=n}})),o)return j.from(o)}return e}(s.content,r),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=nr(s,e,t)}return e.someProp("transformPasted",(e=>{s=e(s)})),s}const Zi=/^(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 Ji(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,j.from(e));return e}function Xi(e,t,n,i,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let o=Xi(e,t,n,i.lastChild,r+1);if(o)return i.copy(i.content.replaceChild(i.childCount-1,o));if(i.contentMatchAt(i.childCount).matchType(r==e.length-1?n.type:e[r+1]))return i.copy(i.content.append(j.from(Ji(n,e,r+1))))}}function er(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,er(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(j.empty,!0);return e.copy(n.append(i))}function tr(e,t,n,i,r,o){let s=t<0?e.firstChild:e.lastChild,a=s.content;return r<i-1&&(a=tr(a,t,n,i,r+1,o)),r>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,e.childCount>1||o<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(j.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function nr(e,t,n){return t<e.openStart&&(e=new B(tr(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new B(tr(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const ir={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let rr=null;function or(){return rr||(rr=document.implementation.createHTMLDocument("title"))}const sr={},ar={},lr={touchstart:!0,touchmove:!0};class cr{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ur(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function pr(e){e.someProp("handleDOMEvents",(t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>dr(e,t))}))}function dr(e,t){return e.someProp("handleDOMEvents",(n=>{let i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function hr(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function fr(e){return{left:e.clientX,top:e.clientY}}function mr(e,t,n,i,r){if(-1==i)return!1;let o=e.state.doc.resolve(i);for(let i=o.depth+1;i>0;i--)if(e.someProp(t,(t=>i>o.depth?t(e,n,o.nodeAfter,o.before(i),r,!0):t(e,n,o.node(i),o.before(i),r,!1))))return!0;return!1}function gr(e,t,n){e.focused||e.focus();let i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function br(e,t,n,i,r){return mr(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(n=>n(e,t,i)))||(r?function(e,t){if(-1==t)return!1;let n,i,r=e.state.selection;r instanceof zt&&(n=r.node);let o=e.state.doc.resolve(t);for(let e=o.depth+1;e>0;e--){let t=e>o.depth?o.nodeAfter:o.node(e);if(zt.isSelectable(t)){i=n&&r.$from.depth>0&&e>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(e);break}}return null!=i&&(gr(e,zt.create(e.state.doc,i),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&zt.isSelectable(i))&&(gr(e,new zt(n),"pointer"),!0)}(e,n))}function vr(e,t,n,i){return mr(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(n=>n(e,t,i)))}function yr(e,t,n,i){return mr(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",(n=>n(e,t,i)))||function(e,t,n){if(0!=n.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(gr(e,jt.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(t);for(let t=r.depth+1;t>0;t--){let n=t>r.depth?r.nodeAfter:r.node(t),o=r.before(t);if(n.inlineContent)gr(e,jt.create(i,o+1,o+1+n.content.size),"pointer");else{if(!zt.isSelectable(n))continue;gr(e,zt.create(i,o),"pointer")}return!0}}(e,n,i)}function xr(e){return Or(e)}ar.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!kr(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!bn||!dn||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!mn||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(t=>t(e,n)))||Gi(e,n)?n.preventDefault():ur(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,Sn(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},ar.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},ar.keypress=(e,t)=>{let n=t;if(kr(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||gn&&n.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,n))))return void n.preventDefault();let i=e.state.selection;if(!(i instanceof jt&&i.$from.sameParent(i.$to))){let t=String.fromCharCode(n.charCode);e.someProp("handleTextInput",(n=>n(e,i.$from.pos,i.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const wr=gn?"metaKey":"ctrlKey";sr.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=xr(e),r=Date.now(),o="singleClick";r-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}(n,e.input.lastClick)&&!n[wr]&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:o};let s=e.posAtCoords(fr(n));s&&("singleClick"==o?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new _r(e,s,n,!!i)):("doubleClick"==o?vr:yr)(e,s.pos,s.inside,n)?n.preventDefault():ur(e,"pointer"))};class _r{constructor(e,t,n,i){let r,o;if(this.view=e,this.pos=t,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[wr],this.allowDefault=n.shiftKey,t.inside>-1)r=e.state.doc.nodeAt(t.inside),o=t.inside;else{let n=e.state.doc.resolve(t.pos);r=n.parent,o=n.depth?n.before():0}const s=i?null:n.target,a=s?e.docView.nearestDesc(s,!0):null;this.target=a?a.dom:null;let{selection:l}=e.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||l instanceof zt&&l.from<=o&&l.to>o)&&(this.mightDrag={node:r,pos:o,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!un||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ur(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Mi(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(fr(e))),this.updateAllowDefault(e),this.allowDefault||!t?ur(this.view,"pointer"):br(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||fn&&this.mightDrag&&!this.mightDrag.node.isAtom||dn&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(gr(this.view,Tt.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ur(this.view,"pointer")}move(e){this.updateAllowDefault(e),ur(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function kr(e,t){return!!e.composing||!!(fn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}sr.touchstart=e=>{e.input.lastTouch=Date.now(),xr(e),ur(e,"pointer")},sr.touchmove=e=>{e.input.lastTouch=Date.now(),ur(e,"pointer")},sr.contextmenu=e=>xr(e);const Er=bn?5e3:-1;function Cr(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>Or(e)),t))}function Mr(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Or(e,t=!1){if(!(bn&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Mr(e),t||e.docView&&e.docView.dirty){let t=Ei(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}ar.compositionstart=ar.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||n.marks(),Or(e,!0),e.markCursor=null;else if(Or(e),un&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelection();for(let e=t.focusNode,n=t.focusOffset;e&&1==e.nodeType&&0!=n;){let i=n<0?e.lastChild:e.childNodes[n-1];if(!i)break;if(3==i.nodeType){t.collapse(i,i.nodeValue.length);break}e=i,n=-1}}e.input.composing=!0}Cr(e,Er)},ar.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,Cr(e,20))};const Dr=ln&&cn<15||mn&&yn<604;function Tr(e,t,n,i){let r=Qi(e,t,n,e.input.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,i,r||B.empty))))return!0;if(!r)return!1;let o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(r),s=o?e.state.tr.replaceSelectionWith(o,e.input.shiftKey):e.state.tr.replaceSelection(r);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}sr.copy=ar.cut=(e,t)=>{let n=t,i=e.state.selection,r="cut"==n.type;if(i.empty)return;let o=Dr?null:n.clipboardData,s=i.content(),{dom:a,text:l}=Yi(e,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ar.paste=(e,t)=>{let n=t;if(e.composing&&!bn)return;let i=Dr?null:n.clipboardData;i&&Tr(e,i.getData("text/plain"),i.getData("text/html"),n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Tr(e,i.value,null,t):Tr(e,i.textContent,i.innerHTML,t)}),50)}(e,n)};class Sr{constructor(e,t){this.slice=e,this.move=t}}const Nr=gn?"altKey":"ctrlKey";sr.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=e.state.selection,o=r.empty?null:e.posAtCoords(fr(n));if(o&&o.pos>=r.from&&o.pos<=(r instanceof zt?r.to-1:r.to));else if(i&&i.mightDrag)e.dispatch(e.state.tr.setSelection(zt.create(e.state.doc,i.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(zt.create(e.state.doc,t.posBefore)))}let s=e.state.selection.content(),{dom:a,text:l}=Yi(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(Dr?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Dr||n.dataTransfer.setData("text/plain",l),e.dragging=new Sr(s,!n[Nr])},sr.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},ar.dragover=ar.dragenter=(e,t)=>t.preventDefault(),ar.drop=(e,t)=>{let n=t,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(fr(n));if(!r)return;let o=e.state.doc.resolve(r.pos),s=i&&i.slice;s?e.someProp("transformPasted",(e=>{s=e(s)})):s=Qi(e,n.dataTransfer.getData(Dr?"Text":"text/plain"),Dr?null:n.dataTransfer.getData("text/html"),!1,o);let a=!(!i||n[Nr]);if(e.someProp("handleDrop",(t=>t(e,n,s||B.empty,a))))return void n.preventDefault();if(!s)return;n.preventDefault();let l=s?ht(e.state.doc,o.pos,s):o.pos;null==l&&(l=o.pos);let c=e.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),p=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,d=c.doc;if(p?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(d))return;let h=c.doc.resolve(u);if(p&&zt.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new zt(h));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,n,i,r)=>t=r)),c.setSelection(ji(e,h,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},sr.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelection())&&Mi(e)}),20))},sr.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},sr.beforeinput=(e,t)=>{if(dn&&bn&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,Sn(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let e in ar)sr[e]=ar[e];function Ar(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class jr{constructor(e,t){this.toDOM=e,this.spec=t||Fr,this.side=this.spec.side||0}map(e,t,n,i){let{pos:r,deleted:o}=e.mapResult(t.from+i,this.side<0?-1:1);return o?null:new Ir(r-n,r-n,this)}valid(){return!0}eq(e){return this==e||e instanceof jr&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ar(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Lr{constructor(e,t){this.attrs=e,this.spec=t||Fr}map(e,t,n,i){let r=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return r>=o?null:new Ir(r,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Lr&&Ar(this.attrs,e.attrs)&&Ar(this.spec,e.spec)}static is(e){return e.type instanceof Lr}destroy(){}}class zr{constructor(e,t){this.attrs=e,this.spec=t||Fr}map(e,t,n,i){let r=e.mapResult(t.from+i,1);if(r.deleted)return null;let o=e.mapResult(t.to+i,-1);return o.deleted||o.pos<=r.pos?null:new Ir(r.pos-n,o.pos-n,this)}valid(e,t){let n,{index:i,offset:r}=e.content.findIndex(t.from);return r==t.from&&!(n=e.child(i)).isText&&r+n.nodeSize==t.to}eq(e){return this==e||e instanceof zr&&Ar(this.attrs,e.attrs)&&Ar(this.spec,e.spec)}destroy(){}}class Ir{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new Ir(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new Ir(e,e,new jr(t,n))}static inline(e,t,n,i){return new Ir(e,t,new Lr(n,i))}static node(e,t,n,i){return new Ir(e,t,new zr(n,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Lr}}const Rr=[],Fr={};class Br{constructor(e,t){this.local=e.length?e:Rr,this.children=t.length?t:Rr}static create(e,t){return t.length?qr(t,e,0,Fr):Pr}find(e,t,n){let i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i}findInner(e,t,n,i,r){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=t&&s.to>=e&&(!r||r(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,t-s,n,i+s,r)}}map(e,t,n){return this==Pr||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Fr)}mapInner(e,t,n,i,r){let o;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(o||(o=[])).push(a):r.onRemove&&r.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,r,o,s){let a=e.slice();for(let e=0,t=o;e<n.maps.length;e++){let i=0;n.maps[e].forEach(((e,n,o,s)=>{let l=s-o-(n-e);for(let s=0;s<a.length;s+=3){let c=a[s+1];if(c<0||e>c+t-i)continue;let u=a[s]+t-i;n>=u?a[s+1]=e<=u?-2:-1:o>=r&&l&&(a[s]+=l,a[s+1]+=l)}i+=l})),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<a.length;t+=3)if(a[t+1]<0){if(-2==a[t+1]){l=!0,a[t+1]=-1;continue}let c=n.map(e[t]+o),u=c-r;if(u<0||u>=i.content.size){l=!0;continue}let p=n.map(e[t+1]+o,-1)-r,{index:d,offset:h}=i.content.findIndex(u),f=i.maybeChild(d);if(f&&h==u&&h+f.nodeSize==p){let i=a[t+2].mapInner(n,f,c+1,e[t]+o+1,s);i!=Pr?(a[t]=u,a[t+1]=p,a[t+2]=i):(a[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,i,r,o,s){function a(e,t){for(let o=0;o<e.local.length;o++){let a=e.local[o].map(i,r,t);a?n.push(a):s.onRemove&&s.onRemove(e.local[o].spec)}for(let n=0;n<e.children.length;n+=3)a(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)-1==e[n+1]&&a(e[n+2],t[n]+o+1);return n}(a,e,t,n,r,o,s),c=qr(l,i,0,s);t=c.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Br(t.sort(Vr),a)}(this.children,o||[],e,t,n,i,r):o?new Br(o.sort(Vr),Rr):Pr}add(e,t){return t.length?this==Pr?Br.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let i,r=0;e.forEach(((e,o)=>{let s,a=o+n;if(s=$r(t,e,a)){for(i||(i=this.children.slice());r<i.length&&i[r]<o;)r+=3;i[r]==o?i[r+2]=i[r+2].addInner(e,s,a+1):i.splice(r,0,o,o+e.nodeSize,qr(s,e,a+1,Fr)),r+=3}}));let o=Hr(r?Wr(t):t,-n);for(let t=0;t<o.length;t++)o[t].type.valid(e,o[t])||o.splice(t--,1);return new Br(o.length?this.local.concat(o).sort(Vr):this.local,i||this.children)}remove(e){return 0==e.length||this==Pr?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,i=this.local;for(let i=0;i<n.length;i+=3){let r,o=n[i]+t,s=n[i+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>o&&t.to<s&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let a=n[i+2].removeInner(r,o+1);a!=Pr?n[i+2]=a:(n.splice(i,3),i-=3)}if(i.length)for(let n,r=0;r<e.length;r++)if(n=e[r])for(let e=0;e<i.length;e++)i[e].eq(n,t)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1));return n==this.children&&i==this.local?this:i.length||n.length?new Br(i,n):Pr}forChild(e,t){if(this==Pr)return this;if(t.isLeaf)return Br.empty;let n,i;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let r=e+1,o=r+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>r&&t.type instanceof Lr){let e=Math.max(r,t.from)-r,n=Math.min(o,t.to)-r;e<n&&(i||(i=[])).push(t.copy(e,n))}}if(i){let e=new Br(i.sort(Vr),Rr);return n?new Ur([e,n]):e}return n||Pr}eq(e){if(this==e)return!0;if(!(e instanceof Br)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Kr(this.localsInner(e))}localsInner(e){if(this==Pr)return Rr;if(e.inlineContent||!this.local.some(Lr.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Lr||t.push(this.local[e]);return t}}Br.empty=new Br([],[]),Br.removeOverlap=Kr;const Pr=Br.empty;class Ur{constructor(e){this.members=e}map(e,t){const n=this.members.map((n=>n.map(e,t,Fr)));return Ur.from(n)}forChild(e,t){if(t.isLeaf)return Br.empty;let n=[];for(let i=0;i<this.members.length;i++){let r=this.members[i].forChild(e,t);r!=Pr&&(r instanceof Ur?n=n.concat(r.members):n.push(r))}return Ur.from(n)}eq(e){if(!(e instanceof Ur)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let i=0;i<this.members.length;i++){let r=this.members[i].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<r.length;e++)t.push(r[e])}else t=r}return t?Kr(n?t:t.sort(Vr)):Rr}static from(e){switch(e.length){case 0:return Pr;case 1:return e[0];default:return new Ur(e)}}}function Hr(e,t){if(!t||!e.length)return e;let n=[];for(let i=0;i<e.length;i++){let r=e[i];n.push(new Ir(r.from+t,r.to+t,r.type))}return n}function $r(e,t,n){if(t.isLeaf)return null;let i=n+t.nodeSize,r=null;for(let t,o=0;o<e.length;o++)(t=e[o])&&t.from>n&&t.to<i&&((r||(r=[])).push(t),e[o]=null);return r}function Wr(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function qr(e,t,n,i){let r=[],o=!1;t.forEach(((t,s)=>{let a=$r(e,t,s+n);if(a){o=!0;let e=qr(a,t,n+s+1,i);e!=Pr&&r.push(s,s+t.nodeSize,e)}}));let s=Hr(o?Wr(e):e,-n).sort(Vr);for(let e=0;e<s.length;e++)s[e].type.valid(t,s[e])||(i.onRemove&&i.onRemove(s[e].spec),s.splice(e--,1));return s.length||r.length?new Br(s,r):Pr}function Vr(e,t){return e.from-t.from||e.to-t.to}function Kr(e){let t=e;for(let n=0;n<t.length-1;n++){let i=t[n];if(i.from!=i.to)for(let r=n+1;r<t.length;r++){let o=t[r];if(o.from!=i.from){o.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,o.from),Gr(t,r,i.copy(o.from,i.to)));break}o.to!=i.to&&(t==e&&(t=e.slice()),t[r]=o.copy(o.from,i.to),Gr(t,r+1,o.copy(i.to,o.to)))}}return t}function Gr(e,t,n){for(;t<e.length&&Vr(n,e[t])>0;)t++;e.splice(t,0,n)}function Yr(e){let t=[];return e.someProp("decorations",(n=>{let i=n(e.state);i&&i!=Pr&&t.push(i)})),e.cursorWrapper&&t.push(Br.create(e.state.doc,[e.cursorWrapper.deco])),Ur.from(t)}const Qr={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Zr=ln&&cn<=11;class Jr{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 Xr{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Jr,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);ln&&cn<=11&&e.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Zr&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.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,Qr)),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 t=0;t<e.length;t++)this.queue.push(e[t]);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(Li(this.view)){if(this.suppressingSelectionUpdates)return Mi(this.view);if(ln&&cn<=11&&!this.view.state.selection.empty){let e=this.view.domSelection();if(e.focusNode&&En(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelection())}ignoreSelectionChange(e){if(0==e.rangeCount)return!0;let t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let n=e.domSelection(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Li(e)&&!this.ignoreSelectionChange(n),r=-1,o=-1,s=!1,a=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],a);n&&(r=r<0?n.from:Math.min(n.from,r),o=o<0?n.to:Math.max(n.to,o),n.typeOver&&(s=!0))}if(un&&a.length>1){let e=a.filter((e=>"BR"==e.nodeName));if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let l=null;r<0&&i&&e.input.lastFocus>Date.now()-200&&e.input.lastTouch<Date.now()-300&&Tn(n)&&(l=Ei(e))&&l.eq(Tt.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Mi(e),this.currentSelection.set(n),e.scrollToSelection()):(r>-1||i)&&(r>-1&&(e.docView.markDirty(r,o),function(e){if(eo.has(e))return;if(eo.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=un,to)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."),to=!0}}(e)),this.handleDOMChange(r,o,s,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Mi(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let i=e.previousSibling,r=e.nextSibling;if(ln&&cn<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:o}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(i=n),(!o||Array.prototype.indexOf.call(e.addedNodes,o)<0)&&(r=o)}let o=i&&i.parentNode==e.target?xn(i)+1:0,s=n.localPosFromDOM(e.target,o,-1),a=r&&r.parentNode==e.target?xn(r):e.target.childNodes.length;return{from:s,to:n.localPosFromDOM(e.target,a,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let eo=new WeakMap,to=!1;function no(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(fn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||fn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}function io(e,t,n,i,r){if(t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=Ei(e,t);if(n&&!e.state.selection.eq(n)){let i=e.state.tr.setSelection(n);"pointer"==t?i.setMeta("pointer",!0):"key"==t&&i.scrollIntoView(),e.dispatch(i)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let a,l,c=e.state.selection,u=function(e,t,n){let i,{node:r,fromOffset:o,toOffset:s,from:a,to:l}=e.docView.parseRange(t,n),c=e.domSelection(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(i=[{node:u,offset:c.anchorOffset}],Tn(c)||i.push({node:c.focusNode,offset:c.focusOffset})),dn&&8===e.input.lastKeyCode)for(let e=s;e>o;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){s=e;break}if(!n||n.size)break}let p=e.state.doc,d=e.someProp("domParser")||ke.fromSchema(e.state.schema),h=p.resolve(a),f=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:s,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:i,ruleFromNode:no,context:h});if(i&&null!=i[0].pos){let e=i[0].pos,t=i[1]&&i[1].pos;null==t&&(t=e),f={anchor:e+a,head:t+a}}return{doc:m,sel:f,from:a,to:l}}(e,t,n),p=e.state.doc,d=p.slice(u.from,u.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(a=e.state.selection.to,l="end"):(a=e.state.selection.from,l="start"),e.input.lastKeyCode=null;let h=function(e,t,n,i,r){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==r){i-=s+Math.max(0,o-Math.min(s,a))-o}if(s<o&&e.size<t.size){o-=i<=o&&i>=s?o-i:0,a=o+(a-s),s=o}else if(a<o){o-=i<=o&&i>=a?o-i:0,s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}(d.content,u.doc.content,u.from,a,l);if((mn&&e.input.lastIOSEnter>Date.now()-225||bn)&&r.some((e=>"DIV"==e.nodeName||"P"==e.nodeName))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",(t=>t(e,Sn(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(!h){if(!(i&&c instanceof jt&&!c.empty&&c.$head.sameParent(c.$anchor))||e.composing||u.sel&&u.sel.anchor!=u.sel.head){if(u.sel){let t=ro(e,e.state.doc,u.sel);t&&!t.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(t))}return}h={start:c.from,endA:c.to,endB:c.to}}if(dn&&e.cursorWrapper&&u.sel&&u.sel.anchor==e.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let e=h.endB-h.start;u.sel={anchor:u.sel.anchor+e,head:u.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&h.start==h.endB&&e.state.selection instanceof jt&&(h.start>e.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?h.start=e.state.selection.from:h.endA<e.state.selection.to&&h.endA>=e.state.selection.to-2&&e.state.selection.to<=u.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),ln&&cn<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>u.from&&"  "==u.doc.textBetween(h.start-u.from-1,h.start-u.from+1)&&(h.start--,h.endA--,h.endB--);let f,m=u.doc.resolveNoCache(h.start-u.from),g=u.doc.resolveNoCache(h.endB-u.from),b=p.resolve(h.start),v=m.sameParent(g)&&m.parent.inlineContent&&b.end()>=h.endA;if((mn&&e.input.lastIOSEnter>Date.now()-225&&(!v||r.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!v&&m.pos<u.doc.content.size&&(f=Tt.findFrom(u.doc.resolve(m.pos+1),1,!0))&&f.head==g.pos)&&e.someProp("handleKeyDown",(t=>t(e,Sn(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>h.start&&function(e,t,n,i,r){if(!i.parent.isTextblock||n-t<=r.pos-i.pos||oo(i,!0,!1)<r.pos)return!1;let o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(oo(o,!0,!0));return!(!s.parent.isTextblock||s.pos>n||oo(s,!0,!1)<n)&&i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(p,h.start,h.endA,m,g)&&e.someProp("handleKeyDown",(t=>t(e,Sn(8,"Backspace")))))return void(bn&&dn&&e.domObserver.suppressSelectionUpdates());dn&&bn&&h.endB==h.start&&(e.input.lastAndroidDelete=Date.now()),bn&&!v&&m.start()!=g.start()&&0==g.parentOffset&&m.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==h.endA&&(h.endB-=2,g=u.doc.resolveNoCache(h.endB-u.from),setTimeout((()=>{e.someProp("handleKeyDown",(function(t){return t(e,Sn(13,"Enter"))}))}),20));let y,x,w,_=h.start,k=h.endA;if(v)if(m.pos==g.pos)ln&&cn<=11&&0==m.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((()=>Mi(e)),20)),y=e.state.tr.delete(_,k),x=p.resolve(h.start).marksAcross(p.resolve(h.endA));else if(h.endA==h.endB&&(w=function(e,t){let n,i,r,o=e.firstChild.marks,s=t.firstChild.marks,a=o,l=s;for(let e=0;e<s.length;e++)a=s[e].removeFromSet(a);for(let e=0;e<o.length;e++)l=o[e].removeFromSet(l);if(1==a.length&&0==l.length)i=a[0],n="add",r=e=>e.mark(i.addToSet(e.marks));else{if(0!=a.length||1!=l.length)return null;i=l[0],n="remove",r=e=>e.mark(i.removeFromSet(e.marks))}let c=[];for(let e=0;e<t.childCount;e++)c.push(r(t.child(e)));if(j.from(c).eq(e))return{mark:i,type:n}}(m.parent.content.cut(m.parentOffset,g.parentOffset),b.parent.content.cut(b.parentOffset,h.endA-b.start()))))y=e.state.tr,"add"==w.type?y.addMark(_,k,w.mark):y.removeMark(_,k,w.mark);else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let t=m.parent.textBetween(m.parentOffset,g.parentOffset);if(e.someProp("handleTextInput",(n=>n(e,_,k,t))))return;y=e.state.tr.insertText(t,_,k)}if(y||(y=e.state.tr.replace(_,k,u.doc.slice(h.start-u.from,h.endB-u.from))),u.sel){let t=ro(e,y.doc,u.sel);t&&!(dn&&bn&&e.composing&&t.empty&&(h.start!=h.endB||e.input.lastAndroidDelete<Date.now()-100)&&(t.head==_||t.head==y.mapping.map(k)-1)||ln&&t.empty&&t.head==_)&&y.setSelection(t)}x&&y.ensureMarks(x),e.dispatch(y.scrollIntoView())}function ro(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:ji(e,t.resolve(n.anchor),t.resolve(n.head))}function oo(e,t,n){let i=e.depth,r=t?e.end():e.pos;for(;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n){let t=e.node(i).maybeChild(e.indexAfter(i));for(;t&&!t.isLeaf;)t=t.firstChild,r++}return r}class so{constructor(e,t){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 cr,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(po),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=co(this),lo(this),this.nodeViews=uo(this),this.docView=li(this.state.doc,ao(this),Yr(this),this.dom,this),this.domObserver=new Xr(this,((e,t,n,i)=>io(this,e,t,n,i))),this.domObserver.start(),function(e){for(let t in sr){let n=sr[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!hr(e,t)||dr(e,t)||!e.editable&&t.type in ar||n(e,t)},lr[t]?{passive:!0}:void 0)}fn&&e.dom.addEventListener("input",(()=>null)),pr(e)}(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 t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&pr(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(po),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,i=!1,r=!1;e.storedMarks&&this.composing&&(Mr(this),r=!0),this.state=e;let o=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(o||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=uo(this);(function(e,t){let n=0,i=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let e in t)i++;return n!=i})(e,this.nodeViews)&&(this.nodeViews=e,i=!0)}(o||t.handleDOMEvents!=this._props.handleDOMEvents)&&pr(this),this.editable=co(this),lo(this);let s=Yr(this),a=ao(this),l=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=i||!this.docView.matchesNode(e.doc,a,s);!c&&e.selection.eq(n.selection)||(r=!0);let u="preserve"==l&&r&&null==this.dom.style.overflowAnchor&&function(e){let t,n,i=e.dom.getBoundingClientRect(),r=Math.max(0,i.top);for(let o=(i.left+i.right)/2,s=r+1;s<Math.min(innerHeight,i.bottom);s+=5){let i=e.root.elementFromPoint(o,s);if(!i||i==e.dom||!e.dom.contains(i))continue;let a=i.getBoundingClientRect();if(a.top>=r-20){t=i,n=a.top;break}}return{refDOM:t,refTop:n,stack:zn(e.dom)}}(this);if(r){this.domObserver.stop();let t=c&&(ln||dn)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(n.selection,e.selection);if(c){let n=dn?this.trackWrites=this.domSelection().focusNode:null;!i&&this.docView.update(e.doc,a,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=li(e.doc,a,s,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelection())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelection();return En(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?Mi(this,t):(Ni(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&function({refDOM:e,refTop:t,stack:n}){let i=e?e.getBoundingClientRect().top:0;In(n,0==i?0:i-t)}(u)}scrollToSelection(){let e=this.domSelection().focusNode;if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof zt){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&Ln(this,t.getBoundingClientRect(),e)}else Ln(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)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}someProp(e,t){let n,i=this._props&&this._props[e];if(null!=i&&(n=t?t(i):i))return n;for(let i=0;i<this.directPlugins.length;i++){let r=this.directPlugins[i].props[e];if(null!=r&&(n=t?t(r):r))return n}let r=this.state.plugins;if(r)for(let i=0;i<r.length;i++){let o=r[i].props[e];if(null!=o&&(n=t?t(o):o))return n}}hasFocus(){if(ln){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("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Rn)return e.focus(Rn);let t=zn(e);e.focus(null==Rn?{get preventScroll(){return Rn={preventScroll:!0},!0}}:void 0),Rn||(Rn=!1,In(t,0))}(this.dom),Mi(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}posAtCoords(e){return Un(this,e)}coordsAtPos(e,t=1){return Wn(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let i=this.docView.posFromDOM(e,t,n);if(null==i)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,t){return Jn(this,t||this.state,e)}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Yr(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){dr(e,t)||!sr[t.type]||!e.editable&&t.type in ar||sr[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelection(){return this.root.getSelection()}}function ao(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e&&(t.class+=" "+n[e]),"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))})),[Ir.node(0,e.state.doc.content.size,t)]}function lo(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Ir.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function co(e){return!e.someProp("editable",(t=>!1===t(e.state)))}function uo(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function po(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var ho={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:"'"},fo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mo="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent);"undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent);for(var go="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),bo="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),vo=go||mo&&+mo[1]<57,yo=0;yo<10;yo++)ho[48+yo]=ho[96+yo]=String(yo);for(yo=1;yo<=24;yo++)ho[yo+111]="F"+yo;for(yo=65;yo<=90;yo++)ho[yo]=String.fromCharCode(yo+32),fo[yo]=String.fromCharCode(yo);for(var xo in ho)fo.hasOwnProperty(xo)||(fo[xo]=ho[xo]);const wo="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function _o(e){let t,n,i,r,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))r=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))i=!0;else{if(!/^mod$/i.test(s))throw new Error("Unrecognized modifier name: "+s);wo?r=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),r&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function ko(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function Eo(e){let t=function(e){let t=Object.create(null);for(let n in e)t[_o(n)]=e[n];return t}(e);return function(e,n){let i,r=function(e){var t=!(vo&&(e.ctrlKey||e.altKey||e.metaKey)||bo&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?fo:ho)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),o=1==r.length&&" "!=r,s=t[ko(r,n,!o)];if(s&&s(e.state,e.dispatch,e))return!0;if(o&&(n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=ho[n.keyCode])&&i!=r){let r=t[ko(i,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}else if(o&&n.shiftKey){let i=t[ko(r,n,!0)];if(i&&i(e.state,e.dispatch,e))return!0}return!1}}function Co(e,t,n=!1){for(let i=e;i;i="start"==t?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&1!=i.childCount)return!1}return!1}function Mo(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Oo(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function Do(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function To(e,t,n){let i,r,o=t.nodeBefore,s=t.nodeAfter;if(o.type.spec.isolating||s.type.spec.isolating)return!1;if(function(e,t,n){let i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!(!(i&&r&&i.type.compatibleContent(r.type))||(!i.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!r.isTextblock&&!dt(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(i=(r=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&r.matchType(i[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,a=j.empty;for(let e=i.length-1;e>=0;e--)a=j.from(i[e].create(null,a));a=j.from(o.copy(a));let l=e.tr.step(new ot(t.pos-1,r,t.pos,r,new B(a,1,0),i.length,!0)),c=r+2*i.length;dt(l.doc,c)&&l.join(c),n(l.scrollIntoView())}return!0}let l=Tt.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&lt(c);if(null!=u&&u>=t.depth)return n&&n(e.tr.lift(c,u).scrollIntoView()),!0;if(a&&Co(s,"start",!0)&&Co(o,"end")){let i=o,r=[];for(;r.push(i),!i.isTextblock;)i=i.lastChild;let a=s,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(i.canReplace(i.childCount,i.childCount,a.content)){if(n){let i=j.empty;for(let e=r.length-1;e>=0;e--)i=j.from(r[e].copy(i));n(e.tr.step(new ot(t.pos-r.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new B(i,r.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function So(e){return function(t,n){let i=t.selection,r=e<0?i.$from:i.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(n&&n(t.tr.setSelection(jt.create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}const No=So(-1),Ao=So(1);function jo(e,t=null){return function(n,i){let{from:r,to:o}=n.selection,s=!1;return n.doc.nodesBetween(r,o,((i,r)=>{if(s)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)s=!0;else{let t=n.doc.resolve(r),i=t.index();s=t.parent.canReplaceWith(i,i+1,e)}})),!!s&&(i&&i(n.tr.setBlockType(r,o,e,t).scrollIntoView()),!0)}}function Lo(e,t=null){return function(n,i){let{$from:r,$to:o}=n.selection,s=r.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==r.index(s.depth-1))return!1;let e=n.doc.resolve(s.start-2);l=new te(e,e,s.depth),s.endIndex<s.parent.childCount&&(s=new te(r,n.doc.resolve(o.end(s.depth)),s.depth)),a=!0}let c=ct(l,e,t,s);return!!c&&(i&&i(function(e,t,n,i,r){let o=j.empty;for(let e=n.length-1;e>=0;e--)o=j.from(n[e].type.create(n[e].attrs,o));e.step(new ot(t.start-(i?2:0),t.end,t.start,t.end,new B(o,0,0),n.length,!0));let s=0;for(let e=0;e<n.length;e++)n[e].type==r&&(s=e+1);let a=n.length-s,l=t.start+n.length-(i?2:0),c=t.parent;for(let n=t.startIndex,i=t.endIndex,r=!0;n<i;n++,r=!1)!r&&pt(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=c.child(n).nodeSize;return e}(n.tr,s,c,a,e).scrollIntoView()),!0)}}function zo(e){return function(t,n){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,(t=>t.childCount>0&&t.firstChild.type==e));return!!o&&(!n||(i.node(o.depth-1).type==e?function(e,t,n,i){let r=e.tr,o=i.end,s=i.$to.end(i.depth);o<s&&(r.step(new ot(o-1,s,o,s,new B(j.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new te(r.doc.resolve(i.$from.pos),r.doc.resolve(s),i.depth));const a=lt(i);if(null==a)return!1;r.lift(i,a);let l=r.mapping.map(o,-1)-1;dt(r.doc,l)&&r.join(l);return t(r.scrollIntoView()),!0}(t,n,e,o):function(e,t,n){let i=e.tr,r=n.parent;for(let e=n.end,t=n.endIndex-1,o=n.startIndex;t>o;t--)e-=r.child(t).nodeSize,i.delete(e-1,e+1);let o=i.doc.resolve(n.start),s=o.nodeAfter;if(i.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=0==n.startIndex,l=n.endIndex==r.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?j.empty:j.from(r))))return!1;let p=o.pos,d=p+s.nodeSize;return i.step(new ot(p-(a?1:0),d+(l?1:0),p+1,d-1,new B((a?j.empty:j.from(r.copy(j.empty))).append(l?j.empty:j.from(r.copy(j.empty))),a?0:1,l?0:1),a?0:1)),t(i.scrollIntoView()),!0}(t,n,o)))}}function Io(e){const{state:t,transaction:n}=e;let{selection:i}=n,{doc:r}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return r},get tr(){return i=n.selection,r=n.doc,o=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class Ro{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:i}=t,{tr:r}=n,o=this.buildProps(r);return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(...e)=>{const n=t(...e)(o);return r.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(r),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:o}=i,s=[],a=!!e,l=e||r.tr,c={...Object.fromEntries(Object.entries(n).map((([e,n])=>[e,(...e)=>{const i=this.buildProps(l,t),r=n(...e)(i);return s.push(r),c}]))),run:()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(l),s.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:t,state:n}=this,i=!1,r=e||n.tr,o=this.buildProps(r,i),s=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])));return{...s,chain:()=>this.createChain(r,i)}}buildProps(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:o}=i;r.storedMarks&&e.setStoredMarks(r.storedMarks);const s={tr:e,editor:i,view:o,state:Io({state:r,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map((([e,t])=>[e,(...e)=>t(...e)(s)])))}};return s}}function Fo(e,t,n){if(void 0===e.config[t]&&e.parent)return Fo(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?Fo(e.parent,t,n):null})}return e.config[t]}function Bo(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}function Po(e){const t=[],{nodeExtensions:n,markExtensions:i}=Bo(e),r=[...n,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach((e=>{const n=Fo(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage});if(!n)return;n().forEach((e=>{e.types.forEach((n=>{Object.entries(e.attributes).forEach((([e,i])=>{t.push({type:n,name:e,attribute:{...o,...i}})}))}))}))})),r.forEach((e=>{const n={name:e.name,options:e.options,storage:e.storage},i=Fo(e,"addAttributes",n);if(!i)return;const r=i();Object.entries(r).forEach((([n,i])=>{const r={...o,...i};(null==i?void 0:i.isRequired)&&void 0===(null==i?void 0:i.default)&&delete r.default,t.push({type:e.name,name:n,attribute:r})}))})),t}function Uo(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Ho(...e){return e.filter((e=>!!e)).reduce(((e,t)=>{const n={...e};return Object.entries(t).forEach((([e,t])=>{n[e]?n[e]="class"===e?[n[e],t].join(" "):"style"===e?[n[e],t].join("; "):t:n[e]=t})),n}),{})}function $o(e,t){return t.filter((e=>e.attribute.rendered)).map((t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]})).reduce(((e,t)=>Ho(e,t)),{})}function Wo(e){return"function"==typeof e}function qo(e,t=void 0,...n){return Wo(e)?t?e.bind(t)(...n):e(...n):e}function Vo(e,t){return e.style?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===i)return!1;const r=t.reduce(((e,t)=>{const i=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==i?e:{...e,[t.name]:i}}),{});return{...i,...r}}}}function Ko(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t)))}function Go(e,t){return t.nodes[e]||t.marks[e]||null}function Yo(e,t){return Array.isArray(t)?t.some((t=>("string"==typeof t?t:t.name)===e.name)):t}function Qo(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class Zo{constructor(e){this.find=e.find,this.handler=e.handler}}function Jo(e){var t;const{editor:n,from:i,to:r,text:o,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find((e=>e.type.spec.code))))return!1;let u=!1;const p=((e,t=500)=>{let n="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-t),i,((e,t,r,o)=>{var s,a;const l=(null===(a=(s=e.type.spec).toText)||void 0===a?void 0:a.call(s,{node:e,pos:t,parent:r,index:o}))||e.textContent||"%leaf%";n+=l.slice(0,Math.max(0,i-t))})),n})(c)+o;return s.forEach((e=>{if(u)return;const t=((e,t)=>{if(Qo(t))return t.exec(e);const n=t(e);if(!n)return null;const i=[];return i.push(n.text),i.index=n.index,i.input=e,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(n.replaceWith)),i})(p,e.find);if(!t)return;const s=l.state.tr,c=Io({state:l.state,transaction:s}),d={from:i-(t[0].length-o.length),to:r},{commands:h,chain:f,can:m}=new Ro({editor:n,state:c});null!==e.handler({state:c,range:d,match:t,commands:h,chain:f,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:i,to:r,text:o}),l.dispatch(s),u=!0)})),u}function Xo(e){const{editor:t,rules:n}=e,i=new Zt({state:{init:()=>null,apply(e,t){const n=e.getMeta(i);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(e,r,o,s)=>Jo({editor:t,from:r,to:o,text:s,rules:n,plugin:i}),handleDOMEvents:{compositionend:e=>(setTimeout((()=>{const{$cursor:r}=e.state.selection;r&&Jo({editor:t,from:r.pos,to:r.pos,text:"",rules:n,plugin:i})})),!1)},handleKeyDown(e,r){if("Enter"!==r.key)return!1;const{$cursor:o}=e.state.selection;return!!o&&Jo({editor:t,from:o.pos,to:o.pos,text:"\n",rules:n,plugin:i})}},isInputRules:!0});return i}class es{constructor(e){this.find=e.find,this.handler=e.handler}}function ts(e){const{editor:t,state:n,from:i,to:r,rule:o}=e,{commands:s,chain:a,can:l}=new Ro({editor:t,state:n}),c=[];n.doc.nodesBetween(i,r,((e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const u=Math.max(i,t),p=Math.min(r,t+e.content.size),d=((e,t)=>{if(Qo(t))return[...e.matchAll(t)];const n=t(e);return n?n.map((t=>{const n=[];return n.push(t.text),n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n})):[]})(e.textBetween(u-t,p-t,void 0,""),o.find);d.forEach((e=>{if(void 0===e.index)return;const t=u+e.index+1,i=t+e[0].length,r={from:n.tr.mapping.map(t),to:n.tr.mapping.map(i)},p=o.handler({state:n,range:r,match:e,commands:s,chain:a,can:l});c.push(p)}))}));return c.every((e=>null!==e))}function ns(e){const{editor:t,rules:n}=e;let i=null,r=!1,o=!1;const s=n.map((e=>new Zt({view(e){const t=t=>{var n;i=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:e=>(o=i===e.dom.parentElement,!1),paste:(e,t)=>{var n;const i=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return r=!!(null==i?void 0:i.includes("data-pm-slice")),!1}}},appendTransaction:(n,i,s)=>{const a=n[0],l="paste"===a.getMeta("uiEvent")&&!r,c="drop"===a.getMeta("uiEvent")&&!o;if(!l&&!c)return;const u=i.doc.content.findDiffStart(s.doc.content),p=i.doc.content.findDiffEnd(s.doc.content);if("number"!=typeof u||!p||u===p.b)return;const d=s.tr,h=Io({state:s,transaction:d});return ts({editor:t,state:h,from:Math.max(u-1,0),to:p.b-1,rule:e})&&d.steps.length?d:void 0}})));return s}class is{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=is.resolve(e),this.schema=function(e){var t;const n=Po(e),{nodeExtensions:i,markExtensions:r}=Bo(e),o=null===(t=i.find((e=>Fo(e,"topNode"))))||void 0===t?void 0:t.name,s=Object.fromEntries(i.map((t=>{const i=n.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage},o=e.reduce(((e,n)=>{const i=Fo(n,"extendNodeSchema",r);return{...e,...i?i(t):{}}}),{}),s=Ko({...o,content:qo(Fo(t,"content",r)),marks:qo(Fo(t,"marks",r)),group:qo(Fo(t,"group",r)),inline:qo(Fo(t,"inline",r)),atom:qo(Fo(t,"atom",r)),selectable:qo(Fo(t,"selectable",r)),draggable:qo(Fo(t,"draggable",r)),code:qo(Fo(t,"code",r)),defining:qo(Fo(t,"defining",r)),isolating:qo(Fo(t,"isolating",r)),attrs:Object.fromEntries(i.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),a=qo(Fo(t,"parseHTML",r));a&&(s.parseDOM=a.map((e=>Vo(e,i))));const l=Fo(t,"renderHTML",r);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:$o(e,i)}));const c=Fo(t,"renderText",r);return c&&(s.toText=c),[t.name,s]}))),a=Object.fromEntries(r.map((t=>{const i=n.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage},o=e.reduce(((e,n)=>{const i=Fo(n,"extendMarkSchema",r);return{...e,...i?i(t):{}}}),{}),s=Ko({...o,inclusive:qo(Fo(t,"inclusive",r)),excludes:qo(Fo(t,"excludes",r)),group:qo(Fo(t,"group",r)),spanning:qo(Fo(t,"spanning",r)),code:qo(Fo(t,"code",r)),attrs:Object.fromEntries(i.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),a=qo(Fo(t,"parseHTML",r));a&&(s.parseDOM=a.map((e=>Vo(e,i))));const l=Fo(t,"renderHTML",r);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:$o(e,i)})),[t.name,s]})));return new we({topNode:o,nodes:s,marks:a})}(this.extensions),this.extensions.forEach((e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Go(e.name,this.schema)};if("mark"===e.type){(null===(t=qo(Fo(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const i=Fo(e,"onBeforeCreate",n);i&&this.editor.on("beforeCreate",i);const r=Fo(e,"onCreate",n);r&&this.editor.on("create",r);const o=Fo(e,"onUpdate",n);o&&this.editor.on("update",o);const s=Fo(e,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=Fo(e,"onTransaction",n);a&&this.editor.on("transaction",a);const l=Fo(e,"onFocus",n);l&&this.editor.on("focus",l);const c=Fo(e,"onBlur",n);c&&this.editor.on("blur",c);const u=Fo(e,"onDestroy",n);u&&this.editor.on("destroy",u)}))}static resolve(e){const t=is.sort(is.flatten(e)),n=function(e){const t=e.filter(((t,n)=>e.indexOf(t)!==n));return[...new Set(t)]}(t.map((e=>e.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((e=>`'${e}'`)).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map((e=>{const t=Fo(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e})).flat(10)}static sort(e){const t=100;return e.sort(((e,n)=>{const i=Fo(e,"priority")||t,r=Fo(n,"priority")||t;return i>r?-1:i<r?1:0}))}get commands(){return this.extensions.reduce(((e,t)=>{const n=Fo(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Go(t.name,this.schema)});return n?{...e,...n()}:e}),{})}get plugins(){const{editor:e}=this,t=is.sort([...this.extensions].reverse()),n=[],i=[],r=t.map((t=>{const r={name:t.name,options:t.options,storage:t.storage,editor:e,type:Go(t.name,this.schema)},o=[],s=Fo(t,"addKeyboardShortcuts",r);let a={};if("mark"===t.type&&t.config.exitable&&(a.ArrowRight=()=>Js.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map((([t,n])=>[t,()=>n({editor:e})])));a={...a,...t}}const l=new Zt({props:{handleKeyDown:Eo(a)}});o.push(l);const c=Fo(t,"addInputRules",r);Yo(t,e.options.enableInputRules)&&c&&n.push(...c());const u=Fo(t,"addPasteRules",r);Yo(t,e.options.enablePasteRules)&&u&&i.push(...u());const p=Fo(t,"addProseMirrorPlugins",r);if(p){const e=p();o.push(...e)}return o})).flat();return[Xo({editor:e,rules:n}),...ns({editor:e,rules:i}),...r]}get attributes(){return Po(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Bo(this.extensions);return Object.fromEntries(t.filter((e=>!!Fo(e,"addNodeView"))).map((t=>{const n=this.attributes.filter((e=>e.type===t.name)),i={name:t.name,options:t.options,storage:t.storage,editor:e,type:Uo(t.name,this.schema)},r=Fo(t,"addNodeView",i);if(!r)return[];return[t.name,(i,o,s,a)=>{const l=$o(i,n);return r()({editor:e,node:i,getPos:s,decorations:a,HTMLAttributes:l,extension:t})}]})))}}function rs(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function ss(e,t){const n={...e};return rs(e)&&rs(t)&&Object.keys(t).forEach((i=>{rs(t[i])?i in e?n[i]=ss(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})})),n}class as{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=qo(Fo(this,"addOptions",{name:this.name}))),this.storage=qo(Fo(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new as(e)}configure(e={}){const t=this.extend();return t.options=ss(this.options,e),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new as(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=qo(Fo(t,"addOptions",{name:t.name})),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}}function ls(e,t,n){const{from:i,to:r}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return e.nodesBetween(i,r,((e,n,c,u)=>{var p;const d=null==s?void 0:s[e.type.name];d?(e.isBlock&&!l&&(a+=o,l=!0),c&&(a+=d({node:e,pos:n,parent:c,index:u,range:t}))):e.isText?(a+=null===(p=null==e?void 0:e.text)||void 0===p?void 0:p.slice(Math.max(i,n)-n,r-n),l=!1):e.isBlock&&!l&&(a+=o,l=!0)})),a}function cs(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,t])=>[e,t.spec.toText])))}const us=as.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Zt({key:new en("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:i,selection:r}=t,{ranges:o}=r,s=Math.min(...o.map((e=>e.$from.pos))),a=Math.max(...o.map((e=>e.$to.pos)));return ls(i,{from:s,to:a},{textSerializers:cs(n)})}}})]}});function ps(e,t,n={strict:!0}){const i=Object.keys(t);return!i.length||i.every((i=>n.strict?t[i]===e[i]:Qo(t[i])?t[i].test(e[i]):t[i]===e[i]))}function ds(e,t,n={}){return e.find((e=>e.type===t&&ps(e.attrs,n)))}function hs(e,t,n={}){return!!ds(e,t,n)}function fs(e,t,n={}){if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if(e.parentOffset===i.offset&&0!==i.offset&&(i=e.parent.childBefore(e.parentOffset)),!i.node)return;const r=ds([...i.node.marks],t,n);if(!r)return;let o=i.index,s=e.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(ds([...i.node.marks],t,n);o>0&&r.isInSet(e.parent.child(o-1).marks);)o-=1,s-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&hs([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function ms(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function gs(e){return e instanceof jt}function bs(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function vs(e,t=null){if(!t)return null;const n=Tt.atStart(e),i=Tt.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return i;const r=n.from,o=i.to;return"all"===t?jt.create(e,bs(0,r,o),bs(e.content.size,r,o)):jt.create(e,bs(t,r,o),bs(t,r,o))}function ys(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function xs(e){const t=`<body>${e}</body>`;return(new window.DOMParser).parseFromString(t,"text/html").body}function ws(e,t,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof e&&null!==e)try{return Array.isArray(e)?j.fromArray(e.map((e=>t.nodeFromJSON(e)))):t.nodeFromJSON(e)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",i),ws("",t,n)}if("string"==typeof e){const i=ke.fromSchema(t);return n.slice?i.parseSlice(xs(e),n.parseOptions).content:i.parse(xs(e),n.parseOptions)}return ws("",t,n)}function _s(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function ks(e,t,n={}){const{from:i,to:r,empty:o}=e.selection,s=t?Uo(t,e.schema):null,a=[];e.doc.nodesBetween(i,r,((e,t)=>{if(e.isText)return;const n=Math.max(i,t),o=Math.min(r,t+e.nodeSize);a.push({node:e,from:n,to:o})}));const l=r-i,c=a.filter((e=>!s||s.name===e.node.type.name)).filter((e=>ps(e.node.attrs,n,{strict:!1})));if(o)return!!c.length;return c.reduce(((e,t)=>e+t.to-t.from),0)>=l}function Es(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Cs(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce(((t,i)=>(n.includes(i)||(t[i]=e[i]),t)),{})}function Ms(e,t,n={}){return ws(e,t,{slice:!1,parseOptions:n})}function Os(e,t){const n=[];return e.descendants(((e,i)=>{t(e)&&n.push({node:e,pos:i})})),n}function Ds(e){return t=>function(e,t){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(t(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}(t.$from,e)}function Ts(e,t){const n=ms(t,e.schema),{from:i,to:r,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,r,(e=>{s.push(...e.marks)}));const a=s.find((e=>e.type.name===n.name));return a?{...a.attrs}:{}}function Ss(e,t){const n=Es("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=Uo(t,e.schema),{from:i,to:r}=e.selection,o=[];e.doc.nodesBetween(i,r,(e=>{o.push(e)}));const s=o.reverse().find((e=>e.type.name===n.name));return s?{...s.attrs}:{}}(e,t):"mark"===n?Ts(e,t):{}}function Ns(e){const t=function(e,t=JSON.stringify){const n={};return e.filter((e=>{const i=t(e);return!Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=!0)}))}(e);return 1===t.length?t:t.filter(((e,n)=>{const i=t.filter(((e,t)=>t!==n));return!i.some((t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}))}function As(e,t,n){const i=[];return e===t?n.resolve(e).marks().forEach((t=>{const r=fs(n.resolve(e-1),t.type);r&&i.push({mark:t,...r})})):n.nodesBetween(e,t,((e,t)=>{i.push(...e.marks.map((n=>({from:t,to:t+e.nodeSize,mark:n}))))})),i}function js(e,t,n={}){const{empty:i,ranges:r}=e.selection,o=t?ms(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!o||o.name===e.type.name)).find((e=>ps(e.attrs,n,{strict:!1})));let s=0;const a=[];if(r.forEach((({$from:t,$to:n})=>{const i=t.pos,r=n.pos;e.doc.nodesBetween(i,r,((e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(i,t),o=Math.min(r,t+e.nodeSize);s+=o-n,a.push(...e.marks.map((e=>({mark:e,from:n,to:o}))))}))})),0===s)return!1;const l=a.filter((e=>!o||o.name===e.mark.type.name)).filter((e=>ps(e.mark.attrs,n,{strict:!1}))).reduce(((e,t)=>e+t.to-t.from),0),c=a.filter((e=>!o||e.mark.type!==o&&e.mark.type.excludes(o))).reduce(((e,t)=>e+t.to-t.from),0);return(l>0?l+c:l)>=s}function Ls(e,t){const{nodeExtensions:n}=Bo(t),i=n.find((t=>t.name===e));if(!i)return!1;const r=qo(Fo(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof r&&r.split(" ").includes("list")}function zs(e,t,n){const i=0,r=e.state.doc.content.size,o=bs(t,i,r),s=bs(n,i,r),a=e.coordsAtPos(o),l=e.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),p=Math.min(a.left,l.left),d=Math.max(a.right,l.right),h={top:c,bottom:u,left:p,right:d,width:d-p,height:u-c,x:p,y:c};return{...h,toJSON:()=>h}}function Is(e,t,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const i=e.find((e=>e.type===t&&e.name===n));return!!i&&i.attribute.keepOnSplit})))}function Rs(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const i=n.filter((e=>null==t?void 0:t.includes(e.type.name)));e.tr.ensureMarks(i)}}const Fs=(e,t)=>{const n=Ds((e=>e.type===t))(e.selection);if(!n)return!0;const i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===i)return!0;const r=e.doc.nodeAt(i);return n.node.type!==(null==r?void 0:r.type)||!dt(e.doc,n.pos)||(e.join(n.pos),!0)},Bs=(e,t)=>{const n=Ds((e=>e.type===t))(e.selection);if(!n)return!0;const i=e.doc.resolve(n.start).after(n.depth);if(void 0===i)return!0;const r=e.doc.nodeAt(i);return n.node.type!==(null==r?void 0:r.type)||!dt(e.doc,i)||(e.join(i),!0)};var Ps=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame((()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{const{selection:i}=t,{ranges:r}=i;return!n||(r.forEach((({$from:n,$to:i})=>{e.doc.nodesBetween(n.pos,i.pos,((e,n)=>{if(e.type.isText)return;const{doc:i,mapping:r}=t,o=i.resolve(r.map(n)),s=i.resolve(r.map(n+e.nodeSize)),a=o.blockRange(s);if(!a)return;const l=lt(a);if(e.type.isTextblock){const{defaultType:e}=o.parent.contentMatchAt(o.index());t.setNodeMarkup(a.start,e)}(l||0===l)&&t.lift(a,l)}))})),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>((e,t)=>{let n=e.selection,{$from:i,$to:r}=n;if(n instanceof Rt||i.parent.inlineContent||r.parent.inlineContent)return!1;let o=Do(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let n=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,s=e.tr.insert(n,o.createAndFill());s.setSelection(jt.create(s.doc,n+1)),t(s.scrollIntoView())}return!0})(e,t),deleteNode:e=>({tr:t,state:n,dispatch:i})=>{const r=Uo(e,n.schema),o=t.selection.$anchor;for(let e=o.depth;e>0;e-=1){if(o.node(e).type===r){if(i){const n=o.before(e),i=o.after(e);t.delete(n,i).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{const{from:i,to:r}=e;return n&&t.delete(i,r),!0},deleteSelection:()=>({state:e,dispatch:t})=>((e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0))(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>((e,t)=>{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),o=n.indexAfter(-1),s=Do(r.contentMatchAt(o));if(!s||!r.canReplaceWith(o,o,s))return!1;if(t){let i=n.after(),r=e.tr.replaceWith(i,i,s.createAndFill());r.setSelection(Tt.near(r.doc.resolve(i),1)),t(r.scrollIntoView())}return!0})(e,t),extendMarkRange:(e,t={})=>({tr:n,state:i,dispatch:r})=>{const o=ms(e,i.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const e=fs(l,o,t);if(e&&e.from<=c&&e.to>=u){const t=jt.create(s,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:i,tr:r,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{ys()&&i.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(i.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())}))};if(i.hasFocus()&&null===e||!1===e)return!0;if(o&&null===e&&!gs(n.state.selection))return s(),!0;const a=vs(r.doc,e)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},forEach:(e,t)=>n=>e.every(((e,i)=>t(e,{...n,index:i}))),insertContent:(e,t)=>({tr:n,commands:i})=>i.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:i,dispatch:r,editor:o})=>{if(r){n={parseOptions:{},updateSelection:!0,...n};const r=ws(t,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===r.toString())return!0;let{from:s,to:a}="number"==typeof e?{from:e,to:e}:e,l=!0,c=!0;if((r.toString().startsWith("<")?r:[r]).forEach((e=>{e.check(),l=!!l&&(e.isText&&0===e.marks.length),c=!!c&&e.isBlock})),s===a&&c){const{parent:e}=i.doc.resolve(s);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(s-=1,a+=1)}l?i.insertText(t,s,a):i.replaceWith(s,a,r),n.updateSelection&&function(e,t,n){const i=e.steps.length-1;if(i<t)return;const r=e.steps[i];if(!(r instanceof rt||r instanceof ot))return;const o=e.mapping.maps[i];let s=0;o.forEach(((e,t,n,i)=>{0===s&&(s=i)})),e.setSelection(Tt.near(e.doc.resolve(s),n))}(i,i.steps.length-1,-1)}return!0},joinBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$cursor:i}=e.selection;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;let r=Mo(i);if(!r){let n=i.blockRange(),r=n&&lt(n);return null!=r&&(t&&t(e.tr.lift(n,r).scrollIntoView()),!0)}let o=r.nodeBefore;if(!o.type.spec.isolating&&To(e,r,t))return!0;if(0==i.parent.content.size&&(Co(o,"end")||zt.isSelectable(o))){let n=ft(e.doc,i.before(),i.after(),B.empty);if(n&&n.slice.size<n.to-n.from){if(t){let i=e.tr.step(n);i.setSelection(Co(o,"end")?Tt.findFrom(i.doc.resolve(i.mapping.map(r.pos,-1)),-1):zt.create(i.doc,r.pos-o.nodeSize)),t(i.scrollIntoView())}return!0}}return!(!o.isAtom||r.depth!=i.depth-1||(t&&t(e.tr.delete(r.pos-o.nodeSize,r.pos).scrollIntoView()),0))})(e,t),joinForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$cursor:i}=e.selection;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;let r=Oo(i);if(!r)return!1;let o=r.nodeAfter;if(To(e,r,t))return!0;if(0==i.parent.content.size&&(Co(o,"start")||zt.isSelectable(o))){let n=ft(e.doc,i.before(),i.after(),B.empty);if(n&&n.slice.size<n.to-n.from){if(t){let i=e.tr.step(n);i.setSelection(Co(o,"start")?Tt.findFrom(i.doc.resolve(i.mapping.map(r.pos)),1):zt.create(i.doc,i.mapping.map(r.pos))),t(i.scrollIntoView())}return!0}}return!(!o.isAtom||r.depth!=i.depth-1||(t&&t(e.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),0))})(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:i,dispatch:r})=>{const o=function(e){const t=e.split(/-(?!$)/);let n,i,r,o,s=t[t.length-1];"Space"===s&&(s=" ");for(let e=0;e<t.length-1;e+=1){const s=t[e];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))i=!0;else if(/^s(hift)?$/i.test(s))r=!0;else{if(!/^mod$/i.test(s))throw new Error(`Unrecognized modifier name: ${s}`);ys()||_s()?o=!0:i=!0}}return n&&(s=`Alt-${s}`),i&&(s=`Ctrl-${s}`),o&&(s=`Meta-${s}`),r&&(s=`Shift-${s}`),s}(e).split(/-(?!$)/),s=o.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction((()=>{n.someProp("handleKeyDown",(e=>e(n,a)))}));return null==l||l.steps.forEach((e=>{const t=e.map(i.mapping);t&&r&&i.maybeStep(t)})),!0},lift:(e,t={})=>({state:n,dispatch:i})=>!!ks(n,Uo(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:i}=e.selection,r=n.blockRange(i),o=r&&lt(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)})(n,i),liftEmptyBlock:()=>({state:e,dispatch:t})=>((e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(pt(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),r=i&&lt(i);return null!=r&&(t&&t(e.tr.lift(i,r).scrollIntoView()),!0)})(e,t),liftListItem:e=>({state:t,dispatch:n})=>zo(Uo(e,t.schema))(t,n),newlineInCode:()=>({state:e,dispatch:t})=>((e,t)=>{let{$head:n,$anchor:i}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(i)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))})(e,t),resetAttributes:(e,t)=>({tr:n,state:i,dispatch:r})=>{let o=null,s=null;const a=Es("string"==typeof e?e:e.name,i.schema);return!!a&&("node"===a&&(o=Uo(e,i.schema)),"mark"===a&&(s=ms(e,i.schema)),r&&n.selection.ranges.forEach((e=>{i.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,i)=>{o&&o===e.type&&n.setNodeMarkup(i,void 0,Cs(e.attrs,t)),s&&e.marks.length&&e.marks.forEach((r=>{s===r.type&&n.addMark(i,i+e.nodeSize,s.create(Cs(r.attrs,t)))}))}))})),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$head:i,empty:r}=e.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;o=Mo(i)}let s=o&&o.nodeBefore;return!(!s||!zt.isSelectable(s)||(t&&t(e.tr.setSelection(zt.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),0))})(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$head:i,empty:r}=e.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;o=Oo(i)}let s=o&&o.nodeAfter;return!(!s||!zt.isSelectable(s)||(t&&t(e.tr.setSelection(zt.create(e.doc,o.pos)).scrollIntoView()),0))})(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:i,to:r}=e.selection,o=i.sharedDepth(r);return 0!=o&&(n=i.before(o),t&&t(e.tr.setSelection(zt.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>Ao(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>No(e,t),setContent:(e,t=!1,n={})=>({tr:i,editor:r,dispatch:o})=>{const{doc:s}=i,a=Ms(e,r.schema,n);return o&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(e,t={})=>({tr:n,state:i,dispatch:r})=>{const{selection:o}=n,{empty:s,ranges:a}=o,l=ms(e,i.schema);if(r)if(s){const e=Ts(i,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach((e=>{const r=e.$from.pos,o=e.$to.pos;i.doc.nodesBetween(r,o,((e,i)=>{const s=Math.max(i,r),a=Math.min(i+e.nodeSize,o);e.marks.find((e=>e.type===l))?e.marks.forEach((e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))})):n.addMark(s,a,l.create(t))}))}));return function(e,t,n){var i;const{selection:r}=t;let o=null;if(gs(r)&&(o=r.$cursor),o){const t=null!==(i=e.storedMarks)&&void 0!==i?i:o.marks();return!!n.isInSet(t)||!t.some((e=>e.type.excludes(n)))}const{ranges:s}=r;return s.some((({$from:t,$to:i})=>{let r=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,i.pos,((e,t,i)=>{if(r)return!1;if(e.isInline){const t=!i||i.type.allowsMarkType(n),o=!!n.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(n)));r=t&&o}return!r})),r}))}(i,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:i,chain:r})=>{const o=Uo(e,n.schema);return o.isTextblock?r().command((({commands:e})=>!!jo(o,t)(n)||e.clearNodes())).command((({state:e})=>jo(o,t)(e,i))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,i=bs(e,0,n.content.size),r=zt.create(n,i);t.setSelection(r)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:i,to:r}="number"==typeof e?{from:e,to:e}:e,o=jt.atStart(n).from,s=jt.atEnd(n).to,a=bs(i,o,s),l=bs(r,o,s),c=jt.create(n,a,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const i=Uo(e,t.schema);return(r=i,function(e,t){let{$from:n,$to:i}=e.selection,o=n.blockRange(i,(e=>e.childCount>0&&e.firstChild.type==r));if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=r)return!1;if(t){let n=l.lastChild&&l.lastChild.type==a.type,i=j.from(n?r.create():null),s=new B(j.from(r.create(null,j.from(a.type.create(null,i)))),n?3:1,0),c=o.start,u=o.end;t(e.tr.step(new ot(c-(n?3:1),u,c,u,s,1,!0)).scrollIntoView())}return!0})(t,n);var r},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:i,editor:r})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,c=Is(r.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof zt&&o.node.isBlock)return!(!a.parentOffset||!pt(s,a.pos))&&(i&&(e&&Rs(n,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(i){const i=l.parentOffset===l.parent.content.size;o instanceof jt&&t.deleteSelection();const s=0===a.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(a.node(-1).contentMatchAt(a.indexAfter(-1)));let u=i&&s?[{type:s,attrs:c}]:void 0,p=pt(t.doc,t.mapping.map(a.pos),1,u);if(u||p||!pt(t.doc,t.mapping.map(a.pos),1,s?[{type:s}]:void 0)||(p=!0,u=s?[{type:s,attrs:c}]:void 0),p&&(t.split(t.mapping.map(a.pos),1,u),s&&!i&&!a.parentOffset&&a.parent.type!==s)){const e=t.mapping.map(a.before()),n=t.doc.resolve(e);a.node(-1).canReplaceWith(n.index(),n.index()+1,s)&&t.setNodeMarkup(t.mapping.map(a.before()),s)}e&&Rs(n,r.extensionManager.splittableMarks),t.scrollIntoView()}return!0},splitListItem:e=>({tr:t,state:n,dispatch:i,editor:r})=>{var o;const s=Uo(e,n.schema),{$from:a,$to:l}=n.selection,c=n.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const p=r.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let e=j.empty;const n=a.index(-1)?1:a.index(-2)?2:3;for(let t=a.depth-n;t>=a.depth-3;t-=1)e=j.from(a.node(t).copy(e));const i=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,r=Is(p,a.node().type.name,a.node().attrs),l=(null===(o=s.contentMatch.defaultType)||void 0===o?void 0:o.createAndFill(r))||void 0;e=e.append(j.from(s.createAndFill(null,l)||void 0));const c=a.before(a.depth-(n-1));t.replace(c,a.after(-i),new B(e,4-n,0));let u=-1;t.doc.nodesBetween(c,t.doc.content.size,((e,t)=>{if(u>-1)return!1;e.isTextblock&&0===e.content.size&&(u=t+1)})),u>-1&&t.setSelection(jt.near(t.doc.resolve(u))),t.scrollIntoView()}return!0}const d=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,h=Is(p,u.type.name,u.attrs),f=Is(p,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const m=d?[{type:s,attrs:h},{type:d,attrs:f}]:[{type:s,attrs:h}];return!!pt(t.doc,a.pos,2)&&(i&&t.split(a.pos,2,m).scrollIntoView(),!0)},toggleList:(e,t)=>({editor:n,tr:i,state:r,dispatch:o,chain:s,commands:a,can:l})=>{const{extensions:c}=n.extensionManager,u=Uo(e,r.schema),p=Uo(t,r.schema),{selection:d}=r,{$from:h,$to:f}=d,m=h.blockRange(f);if(!m)return!1;const g=Ds((e=>Ls(e.type.name,c)))(d);if(m.depth>=1&&g&&m.depth-g.depth<=1){if(g.node.type===u)return a.liftListItem(p);if(Ls(g.node.type.name,c)&&u.validContent(g.node.content)&&o)return s().command((()=>(i.setNodeMarkup(g.pos,u),!0))).command((()=>Fs(i,u))).command((()=>Bs(i,u))).run()}return s().command((()=>!!l().wrapInList(u)||a.clearNodes())).wrapInList(u).command((()=>Fs(i,u))).command((()=>Bs(i,u))).run()},toggleMark:(e,t={},n={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:o=!1}=n,s=ms(e,i.schema);return js(i,s,t)?r.unsetMark(s,{extendEmptyMarkRange:o}):r.setMark(s,t)},toggleNode:(e,t,n={})=>({state:i,commands:r})=>{const o=Uo(e,i.schema),s=Uo(t,i.schema);return ks(i,o,n)?r.setNode(s):r.setNode(o,n)},toggleWrap:(e,t={})=>({state:n,commands:i})=>{const r=Uo(e,n.schema);return ks(n,r,t)?i.lift(r):i.wrapIn(r,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let i=0;i<n.length;i+=1){const r=n[i];let o;if(r.spec.isInputRules&&(o=r.getState(e))){if(t){const t=e.tr,n=o.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(o.text){const n=t.doc.resolve(o.from).marks();t.replaceWith(o.from,o.to,e.schema.text(o.text,n))}else t.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:i,ranges:r}=n;return i||t&&r.forEach((t=>{e.removeMark(t.$from.pos,t.$to.pos)})),!0},unsetMark:(e,t={})=>({tr:n,state:i,dispatch:r})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=ms(e,i.schema),{$from:c,empty:u,ranges:p}=a;if(!r)return!0;if(u&&s){let{from:e,to:t}=a;const i=null===(o=c.marks().find((e=>e.type===l)))||void 0===o?void 0:o.attrs,r=fs(c,l,i);r&&(e=r.from,t=r.to),n.removeMark(e,t,l)}else p.forEach((e=>{n.removeMark(e.$from.pos,e.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:i,dispatch:r})=>{let o=null,s=null;const a=Es("string"==typeof e?e:e.name,i.schema);return!!a&&("node"===a&&(o=Uo(e,i.schema)),"mark"===a&&(s=ms(e,i.schema)),r&&n.selection.ranges.forEach((e=>{const r=e.$from.pos,a=e.$to.pos;i.doc.nodesBetween(r,a,((e,i)=>{o&&o===e.type&&n.setNodeMarkup(i,void 0,{...e.attrs,...t}),s&&e.marks.length&&e.marks.forEach((o=>{if(s===o.type){const l=Math.max(i,r),c=Math.min(i+e.nodeSize,a);n.addMark(l,c,s.create({...o.attrs,...t}))}}))}))})),!0)},wrapIn:(e,t={})=>({state:n,dispatch:i})=>function(e,t=null){return function(n,i){let{$from:r,$to:o}=n.selection,s=r.blockRange(o),a=s&&ct(s,e,t);return!!a&&(i&&i(n.tr.wrap(s,a).scrollIntoView()),!0)}}(Uo(e,n.schema),t)(n,i),wrapInList:(e,t={})=>({state:n,dispatch:i})=>Lo(Uo(e,n.schema),t)(n,i)});const Us=as.create({name:"commands",addCommands:()=>({...Ps})}),Hs=as.create({name:"editable",addProseMirrorPlugins(){return[new Zt({key:new en("editable"),props:{editable:()=>this.editor.options.editable}})]}}),$s=as.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Zt({key:new en("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,n)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),Ws=as.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:t})=>{const{selection:n,doc:i}=t,{empty:r,$anchor:o}=n,{pos:s,parent:a}=o,l=Tt.atStart(i).from===s;return!(!(r&&l&&a.type.isTextblock)||a.textContent.length)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),t=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.joinForward(),()=>e.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},r={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ys()||_s()?r:i},addProseMirrorPlugins(){return[new Zt({key:new en("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some((e=>e.docChanged))&&!t.doc.eq(n.doc)))return;const{empty:i,from:r,to:o}=t.selection,s=Tt.atStart(t.doc).from,a=Tt.atEnd(t.doc).to,l=r===s&&o===a,c=0===n.doc.textBetween(0,n.doc.content.size," "," ").length;if(i||!l||!c)return;const u=n.tr,p=Io({state:n,transaction:u}),{commands:d}=new Ro({editor:this.editor,state:p});return d.clearNodes(),u.steps.length?u:void 0}})]}}),qs=as.create({name:"tabindex",addProseMirrorPlugins(){return[new Zt({key:new en("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Vs=Object.freeze({__proto__:null,ClipboardTextSerializer:us,Commands:Us,Editable:Hs,FocusEvents:$s,Keymap:Ws,Tabindex:qs});const Ks=`.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}`;function Gs(e){return new Zo({find:e.find,handler:({state:t,range:n,match:i})=>{const r=qo(e.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=n.to;if(s){const i=a.search(/\S/),c=n.from+a.indexOf(s),u=c+s.length,p=As(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>c));if(p.length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+i,c),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(r||{})),o.removeStoredMark(e.type)}}})}function Ys(e){return new Zo({find:e.find,handler:({state:t,range:n,match:i})=>{const r=qo(e.getAttributes,void 0,i)||{},{tr:o}=t,s=n.from;let a=n.to;if(i[1]){let t=s+i[0].lastIndexOf(i[1]);t>a?t=a:a=t+i[1].length;const n=i[0][i[0].length-1];o.insertText(n,s+i[0].length-1),o.replaceWith(t,a,e.type.create(r))}else i[0]&&o.replaceWith(s,a,e.type.create(r))}})}function Qs(e){return new Zo({find:e.find,handler:({state:t,range:n,match:i})=>{const r=t.doc.resolve(n.from),o=qo(e.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function Zs(e){return new Zo({find:e.find,handler:({state:t,range:n,match:i})=>{const r=qo(e.getAttributes,void 0,i)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),a=s&&ct(s,e.type,r);if(!a)return null;o.wrap(s,a);const l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&dt(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(i,l))&&o.join(n.from-1)}})}class Js{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=qo(Fo(this,"addOptions",{name:this.name}))),this.storage=qo(Fo(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Js(e)}configure(e={}){const t=this.extend();return t.options=ss(this.options,e),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Js(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=qo(Fo(t,"addOptions",{name:t.name})),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const r=i.marks(),o=!!r.find((e=>(null==e?void 0:e.type.name)===t.name));if(!o)return!1;const s=r.find((e=>(null==e?void 0:e.type.name)===t.name));return s&&n.removeStoredMark(s),n.insertText(" ",i.pos),e.view.dispatch(n),!0}return!1}}class Xs{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=qo(Fo(this,"addOptions",{name:this.name}))),this.storage=qo(Fo(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Xs(e)}configure(e={}){const t=this.extend();return t.options=ss(this.options,e),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Xs(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=qo(Fo(t,"addOptions",{name:t.name})),t.storage=qo(Fo(t,"addStorage",{name:t.name,options:t.options})),t}}function ea(e){return new es({find:e.find,handler:({state:t,range:n,match:i})=>{const r=qo(e.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=n.to;if(s){const i=a.search(/\S/),c=n.from+a.indexOf(s),u=c+s.length,p=As(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>c));if(p.length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+i,c),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(r||{})),o.removeStoredMark(e.type)}}})}var ta="top",na="bottom",ia="right",ra="left",oa="auto",sa=[ta,na,ia,ra],aa="start",la="end",ca="clippingParents",ua="viewport",pa="popper",da="reference",ha=sa.reduce((function(e,t){return e.concat([t+"-"+aa,t+"-"+la])}),[]),fa=[].concat(sa,[oa]).reduce((function(e,t){return e.concat([t,t+"-"+aa,t+"-"+la])}),[]),ma=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ga(e){return e?(e.nodeName||"").toLowerCase():null}function ba(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function va(e){return e instanceof ba(e).Element||e instanceof Element}function ya(e){return e instanceof ba(e).HTMLElement||e instanceof HTMLElement}function xa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ba(e).ShadowRoot||e instanceof ShadowRoot)}var wa={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ya(r)&&ga(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ya(i)&&ga(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function _a(e){return e.split("-")[0]}var ka=Math.max,Ea=Math.min,Ca=Math.round;function Ma(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Oa(){return!/^((?!chrome|android).)*safari/i.test(Ma())}function Da(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&ya(e)&&(r=e.offsetWidth>0&&Ca(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ca(i.height)/e.offsetHeight||1);var s=(va(e)?ba(e):window).visualViewport,a=!Oa()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/r,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,p=i.height/o;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Ta(e){var t=Da(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Sa(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xa(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Na(e){return ba(e).getComputedStyle(e)}function Aa(e){return["table","td","th"].indexOf(ga(e))>=0}function ja(e){return((va(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return"html"===ga(e)?e:e.assignedSlot||e.parentNode||(xa(e)?e.host:null)||ja(e)}function za(e){return ya(e)&&"fixed"!==Na(e).position?e.offsetParent:null}function Ia(e){for(var t=ba(e),n=za(e);n&&Aa(n)&&"static"===Na(n).position;)n=za(n);return n&&("html"===ga(n)||"body"===ga(n)&&"static"===Na(n).position)?t:n||function(e){var t=/firefox/i.test(Ma());if(/Trident/i.test(Ma())&&ya(e)&&"fixed"===Na(e).position)return null;var n=La(e);for(xa(n)&&(n=n.host);ya(n)&&["html","body"].indexOf(ga(n))<0;){var i=Na(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Ra(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fa(e,t,n){return ka(e,Ea(t,n))}function Ba(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pa(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ua={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=_a(n.placement),l=Ra(a),c=[ra,ia].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Ba("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pa(e,sa))}(r.padding,n),p=Ta(o),d="y"===l?ta:ra,h="y"===l?na:ia,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=Ia(o),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,y=u[d],x=b-p[c]-u[h],w=b/2-p[c]/2+v,_=Fa(y,w,x),k=l;n.modifiersData[i]=((t={})[k]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Sa(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ha(e){return e.split("-")[1]}var $a={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wa(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=ra,x=ta,w=window;if(c){var _=Ia(n),k="clientHeight",E="clientWidth";if(_===ba(n)&&"static"!==Na(_=ja(n)).position&&"absolute"===a&&(k="scrollHeight",E="scrollWidth"),r===ta||(r===ra||r===ia)&&o===la)x=na,m-=(p&&_===w&&w.visualViewport?w.visualViewport.height:_[k])-i.height,m*=l?1:-1;if(r===ra||(r===ta||r===na)&&o===la)y=ia,h-=(p&&_===w&&w.visualViewport?w.visualViewport.width:_[E])-i.width,h*=l?1:-1}var C,M=Object.assign({position:a},c&&$a),O=!0===u?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:Ca(t*i)/i||0,y:Ca(n*i)/i||0}}({x:h,y:m}):{x:h,y:m};return h=O.x,m=O.y,l?Object.assign({},M,((C={})[x]=v?"0":"",C[y]=b?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",C)):Object.assign({},M,((t={})[x]=v?m+"px":"",t[y]=b?h+"px":"",t.transform="",t))}var qa={passive:!0};var Va={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=ba(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,qa)})),a&&l.addEventListener("resize",n.update,qa),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,qa)})),a&&l.removeEventListener("resize",n.update,qa)}},data:{}},Ka={left:"right",right:"left",bottom:"top",top:"bottom"};function Ga(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ka[e]}))}var Ya={start:"end",end:"start"};function Qa(e){return e.replace(/start|end/g,(function(e){return Ya[e]}))}function Za(e){var t=ba(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ja(e){return Da(ja(e)).left+Za(e).scrollLeft}function Xa(e){var t=Na(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function el(e){return["html","body","#document"].indexOf(ga(e))>=0?e.ownerDocument.body:ya(e)&&Xa(e)?e:el(La(e))}function tl(e,t){var n;void 0===t&&(t=[]);var i=el(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=ba(i),s=r?[o].concat(o.visualViewport||[],Xa(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(tl(La(s)))}function nl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function il(e,t,n){return t===ua?nl(function(e,t){var n=ba(e),i=ja(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=Oa();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Ja(e),y:l}}(e,n)):va(t)?function(e,t){var n=Da(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):nl(function(e){var t,n=ja(e),i=Za(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ka(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ka(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Ja(e),l=-i.scrollTop;return"rtl"===Na(r||n).direction&&(a+=ka(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(ja(e)))}function rl(e,t,n,i){var r="clippingParents"===t?function(e){var t=tl(La(e)),n=["absolute","fixed"].indexOf(Na(e).position)>=0&&ya(e)?Ia(e):e;return va(n)?t.filter((function(e){return va(e)&&Sa(e,n)&&"body"!==ga(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce((function(t,n){var r=il(e,n,i);return t.top=ka(r.top,t.top),t.right=Ea(r.right,t.right),t.bottom=Ea(r.bottom,t.bottom),t.left=ka(r.left,t.left),t}),il(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ol(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?_a(r):null,s=r?Ha(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case ta:t={x:a,y:n.y-i.height};break;case na:t={x:a,y:n.y+n.height};break;case ia:t={x:n.x+n.width,y:l};break;case ra:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Ra(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case aa:t[c]=t[c]-(n[u]/2-i[u]/2);break;case la:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function sl(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ca:a,c=n.rootBoundary,u=void 0===c?ua:c,p=n.elementContext,d=void 0===p?pa:p,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,b=Ba("number"!=typeof g?g:Pa(g,sa)),v=d===pa?da:pa,y=e.rects.popper,x=e.elements[f?v:d],w=rl(va(x)?x:x.contextElement||ja(e.elements.popper),l,u,s),_=Da(e.elements.reference),k=ol({reference:_,element:y,strategy:"absolute",placement:r}),E=nl(Object.assign({},y,k)),C=d===pa?E:_,M={top:w.top-C.top+b.top,bottom:C.bottom-w.bottom+b.bottom,left:w.left-C.left+b.left,right:C.right-w.right+b.right},O=e.modifiersData.offset;if(d===pa&&O){var D=O[r];Object.keys(M).forEach((function(e){var t=[ia,na].indexOf(e)>=0?1:-1,n=[ta,na].indexOf(e)>=0?"y":"x";M[e]+=D[n]*t}))}return M}function al(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?fa:l,u=Ha(i),p=u?a?ha:ha.filter((function(e){return Ha(e)===u})):sa,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,n){return t[n]=sl(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[_a(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var ll={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,b=_a(g),v=l||(b===g||!f?[Ga(g)]:function(e){if(_a(e)===oa)return[];var t=Ga(e);return[Qa(e),t,Qa(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(_a(n)===oa?al(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,_=new Map,k=!0,E=y[0],C=0;C<y.length;C++){var M=y[C],O=_a(M),D=Ha(M)===aa,T=[ta,na].indexOf(O)>=0,S=T?"width":"height",N=sl(t,{placement:M,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),A=T?D?ia:ra:D?na:ta;x[S]>w[S]&&(A=Ga(A));var j=Ga(A),L=[];if(o&&L.push(N[O]<=0),a&&L.push(N[A]<=0,N[j]<=0),L.every((function(e){return e}))){E=M,k=!1;break}_.set(M,L)}if(k)for(var z=function(e){var t=y.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},I=f?3:1;I>0;I--){if("break"===z(I))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function cl(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ul(e){return[ta,ia,na,ra].some((function(t){return e[t]>=0}))}var pl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=sl(t,{elementContext:"reference"}),a=sl(t,{altBoundary:!0}),l=cl(s,i),c=cl(a,r,o),u=ul(l),p=ul(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}};var dl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=fa.reduce((function(e,n){return e[n]=function(e,t,n){var i=_a(e),r=[ra,ta].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ra,ia].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var hl={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ol({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var fl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,h=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=sl(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=_a(t.placement),v=Ha(t.placement),y=!v,x=Ra(b),w="x"===x?"y":"x",_=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(_){if(o){var T,S="y"===x?ta:ra,N="y"===x?na:ia,A="y"===x?"height":"width",j=_[x],L=j+g[S],z=j-g[N],I=h?-E[A]/2:0,R=v===aa?k[A]:E[A],F=v===aa?-E[A]:-k[A],B=t.elements.arrow,P=h&&B?Ta(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[S],$=U[N],W=Fa(0,k[A],P[A]),q=y?k[A]/2-I-W-H-M.mainAxis:R-W-H-M.mainAxis,V=y?-k[A]/2+I+W+$+M.mainAxis:F+W+$+M.mainAxis,K=t.elements.arrow&&Ia(t.elements.arrow),G=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,Y=null!=(T=null==O?void 0:O[x])?T:0,Q=j+V-Y,Z=Fa(h?Ea(L,j+q-Y-G):L,j,h?ka(z,Q):z);_[x]=Z,D[x]=Z-j}if(a){var J,X="x"===x?ta:ra,ee="x"===x?na:ia,te=_[w],ne="y"===w?"height":"width",ie=te+g[X],re=te-g[ee],oe=-1!==[ta,ra].indexOf(b),se=null!=(J=null==O?void 0:O[w])?J:0,ae=oe?ie:te-k[ne]-E[ne]-se+M.altAxis,le=oe?te+k[ne]+E[ne]-se-M.altAxis:re,ce=h&&oe?function(e,t,n){var i=Fa(e,t,n);return i>n?n:i}(ae,te,le):Fa(h?ae:ie,te,h?le:re);_[w]=ce,D[w]=ce-te}t.modifiersData[i]=D}},requiresIfExists:["offset"]};function ml(e,t,n){void 0===n&&(n=!1);var i=ya(t),r=ya(t)&&function(e){var t=e.getBoundingClientRect(),n=Ca(t.width)/e.offsetWidth||1,i=Ca(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=ja(t),s=Da(e,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==ga(t)||Xa(o))&&(a=function(e){return e!==ba(e)&&ya(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Za(e);var t}(t)),ya(t)?((l=Da(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ja(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function gl(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var bl={placement:"bottom",modifiers:[],strategy:"absolute"};function vl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yl(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?bl:r;return function(e,t,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bl,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:va(e)?tl(e):e.contextElement?tl(e.contextElement):[],popper:tl(t)};var s=function(e){var t=gl(e);return ma.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,a.options.modifiers)));return a.orderedModifiers=s.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:i}),s=function(){};l.push(o||s)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vl(t,n)){a.rects={reference:ml(t,Ia(n),"fixed"===a.options.strategy),popper:Ta(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,l=void 0===s?{}:s,p=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:p,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){p(),c=!0}};if(!vl(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var xl=yl({defaultModifiers:[Va,hl,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:_a(t.placement),variation:Ha(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},wa,dl,ll,fl,Ua,pl]}),wl='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',_l="tippy-box",kl="tippy-content",El="tippy-backdrop",Cl="tippy-arrow",Ml="tippy-svg-arrow",Ol={passive:!0,capture:!0},Dl=function(){return document.body};function Tl(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Sl(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Nl(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Al(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function jl(e){return[].concat(e)}function Ll(e,t){-1===e.indexOf(t)&&e.push(t)}function zl(e){return[].slice.call(e)}function Il(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Rl(){return document.createElement("div")}function Fl(e){return["Element","Fragment"].some((function(t){return Sl(e,t)}))}function Bl(e){return Sl(e,"MouseEvent")}function Pl(e){return Fl(e)?[e]:function(e){return Sl(e,"NodeList")}(e)?zl(e):Array.isArray(e)?e:zl(document.querySelectorAll(e))}function Ul(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Hl(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function $l(e){var t,n=jl(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Wl(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function ql(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Vl={isTouch:!1},Kl=0;function Gl(){Vl.isTouch||(Vl.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yl))}function Yl(){var e=performance.now();e-Kl<20&&(Vl.isTouch=!1,document.removeEventListener("mousemove",Yl)),Kl=e}function Ql(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Zl=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Jl=Object.assign({appendTo:Dl,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Xl=Object.keys(Jl);function ec(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Jl[r])?i:o);return t}),{});return Object.assign({},e,t)}function tc(e,t){var n=Object.assign({},t,{content:Nl(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ec(Object.assign({},Jl,{plugins:t}))):Xl).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Jl.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function nc(e,t){e["innerHTML"]=t}function ic(e){var t=Rl();return!0===e?t.className=Cl:(t.className=Ml,Fl(e)?t.appendChild(e):nc(t,e)),t}function rc(e,t){Fl(t.content)?(nc(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?nc(e,t.content):e.textContent=t.content)}function oc(e){var t=e.firstElementChild,n=zl(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(kl)})),arrow:n.find((function(e){return e.classList.contains(Cl)||e.classList.contains(Ml)})),backdrop:n.find((function(e){return e.classList.contains(El)}))}}function sc(e){var t=Rl(),n=Rl();n.className=_l,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Rl();function r(n,i){var r=oc(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||rc(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(ic(i.arrow))):o.appendChild(ic(i.arrow)):a&&o.removeChild(a)}return i.className=kl,i.setAttribute("data-state","hidden"),rc(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}sc.$$tippy=!0;var ac=1,lc=[],cc=[];function uc(e,t){var n,i,r,o,s,a,l,c,u=tc(e,Object.assign({},Jl,ec(Il(t)))),p=!1,d=!1,h=!1,f=!1,m=[],g=Al(K,u.interactiveDebounce),b=ac++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:b,reference:e,popper:Rl(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(y.state.isDestroyed)return;j("onBeforeUpdate",[y,t]),q();var n=y.props,i=tc(e,Object.assign({},n,Il(t),{ignoreAttributes:!0}));y.props=i,W(),n.interactiveDebounce!==i.interactiveDebounce&&(I(),g=Al(K,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?jl(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");z(),A(),_&&_(n,i);y.popperInstance&&(Z(),X().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));j("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,i=Vl.isTouch&&!y.props.touch,r=Tl(y.props.duration,0,Jl.duration);if(e||t||n||i)return;if(D().hasAttribute("disabled"))return;if(j("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,O()&&(w.style.visibility="visible");A(),P(),y.state.isMounted||(w.style.transition="none");if(O()){var o=S(),s=o.box,l=o.content;Ul([s,l],0)}a=function(){var e;if(y.state.isVisible&&!f){if(f=!0,w.offsetHeight,w.style.transition=y.props.moveTransition,O()&&y.props.animation){var t=S(),n=t.box,i=t.content;Ul([n,i],r),Hl([n,i],"visible")}L(),z(),Ll(cc,y),null==(e=y.popperInstance)||e.forceUpdate(),j("onMount",[y]),y.props.animation&&O()&&function(e,t){H(e,t)}(r,(function(){y.state.isShown=!0,j("onShown",[y])}))}},function(){var e,t=y.props.appendTo,n=D();e=y.props.interactive&&t===Dl||"parent"===t?n.parentNode:Nl(t,[n]);e.contains(w)||e.appendChild(w);y.state.isMounted=!0,Z()}()},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,i=Tl(y.props.duration,1,Jl.duration);if(e||t||n)return;if(j("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,f=!1,p=!1,O()&&(w.style.visibility="hidden");if(I(),U(),A(!0),O()){var r=S(),o=r.box,s=r.content;y.props.animation&&(Ul([o,s],i),Hl([o,s],"hidden"))}L(),z(),y.props.animation?O()&&function(e,t){H(e,(function(){!y.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(i,y.unmount):y.unmount()},hideWithInteractivity:function(e){T().addEventListener("mousemove",g),Ll(lc,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide();if(!y.state.isMounted)return;J(),X().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);cc=cc.filter((function(e){return e!==y})),y.state.isMounted=!1,j("onHidden",[y])},destroy:function(){if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),q(),delete e._tippy,y.state.isDestroyed=!0,j("onDestroy",[y])}};if(!u.render)return y;var x=u.render(y),w=x.popper,_=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+y.id,y.popper=w,e._tippy=y,w._tippy=y;var k=v.map((function(e){return e.fn(y)})),E=e.hasAttribute("aria-expanded");return W(),z(),A(),j("onCreate",[y]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",g)})),y;function C(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function M(){return"hold"===C()[0]}function O(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function D(){return l||e}function T(){var e=D().parentNode;return e?$l(e):document}function S(){return oc(w)}function N(e){return y.state.isMounted&&!y.state.isVisible||Vl.isTouch||o&&"focus"===o.type?0:Tl(y.props.delay,e?0:1,Jl.delay)}function A(e){void 0===e&&(e=!1),w.style.pointerEvents=y.props.interactive&&!e?"":"none",w.style.zIndex=""+y.props.zIndex}function j(e,t,n){var i;(void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=y.props)[e].apply(i,t)}function L(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,i=w.id;jl(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function z(){!E&&y.props.aria.expanded&&jl(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===D()?"true":"false"):e.removeAttribute("aria-expanded")}))}function I(){T().removeEventListener("mousemove",g),lc=lc.filter((function(e){return e!==g}))}function R(t){if(!Vl.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!ql(w,n)){if(jl(y.props.triggerTarget||e).some((function(e){return ql(e,n)}))){if(Vl.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout((function(){d=!1})),y.state.isMounted||U())}}}function F(){h=!0}function B(){h=!1}function P(){var e=T();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ol),e.addEventListener("touchstart",B,Ol),e.addEventListener("touchmove",F,Ol)}function U(){var e=T();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ol),e.removeEventListener("touchstart",B,Ol),e.removeEventListener("touchmove",F,Ol)}function H(e,t){var n=S().box;function i(e){e.target===n&&(Wl(n,"remove",i),t())}if(0===e)return t();Wl(n,"remove",s),Wl(n,"add",i),s=i}function $(t,n,i){void 0===i&&(i=!1),jl(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function W(){var e;M()&&($("touchstart",V,{passive:!0}),$("touchend",G,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch($(e,V),e){case"mouseenter":$("mouseleave",G);break;case"focus":$(Zl?"focusout":"blur",Y);break;case"focusin":$("focusout",Y)}}))}function q(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function V(e){var t,n=!1;if(y.state.isEnabled&&!Q(e)&&!d){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,z(),!y.state.isVisible&&Bl(e)&&lc.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||p)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!i&&te(e)}}function K(e){var t=e.target,n=D().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var i=X().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=r.placement.split("-")[0],a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,c="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,p="left"===s?a.right.x:0,d=t.top-i+l>o,h=i-t.bottom-c>o,f=t.left-n+u>o,m=n-t.right-p>o;return d||h||f||m}))})(i,e)&&(I(),te(e))}}function G(e){Q(e)||y.props.trigger.indexOf("click")>=0&&p||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function Y(e){y.props.trigger.indexOf("focusin")<0&&e.target!==D()||y.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function Q(e){return!!Vl.isTouch&&M()!==e.type.indexOf("touch")>=0}function Z(){J();var t=y.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=O()?oc(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||D()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(O()){var n=S().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];O()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),y.popperInstance=xl(c,w,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:p}))}function J(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function X(){return zl(w.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&j("onTrigger",[y,e]),P();var t=N(!0),i=C(),r=i[0],o=i[1];Vl.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),j("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=N(!1);t?i=setTimeout((function(){y.state.isVisible&&y.hide()}),t):r=requestAnimationFrame((function(){y.hide()}))}}else U()}}function pc(e,t){void 0===t&&(t={});var n=Jl.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gl,Ol),window.addEventListener("blur",Ql);var i=Object.assign({},t,{plugins:n}),r=Pl(e).reduce((function(e,t){var n=t&&uc(t,i);return n&&e.push(n),e}),[]);return Fl(e)?r[0]:r}pc.defaultProps=Jl,pc.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Jl[t]=e[t]}))},pc.currentInput=Vl,Object.assign({},wa,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var dc={clientX:0,clientY:0},hc=[];function fc(e){var t=e.clientX,n=e.clientY;dc={clientX:t,clientY:n}}var mc={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=$l(e.props.triggerTarget||t),i=!1,r=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",p)}function c(){n.removeEventListener("mousemove",p)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function p(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),l=o-a.left,c=s-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=e.left+l,i=e.top+c);var a="horizontal"===r?e.top:i,u="vertical"===r?e.right:n,p="horizontal"===r?e.bottom:i,d="vertical"===r?e.left:n;return{width:u-d,height:p-a,top:a,right:u,bottom:p,left:d}}})}function d(){e.props.followCursor&&(hc.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",fc)}(n))}function h(){hc=hc.filter((function(t){return t.instance!==e})),0===hc.filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",fc)}(n)}return{onCreate:d,onDestroy:h,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(h(),o?(d(),!e.state.isMounted||r||a()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!r&&(o&&(p(dc),o=!1),a()||l())},onTrigger:function(e,t){Bl(t)&&(dc={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),o=!0)}}}};pc.setDefaultProps({render:sc});class gc{constructor({editor:e,element:t,view:n,tippyOptions:i={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:i})=>{const{doc:r,selection:o}=t,{empty:s}=o,a=!r.textBetween(n,i).length&&gs(t.selection),l=this.element.contains(document.activeElement);return!(!e.hasFocus()&&!l||s||a||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.editor=e,this.element=t,this.view=n,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=pc(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",(e=>{this.blurHandler({event:e})})))}update(e,t){var n,i,r;const{state:o,composing:s}=e,{doc:a,selection:l}=o,c=t&&t.doc.eq(a)&&t.selection.eq(l);if(s||c)return;this.createTooltip();const{ranges:u}=l,p=Math.min(...u.map((e=>e.$from.pos))),d=Math.max(...u.map((e=>e.$to.pos)));(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t,from:p,to:d}))?(null===(i=this.tippy)||void 0===i||i.setProps({getReferenceClientRect:(null===(r=this.tippyOptions)||void 0===r?void 0:r.getReferenceClientRect)||(()=>{if(o.selection instanceof zt){const t=e.nodeDOM(p);if(t)return t.getBoundingClientRect()}return zs(e,p,d)})}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e;null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const bc=e=>new Zt({key:"string"==typeof e.pluginKey?new en(e.pluginKey):e.pluginKey,view:t=>new gc({view:t,...e})});as.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[bc({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});class vc{constructor({editor:e,element:t,view:n,tippyOptions:i={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{const{selection:n}=t,{$anchor:i,empty:r}=n,o=1===i.depth,s=i.parent.isTextblock&&!i.parent.type.spec.code&&!i.parent.textContent;return!!(e.hasFocus()&&r&&o&&s&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.editor=e,this.element=t,this.view=n,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=pc(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",(e=>{this.blurHandler({event:e})})))}update(e,t){var n,i,r;const{state:o}=e,{doc:s,selection:a}=o,{from:l,to:c}=a;if(t&&t.doc.eq(s)&&t.selection.eq(a))return;this.createTooltip();(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t}))?(null===(i=this.tippy)||void 0===i||i.setProps({getReferenceClientRect:(null===(r=this.tippyOptions)||void 0===r?void 0:r.getReferenceClientRect)||(()=>zs(e,l,c))}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e;null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}as.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[(e={pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow},new Zt({key:"string"==typeof e.pluginKey?new en(e.pluginKey):e.pluginKey,view:t=>new vc({view:t,...e})}))]:[];var e}});const yc=e=>{const[n,i]=r(null);return o((()=>{if(!n)return;if(e.editor.isDestroyed)return;const{pluginKey:t="bubbleMenu",editor:i,tippyOptions:r={},shouldShow:o=null}=e,s=bc({pluginKey:t,editor:i,element:n,tippyOptions:r,shouldShow:o});return i.registerPlugin(s),()=>i.unregisterPlugin(t)}),[e.editor,n]),t.createElement("div",{ref:i,className:e.className,style:{visibility:"hidden"}},e.children)};class xc extends class extends class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach((e=>e.apply(this,t))),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((e=>e!==t)):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t){const n=document.querySelector("style[data-tiptap-style]");if(null!==n)return n;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}(Ks,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e){this.setOptions({editable:e}),this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Wo(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:n});this.view.updateState(i)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((e=>!e.key.startsWith(t)))});this.view.updateState(n)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(Vs):[],...this.options.extensions].filter((e=>["extension","node","mark"].includes(null==e?void 0:e.type)));this.extensionManager=new is(e,this)}createCommandManager(){this.commandManager=new Ro({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=Ms(this.options.content,this.schema,this.options.parseOptions),t=vs(e,this.options.autofocus);this.view=new so(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Yt.create({doc:e,selection:t||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews();this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)})):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),r=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),r&&this.emit("blur",{editor:this,event:r.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Ss(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,i="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return ks(e,null,n)||js(e,null,n);const i=Es(t,e.schema);return"node"===i?ks(e,t,n):"mark"===i&&js(e,t,n)}(this.state,n,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function(e,t){const n=Ie.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return function(e,t){return ls(e,{from:0,to:e.content.size},t)}(this.state.doc,{blockSeparator:t,textSerializers:{...n,...cs(this.schema)}})}get isEmpty(){return function(e){var t;const n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),i=e.toJSON();return JSON.stringify(n)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}}{constructor(){super(...arguments),this.contentComponent=null}}const wc=({renderers:e})=>t.createElement(t.Fragment,null,Array.from(e).map((([e,t])=>f.createPortal(t.reactElement,t.element,e))));class _c extends t.Component{constructor(e){super(e),this.editorContentRef=t.createRef(),this.state={renderers:new Map}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const{editor:e}=this.props;if(e&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=this,e.createNodeViews()}}componentWillUnmount(){const{editor:e}=this.props;if(!e)return;if(e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){const{editor:e,...n}=this.props;return t.createElement(t.Fragment,null,t.createElement("div",{ref:this.editorContentRef,...n}),t.createElement(wc,{renderers:this.state.renderers}))}}const kc=t.memo(_c),Ec=n({onDragStart:void 0}),Cc=()=>i(Ec),Mc=e=>{const n=e.as||"div",{nodeViewContentRef:i}=Cc();return t.createElement(n,{...e,ref:i,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...e.style}})},Oc=t.forwardRef(((e,n)=>{const{onDragStart:i}=Cc(),r=e.as||"div";return t.createElement(r,{...e,ref:n,"data-node-view-wrapper":"",onDragStart:i,style:{whiteSpace:"normal",...e.style}})}));class Dc{constructor(e,{editor:t,props:n={},as:i="div",className:r=""}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(i),this.element.classList.add("react-renderer"),r&&this.element.classList.add(...r.split(" ")),this.render()}render(){const e=this.component,n=this.props;(function(e){return!("function"!=typeof e||!e.prototype||!e.prototype.isReactComponent)}(e)||function(e){var t;return!("object"!=typeof e||"Symbol(react.forward_ref)"!==(null===(t=e.$$typeof)||void 0===t?void 0:t.toString()))}(e))&&(n.ref=e=>{this.ref=e}),this.reactElement=t.createElement(e,{...n}),queueMicrotask((()=>{m((()=>{var e;(null===(e=this.editor)||void 0===e?void 0:e.contentComponent)&&this.editor.contentComponent.setState({renderers:this.editor.contentComponent.state.renderers.set(this.id,this)})}))}))}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){queueMicrotask((()=>{m((()=>{var e;if(null===(e=this.editor)||void 0===e?void 0:e.contentComponent){const{renderers:e}=this.editor.contentComponent.state;e.delete(this.id),this.editor.contentComponent.setState({renderers:e})}}))}))}}class Tc extends class{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,i,r,o,s,a;const{view:l}=this.editor,c=e.target,u=3===c.nodeType?null===(t=c.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(c))||!u)return;let p=0,d=0;if(this.dom!==u){const t=this.dom.getBoundingClientRect(),n=u.getBoundingClientRect(),a=null!==(i=e.offsetX)&&void 0!==i?i:null===(r=e.nativeEvent)||void 0===r?void 0:r.offsetX,l=null!==(o=e.offsetY)&&void 0!==o?o:null===(s=e.nativeEvent)||void 0===s?void 0:s.offsetY;p=n.x-t.x+a,d=n.y-t.y+l}null===(a=e.dataTransfer)||void 0===a||a.setDragImage(this.dom,p,d);const h=zt.create(l.state.doc,this.getPos()),f=l.state.tr.setSelection(h);l.dispatch(f)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!(null===(t=this.contentDOM)||void 0===t?void 0:t.contains(n))))return!1;const i="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i)return!0;const{isEditable:r}=this.editor,{isDragging:o}=this,s=!!this.node.type.spec.draggable,a=zt.isSelectable(this.node),l="copy"===e.type,c="paste"===e.type,u="cut"===e.type,p="mousedown"===e.type,d=e.type.startsWith("drag");if(!s&&a&&d&&e.preventDefault(),s&&d&&!o)return e.preventDefault(),!1;if(s&&r&&!o&&p){const e=n.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(o||i||l||c||u||p&&a)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"==typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&ys()&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every((e=>e.isContentEditable)))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command((({tr:t})=>{const n=this.getPos();return t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0}))}deleteNode(){const e=this.getPos(),t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){const e=e=>e.charAt(0).toUpperCase()+e.substring(1);this.component.displayName=e(this.extension.name)}const n=e=>{const n=this.component,i=this.onDragStart.bind(this);return t.createElement(Ec.Provider,{value:{onDragStart:i,nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&e.appendChild(this.contentDOMElement)}}},t.createElement(n,{...e}))};n.displayName="ReactNodeView",this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit");let i=this.node.isInline?"span":"div";this.options.as&&(i=this.options.as);const{className:r=""}=this.options;this.renderer=new Dc(n,{editor:this.editor,props:e,as:i,className:`node-${this.node.type.name} ${r}`.trim()})}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null===(e=this.renderer.element.firstElementChild)||void 0===e?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}update(e,t){const n=e=>{this.renderer.updateProps(e)};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){const i=this.node,r=this.decorations;return this.node=e,this.decorations=t,this.options.update({oldNode:i,oldDecorations:r,newNode:e,newDecorations:t,updateProps:()=>n({node:e,decorations:t})})}return e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,n({node:e,decorations:t})),!0}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy(),this.contentDOMElement=null}}function Sc(e,t){return n=>n.editor.contentComponent?new Tc(e,n,t):{}}const Nc=(e={},t=[])=>{const[n,i]=r(null),s=function(){const[,e]=r(0);return()=>e((e=>e+1))}();return o((()=>{let t=!0;const n=new xc(e);return i(n),n.on("transaction",(()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t&&s()}))}))})),()=>{n.destroy(),t=!1}}),t),n};var Ac="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Lc(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var zc,Ic={exports:{}};
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */zc=Ic,function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)){if(r.length){var s=t.apply(null,r);s&&n.push(s)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){n.push(r.toString());continue}for(var a in r)e.call(r,a)&&r[a]&&n.push(a)}}}return n.join(" ")}zc.exports?(t.default=t,zc.exports=t):window.classNames=t}();var Rc=Ic.exports;const Fc={BOLD:"bold",ITALIC:"italic",UNDERLINE:"underline",STRIKETHROUGH:"strike",LINK:"link",PARAGRAPH:"paragraph",H1:"h1",H2:"h2",H3:"h3",LIST_BULLETS:"bullet-list",LIST_ORDERED:"ordered-list",CODE:"code",CODE_BLOCK:"code-block",BLOCKQUOTE:"block-quote",ATTACHMENTS:"attachments",UNDO:"undo",REDO:"redo",HIGHLIGHT:"highlight",EMOJI:"emoji",IMAGE_UPLOAD:"image-upload",IMAGE_UPLOAD_UNSPLASH:"image-upload-unsplash",DIVIDER:"divider",VIDEO_EMBED:"video-embed",PASTE_UNFORMATTED:"paste-unformatted"},Bc="https://api.unsplash.com/search/photos",Pc="/api/direct_uploads",Uc=/[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/,Hc=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,$c=/((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)/,Wc=/((?:http|https):\/\/)?(www\.)?loom\.com\/(share|embed)\/((?:\w|\d)*)\/?(?:\?(?:t=)?(\d+)?)?/;var qc=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]},Vc=qc;var Kc=function(e){return function t(n){return 0===arguments.length||Vc(n)?t:e.apply(this,arguments)}},Gc=Kc,Yc=qc;var Qc=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Yc(n)?t:Gc((function(t){return e(n,t)}));default:return Yc(n)&&Yc(i)?t:Yc(n)?Gc((function(t){return e(t,i)})):Yc(i)?Gc((function(t){return e(n,t)})):e(n,i)}}},Zc=Qc((function(e,t){return t instanceof e||null!=t&&(t.constructor===e||"Object"===e.name&&"object"==typeof t)}));var Jc=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)},Xc=Jc,eu=Object.prototype.toString,tu=function(){return"[object Arguments]"===eu.call(arguments)?function(e){return"[object Arguments]"===eu.call(e)}:function(e){return Xc("callee",e)}}(),nu=tu,iu=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var ru=function(e){return"[object Object]"===Object.prototype.toString.call(e)};var ou=function(e){return"[object String]"===Object.prototype.toString.call(e)};var su=function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t},au=nu,lu=iu,cu=ru,uu=ou,pu=su,du=Kc((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():lu(e)?[]:uu(e)?"":cu(e)?{}:au(e)?function(){return arguments}():pu(e)?e.constructor.from(""):void 0})),hu=du;var fu=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n};var mu=function(e,t,n){for(var i=0,r=n.length;i<r;){if(e(t,n[i]))return!0;i+=1}return!1};var gu=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]};var bu="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},vu=Kc,yu=Jc,xu=nu,wu=!{toString:null}.propertyIsEnumerable("toString"),_u=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ku=function(){return arguments.propertyIsEnumerable("length")}(),Eu=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},Cu="function"!=typeof Object.keys||ku?vu((function(e){if(Object(e)!==e)return[];var t,n,i=[],r=ku&&xu(e);for(t in e)!yu(t,e)||r&&"length"===t||(i[i.length]=t);if(wu)for(n=_u.length-1;n>=0;)yu(t=_u[n],e)&&!Eu(i,t)&&(i[i.length]=t),n-=1;return i})):vu((function(e){return Object(e)!==e?[]:Object.keys(e)})),Mu=fu,Ou=mu,Du=gu,Tu=Jc,Su=bu,Nu=Cu,Au=Kc((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ju(e,t,n,i){var r=Mu(e),o=Mu(t);function s(e,t){return Lu(e,t,n.slice(),i.slice())}return!Ou((function(e,t){return!Ou(s,t,e)}),o,r)}function Lu(e,t,n,i){if(Su(e,t))return!0;var r=Au(e);if(r!==Au(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===Du(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Su(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Su(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var o=n.length-1;o>=0;){if(n[o]===e)return i[o]===t;o-=1}switch(r){case"Map":return e.size===t.size&&ju(e.entries(),t.entries(),n.concat([e]),i.concat([t]));case"Set":return e.size===t.size&&ju(e.values(),t.values(),n.concat([e]),i.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Nu(e);if(s.length!==Nu(t).length)return!1;var a=n.concat([e]),l=i.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!Tu(c,t)||!Lu(t[c],e[c],a,l))return!1;o-=1}return!0}var zu=Lu,Iu=Qc((function(e,t){return zu(e,t,[],[])})),Ru=hu,Fu=Iu,Bu=Kc((function(e){return null!=e&&Fu(e,Ru(e))})),Pu=Bu,Uu=Kc((function(e){return null==e})),Hu=Uu;const $u=e=>e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Wu=e=>e=(e=e.replace(/[_-]+/g," ").replace(/\s{2,}/g," ").replace(/([a-z\d])([A-Z])/g,"$1"+" "+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+" "+"$2").toLowerCase().trim()).charAt(0).toUpperCase()+e.slice(1),qu=e=>Hu(e)||Pu(e),Vu=()=>{},Ku=e=>{let{error:n,isFixedMenuActive:i,children:r}=e;const o=Rc({"neeto-editor-error":n&&i});return n?t.createElement(t.Fragment,null,t.createElement("div",{className:o},r),t.createElement("p",{className:"ne-input__error"},(()=>{if(!n)return null;let e;return Zc(String,n)?e=n:Zc(Array,n)?e=n[0]:Zc(Object,n)&&(e=n.message),qu(e)?null:e})())):r},Gu=[Fc.BOLD,Fc.ITALIC,Fc.UNDERLINE,Fc.STRIKETHROUGH,Fc.LINK,Fc.PARAGRAPH,Fc.H1,Fc.H2,Fc.LIST_BULLETS,Fc.LIST_ORDERED,Fc.CODE],Yu=12,Qu=1,Zu=21,Ju=e=>{let{editor:n,isActive:i,children:r}=e;return i&&n?t.createElement(t.Fragment,null,r,t.createElement("p",{className:"neeto-editor-character-count","data-cy":"neeto-editor-character-count"},n.storage.characterCount.characters()," characters")):r};function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xu.apply(this,arguments)}function ep(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var tp={exports:{}},np={},ip=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,op=Object.prototype.propertyIsEnumerable;function sp(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var ap=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=sp(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))rp.call(n,s)&&(r[s]=n[s]);if(ip){i=ip(n);for(var a=0;a<i.length;a++)op.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},lp=ap,cp=60103,up=60106;
7
- /** @license React v17.0.2
8
- * react.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */np.Fragment=60107,np.StrictMode=60108,np.Profiler=60114;var pp=60109,dp=60110,hp=60112;np.Suspense=60113;var fp=60115,mp=60116;if("function"==typeof Symbol&&Symbol.for){var gp=Symbol.for;cp=gp("react.element"),up=gp("react.portal"),np.Fragment=gp("react.fragment"),np.StrictMode=gp("react.strict_mode"),np.Profiler=gp("react.profiler"),pp=gp("react.provider"),dp=gp("react.context"),hp=gp("react.forward_ref"),np.Suspense=gp("react.suspense"),fp=gp("react.memo"),mp=gp("react.lazy")}var bp="function"==typeof Symbol&&Symbol.iterator;function vp(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var yp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xp={};function wp(e,t,n){this.props=e,this.context=t,this.refs=xp,this.updater=n||yp}function _p(){}function kp(e,t,n){this.props=e,this.context=t,this.refs=xp,this.updater=n||yp}wp.prototype.isReactComponent={},wp.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(vp(85));this.updater.enqueueSetState(this,e,t,"setState")},wp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_p.prototype=wp.prototype;var Ep=kp.prototype=new _p;Ep.constructor=kp,lp(Ep,wp.prototype),Ep.isPureReactComponent=!0;var Cp={current:null},Mp=Object.prototype.hasOwnProperty,Op={key:!0,ref:!0,__self:!0,__source:!0};function Dp(e,t,n){var i,r={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)Mp.call(t,i)&&!Op.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(i in a=e.defaultProps)void 0===r[i]&&(r[i]=a[i]);return{$$typeof:cp,type:e,key:o,ref:s,props:r,_owner:Cp.current}}function Tp(e){return"object"==typeof e&&null!==e&&e.$$typeof===cp}var Sp=/\/+/g;function Np(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Ap(e,t,n,i,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case cp:case up:s=!0}}if(s)return r=r(s=e),e=""===i?"."+Np(s,0):i,Array.isArray(r)?(n="",null!=e&&(n=e.replace(Sp,"$&/")+"/"),Ap(r,t,n,"",(function(e){return e}))):null!=r&&(Tp(r)&&(r=function(e,t){return{$$typeof:cp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(Sp,"$&/")+"/")+e)),t.push(r)),1;if(s=0,i=""===i?".":i+":",Array.isArray(e))for(var a=0;a<e.length;a++){var l=i+Np(o=e[a],a);s+=Ap(o,t,n,l,r)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=bp&&e[bp]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),a=0;!(o=e.next()).done;)s+=Ap(o=o.value,t,n,l=i+Np(o,a++),r);else if("object"===o)throw t=""+e,Error(vp(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function jp(e,t,n){if(null==e)return e;var i=[],r=0;return Ap(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function Lp(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var zp={current:null};function Ip(){var e=zp.current;if(null===e)throw Error(vp(321));return e}var Rp={ReactCurrentDispatcher:zp,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Cp,IsSomeRendererActing:{current:!1},assign:lp};np.Children={map:jp,forEach:function(e,t,n){jp(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return jp(e,(function(){t++})),t},toArray:function(e){return jp(e,(function(e){return e}))||[]},only:function(e){if(!Tp(e))throw Error(vp(143));return e}},np.Component=wp,np.PureComponent=kp,np.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rp,np.cloneElement=function(e,t,n){if(null==e)throw Error(vp(267,e));var i=lp({},e.props),r=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=Cp.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Mp.call(t,l)&&!Op.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==a?a[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}return{$$typeof:cp,type:e.type,key:r,ref:o,props:i,_owner:s}},np.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:dp,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:pp,_context:e},e.Consumer=e},np.createElement=Dp,np.createFactory=function(e){var t=Dp.bind(null,e);return t.type=e,t},np.createRef=function(){return{current:null}},np.forwardRef=function(e){return{$$typeof:hp,render:e}},np.isValidElement=Tp,np.lazy=function(e){return{$$typeof:mp,_payload:{_status:-1,_result:e},_init:Lp}},np.memo=function(e,t){return{$$typeof:fp,type:e,compare:void 0===t?null:t}},np.useCallback=function(e,t){return Ip().useCallback(e,t)},np.useContext=function(e,t){return Ip().useContext(e,t)},np.useDebugValue=function(){},np.useEffect=function(e,t){return Ip().useEffect(e,t)},np.useImperativeHandle=function(e,t,n){return Ip().useImperativeHandle(e,t,n)},np.useLayoutEffect=function(e,t){return Ip().useLayoutEffect(e,t)},np.useMemo=function(e,t){return Ip().useMemo(e,t)},np.useReducer=function(e,t,n){return Ip().useReducer(e,t,n)},np.useRef=function(e){return Ip().useRef(e)},np.useState=function(e){return Ip().useState(e)},np.version="17.0.2",
15
- /** @license React v17.0.2
16
- * react.development.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
- tp.exports=np;var Fp=tp.exports,Bp={exports:{}},Pp={},Up="function"==typeof Symbol&&Symbol.for,Hp=Up?Symbol.for("react.element"):60103,$p=Up?Symbol.for("react.portal"):60106,Wp=Up?Symbol.for("react.fragment"):60107,qp=Up?Symbol.for("react.strict_mode"):60108,Vp=Up?Symbol.for("react.profiler"):60114,Kp=Up?Symbol.for("react.provider"):60109,Gp=Up?Symbol.for("react.context"):60110,Yp=Up?Symbol.for("react.async_mode"):60111,Qp=Up?Symbol.for("react.concurrent_mode"):60111,Zp=Up?Symbol.for("react.forward_ref"):60112,Jp=Up?Symbol.for("react.suspense"):60113,Xp=Up?Symbol.for("react.suspense_list"):60120,ed=Up?Symbol.for("react.memo"):60115,td=Up?Symbol.for("react.lazy"):60116,nd=Up?Symbol.for("react.block"):60121,id=Up?Symbol.for("react.fundamental"):60117,rd=Up?Symbol.for("react.responder"):60118,od=Up?Symbol.for("react.scope"):60119;function sd(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hp:switch(e=e.type){case Yp:case Qp:case Wp:case Vp:case qp:case Jp:return e;default:switch(e=e&&e.$$typeof){case Gp:case Zp:case td:case ed:case Kp:return e;default:return t}}case $p:return t}}}function ad(e){return sd(e)===Qp}function ld(){}function cd(){}Pp.AsyncMode=Yp,Pp.ConcurrentMode=Qp,Pp.ContextConsumer=Gp,Pp.ContextProvider=Kp,Pp.Element=Hp,Pp.ForwardRef=Zp,Pp.Fragment=Wp,Pp.Lazy=td,Pp.Memo=ed,Pp.Portal=$p,Pp.Profiler=Vp,Pp.StrictMode=qp,Pp.Suspense=Jp,Pp.isAsyncMode=function(e){return ad(e)||sd(e)===Yp},Pp.isConcurrentMode=ad,Pp.isContextConsumer=function(e){return sd(e)===Gp},Pp.isContextProvider=function(e){return sd(e)===Kp},Pp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hp},Pp.isForwardRef=function(e){return sd(e)===Zp},Pp.isFragment=function(e){return sd(e)===Wp},Pp.isLazy=function(e){return sd(e)===td},Pp.isMemo=function(e){return sd(e)===ed},Pp.isPortal=function(e){return sd(e)===$p},Pp.isProfiler=function(e){return sd(e)===Vp},Pp.isStrictMode=function(e){return sd(e)===qp},Pp.isSuspense=function(e){return sd(e)===Jp},Pp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Wp||e===Qp||e===Vp||e===qp||e===Jp||e===Xp||"object"==typeof e&&null!==e&&(e.$$typeof===td||e.$$typeof===ed||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===Zp||e.$$typeof===id||e.$$typeof===rd||e.$$typeof===od||e.$$typeof===nd)},Pp.typeOf=sd,Function.call.bind(Object.prototype.hasOwnProperty),cd.resetWarningCache=ld,Bp.exports=function(){function e(e,t,n,i,r,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:cd,resetWarningCache:ld};return n.PropTypes=n,n}();var ud=Bp.exports;ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var pd=["size","color","strokeWidth"];function dd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,pd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M20.667 20.125H3.33301M20.667 14.708H3.33301M20.667 9.292H16.334M20.667 3.875H16.334M9.29201 6.042H12C12.299 6.042 12.542 6.285 12.542 6.584V8.75C12.542 9.049 12.299 9.292 12 9.292H9.83301C9.53401 9.292 9.29101 9.049 9.29101 8.75L9.29201 6.042ZM9.29201 6.042C9.29201 3.875 9.69801 3.515 10.917 2.792M3.33301 6.042H6.04101C6.34001 6.042 6.58301 6.285 6.58301 6.584V8.75C6.58301 9.049 6.34001 9.292 6.04101 9.292H3.87501C3.57601 9.292 3.33301 9.049 3.33301 8.75V6.042ZM3.33301 6.042C3.33301 3.875 3.73901 3.515 4.95801 2.792",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}dd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},dd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var hd=["size","color","strokeWidth"];function fd(e){var t=e.size,n=e.color;e.strokeWidth;var i=ep(e,hd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),Fp.createElement("path",{d:"M9.28906 19.8281H9.77344V18.5234H9.45312C8.39062 18.5234 7.96875 18.0469 7.96875 16.8516V14.4688C7.96875 13.3438 7.35156 12.7266 6.14062 12.6016V12.3906C7.35156 12.2656 7.96875 11.6484 7.96875 10.5156V8.16406C7.96875 6.96875 8.39062 6.49219 9.45312 6.49219H9.77344V5.1875H9.28906C7.27344 5.1875 6.36719 6.0625 6.36719 7.96094V9.99219C6.36719 11.2031 5.91406 11.625 4.60156 11.625V13.3594C5.91406 13.3672 6.36719 13.7891 6.36719 15V17.0469C6.36719 18.9531 7.28125 19.8281 9.28906 19.8281ZM14.4766 19.8281C16.4922 19.8281 17.3984 18.9531 17.3984 17.0469V15C17.3984 13.7891 17.8594 13.3672 19.1641 13.3594V11.625C17.8594 11.625 17.3984 11.2031 17.3984 9.99219V7.96094C17.3984 6.0625 16.4922 5.1875 14.4766 5.1875H13.9922V6.49219H14.3203C15.3828 6.49219 15.7969 6.96875 15.7969 8.16406V10.5156C15.7969 11.6484 16.4141 12.2656 17.6328 12.3906V12.6016C16.4141 12.7266 15.7969 13.3438 15.7969 14.4688V16.8516C15.7969 18.0469 15.375 18.5234 14.3203 18.5234H13.9922V19.8281H14.4766Z",fill:n}))}fd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},fd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var md=["size","color","strokeWidth"];function gd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,md);return Fp.createElement("svg",Xu({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),Fp.createElement("g",{clipPath:"url(#clip0_1047_4338)"},Fp.createElement("rect",{x:"3",y:"11.3335",width:"11.5714",height:"3.85714",rx:"1",fill:n}),Fp.createElement("mask",{id:"path-2-inside-1_1047_4338",fill:n},Fp.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),Fp.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4338)",strokeWidth:"3"}),Fp.createElement("line",{x1:"9",y1:"9.61914",x2:"9",y2:"17.1191",stroke:n,strokeWidth:i}),Fp.createElement("line",{x1:"9",y1:"2.86914",x2:"9",y2:"6.61914",stroke:n,strokeWidth:i})),Fp.createElement("defs",null,Fp.createElement("clipPath",{id:"clip0_1047_4338"},Fp.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}gd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},gd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var bd=["size","color","strokeWidth"];function vd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,bd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M6 6L18 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M18 6L6 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}vd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},vd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var yd=["size","color","strokeWidth"];function xd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,yd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M13.78 4L10.22 20M18 8L22 12L18 16M6 16L2 12L6 8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}xd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},xd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var wd=["size","color","strokeWidth"];function _d(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,wd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M6 9L12 15L18 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}_d.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},_d.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var kd=["size","color","strokeWidth"];function Ed(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,kd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M18 10L15 7",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M6 20H15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M16.0174 5.68275L9.87375 11.8262C9.53712 12.1628 9.31876 12.5996 9.25146 13.0708L9.01095 14.7549C8.98726 14.9208 9.00212 15.09 9.05437 15.2492C9.10662 15.4085 9.19487 15.5535 9.31225 15.6731C9.42964 15.7928 9.57301 15.8837 9.73124 15.939C9.88948 15.9943 10.0583 16.0123 10.2247 15.9918L11.8503 15.791C12.3369 15.7309 12.7894 15.5101 13.1362 15.1634L19.3163 8.98528C19.533 8.76863 19.705 8.51141 19.8223 8.22831C19.9396 7.94521 20 7.64178 20 7.33534C20 7.0289 19.9397 6.72546 19.8224 6.44235C19.7052 6.15923 19.5333 5.90198 19.3166 5.6853L19.314 5.68275C19.0976 5.46629 18.8406 5.29459 18.5578 5.17744C18.2749 5.06029 17.9718 5 17.6657 5C17.3596 5 17.0564 5.06029 16.7736 5.17744C16.4908 5.29459 16.2338 5.46629 16.0174 5.68275Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Ed.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Ed.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var Cd=["size","color","strokeWidth"];function Md(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Cd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M17 21H12C10.22 21 8.47991 20.4722 6.99987 19.4832C5.51983 18.4943 4.36628 17.0887 3.68509 15.4442C3.0039 13.7996 2.82567 11.99 3.17294 10.2442C3.5202 8.49836 4.37737 6.89472 5.63604 5.63604C6.89472 4.37737 8.49836 3.5202 10.2442 3.17294C11.99 2.82567 13.7996 3.0039 15.4442 3.68509C17.0887 4.36628 18.4943 5.51983 19.4832 6.99987C20.4722 8.47991 21 10.22 21 12V13.5C21 14.163 20.7366 14.7989 20.2678 15.2678C19.7989 15.7366 19.163 16 18.5 16C17.837 16 17.2011 15.7366 16.7322 15.2678C16.2634 14.7989 16 14.163 16 13.5V12C16 10.9391 15.5786 9.92172 14.8284 9.17158C14.0783 8.42143 13.0609 8 12 8V8C11.2089 8 10.4355 8.2346 9.77772 8.67413C9.11993 9.11365 8.60724 9.73837 8.30449 10.4693C8.00174 11.2002 7.92252 12.0044 8.07686 12.7804C8.2312 13.5563 8.61217 14.269 9.17158 14.8284C9.73099 15.3878 10.4437 15.7688 11.2196 15.9231C11.9956 16.0775 12.7998 15.9983 13.5307 15.6955C14.2616 15.3928 14.8864 14.8801 15.3259 14.2223C15.7654 13.5645 16 12.7911 16 12",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Md.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Md.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Od=["size","color","strokeWidth"];function Dd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Od);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("rect",{x:"4.75",y:"2.75",width:"14.5",height:"18.5",rx:"3.25",stroke:n,strokeWidth:i}),Fp.createElement("rect",{x:"14.75",y:"2.75",width:"4.5",height:"5.5",rx:"1.25",fill:n,stroke:n,strokeWidth:i}),Fp.createElement("line",{x1:"7.75",y1:"11.25",x2:"14.25",y2:"11.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),Fp.createElement("line",{x1:"7.75",y1:"14.25",x2:"12.25",y2:"14.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),Fp.createElement("line",{x1:"7.75",y1:"17.25",x2:"14.25",y2:"17.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}))}Dd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Dd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Td=["size","color","strokeWidth"];function Sd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Td);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M10.523 20H6V15.477C6 15.0134 6.18428 14.5684 6.51226 14.2407L17.5294 4.00237C18.211 3.31947 19.3171 3.31841 20 4L20.0024 4.00237L21.5 5.527C22.1829 6.20859 22.184 7.31473 21.5024 7.99763L21.5 8L11.759 19.488C11.431 19.8156 10.9865 19.9997 10.523 20Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M2 20H3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M9 12L13.5 16.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Sd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Sd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Nd=["size","color","strokeWidth"];function Ad(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Nd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M20.9998 9.99999V17C20.9998 19.2 19.1998 21 16.9998 21H6.99979L6.98979 20.999C4.77979 20.989 2.98979 19.199 2.98979 16.989V6.98899C2.97979 4.77899 4.77979 2.97899 6.97979 2.97899H12.9798",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M3 13L4.29 11.7H4.28C5.22 10.75 6.74 10.75 7.68 11.69L11.97 15.98",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M7.00293 21L13.2929 14.7V14.69C14.2329 13.74 15.7529 13.74 16.6929 14.69L20.6229 18.62",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M17.9995 3L15.4995 5.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M20.5 5.5L18 3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M18 3V8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Ad.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Ad.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var jd=["size","color","strokeWidth"];function Ld(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,jd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M11.009 11.249H12.159V15.499",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M11 15.4986H13.3093",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M12.1 8.24587C12.1 8.29532 12.0853 8.34365 12.0579 8.38477C12.0304 8.42588 11.9914 8.45792 11.9457 8.47684C11.9 8.49576 11.8497 8.50071 11.8012 8.49107C11.7527 8.48142 11.7082 8.45761 11.6732 8.42265C11.6383 8.38769 11.6145 8.34314 11.6048 8.29464C11.5952 8.24615 11.6001 8.19588 11.619 8.1502C11.638 8.10452 11.67 8.06548 11.7111 8.03801C11.7522 8.01053 11.8006 7.99587 11.85 7.99587",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M11.85 7.99587C11.9163 7.99587 11.9799 8.02221 12.0268 8.0691C12.0737 8.11598 12.1 8.17957 12.1 8.24587",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M16 2.99862H8C5.23858 2.99862 3 5.2372 3 7.99862V15.9986C3 18.76 5.23858 20.9986 8 20.9986H16C18.7614 20.9986 21 18.76 21 15.9986V7.99862C21 5.2372 18.7614 2.99862 16 2.99862Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Ld.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Ld.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var zd=["size","color","strokeWidth"];function Id(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,zd);return Fp.createElement("svg",Xu({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),Fp.createElement("g",{clipPath:"url(#clip0_1047_4040)"},Fp.createElement("rect",{x:"4.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),Fp.createElement("mask",{id:"path-2-inside-1_1047_4040",fill:n},Fp.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),Fp.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4040)",strokeWidth:"3"}),Fp.createElement("line",{x1:"2.25",y1:"2.97607",x2:"2.25",y2:"17.1189",stroke:n,strokeWidth:i})),Fp.createElement("defs",null,Fp.createElement("clipPath",{id:"clip0_1047_4040"},Fp.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}Id.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Id.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Rd=["size","color","strokeWidth"];function Fd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Rd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M17.7166 12.3594L19.4466 10.6294C21.1392 8.9873 21.1801 6.284 19.538 4.59141C17.8959 2.89882 15.1926 2.85789 13.5 4.5C13.4691 4.53001 13.4386 4.56048 13.4086 4.59141L10.0109 7.951C8.34355 9.61717 8.3426 12.3195 10.0088 13.9869L10.0109 13.989L9.9999 14C10.3445 14.3381 10.7447 14.6144 11.1829 14.817",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M12.806 9.193C13.2443 9.39593 13.6445 9.67262 13.989 10.011C15.6564 11.6772 15.6573 14.3795 13.9912 16.0469L13.989 16.049L10.8082 19.268C9.11565 20.9101 6.41235 20.8692 4.77024 19.1766C3.16318 17.5201 3.16318 14.8865 4.77024 13.23L6.50024 11.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Fd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Fd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Bd=["size","color","strokeWidth"];function Pd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Bd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M12 5H20",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M12 19H20M12 12H20H12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M6 14C7.10457 14 8 13.1046 8 12C8 10.8954 7.10457 10 6 10C4.89543 10 4 10.8954 4 12C4 13.1046 4.89543 14 6 14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M6 21C7.10457 21 8 20.1046 8 19C8 17.8954 7.10457 17 6 17C4.89543 17 4 17.8954 4 19C4 20.1046 4.89543 21 6 21Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Pd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Pd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var Ud=["size","color","strokeWidth"];function Hd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Ud);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M11 4H20M11.15 9H20M5.25 9V4L4 5.25M11 14H20M11.15 19H20M4 15C4 14.7348 4.10536 14.4804 4.29289 14.2929C4.48043 14.1054 4.73478 14 5 14H5.61448C5.87234 14 6.12365 14.0811 6.33284 14.2319C6.54202 14.3827 6.69846 14.5955 6.78 14.8401C6.84709 15.0414 6.86091 15.2566 6.82013 15.4648C6.77935 15.673 6.68534 15.8671 6.54727 16.0282L4 19H7M4 9H6.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Hd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Hd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var $d=["size","color","strokeWidth"];function Wd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,$d);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M17 12H7",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Wd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Wd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var qd=["size","color","strokeWidth"];function Vd(e){var t=e.size,n=e.color;e.strokeWidth;var i=ep(e,qd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),Fp.createElement("path",{d:"M10 2.25C8.48079 2.25 7.25 3.48079 7.25 5V6.25H6C4.48079 6.25 3.25 7.48079 3.25 9V19C3.25 20.5192 4.48079 21.75 6 21.75H14C15.5192 21.75 16.75 20.5192 16.75 19V17.75H18C19.5192 17.75 20.75 16.5192 20.75 15V5C20.75 3.48079 19.5192 2.25 18 2.25H10ZM16.75 16.25H18C18.6908 16.25 19.25 15.6908 19.25 15V5C19.25 4.30921 18.6908 3.75 18 3.75H10C9.30921 3.75 8.75 4.30921 8.75 5V6.25H14C15.5192 6.25 16.75 7.48079 16.75 9V16.25ZM8 7.75H6C5.30921 7.75 4.75 8.30921 4.75 9V19C4.75 19.6908 5.30921 20.25 6 20.25H14C14.6908 20.25 15.25 19.6908 15.25 19V17V9C15.25 8.30921 14.6908 7.75 14 7.75H8ZM8 12.25C7.58579 12.25 7.25 12.5858 7.25 13C7.25 13.4142 7.58579 13.75 8 13.75H12C12.4142 13.75 12.75 13.4142 12.75 13C12.75 12.5858 12.4142 12.25 12 12.25H8ZM8 15.25C7.58579 15.25 7.25 15.5858 7.25 16C7.25 16.4142 7.58579 16.75 8 16.75H12C12.4142 16.75 12.75 16.4142 12.75 16C12.75 15.5858 12.4142 15.25 12 15.25H8Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}Vd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Vd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Kd=["size","color","strokeWidth"];function Gd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Kd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M13 4.5H20M13 9.5H20M4 14.5H20M4 19.5H20M9 9.5L6.5 4.5L4 9.5M4.5 8.5H6.5H8.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Gd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Gd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Yd=["size","color","strokeWidth"];function Qd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Yd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M14 13.5H19C19.552 13.5 20 13.948 20 14.5V18.5C20 19.052 19.552 19.5 19 19.5H15C14.448 19.5 14 19.052 14 18.5V13.5ZM14 13.5C14 7.5 15 6.5 18 4.5M4 13.5H9C9.552 13.5 10 13.948 10 14.5V18.5C10 19.052 9.552 19.5 9 19.5H5C4.448 19.5 4 19.052 4 18.5V13.5ZM4 13.5C4 7.5 5 6.5 8 4.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Qd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Qd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Zd=["size","color","strokeWidth"];function Jd(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Zd);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M12.0001 6.36841H17.5264",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M12.0001 6.36841V6.36841C8.51201 6.36841 5.68434 9.19608 5.68434 12.6842C5.68434 16.1723 8.51201 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M15.1579 4L17.5264 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M15.1579 8.73683L17.5264 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}Jd.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},Jd.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var Xd=["size","color","strokeWidth"];function eh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,Xd);return Fp.createElement("svg",Xu({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),Fp.createElement("g",{clipPath:"url(#clip0_1047_4017)"},Fp.createElement("rect",{x:"1.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),Fp.createElement("mask",{id:"path-2-inside-1_1047_4017",fill:n},Fp.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),Fp.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4017)",strokeWidth:"3"}),Fp.createElement("line",{x1:"15.75",y1:"2.97607",x2:"15.75",y2:"17.1189",stroke:n,strokeWidth:i})),Fp.createElement("defs",null,Fp.createElement("clipPath",{id:"clip0_1047_4017"},Fp.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}eh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},eh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var th=["size","color","strokeWidth"];function nh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,th);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M12 3C7.037 3 3 7.037 3 12C3 16.963 7.037 21 12 21C16.963 21 21 16.962 21 12C21 7.038 16.962 3 12 3Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M15.5006 15.688C15.5006 15.688 14.1876 17 12.0006 17C9.81263 17 8.50063 15.688 8.50063 15.688M15.3286 9.5C15.1906 9.5 15.0786 9.612 15.0796 9.75C15.0796 9.888 15.1916 10 15.3296 10C15.4676 10 15.5796 9.888 15.5796 9.75C15.5796 9.612 15.4676 9.5 15.3286 9.5ZM8.63963 9.5C8.50163 9.5 8.38963 9.612 8.39063 9.75C8.39063 9.888 8.50263 10 8.64063 10C8.77863 10 8.89063 9.888 8.89063 9.75C8.89063 9.612 8.77863 9.5 8.63963 9.5Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}nh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},nh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var ih=["size","color","strokeWidth"];function rh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,ih);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M7 6H12.875C13.6706 6 14.4337 6.31607 14.9963 6.87868C15.5589 7.44129 15.875 8.20435 15.875 9V9C15.875 9.79565 15.5589 10.5587 14.9963 11.1213C14.4337 11.6839 13.6706 12 12.875 12H7V6ZM7 12H14C14.7956 12 15.5587 12.3161 16.1213 12.8787C16.6839 13.4413 17 14.2044 17 15V15C17 15.7956 16.6839 16.5587 16.1213 17.1213C15.5587 17.6839 14.7956 18 14 18H7V12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}rh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},rh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var oh=["size","color","strokeWidth"];function sh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,oh);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M8 18H14C14.7956 18 15.5587 17.6839 16.1213 17.1213C16.6839 16.5587 17 15.7956 17 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M19 12H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M16 6H11C10.2044 6 9.44129 6.31607 8.87868 6.87868C8.31607 7.44129 8 8.20435 8 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}sh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},sh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var ah=["size","color","strokeWidth"];function lh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,ah);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M5 6V18M13 6V18M5 12H13M18.5 18V13L17.25 14.25M20 18H17",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}lh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},lh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var ch=["size","color","strokeWidth"];function uh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,ch);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M17 14C17 13.7348 17.1054 13.4804 17.2929 13.2929C17.4804 13.1054 17.7348 13 18 13H18.6145C18.8723 13 19.1237 13.0811 19.3329 13.2319C19.542 13.3827 19.6985 13.5955 19.78 13.8401C19.8471 14.0414 19.8609 14.2566 19.8202 14.4648C19.7794 14.673 19.6854 14.8671 19.5473 15.0281L17 18H20M5 6V18M13 6V18M5 12H13",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}uh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},uh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var ph=["size","color","strokeWidth"];function dh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,ph);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M10 6H17M13.5 6L10.5 18L13.5 6ZM14 18H7H14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}dh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},dh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var hh=["size","color","strokeWidth"];function fh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,hh);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("g",{clipPath:"url(#clip0_861:2152)"},Fp.createElement("path",{d:"M15.315 15.014L12 8.01398L8.68401 15.013",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M9.347 13.613H14.65",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M18 21.014H6C4.343 21.014 3 19.671 3 18.014V6.01398C3 4.35698 4.343 3.01398 6 3.01398H18C19.657 3.01398 21 4.35698 21 6.01398V18.014C21 19.671 19.657 21.014 18 21.014Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})),Fp.createElement("defs",null,Fp.createElement("clipPath",{id:"clip0_861:2152"},Fp.createElement("rect",{width:"24",height:"24",fill:n}))))}fh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},fh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var mh=["size","color","strokeWidth"];function gh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,mh);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M15 5V11.6667C15 12.5507 14.6313 13.3986 13.9749 14.0237C13.3185 14.6488 12.4283 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M8 5V11.6667C8 12.5507 8.36875 13.3986 9.02513 14.0237C9.6815 14.6488 10.5717 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M19 18.5H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}gh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},gh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])};var bh=["size","color","strokeWidth"];function vh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,bh);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M5.68433 12.6842V12.6842C5.68433 16.1723 8.512 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842C18.3159 9.19608 15.4882 6.36841 12.0001 6.36841H6.4738",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M8.8423 4L6.47388 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),Fp.createElement("path",{d:"M8.8423 8.73683L6.47388 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}vh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},vh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var yh=["size","color","strokeWidth"];function xh(e){var t=e.size,n=e.color,i=e.strokeWidth,r=ep(e,yh);return Fp.createElement("svg",Xu({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),Fp.createElement("path",{d:"M15.375 13.097L19.17 16.151C19.906 16.744 21 16.22 21 15.275V8.725C21 7.78 19.906 7.256 19.17 7.849L15.375 10.903M13.125 17.75H5.25C4.007 17.75 3 16.743 3 15.5V8.5C3 7.257 4.007 6.25 5.25 6.25H13.125C14.368 6.25 15.375 7.257 15.375 8.5V15.5C15.375 16.743 14.368 17.75 13.125 17.75Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}xh.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},xh.propTypes={color:ud.string,size:ud.oneOfType([ud.string,ud.number]),strokeWidth:ud.oneOfType([ud.string,ud.number])},ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]),ud.string,ud.oneOfType([ud.string,ud.number]),ud.oneOfType([ud.string,ud.number]);var wh={exports:{}},_h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function kh(){}function Eh(){}Eh.resetWarningCache=kh;function Ch(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mh(e,t)}function Oh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mh(e,t)}function Dh(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}wh.exports=function(){function e(e,t,n,i,r,o){if(o!==_h){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Eh,resetWarningCache:kh};return n.PropTypes=n,n}();var Th=!1,Sh=t.createContext(null),Nh=function(e){return e.scrollTop},Ah="unmounted",jh="exited",Lh="entering",zh="entered",Ih="exiting",Rh=function(e){function n(t,n){var i;i=e.call(this,t,n)||this;var r,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=jh,i.appearStatus=Lh):r=zh:r=t.unmountOnExit||t.mountOnEnter?Ah:jh,i.state={status:r},i.nextCallback=null,i}Oh(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ah?{status:jh}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Lh&&n!==zh&&(t=Lh):n!==Lh&&n!==zh||(t=Ih)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Lh){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&Nh(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jh&&this.setState({status:Ah})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,r=this.props.nodeRef?[i]:[f.findDOMNode(this),i],o=r[0],s=r[1],a=this.getTimeouts(),l=i?a.appear:a.enter;!e&&!n||Th?this.safeSetState({status:zh},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:Lh},(function(){t.props.onEntering(o,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:zh},(function(){t.props.onEntered(o,s)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!Th?(this.props.onExit(i),this.safeSetState({status:Ih},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:jh},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:jh},(function(){e.props.onExited(i)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=r[0],s=r[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Ah)return null;var n=this.props,i=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Ch(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Sh.Provider,{value:null},"function"==typeof i?i(e,r):t.cloneElement(t.Children.only(i),r))},n}(t.Component);function Fh(){}Rh.contextType=Sh,Rh.propTypes={},Rh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fh,onEntering:Fh,onEntered:Fh,onExit:Fh,onExiting:Fh,onExited:Fh},Rh.UNMOUNTED=Ah,Rh.EXITED=jh,Rh.ENTERING=Lh,Rh.ENTERED=zh,Rh.EXITING=Ih;var Bh=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.add(i):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))},Ph=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.remove(i):"string"==typeof n.className?n.className=Dh(n.className,i):n.setAttribute("class",Dh(n.className&&n.className.baseVal||"",i)));var n,i}))},Uh=function(e){function n(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var i=t.resolveArguments(e,n),r=i[0],o=i[1];t.removeClasses(r,"exit"),t.addClass(r,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var i=t.resolveArguments(e,n),r=i[0],o=i[1]?"appear":"enter";t.addClass(r,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var i=t.resolveArguments(e,n),r=i[0],o=i[1]?"appear":"enter";t.removeClasses(r,o),t.addClass(r,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,i="string"==typeof n,r=i?""+(i&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:i?r+"-active":n[e+"Active"],doneClassName:i?r+"-done":n[e+"Done"]}},t}Oh(n,e);var i=n.prototype;return i.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(i+=" "+r),"active"===n&&e&&Nh(e),i&&(this.appliedClasses[t][n]=i,Bh(e,i))},i.removeClasses=function(e,t){var n=this.appliedClasses[t],i=n.base,r=n.active,o=n.done;this.appliedClasses[t]={},i&&Ph(e,i),r&&Ph(e,r),o&&Ph(e,o)},i.render=function(){var e=this.props;e.classNames;var n=Ch(e,["classNames"]);return t.createElement(Rh,T({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function Hh(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function $h(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wh(e,t,n){var i=Hh(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}(t,i);return Object.keys(r).forEach((function(o){var s=r[o];if(a(s)){var c=o in t,u=o in i,p=t[o],d=a(p)&&!p.props.in;!u||c&&!d?u||!c||d?u&&c&&a(p)&&(r[o]=l(s,{onExited:n.bind(null,s),in:p.props.in,exit:$h(s,"exit",e),enter:$h(s,"enter",e)})):r[o]=l(s,{in:!1}):r[o]=l(s,{onExited:n.bind(null,s),in:!0,exit:$h(s,"exit",e),enter:$h(s,"enter",e)})}})),r}Uh.defaultProps={classNames:""},Uh.propTypes={};var qh=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Vh=function(e){function n(t,n){var i,r=(i=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i));return i.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},i}Oh(n,e);var i=n.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n,i,r=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,i=o,Hh(n.children,(function(e){return l(e,{onExited:i.bind(null,e),in:!0,appear:$h(e,"appear",n),enter:$h(e,"enter",n),exit:$h(e,"exit",n)})}))):Wh(e,r,o),firstRender:!1}},i.handleExited=function(e,t){var n=Hh(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=T({},t.children);return delete n[e.key],{children:n}})))},i.render=function(){var e=this.props,n=e.component,i=e.childFactory,r=Ch(e,["component","childFactory"]),o=this.state.contextValue,s=qh(this.state.children).map(i);return delete r.appear,delete r.enter,delete r.exit,null===n?t.createElement(Sh.Provider,{value:o},s):t.createElement(Sh.Provider,{value:o},t.createElement(n,r,s))},n}(t.Component);Vh.propTypes={},Vh.defaultProps={component:"div",childFactory:function(e){return e}};var Kh,Gh,Yh=function(e){function n(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.handleLifecycle("onExited",1,n)},t}Oh(n,e);var i=n.prototype;return i.handleLifecycle=function(e,n,i){var r,o=this.props.children,s=t.Children.toArray(o)[n];if(s.props[e]&&(r=s.props)[e].apply(r,i),this.props[e]){var a=s.props.nodeRef?void 0:f.findDOMNode(this);this.props[e](a)}},i.render=function(){var e=this.props,n=e.children,i=e.in,r=Ch(e,["children","in"]),o=t.Children.toArray(n),s=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,t.createElement(Vh,r,i?t.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):t.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},n}(t.Component);Yh.propTypes={};var Qh="out-in",Zh="in-out",Jh=function(e,t,n){return function(){var i;e.props[t]&&(i=e.props)[t].apply(i,arguments),n()}},Xh=((Kh={})[Qh]=function(e){var n=e.current,i=e.changeState;return t.cloneElement(n,{in:!1,onExited:Jh(n,"onExited",(function(){i(Lh,null)}))})},Kh[Zh]=function(e){var n=e.current,i=e.changeState,r=e.children;return[n,t.cloneElement(r,{in:!0,onEntered:Jh(r,"onEntered",(function(){i(Lh)}))})]},Kh),ef=((Gh={})[Qh]=function(e){var n=e.children,i=e.changeState;return t.cloneElement(n,{in:!0,onEntered:Jh(n,"onEntered",(function(){i(zh,t.cloneElement(n,{in:!0}))}))})},Gh[Zh]=function(e){var n=e.current,i=e.children,r=e.changeState;return[t.cloneElement(n,{in:!1,onExited:Jh(n,"onExited",(function(){r(zh,t.cloneElement(i,{in:!0}))}))}),t.cloneElement(i,{in:!0})]},Gh),tf=function(e){function n(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={status:zh,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Oh(n,e);var i=n.prototype;return i.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,n){return null==e.children?{current:null}:n.status===Lh&&e.mode===Zh?{status:Lh}:!n.current||(i=n.current,r=e.children,i===r||t.isValidElement(i)&&t.isValidElement(r)&&null!=i.key&&i.key===r.key)?{current:t.cloneElement(e.children,{in:!0})}:{status:Ih};var i,r},i.render=function(){var e,n=this.props,i=n.children,r=n.mode,o=this.state,s=o.status,a=o.current,l={children:i,current:a,changeState:this.changeState,status:s};switch(s){case Lh:e=ef[r](l);break;case Ih:e=Xh[r](l);break;case zh:e=a}return t.createElement(Sh.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);tf.propTypes={},tf.defaultProps={mode:Qh};
24
- /**!
25
- * hotkeys-js v3.9.4
26
- * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
27
- *
28
- * Copyright (c) 2022 kenny wong <wowohoo@qq.com>
29
- * http://jaywcjlove.github.io/hotkeys
30
- * Licensed under the MIT license
31
- */
32
- var nf="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function rf(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function of(e,t){for(var n=t.slice(0,t.length-1),i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function sf(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var af={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":nf?173:189,"=":nf?61:187,";":nf?59:186,"'":222,"[":219,"]":221,"\\":220},lf={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},cf={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},uf={16:!1,18:!1,17:!1,91:!1},pf={},df=1;df<20;df++)af["f".concat(df)]=111+df;var hf=[],ff=!1,mf="all",gf=[],bf=function(e){return af[e.toLowerCase()]||lf[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function vf(e){mf=e||"all"}function yf(){return mf||"all"}var xf=function(e){var t=e.key,n=e.scope,i=e.method,r=e.splitKey,o=void 0===r?"+":r;sf(t).forEach((function(e){var t=e.split(o),r=t.length,s=t[r-1],a="*"===s?"*":bf(s);if(pf[a]){n||(n=yf());var l=r>1?of(lf,t):[];pf[a]=pf[a].filter((function(e){return!((!i||e.method===i)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,r=!0,o=0;o<n.length;o++)-1===i.indexOf(n[o])&&(r=!1);return r}(e.mods,l))}))}}))};function wf(e,t,n,i){var r;if(t.element===i&&(t.scope===n||"all"===t.scope)){for(var o in r=t.mods.length>0,uf)Object.prototype.hasOwnProperty.call(uf,o)&&(!uf[o]&&t.mods.indexOf(+o)>-1||uf[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||uf[16]||uf[18]||uf[17]||uf[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function _f(e,t){var n=pf["*"],i=e.keyCode||e.which||e.charCode;if(kf.filter.call(this,e)){if(93!==i&&224!==i||(i=91),-1===hf.indexOf(i)&&229!==i&&hf.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=cf[t];e[t]&&-1===hf.indexOf(n)?hf.push(n):!e[t]&&hf.indexOf(n)>-1?hf.splice(hf.indexOf(n),1):"metaKey"===t&&e[t]&&3===hf.length&&(e.ctrlKey||e.shiftKey||e.altKey||(hf=hf.slice(hf.indexOf(n))))})),i in uf){for(var r in uf[i]=!0,lf)lf[r]===i&&(kf[r]=!0);if(!n)return}for(var o in uf)Object.prototype.hasOwnProperty.call(uf,o)&&(uf[o]=e[cf[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===hf.indexOf(17)&&hf.push(17),-1===hf.indexOf(18)&&hf.push(18),uf[17]=!0,uf[18]=!0);var s=yf();if(n)for(var a=0;a<n.length;a++)n[a].scope===s&&("keydown"===e.type&&n[a].keydown||"keyup"===e.type&&n[a].keyup)&&wf(e,n[a],s,t);if(i in pf)for(var l=0;l<pf[i].length;l++)if(("keydown"===e.type&&pf[i][l].keydown||"keyup"===e.type&&pf[i][l].keyup)&&pf[i][l].key){for(var c=pf[i][l],u=c.splitKey,p=c.key.split(u),d=[],h=0;h<p.length;h++)d.push(bf(p[h]));d.sort().join("")===hf.sort().join("")&&wf(e,c,s,t)}}}function kf(e,t,n){hf=[];var i=sf(e),r=[],o="all",s=document,a=0,l=!1,c=!0,u="+",p=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),void 0!==t.capture&&(p=t.capture),"string"==typeof t.splitKey&&(u=t.splitKey)),"string"==typeof t&&(o=t);a<i.length;a++)r=[],(e=i[a].split(u)).length>1&&(r=of(lf,e)),(e="*"===(e=e[e.length-1])?"*":bf(e))in pf||(pf[e]=[]),pf[e].push({keyup:l,keydown:c,scope:o,mods:r,shortcut:i[a],method:n,key:i[a],splitKey:u,element:s});void 0!==s&&!function(e){return gf.indexOf(e)>-1}(s)&&window&&(gf.push(s),rf(s,"keydown",(function(e){_f(e,s)}),p),ff||(ff=!0,rf(window,"focus",(function(){hf=[]}),p)),rf(s,"keyup",(function(e){_f(e,s),function(e){var t=e.keyCode||e.which||e.charCode,n=hf.indexOf(t);if(n>=0&&hf.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&hf.splice(0,hf.length),93!==t&&224!==t||(t=91),t in uf)for(var i in uf[t]=!1,lf)lf[i]===t&&(kf[i]=!1)}(e)}),p))}var Ef={setScope:vf,getScope:yf,deleteScope:function(e,t){var n,i;for(var r in e||(e=yf()),pf)if(Object.prototype.hasOwnProperty.call(pf,r))for(n=pf[r],i=0;i<n.length;)n[i].scope===e?n.splice(i,1):i++;yf()===e&&vf(t||"all")},getPressedKeyCodes:function(){return hf.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=bf(e)),-1!==hf.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,i=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(i=!1),i},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(pf).forEach((function(n){var i=pf[n].find((function(n){return n.scope===t&&n.shortcut===e}));i&&i.method&&i.method()}))},unbind:function(e){if(void 0===e)Object.keys(pf).forEach((function(e){return delete pf[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&xf(e)}));else if("object"==typeof e)e.key&&xf(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0],o=n[1];"function"==typeof r&&(o=r,r=""),xf({key:e,scope:r,method:o,splitKey:"+"})}},keyMap:af,modifier:lf,modifierMap:cf};for(var Cf in Ef)Object.prototype.hasOwnProperty.call(Ef,Cf)&&(kf[Cf]=Ef[Cf]);if("undefined"!=typeof window){var Mf=window.hotkeys;kf.noConflict=function(e){return e&&window.hotkeys===kf&&(window.hotkeys=Mf),kf},window.hotkeys=kf}kf.filter=function(){return!0};var Of=function(e,t){var n=e.target,i=n&&n.tagName;return Boolean(i&&t&&t.includes(i))};function Df(e,t,n,i){n instanceof Array&&(i=n,n=void 0);var r=n||{},s=r.enableOnTags,a=r.filter,l=r.keyup,p=r.keydown,d=r.filterPreventDefault,h=void 0===d||d,f=r.enabled,m=void 0===f||f,g=r.enableOnContentEditable,b=void 0!==g&&g,v=c(null),y=u((function(e,n){var i,r;return a&&!a(e)?!h:!!(Of(e,["INPUT","TEXTAREA","SELECT"])&&!Of(e,s)||null!=(i=e.target)&&i.isContentEditable&&!b)||!!(null===v.current||document.activeElement===v.current||null!=(r=v.current)&&r.contains(document.activeElement))&&(t(e,n),!0)}),i?[v,s,a].concat(i):[v,s,a]);return o((function(){if(m)return l&&!0!==p&&(n.keydown=!1),kf(e,n||{},y),function(){return kf.unbind(e,y)};kf.unbind(e,y)}),[y,e,m]),v}kf.isPressed;const Tf=new class{constructor(){this.modals=[],this.previouslyFocusedElements=[]}add(e){this.modals.push(e),this.previouslyFocusedElements.push(document.activeElement)}remove(e){this.modals=this.modals.filter((t=>t!==e))}manageFinalFocus(){return this.previouslyFocusedElements.pop()}isTopModal(e){return this.modals[this.modals.length-1]===e}hasModals(){return this.modals.length>0}};const Sf=(e,t)=>{var n,i;const r='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',o=null==e||null===(n=e.current)||void 0===n?void 0:n.querySelectorAll(r)[0],s=null==e||null===(i=e.current)||void 0===i?void 0:i.querySelectorAll(r),a=s[(null==s?void 0:s.length)-1];t&&(document.addEventListener("keydown",(e=>{("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===o&&(a.focus(),e.preventDefault()):document.activeElement===a&&(o.focus(),e.preventDefault()))})),null==o||o.focus())},Nf=e=>{let{isOpen:t,initialFocusRef:n,finalFocusRef:i,modalWrapper:r,onClose:s,backdropRef:a,closeOnOutsideClick:l,closeOnEsc:p,blockScrollOnMount:d}=e;const h=c(null),f=c(null),m=()=>{null!=i&&i.current?(i.current.focus(),Tf.manageFinalFocus()):(f.current=Tf.manageFinalFocus(),f.current&&f.current.focus())},g=u((()=>{Tf.isTopModal(r)&&(m(),null==s||s())}),[s]);var b,v,y;o((()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&(v.current?v.current.contains(e.target)&&y(e):y(e))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[b=r,v=a,y=l?g:Vu]),Df("esc",(()=>{p?g():Vu()}),[g]);return o((()=>{t&&(h.current=document.activeElement,null!=n&&n.current?(n.current.focus(),Sf(r,!1)):Sf(r,!0)),d&&Tf.hasModals()?(document.body.style.marginRight=`${(()=>{var e;const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const n=document.createElement("div");t.appendChild(n);const i=t.offsetWidth-n.offsetWidth;return null==t||null===(e=t.parentNode)||void 0===e||e.removeChild(t),i})()}px`,document.body.style.overflow="hidden"):(document.body.style.marginRight="0px",document.body.style.overflow="auto")}),[t,Tf.modals]),o((()=>{t||Tf.hasModals()||(m(),null==s||s())}),[t]),{handleModalClose:g}},Af=(e,n)=>{let{children:i,...r}=e;return t.createElement("div",T({"data-testid":"ne-backdrop",ref:n},r),i)};var jf=p(Af);const Lf=16,zf="#2F3941",If="#68737D",Rf={small:24,medium:32,large:40,extraLarge:64},Ff=["ne-avatar--container-bg-1","ne-avatar--container-bg-2","ne-avatar--container-bg-3","ne-avatar--container-bg-4","ne-avatar--container-bg-5","ne-avatar--container-bg-6","ne-avatar--container-bg-7"],Bf="https://github.com/bigbinary/neeto-ui/blob/602cf3ab48a36d7a512f3780f9950d15d13ebbea/lib/images/user.png?raw=true",Pf="danger",Uf={button:"button",reset:"reset",submit:"submit"},Hf={primary:"primary",secondary:"secondary",danger:"danger",danger_text:"danger-text",text:"text",link:"link"},$f={small:"small",medium:"medium",large:"large"},Wf={left:"left",right:"right"};function qf(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var Vf="undefined"!=typeof window&&"undefined"!=typeof document;function Kf(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Gf(){return Vf&&document.createElement("div")}function Yf(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Yf(e[n],t[n]))return!1}return!0}return!1}function Qf(e){var t=[];return e.forEach((function(e){t.find((function(t){return Yf(e,t)}))||t.push(e)})),t}var Zf=Vf?d:o;function Jf(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Xf={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||Jf(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&Jf(t,"remove",e.props.className)},onAfterUpdate:i}}};function em(e){return function(n){var i=n.children,o=n.content,s=n.visible,a=n.singleton,u=n.render,p=n.reference,d=n.disabled,h=void 0!==d&&d,f=n.ignoreAttributes,m=void 0===f||f;n.__source,n.__self;var b,v,y=qf(n,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),x=void 0!==s,w=void 0!==a,_=r(!1),k=_[0],E=_[1],C=r({}),M=C[0],O=C[1],D=r(),T=D[0],S=D[1],N=(b=function(){return{container:Gf(),renders:1}},(v=c()).current||(v.current="function"==typeof b?b():b),v.current),A=Object.assign({ignoreAttributes:m},y,{content:N.container});x&&(A.trigger="manual",A.hideOnClick=!1),w&&(h=!0);var j=A,L=A.plugins||[];u&&(j=Object.assign({},A,{plugins:w&&null!=a.data?[].concat(L,[{fn:function(){return{onTrigger:function(e,t){var n=a.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,S(n.content)}}}}]):L,render:function(){return{popper:N.container}}}));var z=[p].concat(i?[i.type]:[]);return Zf((function(){var t=p;p&&p.hasOwnProperty("current")&&(t=p.current);var n=e(t||N.ref||Gf(),Object.assign({},j,{plugins:[Xf].concat(A.plugins||[])}));return N.instance=n,h&&n.disable(),s&&n.show(),w&&a.hook({instance:n,content:o,props:j,setSingletonContent:S}),E(!0),function(){n.destroy(),null==a||a.cleanup(n)}}),z),Zf((function(){var e;if(1!==N.renders){var t,n,i,r,l=N.instance;l.setProps((t=l.props,n=j,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:Qf([].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],(null==(r=n.popperOptions)?void 0:r.modifiers)||[]))})}))),null==(e=l.popperInstance)||e.forceUpdate(),h?l.disable():l.enable(),x&&(s?l.show():l.hide()),w&&a.hook({instance:l,content:o,props:j,setSingletonContent:S})}else N.renders++})),Zf((function(){var e;if(u){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&M.escaped===(null==i?void 0:i.hasPopperEscaped)||O({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(z)),t.createElement(t.Fragment,null,i?l(i,{ref:function(e){N.ref=e,Kf(i.ref,e)}}):null,k&&g(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),T,N.instance):o,N.container))}}var tm=function(e,n){return p((function(i,r){var o=i.children,s=qf(i,["children"]);return t.createElement(e,Object.assign({},n,s),o?l(o,{ref:function(e){Kf(r,e),Kf(o.ref,e)}}):null)}))},nm=tm(em(pc));const im=e=>{let{content:n,children:i,theme:r="dark",disabled:o=!1,placement:s,position:a="auto",interactive:l=!1,delay:c=0,...u}=e;return t.createElement(nm,T({animation:"scale-subtle",content:n,delay:c,disabled:o,duration:[100,200],interactive:l,placement:s||a,plugins:[mc],role:"tooltip",theme:r,zIndex:100001,arrow:"<svg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 5H0.926697L3.95208 1.63847C4.74227 0.760478 6.11722 0.754951 6.91445 1.62656L10 5Z' /></svg>"},u),i)},rm=t.forwardRef(((e,n)=>{let i,r,{icon:o=null,iconPosition:s=Wf.right,iconSize:a=16,label:l="",loading:c=!1,onClick:u=(()=>{}),type:p=Uf.button,style:d=Hf.primary,fullWidth:h=!1,className:f="",disabled:m=!1,size:g=$f.medium,href:b="",tooltipProps:v=null,...y}=e;b?(i="a",r={href:b}):(i="button",r={type:p});const x="string"==typeof o?()=>t.createElement("i",{className:Rc("ne-btn__icon",[o])}):o||t.Fragment;return t.createElement(im,T({disabled:!v},v),t.createElement(i,T({disabled:m,ref:n,className:Rc("ne-btn",[f],{"ne-btn--style-primary":d===Hf.primary,"ne-btn--style-secondary":d===Hf.secondary,"ne-btn--style-danger":d===Hf.danger,"ne-btn--style-danger-text":d===Hf.danger_text,"ne-btn--style-text":d===Hf.text,"ne-btn--style-link":d===Hf.link,"ne-btn--size-medium":g===$f.medium,"ne-btn--size-large":g===$f.large,"ne-btn--width-full":h,"ne-btn--icon-left":s===Wf.left,"ne-btn--icon-only":!l,disabled:m}),onClick:e=>{c||m||u(e)}},r,y),l&&t.createElement("span",null,l),o&&t.createElement(x,{className:"ne-btn__icon",key:"2",size:a})))}));rm.displayName="Button";const om=e=>{let{children:t,rootId:n="root-portal",element:i="div"}=e;const r=c(null);return o((()=>{let e=document.getElementById(n);return e||(e=document.createElement(i),e.setAttribute("id",n),document.body.appendChild(e)),e.appendChild(r.current),()=>{r.current.remove(),Pu(e.childNodes)&&e.remove()}}),[n,i]),r.current||(r.current=document.createElement(i)),g(t,r.current)},sm=()=>{},am=e=>{let{size:n=$f.medium,isOpen:i=!1,onClose:r=sm,children:s,finalFocusRef:a,initialFocusRef:l,className:u="",closeOnEsc:p=!0,closeButton:d=!0,backdropClassName:h="",blockScrollOnMount:f=!0,closeOnOutsideClick:m=!0,...g}=e;const b=c(),v=c();!function(e,t){o((()=>(t&&Tf.add(e),()=>{Tf.remove(e)})),[t,e])}(b,i);const{handleModalClose:y}=Nf({isOpen:i,initialFocusRef:l,finalFocusRef:a,modalWrapper:b,onClose:r,backdropRef:v,closeOnOutsideClick:m,closeOnEsc:p,blockScrollOnMount:f});return t.createElement(om,{rootId:"neeto-ui-portal"},t.createElement(Uh,{unmountOnExit:!0,appear:i,classNames:"ne-modal",in:i,timeout:300},t.createElement(jf,{className:Rc("ne-modal__backdrop",h),"data-testid":"backdrop",key:"modal-backdrop",ref:v},t.createElement("div",T({"aria-modal":!0,key:"modal-wrapper",ref:b,role:"dialog",className:Rc("ne-modal__wrapper",{"ne-modal__wrapper--small":n===$f.small,"ne-modal__wrapper--medium":n===$f.medium,"ne-modal__wrapper--large":n===$f.large,[u]:u})},g),d&&t.createElement(rm,{"aria-label":"Close",className:"ne-modal__close","data-testid":"close-button",icon:vd,size:"small",style:"text",onClick:y}),s))))};am.propTypes={size:wh.exports.oneOf(Object.values($f)),isOpen:wh.exports.bool,onClose:wh.exports.func,children:wh.exports.node,className:wh.exports.string,closeOnEsc:wh.exports.bool,closeButton:wh.exports.bool,backdropClassName:wh.exports.string,closeOnOutsideClick:wh.exports.bool,finalFocusRef:wh.exports.object,initialFocusRef:wh.exports.object,blockScrollOnMount:wh.exports.bool};const lm=()=>{},cm=e=>{let{active:n,className:i="",children:r,icon:o=null,onClick:s=lm,...a}=e;const l="button",c="string"==typeof o?()=>t.createElement("i",{className:o,"data-cy":"ne-tab-item-icon","data-testid":"ne-tab-icon"}):o||t.Fragment;return t.createElement(l,T({"data-cy":"tab-item",className:Rc(["ne-tab",i],{active:n}),onClick:s},a),o&&t.createElement(c,{className:"ne-tab__icon"}),r)};cm.displayName="Tab.Item",cm.propTypes={active:wh.exports.bool,className:wh.exports.string,children:wh.exports.node,icon:wh.exports.oneOfType([wh.exports.string,wh.exports.elementType]),onClick:wh.exports.func,activeClassName:wh.exports.string};const um={large:"large",small:"small"},pm=e=>{let{size:n=um.small,noUnderline:i=!1,children:r,className:o="",...s}=e;return t.createElement("div",T({"data-cy":"tab-container",className:Rc({"ne-tab__wrapper":!0},{"ne-tab__wrapper--size-large":n===um.large},{"ne-tab__wrapper--size-small":n===um.small},{"ne-tab__wrapper--underline-none":i},[o])},s),r)};pm.propTypes={noUnderline:wh.exports.bool,size:wh.exports.oneOf(Object.values(um)),children:wh.exports.node,className:wh.exports.string},pm.Item=cm;const dm={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxFileSize:5*1024*1024,allowedFileTypes:[".jpg",".jpeg",".png",".gif"]}},hm={formData:!0,fieldName:"blob"},fm=[{title:"Upload",key:"local"},{title:"Link",key:"link"},{title:"Unsplash",key:"unsplash"}],mm=e=>{let{children:n,className:i="",required:r=!1,helpIconProps:o=null,...s}=e;const{onClick:a,icon:l,tooltipProps:c,className:u,...p}=o||{},d=l||Ld;return t.createElement("label",T({className:Rc("ne-label",i)},s),n,r&&t.createElement("span",{"aria-hidden":!0},"*"),o&&t.createElement(im,T({},c,{disabled:!c}),t.createElement("span",{className:Rc("ne-label__help-icon-wrap",{[u]:u}),onClick:a},t.createElement(d,T({size:16},p)))))};mm.propTypes={children:wh.exports.node,className:wh.exports.string,required:wh.exports.bool,helpIconProps:wh.exports.shape({onClick:wh.exports.func,icon:wh.exports.oneOfType([wh.exports.element,wh.exports.func]),tooltipProps:wh.exports.shape({...im.propTypes})})};const gm=p(((e,n)=>{var i,o;let{id:s,size:a=$f.medium,type:l="text",label:c="",error:u="",suffix:p=null,prefix:d=null,disabled:h=!1,helpText:f="",className:m="",nakedInput:g=!1,contentSize:b=null,required:v=!1,maxLength:y,...x}=e;const[w,_]=r(x.value),k=null!==(i=null!==(o=x.value)&&void 0!==o?o:w)&&void 0!==i?i:"",E=x.onChange||(e=>_(e.target.value)),C=`error_${s}`,M=`helpText_${s}`,O=(null==k?void 0:k.toString().length)||0,D=O>=.9*y,S=!!y&&O>y;return t.createElement("div",{className:Rc(["ne-input__wrapper",m])},t.createElement("div",{className:"ne-input__label-wrapper"},c&&t.createElement(mm,{"data-cy":`ne-${$u(c)}-input-label`,htmlFor:s,required:v},c),D&&t.createElement("p",{className:Rc("ne-input__max-length",{"ne-input__max-length--error":S})},O,"/",y)),t.createElement("div",{className:Rc("ne-input",{"ne-input--naked":!!g,"ne-input--error":!!u,"ne-input--disabled":!!h,"ne-input--small":"small"===a,"ne-input--medium":"medium"===a,"ne-input--large":"large"===a})},d&&t.createElement("div",{className:"ne-input__prefix"},d),t.createElement("input",T({"aria-invalid":!!u,"data-cy":"input-field",disabled:h,id:s,ref:n,required:v,size:b,type:l,"aria-describedby":Rc({[C]:!!u,[M]:f})},x,{value:k,onChange:E})),p&&t.createElement("div",{className:"ne-input__suffix"},p)),!!u&&t.createElement("p",{className:"ne-input__error","data-cy":`ne-${$u(c)}-input-error`,id:C},u),f&&t.createElement("p",{className:"ne-input__help-text","data-cy":`ne-${$u(c)}-input-help`,id:M},f))}));gm.propTypes={id:wh.exports.string,size:wh.exports.oneOf(Object.values($f)),type:wh.exports.string,maxLength:wh.exports.number,label:wh.exports.string,error:wh.exports.string,suffix:wh.exports.node,prefix:wh.exports.node,disabled:wh.exports.bool,helpText:wh.exports.string,className:wh.exports.string,nakedInput:wh.exports.bool,contentSize:wh.exports.number,required:wh.exports.bool},gm.displayName="Input";const bm=e=>{let{url:n,editor:i,onClose:o,alt:s=""}=e;const[a,l]=r(s||""),[c,u]=r(!1),p=()=>{i.chain().focus().setImage({src:n,alt:a}).run(),o()};return t.createElement("div",{className:"neeto-editor-image-editor",onKeyDown:e=>{"Enter"===e.key&&p()}},c?t.createElement("div",{className:"neeto-editor-image-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected image cannot be displayed. Please try again using another image.")):t.createElement(t.Fragment,null,t.createElement("figure",null,t.createElement("img",{loading:"lazy",src:n,onError:e=>{let{currentTarget:t}=e;u(!0),t.onerror=null}})),t.createElement(gm,{autoFocus:!0,label:"Caption",placeholder:"Brand Image",value:a,onChange:e=>l(e.target.value)})),t.createElement("div",{className:"neeto-editor-image-editor__footer"},t.createElement(rm,{disabled:c,label:"Proceed",onClick:p}),t.createElement(rm,{label:"Cancel",style:"text",onClick:o})))};var vm={exports:{}},ym={};function xm(e){return e<10?`0${e}`:e.toString()}var wm=function(){const e=new Date;return`${xm(e.getHours())}:${xm(e.getMinutes())}:${xm(e.getSeconds())}`};Object.defineProperty(ym,"__esModule",{value:!0}),ym.justErrorsLogger=ym.debugLogger=void 0;const _m=wm,km={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${_m()}]`,...t)}};ym.justErrorsLogger=km;const Em={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${_m()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${_m()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${_m()}]`,...t)}};ym.debugLogger=Em;let Cm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Mm={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+=Cm[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let i="",r=n;for(;r--;)i+=e[Math.random()*e.length|0];return i}},Om={},Dm=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var i=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,i));var r=n[i];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+r:(t?"-":"")+e.toFixed(1)+" "+r};function Tm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Tm.prototype.match=function(e){var t,n,i=!0,r=this.parts,o=r.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;i&&t<o;t++)"*"!==r[t]&&(i=t<n.length&&r[t]===n[t]);i=i&&n}else i=!1;else if("function"==typeof e.splice)for(i=[],t=e.length;t--;)this.match(e[t])&&(i[i.length]=e[t]);else if("object"==typeof e)for(var s in i={},e)this.match(s)&&(i[s]=e[s]);return i};var Sm=function(e,t,n){var i=new Tm(e,n||/[\/\.]/);return void 0!==t?i.match(t):i},Nm=/[\/\+\.]/;Object.defineProperty(Om,"__esModule",{value:!0}),Om.defaultOptions=Om.RestrictionError=Om.Restricter=void 0;const Am=Dm,jm=function(e,t){function n(t){var n=Sm(t,e,Nm);return n&&n.length>=2}return t?n(t.split(";")[0]):n};Om.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Lm extends Error{constructor(){super(...arguments),this.isRestriction=!0}}Om.RestrictionError=Lm,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});function zm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Om.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:n,minFileSize:i,maxTotalFileSize:r,maxNumberOfFiles:o,allowedFileTypes:s}=this.getOpts().restrictions;if(o&&t.length+1>o)throw new Lm(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(s){const t=s.some((t=>t.includes("/")?!!e.type&&jm(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()));if(!t){const e=s.join(", ");throw new Lm(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(r&&null!=e.size){const n=t.reduce(((e,t)=>e+t.size),e.size);if(n>r)throw new Lm(this.i18n("exceedsSize",{size:Am(r),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Lm(this.i18n("exceedsSize",{size:Am(n),file:e.name}));if(i&&null!=e.size&&e.size<i)throw new Lm(this.i18n("inferiorSize",{size:Am(i)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new Lm(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Lm(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,i=Object.prototype.hasOwnProperty,r=[];for(const t of n)i.call(e.meta,t)&&""!==e.meta[t]||r.push(t);return{missingFields:r,error:t}}};var Im=0;function Rm(e){return"__private_"+Im+++"_"+e}const Fm=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Bm(e,t,n){const i=[];return e.forEach((e=>"string"!=typeof e?i.push(e):t[Symbol.split](e).forEach(((e,t,r)=>{""!==e&&i.push(e),t<r.length-1&&i.push(n)})))),i}
33
- /**
34
- * Takes a string with placeholder variables like `%{smart_count} file selected`
35
- * and replaces it with values from options `{smart_count: 5}`
36
- *
37
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
38
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
39
- *
40
- * @param {string} phrase that needs interpolation, with placeholders
41
- * @param {object} options with values that will be used to replace placeholders
42
- * @returns {any[]} interpolated
43
- */function Pm(e,t){const n=/\$/g,i="$$$$";let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,i)),r=Bm(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Um=Rm("apply");function Hm(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var $m=class{constructor(e){Object.defineProperty(this,Um,{value:Hm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(zm(this,Um)[Um],this):zm(this,Um)[Um](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!Fm(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return Pm(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Pm(n,t)}},Wm="Expected a function",qm=0/0,Vm="[object Symbol]",Km=/^\s+|\s+$/g,Gm=/^[-+]0x[0-9a-f]+$/i,Ym=/^0b[01]+$/i,Qm=/^0o[0-7]+$/i,Zm=parseInt,Jm="object"==typeof Ac&&Ac&&Ac.Object===Object&&Ac,Xm="object"==typeof self&&self&&self.Object===Object&&self,eg=Jm||Xm||Function("return this")(),tg=Object.prototype.toString,ng=Math.max,ig=Math.min,rg=function(){return eg.Date.now()};function og(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Wm);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=rg();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?ig(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=rg(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=ag(t)||0,sg(n)&&(u=!!n.leading,o=(p="maxWait"in n)?ng(ag(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(rg())},v}function sg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ag(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&tg.call(e)==Vm}(e))return qm;if(sg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=sg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Km,"");var n=Ym.test(e);return n||Qm.test(e)?Zm(e.slice(2),n?2:8):Gm.test(e)?qm:+e}var lg=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(Wm);return sg(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),og(e,t,{leading:i,maxWait:t,trailing:r})};var cg=0;function ug(e){return"__private_"+cg+++"_"+e}var pg=ug("publish");class dg{constructor(){Object.defineProperty(this,pg,{value:hg}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,pg)[pg](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function hg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}dg.VERSION="2.1.1";var fg=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}};const mg=fg,gg={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function bg(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var vg=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${bg(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${bg(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t};var yg=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[i,r]=n.split(".");return i=parseInt(i,10),r=parseInt(r,10),i<15||15===i&&r<15063||(i>18||18===i&&r>=18218)};var xg=Mm,wg=ym,_g=Om;let kg,Eg;function Cg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mg=0;function Og(e){return"__private_"+Mg+++"_"+e}const Dg=$m,Tg=function(){var e={},t=e._fns={};return e.emit=function(e,n,i,r,o,s,a){var l=function(e){var n=t[e]?t[e]:[],i=e.indexOf(":"),r=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var l=o[s];if("*"===l&&(n=n.concat(t[l])),2===r.length&&r[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var i=0,r=t.length;for(;i<r&&t[i];i++)t[i].event=e,t[i].apply(t[i],n)}(e,l,[n,i,r,o,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function i(){n.apply(this,arguments),e.off(t,i)}))},e.off=function(e,t){var n=[];if(e&&t)for(var i=this._fns[e],r=0,o=i?i.length:0;r<o;r++)i[r]!==t&&n.push(i[r]);n.length?this._fns[e]=n:delete this._fns[e]},e},Sg=lg,Ng=function(){return new dg},Ag=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=mg(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in gg?gg[n]:"application/octet-stream"},jg=fg,Lg=vg,zg=yg,Ig=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"},Rg={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var Fg=Og("plugins"),Bg=Og("restricter"),Pg=Og("storeUnsubscribe"),Ug=Og("emitter"),Hg=Og("preProcessors"),$g=Og("uploaders"),Wg=Og("postProcessors"),qg=Og("informAndEmit"),Vg=Og("checkRequiredMetaFieldsOnFile"),Kg=Og("checkRequiredMetaFields"),Gg=Og("assertNewUploadAllowed"),Yg=Og("checkAndCreateFileStateObject"),Qg=Og("startIfAutoProceed"),Zg=Og("addListeners"),Jg=Og("updateOnlineStatus"),Xg=Og("createUpload"),eb=Og("getUpload"),tb=Og("removeUpload"),nb=Og("runUpload");kg=Symbol.for("uppy test: getPlugins"),Eg=Symbol.for("uppy test: createUpload");class ib{constructor(e){Object.defineProperty(this,nb,{value:fb}),Object.defineProperty(this,tb,{value:hb}),Object.defineProperty(this,eb,{value:db}),Object.defineProperty(this,Xg,{value:pb}),Object.defineProperty(this,Zg,{value:ub}),Object.defineProperty(this,Qg,{value:cb}),Object.defineProperty(this,Yg,{value:lb}),Object.defineProperty(this,Gg,{value:ab}),Object.defineProperty(this,Kg,{value:sb}),Object.defineProperty(this,Vg,{value:ob}),Object.defineProperty(this,qg,{value:rb}),Object.defineProperty(this,Fg,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Bg,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:void 0}),Object.defineProperty(this,Ug,{writable:!0,value:Tg()}),Object.defineProperty(this,Hg,{writable:!0,value:new Set}),Object.defineProperty(this,$g,{writable:!0,value:new Set}),Object.defineProperty(this,Wg,{writable:!0,value:new Set}),Object.defineProperty(this,Jg,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Rg;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:_g.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:Ng(),logger:wg.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=wg.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=Sg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:zg(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Cg(this,Bg)[Bg]=new _g.Restricter((()=>this.opts),this.i18n),Cg(this,Pg)[Pg]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Cg(this,Zg)[Zg]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];Cg(this,Ug)[Ug].emit(e,...n)}on(e,t){return Cg(this,Ug)[Ug].on(e,t),this}once(e,t){return Cg(this,Ug)[Ug].once(e,t),this}off(e,t){return Cg(this,Ug)[Ug].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Dg([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((i=>{const r={...t[i]};r.progress={...r.progress,...e},n[i]=r})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Cg(this,Hg)[Hg].add(e)}removePreProcessor(e){return Cg(this,Hg)[Hg].delete(e)}addPostProcessor(e){Cg(this,Wg)[Wg].add(e)}removePostProcessor(e){return Cg(this,Wg)[Wg].delete(e)}addUploader(e){Cg(this,$g)[$g].add(e)}removeUploader(e){return Cg(this,$g)[$g].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...n[e].meta,...t};n[e]={...n[e],meta:i},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),i=Object.values(e),r=i.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=i.filter((e=>!e.progress.uploadStarted)),s=i.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=i.filter((e=>e.progress.uploadStarted)),l=i.filter((e=>e.isPaused)),c=i.filter((e=>e.progress.uploadComplete)),u=i.filter((e=>e.error)),p=r.filter((e=>!e.isPaused)),d=i.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:r,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===i.length&&0===d.length,isAllErrored:!!n&&u.length===i.length,isAllPaused:0!==r.length&&l.length===r.length,isUploadInProgress:r.length>0,isSomeGhost:i.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return Cg(this,Bg)[Bg].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Cg(this,Gg)[Gg](e);const{files:t}=this.getState();let n=Cg(this,Yg)[Yg](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Cg(this,Qg)[Qg](),n.id}addFiles(e){Cg(this,Gg)[Gg]();const t={...this.getState().files},n=[],i=[];for(let r=0;r<e.length;r++)try{let i=Cg(this,Yg)[Yg](t,e[r]);t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e[r].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),t[i.id]=i,n.push(i)}catch(e){e.isRestriction||i.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Cg(this,Qg)[Qg](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:n,currentUploads:i}=this.getState(),r={...n},o={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{n[e]&&(s[e]=n[e],delete r[e])})),Object.keys(o).forEach((e=>{const t=i[e].fileIDs.filter(a);0!==t.length?o[e]={...i[e],fileIDs:t}:delete o[e]}));const l={currentUploads:o,files:r};0===Object.keys(r).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Cg(this,Xg)[Xg](t,{forceAllowNewUpload:!0});return Cg(this,nb)[nb](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Cg(this,Xg)[Xg]([e],{forceAllowNewUpload:!0});return Cg(this,nb)[nb](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,i=n.reduce(((e,t)=>e+t.progress.percentage),0),r=Math.round(i/t*100);return void this.setState({totalProgress:r})}let i=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const r=i/t.length;i+=r*n.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),n.forEach((e=>{o+=r*(e.progress.percentage||0)/100}));let s=0===i?0:Math.round(o/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}.`+" Please verify that the plugin was imported and spelled correctly.")}const n=new e(this,t),i=n.id;if(!i)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const r=this.getPlugin(i);if(r){const e=`Already found a plugin named '${r.id}'. `+`Tried to use: '${i}'.\n`+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),n.type in Cg(this,Fg)[Fg]?Cg(this,Fg)[Fg][n.type].push(n):Cg(this,Fg)[Fg][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Cg(this,Fg)[Fg])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[kg](e){return Cg(this,Fg)[Fg][e]}iteratePlugins(e){Object.values(Cg(this,Fg)[Fg]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Cg(this,Fg)[Fg][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),Cg(this,Pg)[Pg](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Cg(this,Jg)[Jg]),window.removeEventListener("offline",Cg(this,Jg)[Jg]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Cg(this,nb)[nb](e):(Cg(this,tb)[tb](e),Promise.reject(new Error("Nonexistent upload")))}[Eg](){return Cg(this,Xg)[Xg](...arguments)}addResultData(e,t){if(!Cg(this,eb)[eb](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),i={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:i}})}upload(){var e;null!=(e=Cg(this,Fg)[Fg].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>Cg(this,Bg)[Bg].validateMinNumberOfFiles(t))).catch((e=>{throw Cg(this,qg)[qg](e),e})).then((()=>{if(!Cg(this,Kg)[Kg](t))throw new _g.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),i=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||i.push(t.id)}));const r=Cg(this,Xg)[Xg](i);return Cg(this,nb)[nb](r)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function rb(e,t){const{message:n,details:i=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:i},"error",this.opts.infoTimeout),this.log(`${n} ${i}`.trim(),"error")}function ob(e){const{missingFields:t,error:n}=Cg(this,Bg)[Bg].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function sb(e){let t=!0;for(const n of Object.values(e))Cg(this,Vg)[Vg](n)||(t=!1);return t}function ab(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new _g.RestrictionError(this.i18n("noMoreFilesAllowed"));throw Cg(this,qg)[qg](t,e),t}}function lb(e,t){const n=Ag(t),i=Ig(n,t),r=jg(i).extension,o=Boolean(t.isRemote),s=Lg({...t,type:n});if(this.checkIfFileAlreadyExists(s)){const e=new _g.RestrictionError(this.i18n("noDuplicates",{fileName:i}));throw Cg(this,qg)[qg](e,t),e}const a=t.meta||{};a.name=i,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:s,name:i,extension:r||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new _g.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));Cg(this,Bg)[Bg].validate(c,t)}catch(e){throw Cg(this,qg)[qg](e,c),e}return c}function cb(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function ub(){const e=(e,t,n)=>{let i=e.message||"Unknown error";e.details&&(i+=` ${e.details}`),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:n})};this.on("error",e),this.on("upload-error",((t,n,i)=>{if(e(n,t,i),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),Cg(this,qg)[qg](e)}else Cg(this,qg)[qg](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Cg(this,Wg)[Wg].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Cg(this,Vg)[Vg](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Cg(this,Jg)[Jg]),window.addEventListener("offline",Cg(this,Jg)[Jg]),setTimeout(Cg(this,Jg)[Jg],3e3))}function pb(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,xg.nanoid)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[o]:{fileIDs:e,step:0,result:{}}}}),o}function db(e){const{currentUploads:t}=this.getState();return t[e]}function hb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function fb(e){let{currentUploads:t}=this.getState(),n=t[e];const i=n.step||0,r=[...Cg(this,Hg)[Hg],...Cg(this,$g)[$g],...Cg(this,Wg)[Wg]];try{for(let o=i;o<r.length&&n;o++){const i=r[o],s={...n,step:o};this.setState({currentUploads:{...t,[e]:s}}),await i(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw Cg(this,tb)[tb](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const i=n.fileIDs.map((e=>this.getFile(e))),r=i.filter((e=>!e.error)),o=i.filter((e=>e.error));await this.addResultData(e,{successful:r,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),Cg(this,tb)[tb](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}ib.VERSION="2.3.1";var mb,gb,bb,vb,yb,xb,wb,_b=ib,kb={},Eb={},Cb=[],Mb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ob(e,t){for(var n in t)e[n]=t[n];return e}function Db(e){var t=e.parentNode;t&&t.removeChild(e)}function Tb(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?mb.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Sb(e,s,i,r,null)}function Sb(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++bb:r};return null==r&&null!=gb.vnode&&gb.vnode(o),o}function Nb(e){return e.children}function Ab(e,t){this.props=e,this.context=t}function jb(e,t){if(null==t)return e.__?jb(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?jb(e):null}function Lb(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Lb(e)}}function zb(e){(!e.__d&&(e.__d=!0)&&yb.push(e)&&!Ib.__r++||xb!==gb.debounceRendering)&&((xb=gb.debounceRendering)||setTimeout)(Ib)}function Ib(){for(var e;Ib.__r=yb.length;)e=yb.sort((function(e,t){return e.__v.__b-t.__v.__b})),yb=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=Ob({},r)).__v=r.__v+1,Wb(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?jb(r):o,r.__h),qb(n,r),r.__e!=o&&Lb(r)))}))}function Rb(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,b=i&&i.__k||Cb,v=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Sb(null,h,null,null,h):Array.isArray(h)?Sb(Nb,{children:h},null,null,null):h.__b>0?Sb(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=b[u])||d&&h.key==d.key&&h.type===d.type)b[u]=void 0;else for(p=0;p<v;p++){if((d=b[p])&&h.key==d.key&&h.type===d.type){b[p]=void 0;break}d=null}Wb(e,h,d=d||Eb,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=Fb(h,l,e):l=Bb(e,h,d,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=jb(d))}for(n.__e=m,u=v;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=jb(i,u+1)),Gb(b[u],b[u]));if(g)for(u=0;u<g.length;u++)Kb(g[u],g[++u],g[++u])}function Fb(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?Fb(i,t,n):Bb(n,i,i,r,i.__e,t));return t}function Bb(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function Pb(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Mb.test(t)?n:n+"px"}function Ub(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||Pb(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Pb(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?$b:Hb,o):e.removeEventListener(t,o?$b:Hb,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Hb(e){this.l[e.type+!1](gb.event?gb.event(e):e)}function $b(e){this.l[e.type+!0](gb.event?gb.event(e):e)}function Wb(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,b,v,y,x,w,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=gb.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,b=(c=_.contextType)&&i[c.__c],v=c?b?b.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(g,v):(t.__c=u=new Ab(g,v),u.constructor=_,u.render=Yb),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=v,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=Ob({},u.__s)),Ob(u.__s,_.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,v),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}if(u.context=v,u.props=g,u.__v=t,u.__P=e,y=gb.__r,x=0,"prototype"in _&&_.prototype.render)u.state=u.__s,u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context);else do{u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(i=Ob(Ob({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),w=null!=c&&c.type===Nb&&null==c.key?c.props.children:c,Rb(e,Array.isArray(w)?w:[w],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vb(n.__e,t,n,i,r,o,s,l);(c=gb.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),gb.__e(e,t,n)}}function qb(e,t){gb.__c&&gb.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){gb.__e(e,t.__v)}}))}function Vb(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&mb.call(e.childNodes),c=(p=n.props||Eb).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||Ub(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||Ub(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,Rb(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&jb(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&Db(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==p.value)&&Ub(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&Ub(e,"checked",f,p.checked,!1))}return e}function Kb(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){gb.__e(e,n)}}function Gb(e,t,n){var i,r;if(gb.unmount&&gb.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Kb(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){gb.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Gb(i[r],t,"function"!=typeof e.type);n||null==e.__e||Db(e.__e),e.__=e.__e=e.__d=void 0}function Yb(e,t,n){return this.constructor(e,n)}function Qb(e,t,n){var i,r,o;gb.__&&gb.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Wb(t,e=(!i&&n||t).__k=Tb(Nb,null,[e]),r||Eb,Eb,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?mb.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),qb(o,e)}mb=Cb.slice,gb={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},bb=0,vb=function(e){return null!=e&&void 0===e.constructor},Ab.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ob({},this.state),"function"==typeof e&&(e=e(Ob({},n),this.props)),e&&Ob(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),zb(this))},Ab.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),zb(this))},Ab.prototype.render=Nb,yb=[],Ib.__r=0,wb=0,kb.Component=Ab,kb.Fragment=Nb,kb.cloneElement=function(e,t,n){var i,r,o,s=Ob({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?mb.call(arguments,2):n),Sb(e.type,s,i||e.key,r||e.ref,null)},kb.createContext=function(e,t){var n={__c:t="__cC"+wb++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(zb)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},kb.createElement=Tb,kb.createRef=function(){return{current:null}},kb.h=Tb,kb.hydrate=function e(t,n){Qb(t,n,e)},kb.isValidElement=vb,kb.options=gb,kb.render=Qb,kb.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n};var Zb=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE};const Jb=Zb;var Xb=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):Jb(e)?e:null};var ev=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};const tv=$m;var nv=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new tv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}},iv=kb;function rv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ov=0;function sv(e){return"__private_"+ov+++"_"+e}const av=Xb,lv=ev,cv=nv;var uv=sv("updateUI");class pv extends cv{constructor(){super(...arguments),Object.defineProperty(this,uv,{writable:!0,value:void 0})}mount(e,t){const n=t.id,i=av(e);if(i){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),rv(this,uv)[uv]=function(e){let t=null,n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=r,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,iv.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,iv.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||lv(t)||"ltr",this.onMount(),this.el}let r;if("object"==typeof e&&e instanceof pv)r=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(r=e)}))}if(r)return this.uppy.log(`Installing ${n} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. "+"Please check that you're not specifying a React Component instead of a plugin. "+"If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: "+"run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. "+"Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. "+"(see https://github.com/transloadit/uppy/issues/1042)\n\n"+"If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=rv(this,uv))[uv])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var dv=pv;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=ym;e.exports=_b;const i=dv;t.UIPlugin=i;const r=nv;t.BasePlugin=r;const o=_b;t.Uppy=o;const s=dv,a=nv;o.Uppy=o,o.UIPlugin=s,o.BasePlugin=a,o.debugLogger=n.debugLogger}(vm,vm.exports);var hv=jc(vm.exports),fv={exports:{}},mv={},gv=Array.from,bv=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];var vv=function(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e};Object.defineProperty(mv,"__esModule",{value:!0}),mv.forInline=function(e,t,n){null===t||kv(e,t,n)},mv.forModal=kv;const yv=gv,xv=bv,wv=vv;function _v(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function kv(e,t,n){const i=wv(n,t),r=yv(i.querySelectorAll(xv)),o=r.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(i)?_v(e,r):e.shiftKey&&0===o?function(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,r):e.shiftKey||o!==r.length-1||_v(e,r)}var Ev={exports:{}};var Cv=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)};var Mv=function(e){return e.bytesTotal-e.bytesUploaded},Ov={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},Dv={};const Tv=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}};var Sv=function(e){const t=Tv(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`};Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.CancelBtn=function(e){const{i18n:t,uppy:n}=e;return(0,Nv.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,Nv.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Nv.h)("g",{fill:"none",fillRule:"evenodd"},(0,Nv.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Nv.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},Dv.DoneBtn=function(e){const{i18n:t,doneButtonHandler:n}=e;return(0,Nv.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))},Dv.LoadingSpinner=Fv,Dv.PauseResumeButton=function(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:o}=e,s=n(t?"resume":"pause");return(0,Nv.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:r?t?o.resumeAll():o.pauseAll():o.cancelAll()},"data-uppy-super-focusable":!0},(0,Nv.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Nv.h)("g",{fill:"none",fillRule:"evenodd"},(0,Nv.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Nv.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},Dv.ProgressBarComplete=function(e){const{i18n:t}=e;return(0,Nv.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,Nv.h)("div",{className:"uppy-StatusBar-status"},(0,Nv.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,Nv.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,Nv.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},Dv.ProgressBarError=function(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;return(0,Nv.h)("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},(0,Nv.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Nv.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,Nv.h)("div",{className:"uppy-StatusBar-status"},(0,Nv.h)("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),(0,Nv.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${n("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),(0,Nv.h)(Pv,{i18n:n,complete:i,numUploads:r})))},Dv.ProgressBarProcessing=function(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,o=Math.round(100*n),s=`·`;return(0,Nv.h)("div",{className:"uppy-StatusBar-content"},(0,Nv.h)(Fv,null),"determinate"===i?`${o}% ${s} `:"",r)},Dv.ProgressBarUploading=function(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:o,isAllComplete:s,isAllPaused:a,newFiles:l,numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,startUpload:f}=e,m=l&&o;if(!o||s)return null;const g=t(a?"paused":"uploading");return(0,Nv.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},a?null:(0,Nv.h)(Fv,null),(0,Nv.h)("div",{className:"uppy-StatusBar-status"},(0,Nv.h)("div",{className:"uppy-StatusBar-statusPrimary"},n?`${g}: ${i}%`:g),a||m||!r?null:n?(0,Nv.h)(Hv,{numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,i18n:t}):(0,Nv.h)(Pv,{i18n:t,complete:u,numUploads:c}),m?(0,Nv.h)(Uv,{i18n:t,newFiles:l,startUpload:f}):null))},Dv.ProgressDetails=Bv,Dv.RetryBtn=function(e){const{i18n:t,uppy:n}=e;return(0,Nv.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll(),"data-uppy-super-focusable":!0},(0,Nv.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,Nv.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},Dv.UploadBtn=function(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:o,isSomeGhost:s,startUpload:a}=e,l=Av("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===zv.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=r(t&&n&&!i?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,Nv.h)("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:a,disabled:s,"data-uppy-super-focusable":!0},c)};var Nv=kb;const Av=Ic.exports,jv=Dm,Lv=Sv,zv=Ov,Iv=`·`,Rv=()=>` ${Iv} `;function Fv(){return(0,Nv.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,Nv.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function Bv(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:o,i18n:s}=e,a=t>1;return(0,Nv.h)("div",{className:"uppy-StatusBar-statusSecondary"},a&&s("filesUploadedOfTotal",{complete:n,smart_count:t}),(0,Nv.h)("span",{className:"uppy-StatusBar-additionalInfo"},a&&Rv(),s("dataUploadedOfTotal",{complete:jv(i),total:jv(r)}),Rv(),s("xTimeLeft",{time:Lv(o)})))}function Pv(e){const{i18n:t,complete:n,numUploads:i}=e;return(0,Nv.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function Uv(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=Av("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,Nv.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,Nv.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),(0,Nv.h)("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}const Hv=lg(Bv,500,{leading:!0,trailing:!0});var $v=function(e){const t=[];let n,i;for(const{progress:r}of Object.values(e)){const{preprocess:e,postprocess:o}=r;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,n)=>e+n/t.length),0)}},Wv=kb,qv=Dv;const Vv=Ic.exports,Kv=Ov,Gv=$v,{STATE_ERROR:Yv,STATE_WAITING:Qv,STATE_PREPROCESSING:Zv,STATE_UPLOADING:Jv,STATE_POSTPROCESSING:Xv,STATE_COMPLETE:ey}=Kv;var ty=function(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:o,error:s,hideUploadButton:a,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:u,recoveredState:p,uploadState:d,totalProgress:h,files:f,supportsUploadProgress:m,hideAfterFinish:g,isSomeGhost:b,doneButtonHandler:v,isUploadStarted:y,i18n:x,startUpload:w,uppy:_,isAllComplete:k,showProgressDetails:E,numUploads:C,complete:M,totalSize:O,totalETA:D,totalUploadedSize:T}=e,S=function(){switch(d){case Xv:case Zv:{const e=Gv(f);return"determinate"===e.mode?100*e.value:h}case Yv:return null;case Jv:return m?h:null;default:return h}}(),N=function(){if(p)return!1;switch(d){case Qv:return a||0===t;case ey:return g;default:return!1}}(),A=null!=S?S:100,j=!s&&t&&!i&&!r&&n&&!a,L=!c&&d!==Qv&&d!==ey,z=o&&!l&&d===Jv,I=s&&!k&&!u,R=v&&d===ey,F=Vv("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case Xv:case Zv:{const{mode:e}=Gv(f);return"indeterminate"===e}case Jv:return!m;default:return!1}}()}),B=Vv("uppy-StatusBar",`is-${d}`,{"has-ghosts":b});return(0,Wv.h)("div",{className:B,"aria-hidden":N},(0,Wv.h)("div",{className:F,style:{width:`${A}%`},role:"progressbar","aria-label":`${A}%`,"aria-valuetext":`${A}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":S}),(()=>{switch(d){case Zv:case Xv:return(0,Wv.h)(qv.ProgressBarProcessing,{progress:Gv(f)});case ey:return(0,Wv.h)(qv.ProgressBarComplete,{i18n:x});case Yv:return(0,Wv.h)(qv.ProgressBarError,{error:s,i18n:x,numUploads:C,complete:M});case Jv:return(0,Wv.h)(qv.ProgressBarUploading,{i18n:x,supportsUploadProgress:m,totalProgress:h,showProgressDetails:E,isUploadStarted:y,isAllComplete:k,isAllPaused:r,newFiles:t,numUploads:C,complete:M,totalUploadedSize:T,totalSize:O,totalETA:D,startUpload:w});default:return null}})(),(0,Wv.h)("div",{className:"uppy-StatusBar-actions"},p||j?(0,Wv.h)(qv.UploadBtn,{newFiles:t,isUploadStarted:y,recoveredState:p,i18n:x,isSomeGhost:b,startUpload:w,uploadState:d}):null,I?(0,Wv.h)(qv.RetryBtn,{i18n:x,uppy:_}):null,z?(0,Wv.h)(qv.PauseResumeButton,{isAllPaused:r,i18n:x,isAllComplete:k,resumableUploads:o,uppy:_}):null,L?(0,Wv.h)(qv.CancelBtn,{i18n:x,uppy:_}):null,R?(0,Wv.h)(qv.DoneBtn,{i18n:x,doneButtonHandler:v}):null))},ny=vm.exports;const iy=Cv,ry=Mv,oy=ev,sy=Ov,ay=ty,ly={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function cy(e){const t=function(e){let t=0;return e.forEach((e=>{t+=iy(e.progress)})),t}(e);if(0===t)return 0;const n=e.reduce(((e,t)=>e+ry(t.progress)),0);return Math.round(n/t*10)/10}function uy(e,t,n,i){if(e&&!t)return sy.STATE_ERROR;if(t)return sy.STATE_COMPLETE;if(n)return sy.STATE_WAITING;let r=sy.STATE_WAITING;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return sy.STATE_UPLOADING;t.preprocess&&r!==sy.STATE_UPLOADING&&(r=sy.STATE_PREPROCESSING),t.postprocess&&r!==sy.STATE_UPLOADING&&r!==sy.STATE_PREPROCESSING&&(r=sy.STATE_POSTPROCESSING)}return r}class py extends ny.UIPlugin{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=ly;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:n,allowNewUpload:i,totalProgress:r,error:o,recoveredState:s}=e,{newFiles:a,startedFiles:l,completeFiles:c,inProgressNotPausedFiles:u,isUploadStarted:p,isAllComplete:d,isAllErrored:h,isAllPaused:f,isUploadInProgress:m,isSomeGhost:g}=this.uppy.getObjectOfFilesPerState(),b=s?Object.values(n):a,v=cy(u),y=!!t.resumableUploads,x=!1!==t.uploadProgress;let w=0,_=0;return l.forEach((e=>{w+=e.progress.bytesTotal||0,_+=e.progress.bytesUploaded||0})),ay({error:o,uploadState:uy(o,d,s,e.files||{}),allowNewUpload:i,totalProgress:r,totalSize:w,totalUploadedSize:_,isAllComplete:!1,isAllPaused:f,isAllErrored:h,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:g,recoveredState:s,complete:c.length,newFiles:b.length,numUploads:l.length,totalETA:v,files:n,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:y,supportsUploadProgress:x,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;oy(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}py.VERSION="2.2.2",Ev.exports=py;var dy={exports:{}},hy=kb;const fy=300;class my extends hy.Component{constructor(){super(...arguments),this.ref=(0,hy.createRef)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,fy)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,fy)}render(){const{children:e}=this.props;return(0,hy.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}var gy=my,by=kb;function vy(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=n=>{e.refs[t]=n})}function yy(e){const t={};for(let o=0;o<e.length;o++)if(null!=e[o]){t[(n=e[o],i=o.toString(36),r=void 0,null!=(r=null==n?void 0:n.key)?r:i)]=e[o]}var n,i,r;return t}function xy(e,t){e=e||{},t=t||{};const n=n=>t.hasOwnProperty(n)?t[n]:e[n],i={};let r=[];for(const n in e)t.hasOwnProperty(n)?r.length&&(i[n]=r,r=[]):r.push(n);const o={};for(const e in t){if(i.hasOwnProperty(e))for(let t=0;t<i[e].length;t++){const r=i[e][t];o[i[e][t]]=n(r)}o[e]=n(e)}for(let e=0;e<r.length;e++)o[r[e]]=n(r[e]);return o}class wy extends by.Component{constructor(e,t){super(e,t),this.refs={},this.state={children:yy((0,by.toChildArray)((0,by.toChildArray)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=yy((0,by.toChildArray)(e.children)||[]),n=this.state.children;let i;for(i in this.setState((e=>({children:xy(e.children,t)}))),t)if(t.hasOwnProperty(i)){const e=n&&n.hasOwnProperty(i);t[i]&&e&&this.currentlyTransitioningKeys[i]?(this.keysToEnter.push(i),this.keysToAbortLeave.push(i)):!t[i]||e||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(i in n)if(n.hasOwnProperty(i)){const e=t&&t.hasOwnProperty(i);!n[i]||e||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=yy((0,by.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=yy((0,by.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const n=yy((0,by.toChildArray)(this.props.children)||[]);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{const t=(i={},r=this.state.children,Object.assign(i,r));delete t[e],this.setState({children:t})}var i,r}render(e,t){let{childFactory:n,transitionLeave:i,transitionName:r,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:a,transitionEnterTimeout:l,transitionAppearTimeout:c,component:u,...p}=e,{children:d}=t;const h=[];for(const e in d)if(d.hasOwnProperty(e)){const t=d[e];if(t){const i=vy(this,e),r=(0,by.cloneElement)(n(t),{ref:i,key:e});h.push(r)}}return(0,by.h)(u,p,h)}}wy.defaultProps={component:"span",childFactory:e=>e};var _y=kb,ky=vm.exports;const Ey=gy,Cy=wy;class My extends ky.UIPlugin{constructor(e,t){super(e,t),this.render=e=>(0,_y.h)("div",{className:"uppy uppy-Informer"},(0,_y.h)(Cy,null,e.info.map((e=>(0,_y.h)(Ey,{key:e.message},(0,_y.h)("p",{role:"alert"},e.message," ",e.details&&(0,_y.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}My.VERSION="2.1.1",dy.exports=My;var Oy={exports:{}};!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n="undefined"!=typeof self?self:Ac;const i="undefined"!=typeof navigator,r=i&&"undefined"==typeof HTMLImageElement,o=!(void 0===Ac||"undefined"==typeof process||!process.versions||!process.versions.node),s=n.Buffer,a=!!s,l=e=>void 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(l).length)}function u(e){let t=new Error(e);throw delete t.stack,t}function p(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const d=e=>String.fromCharCode.apply(null,e),h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class f{static from(e,t){return e instanceof this&&e.le===t?e:new f(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof f){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&u("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else u("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=f){return e instanceof DataView||e instanceof f?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||u("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new f(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return n=this.getUint8Array(e,t),h?h.decode(n):a?Buffer.from(n).toString("utf8"):decodeURIComponent(escape(d(n)));var n}getLatin1String(e=0,t=this.byteLength){let n=this.getUint8Array(e,t);return d(n)}getUnicodeString(e=0,t=this.byteLength){const n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return d(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function m(e,t){u(`${e} '${t}' was not loaded, try using full build of exifr.`)}class g extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||m(this.kind,e),t&&(e in t||function(e,t){u(`Unknown ${e} '${t}'.`)}(this.kind,e),t[e].enabled||m(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var b=new g("file parser"),v=new g("segment parser"),y=new g("file reader");let x=n.fetch;const w="Invalid input argument";function _(e,t){return(n=e).startsWith("data:")||n.length>1e4?E(e,t,"base64"):o&&e.includes("://")?k(e,t,"url",C):o?E(e,t,"fs"):i?k(e,t,"url",C):void u(w);var n}async function k(e,t,n,i){return y.has(n)?E(e,t,n):i?async function(e,t){let n=await t(e);return new f(n)}(e,i):void u(`Parser ${n} is not loaded`)}async function E(e,t,n){let i=new(y.get(n))(e,t);return await i.read(),i}const C=e=>x(e).then((e=>e.arrayBuffer())),M=e=>new Promise(((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}));class O extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function D(e,t,n){let i=new O;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function T(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}const S=new Map,N=new Map,A=new Map,j=37500,L=37510,z=33723,I=34675,R=34665,F=34853,B=40965,P=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],U=["jfif","xmp","icc","iptc","ihdr"],H=["tiff",...U],$=["ifd0","ifd1","exif","gps","interop"],W=[...H,...$],q=["makerNote","userComment"],V=["translateKeys","translateValues","reviveValues","multiSegment"],K=[...V,"sanitize","mergeOutput","silentErrors"];class G{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Y extends G{get needed(){return this.enabled||this.deps.size>0}constructor(e,n,i,r){if(super(),t(this,"enabled",!1),t(this,"skip",new Set),t(this,"pick",new Set),t(this,"deps",new Set),t(this,"translateKeys",!1),t(this,"translateValues",!1),t(this,"reviveValues",!1),this.key=e,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=$.includes(e),this.canBeFiltered&&(this.dict=S.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:u(`Invalid options argument: ${i}`)}applyInheritables(e){let t,n;for(t of V)n=e[t],void 0!==n&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(i=o.indexOf(n),-1===i&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,te(this.pick,this.deps)):this.enabled&&this.pick.size>0&&te(this.pick,this.deps)}}var Q={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Z=new Map;class J extends G{static useCached(e){let t=Z.get(e);return void 0!==t||(t=new this(e),Z.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):u(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=i?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of P)this[e]=Q[e];for(e of K)this[e]=Q[e];for(e of q)this[e]=Q[e];for(e of W)this[e]=new Y(e,Q[e],void 0,this)}setupFromTrue(){let e;for(e of P)this[e]=Q[e];for(e of K)this[e]=Q[e];for(e of q)this[e]=!0;for(e of W)this[e]=new Y(e,!0,void 0,this)}setupFromArray(e){let t;for(t of P)this[t]=Q[t];for(t of K)this[t]=Q[t];for(t of q)this[t]=Q[t];for(t of W)this[t]=new Y(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,$)}setupFromObject(e){let t;for(t of($.ifd0=$.ifd0||$.image,$.ifd1=$.ifd1||$.thumbnail,Object.assign(this,e),P))this[t]=ee(e[t],Q[t]);for(t of K)this[t]=ee(e[t],Q[t]);for(t of q)this[t]=ee(e[t],Q[t]);for(t of H)this[t]=new Y(t,Q[t],e[t],this);for(t of $)this[t]=new Y(t,Q[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,$,W),!0===e.tiff?this.batchEnableWithBool($,!0):!1===e.tiff?this.batchEnableWithUserValue($,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,$):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,$)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;let t=X(e,n);for(let[e,n]of t)te(this[e].pick,n),this[e].enabled=!0}else if(t&&t.length){let e=X(t,n);for(let[t,n]of e)te(this[t].skip,n)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(j):t.skip.add(j),this.userComment?t.deps.add(L):t.skip.add(L),n.enabled||e.skip.add(700),i.enabled||e.skip.add(z),r.enabled||e.skip.add(I)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;i.needed&&(t.deps.add(B),e.deps.add(B)),t.needed&&e.deps.add(R),n.needed&&e.deps.add(F),this.tiff.enabled=$.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of $)this[e].finalizeFilters()}get onlyTiff(){return!U.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of H)this[e].enabled&&!v.has(e)&&m("segment parser",e)}}function X(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=S.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function ee(e,t){return void 0!==e?e:void 0!==t?t:void 0}function te(e,t){for(let n of t)e.add(n)}t(J,"default",Q);class ne{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=J.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?_(e,t):i&&!r&&e instanceof HTMLImageElement?_(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new f(e):i&&e instanceof Blob?k(e,t,"blob",M):void u(w)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of b)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),u("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),c(n=e)?void 0:n;var n}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let n=await t.parse();t.assignToOutput(e,n)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,n=v.get("tiff",e);var i;if(t.tiff?i={start:0,type:"tiff"}:t.jpeg&&(i=await this.fileParser.getOrFindSegment("tiff")),void 0===i)return;let r=await this.fileParser.ensureSegmentChunk(i),o=this.parsers.tiff=new n(r,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function ie(e,t){let n=new ne(t);return await n.read(e),n.parse()}var re=Object.freeze({__proto__:null,parse:ie,Exifr:ne,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:D,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:P,otherSegments:U,segments:H,tiffBlocks:$,segmentsAndBlocks:W,tiffExtractables:q,inheritables:V,allFormatters:K,Options:J});class oe{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new J({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof f?e:new f(e)}constructor(e,n={},i){t(this,"errors",[]),t(this,"raw",new Map),t(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=A.get(t),i=N.get(t),r=S.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,c={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),c[t]=o;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}function se(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function ae(e){return e>=224&&e<=239}function le(e,t,n){for(let[i,r]of v)if(r.canHandle(e,t,n))return i}t(oe,"headerLength",4),t(oe,"type",void 0),t(oe,"multiSegment",!1),t(oe,"canHandle",(()=>!1));class ce extends class{constructor(e,n,i){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){u(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):u("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=n,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(v.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(...e){super(...e),t(this,"appSegments",[]),t(this,"jpegSegments",[]),t(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(v.keyList())):(e=void 0===e?v.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&v.has(e))),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(e=0,t){this.setupSegmentFinderArgs(t);let{file:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some((e=>{let t=v.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment})),i&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:c,wanted:u,remaining:p,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(n=l.getUint8(e+1),ae(n)){if(i=l.getUint16(e+2),r=le(l,e,i),r&&u.has(r)&&(o=v.get(r),s=o.findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!c&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(r)):p.delete(r),0===p.size)))break;d.recordUnknownSegments&&(s=oe.findPosition(l,e),s.marker=n,this.unknownSegments.push(s)),e+=i+1}else if(se(n)){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)n=e[s],i=n[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map((([e,t])=>{let n=v.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}t(ce,"type","jpeg"),b.set("jpeg",ce);const ue=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class pe extends oe{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t];i=new Set(i);let o=i.size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=ue[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&u(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&u(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return""===(a=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(a=i.getString(e,o)).trim())?void 0:a;var a;if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o),n=s;for(let i=0;i<o;i++)t[i]=this.parseTagValue(r,e),e+=n;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:u(`Invalid tiff type ${e}`)}}}class de extends pe{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&u("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&u(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,p(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(R),this.interopOffset=t.get(B),this.gpsOffset=t.get(F),this.xmp=t.get(700),this.iptc=t.get(z),this.icc=t.get(I),this.options.sanitize&&(t.delete(R),t.delete(B),t.delete(F),t.delete(700),t.delete(z),t.delete(I)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,p(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(B)),this.makerNote=e.get(j),this.userComment=e.get(L),this.options.sanitize&&(e.delete(B),e.delete(j),e.delete(L)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",he(...e.get(2),e.get(1))),e.set("longitude",he(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of $)if(e=this[t],!c(e))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function he(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}t(de,"type","tiff"),t(de,"headerLength",10),v.set("tiff",de);var fe=Object.freeze({__proto__:null,default:re,Exifr:ne,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:D,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:P,otherSegments:U,segments:H,tiffBlocks:$,segmentsAndBlocks:W,tiffExtractables:q,inheritables:V,allFormatters:K,Options:J,parse:ie});const me={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},ge=Object.assign({},me,{firstChunkSize:4e4,gps:[1,2,3,4]}),be=Object.assign({},me,{tiff:!1,ifd1:!0,mergeOutput:!1}),ve=Object.assign({},me,{firstChunkSize:4e4,ifd0:[274]});async function ye(e){let t=new ne(ve);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const xe=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){let t=navigator.userAgent;if(t.includes("iPad")||t.includes("iPhone")){let n=t.match(/OS (\d+)_(\d+)/);if(n){let[,t,i]=n,r=Number(t)+.1*Number(i);e.rotateCanvas=r<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,n]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<15}if(t.includes("Chrome/")){let[,n]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<81}else if(t.includes("Firefox/")){let[,n]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<77}}class we extends f{constructor(...e){super(...e),t(this,"ranges",new _e),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t;t=a?s.allocUnsafe(e):new Uint8Array(e);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class _e{constructor(){t(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter((t=>ke(e,t.offset,i)||ke(e,t.end,i)));if(r.length>0){e=Math.min(e,...r.map((e=>e.offset))),i=Math.max(i,...r.map((e=>e.end))),t=i-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((e=>!r.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some((t=>t.offset<=e&&n<=t.end))}}function ke(e,t,n){return e<=t&&t<=n}class Ee extends we{constructor(e,n){super(0),t(this,"chunksRead",0),this.input=e,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}y.set("blob",class extends Ee{async readWhole(){this.chunked=!1;let e=await M(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await M(i);return this.set(r,e,!0)}}),e.Exifr=ne,e.Options=J,e.allFormatters=K,e.chunkedProps=P,e.createDictionary=D,e.default=fe,e.extendDictionary=T,e.fetchUrlAsArrayBuffer=C,e.fileParsers=b,e.fileReaders=y,e.gps=async function(e){let t=new ne(ge);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}},e.gpsOnlyOptions=ge,e.inheritables=V,e.orientation=ye,e.orientationOnlyOptions=ve,e.otherSegments=U,e.parse=ie,e.readBlobAsArrayBuffer=M,e.rotation=async function(t){let n=await ye(t);return Object.assign({canvas:e.rotateCanvas,css:e.rotateCss},xe[n])},e.rotations=xe,e.segmentParsers=v,e.segments=H,e.segmentsAndBlocks=W,e.tagKeys=S,e.tagRevivers=A,e.tagValues=N,e.thumbnail=async function(e){let t=new ne(be);await t.read(e);let n=await t.extractThumbnail();return n&&a?s.from(n):n},e.thumbnailOnlyOptions=be,e.thumbnailUrl=async function(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}},e.tiffBlocks=$,e.tiffExtractables=q,Object.defineProperty(e,"__esModule",{value:!0})}(Oy.exports);const Dy=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;var Ty=function(e,t,n){var i,r;const o=Dy.exec(e),s=null!=(i=null!=(r=t.mimeType)?r:null==o?void 0:o[1])?i:"plain/text";let a;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);a=[t]}else a=[decodeURIComponent(o[3])];return n?new File(a,t.name||"",{type:s}):new Blob(a,{type:s})};var Sy=vm.exports,Ny=Oy.exports;const Ay=Ty,jy=function(e){return e.startsWith("blob:")},Ly=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)},zy={strings:{generatingThumbnails:"Generating thumbnails..."}};class Iy extends Sy.UIPlugin{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&Ly(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&jy(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!jy(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=zy;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,n){const i=URL.createObjectURL(e.data),r=new Promise(((e,t)=>{const n=new Image;n.src=i,n.addEventListener("load",(()=>{URL.revokeObjectURL(i),e(n)})),n.addEventListener("error",(e=>{URL.revokeObjectURL(i),t(e.error||new Error("Could not create thumbnail"))}))})),o=(0,Ny.rotation)(e.data).catch((()=>1));return Promise.all([r,o]).then((e=>{let[i,r]=e;const o=this.getProportionalDimensions(i,t,n,r.deg),s=this.rotateImage(i,r),a=this.resizeImage(s,o.width,o.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,n,i){let r=e.width/e.height;return 90!==i&&270!==i||(r=e.height/e.width),null!=t?{width:t,height:Math.round(t/r)}:null!=n?{width:Math.round(n*r),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/r)}}resizeImage(e,t,n){let i=this.protect(e),r=Math.ceil(Math.log2(i.width/t));r<1&&(r=1);let o=t*2**(r-1),s=n*2**(r-1);const a=2;for(;r--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),i=e,o=Math.round(o/a),s=Math.round(s/a)}return i}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return Ly(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}Iy.VERSION="2.2.2";var Ry=Iy;Iy.prototype.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((i=>{e.toBlob(i,t,n)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>Ay(e.toDataURL(t,n),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))},Iy.prototype.protect=function(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),o=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,o=Math.round(r/t)),o>i&&(o=i,r=Math.round(t*o)),e.width>r){const t=document.createElement("canvas");return t.width=r,t.height=o,t.getContext("2d").drawImage(e,0,0,r,o),t}return e},Iy.prototype.rotateImage=function(e,t){let n=e.width,i=e.height;90!==t.deg&&270!==t.deg||(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const o=r.getContext("2d");return o.translate(n/2,i/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r};const Fy=Zb;var By=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&Fy(e)?[e]:null};var Py=function e(t,n,i,r){let{onSuccess:o}=r;t.readEntries((r=>{const s=[...n,...r];r.length?queueMicrotask((()=>{e(t,s,i,{onSuccess:o})})):o(s)}),(e=>{i(e),o(n)}))};const Uy=Py;function Hy(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),i=await new Promise((e=>{Uy(n,[],t,{onSuccess:n=>e(n.map((e=>Hy(e,t))))})}));yield*i}}}async function*$y(e,t){if("file"===e.kind){const n=await e.getFile();null!==n&&(n.relativePath=t?`${t}/${e.name}`:null,yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*$y(n,`${t}/${e.name}`)}const Wy=gv;const qy=async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{var n;return{lastResortFile:e.getAsFile(),entry:null!=(n=await(null==e.getAsFileSystemHandle?void 0:e.getAsFileSystemHandle()))?n:Hy(e.webkitGetAsEntry(),t)}})));for(const{lastResortFile:e,entry:i}of n)if(null!=i)try{yield*$y(i,"")}catch(n){e?yield e:t(n)}},Vy=function(e){const t=Wy(e.files);return Promise.resolve(t)};var Ky=async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const i of qy(e,n))t.push(i);return t}catch{return Vy(e)}},Gy=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yy(e,t){return e===t||!(!Gy(e)||!Gy(t))}function Qy(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Yy(e[n],t[n]))return!1;return!0}var Zy=Object.freeze({__proto__:null,default:function(e,t){var n;void 0===t&&(t=Qy);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}}}),Jy=Lc(Zy),Xy="Expected a function",ex=0/0,tx="[object Symbol]",nx=/^\s+|\s+$/g,ix=/^[-+]0x[0-9a-f]+$/i,rx=/^0b[01]+$/i,ox=/^0o[0-7]+$/i,sx=parseInt,ax="object"==typeof Ac&&Ac&&Ac.Object===Object&&Ac,lx="object"==typeof self&&self&&self.Object===Object&&self,cx=ax||lx||Function("return this")(),ux=Object.prototype.toString,px=Math.max,dx=Math.min,hx=function(){return cx.Date.now()};function fx(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function mx(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&ux.call(e)==tx}(e))return ex;if(fx(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fx(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(nx,"");var n=rx.test(e);return n||ox.test(e)?sx(e.slice(2),n?2:8):ix.test(e)?ex:+e}var gx=function(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Xy);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=hx();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?dx(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=hx(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=mx(t)||0,fx(n)&&(u=!!n.leading,o=(p="maxWait"in n)?px(mx(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(hx())},v};const bx=gx,vx=bv,yx=vv;var xx=function(){let e=!1;return bx(((t,n)=>{const i=yx(t,n),r=i.contains(document.activeElement);if(r&&e)return;const o=i.querySelector("[data-uppy-super-focusable]");if(!r||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=i.querySelector(vx);null==t||t.focus({preventScroll:!0}),e=!1}}),260)};var wx=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)},_x=kb;var kx=function(e){const t={color:"#838999",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,_x.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,_x.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return"text"===n?{color:"#5a5e69",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}:"image"===n?{color:"#686de0",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,_x.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,_x.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,_x.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===n?{color:"#068dbb",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}:"video"===n?{color:"#19af67",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}:"application"===n&&"pdf"===i?{color:"#e25149",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}:"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)?{color:"#00C469",icon:(0,_x.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,_x.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t},Ex=kb;const Cx=kx;var Mx=function(e){const{file:t}=e;if(t.preview)return(0,Ex.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=Cx(t.type);return(0,Ex.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,Ex.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),(0,Ex.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,Ex.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))},Ox=kb;var Dx=function(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>((e,t)=>{const n=t.filter((t=>t.id===e));return n[0].name})(e,r))).join(", ");return(0,Ox.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,Ox.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))},Tx=kb;const Sx=Mx,Nx=Dx,Ax=kx;var jx=kb;function Lx(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function zx(e){return(0,jx.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,jx.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":Lx(e),title:Lx(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function Ix(e){let{children:t}=e;return(0,jx.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function Rx(e){let{progress:t}=e;const n=2*Math.PI*15;return(0,jx.h)("g",null,(0,jx.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,jx.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}const Fx="...";var Bx=kb;const Px=Dm,Ux=function(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=Fx.length+1)return`${e.slice(0,t-1)}…`;const n=t-Fx.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+Fx+e.slice(-r)},Hx=Dx,$x=e=>{let{file:t,onClick:n}=e;return t.error?(0,Bx.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};var Wx=kb;const qx=function(e,t){return t||(t="Copy the URL below"),new Promise((n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch(e){return document.body.removeChild(i),r()}}))};function Vx(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:o,onClick:s}=e;return!n&&i&&i.length>0||!n&&r(t)?(0,Wx.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,Wx.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,Wx.h)("g",{fillRule:"evenodd"},(0,Wx.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,Wx.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,Wx.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function Kx(e){let{i18n:t,onClick:n,file:i}=e;return(0,Wx.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},(0,Wx.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,Wx.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,Wx.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function Gx(e){const{i18n:t}=e;return(0,Wx.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{qx(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},(0,Wx.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,Wx.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}var Yx=function(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:a,i18n:l,toggleFileCard:c,openFileEditor:u}=e;return(0,Wx.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,Wx.h)(Vx,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,n.id):u(n)}}),s&&n.uploadURL?(0,Wx.h)(Gx,{file:n,uppy:t,i18n:l}):null,a?(0,Wx.h)(Kx,{i18n:l,file:n,uppy:t,onClick:()=>e.uppy.removeFile(n.id,"removed-by-user")}):null)},Qx=kb;const Zx=Ic.exports,Jx=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0},Xx=function(e){return(0,Tx.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:Ax(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&(0,Tx.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},(0,Tx.h)("span",{hidden:!0},e.file.meta.name)),(0,Tx.h)(Sx,{file:e.file}),(0,Tx.h)(Nx,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},ew=function(e){return e.file.progress.uploadStarted?e.isUploaded?(0,jx.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,jx.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,jx.h)(Ix,null,(0,jx.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,jx.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,jx.h)(zx,e,(0,jx.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,jx.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,jx.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,jx.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,jx.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,jx.h)(zx,e,(0,jx.h)(Ix,null,(0,jx.h)(Rx,{progress:e.file.progress.percentage}),e.file.isPaused?(0,jx.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,jx.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,jx.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,jx.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,jx.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,jx.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,jx.h)(Ix,null,(0,jx.h)(Rx,{progress:e.file.progress.percentage})))):(0,jx.h)(zx,e,(0,jx.h)(Ix,null,(0,jx.h)(Rx,{progress:e.file.progress.percentage}),(0,jx.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null},tw=function(e){const{file:t}=e;return(0,Bx.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,Bx.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:n}=e.file.meta;return(0,Bx.h)("div",{className:"uppy-Dashboard-Item-name",title:n},Ux(n,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,Bx.h)($x,{file:e.file,onClick:()=>alert(e.file.error)})),(0,Bx.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:n}=e.file.remote,i=`·`;return t?(0,Bx.h)("div",{className:"uppy-Dashboard-Item-author"},(0,Bx.h)("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},Ux(t.name,13)),n?(0,Bx.h)(Bx.Fragment,null,` ${i} `,n,` ${i} `):null):null})(e),(e=>e.file.size&&(0,Bx.h)("div",{className:"uppy-Dashboard-Item-statusSize"},Px(e.file.size)))(e),(e=>e.file.isGhost&&(0,Bx.h)("span",null," • ",(0,Bx.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,Bx.h)(Hx,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},nw=Yx;class iw extends Qx.Component{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!Jx(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,i=e.progress.uploadStarted||t,r=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let a=(this.props.individualCancellation||!r)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(a=!0);const l=Zx({"uppy-Dashboard-Item":!0,"is-inprogress":r&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,Qx.h)("div",{className:l,id:`uppy_${e.id}`,role:this.props.role},(0,Qx.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,Qx.h)(Xx,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,Qx.h)(ew,{uppy:this.props.uppy,file:e,error:o,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,Qx.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,Qx.h)(tw,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,Qx.h)(nw,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:a,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:i,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}var rw=iw,ow=kb;function sw(){return sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sw.apply(this,arguments)}const aw={position:"relative",width:"100%",minHeight:"100%"},lw={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class cw extends ow.Component{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:n,renderRow:i,overscanCount:r=10,...o}=e;const{offset:s,height:a}=this.state;let l=Math.floor(s/n),c=Math.floor(a/n);r&&(l=Math.max(0,l-l%r),c+=r);const u=l+c+4,p=t.slice(l,u),d={...aw,height:t.length*n},h={...lw,top:l*n};return(0,ow.h)("div",sw({onScroll:this.handleScroll},o),(0,ow.h)("div",{role:"presentation",style:d},(0,ow.h)("div",{role:"presentation",style:h},p.map(i))))}}var uw=kb;function pw(){return pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pw.apply(this,arguments)}const dw=Ic.exports,hw=rw,fw=cw;var mw=kb;let gw;gw=Symbol.for("uppy test: disable unused locale key warning");class bw extends mw.Component{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,mw.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>(0,mw.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,mw.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,mw.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,mw.h)("g",{fill:"none",fillRule:"evenodd"},(0,mw.h)("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),(0,mw.h)("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),(0,mw.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const n=this.props.acquirers.length;return(0,mw.h)("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===n},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),n=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,r=i.charAt(0).toUpperCase()+i.slice(1);return(0,mw.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${r}`,{browseFiles:t,browseFolders:n,browse:t}):this.props.i18nArray(`dropPaste${r}`,{browseFiles:t,browseFolders:n,browse:t}))},this.renderAcquirer=e=>(0,mw.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,mw.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),(0,mw.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const n=[...e],i=n.splice(e.length-2,e.length);return(0,mw.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),n.map((e=>this.renderAcquirer(e))),(0,mw.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))}}[gw](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,mw.h)("span",null,(0,mw.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,mw.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,mw.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,mw.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return(0,mw.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),(0,mw.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,mw.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}var vw=bw,yw=kb;const xw=Ic.exports,ww=vw;var _w=e=>(0,yw.h)("div",{className:xw("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},(0,yw.h)("div",{className:"uppy-DashboardContent-bar"},(0,yw.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,yw.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,yw.h)(ww,e));var kw=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()},Ew=kb;const Cw=Ic.exports,Mw=kw;var Ow=function(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:o,uppy:s}=e;return(0,Ew.h)("div",{className:Cw("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:Mw,onDragLeave:Mw,onDrop:Mw,onPaste:Mw},(0,Ew.h)("div",{className:"uppy-DashboardContent-bar"},(0,Ew.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),(0,Ew.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),(0,Ew.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))},Dw=kb;const Tw=Ic.exports;var Sw=function(e){const t=e.files[e.fileCardFor];return(0,Dw.h)("div",{className:Tw("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,Dw.h)("div",{className:"uppy-DashboardContent-bar"},(0,Dw.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,Dw.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,Dw.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),(0,Dw.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,Dw.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},Nw=kb;const Aw="error",jw="waiting",Lw="preprocessing",zw="uploading",Iw="postprocessing",Rw="complete",Fw="paused";function Bw(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:a,processingFiles:l}=e;const c=function(e,t,n,i){if(void 0===i&&(i={}),e)return Aw;if(t)return Rw;if(n)return Fw;let r=jw;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return zw;t.preprocess&&r!==zw&&(r=Lw),t.postprocess&&r!==zw&&r!==Lw&&(r=Iw)}return r}(r,i,o,t);switch(c){case"uploading":return n("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:a.length});case"complete":return n("uploadComplete")}}var Pw=function(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:a}=e;return a&&r&&(a=e.totalFileCount<e.maxNumberOfFiles),(0,Nw.h)("div",{className:"uppy-DashboardContent-bar"},n||i?(0,Nw.h)("div",null):(0,Nw.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,Nw.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,Nw.h)(Bw,e)),a?(0,Nw.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,Nw.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,Nw.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,Nw.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,Nw.h)("div",null))},Uw=kb,Hw=Mm;const $w=Ic.exports,Ww=kx,qw=kw,Vw=Mx;class Kw extends Uw.Component{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((n=>{let{formState:i}=n;return{formState:{...i,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{const e=this.props.files[this.props.fileCardFor];this.props.uppy.emit("file-editor:cancel",e),this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const n=`uppy-Dashboard-FileCard-input-${e.id}`,i=this.props.requiredMetaFields.includes(e.id);return(0,Uw.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,Uw.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:n},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:i,form:this.form.id},Uw.h):(0,Uw.h)("input",{className:t.text,id:n,form:this.form.id,type:e.type||"text",required:i,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],n=this.getMetaFields()||[],i={};n.forEach((e=>{i[e.id]=t.meta[e.id]||""})),this.state={formState:i},this.form.id=(0,Hw.nanoid)()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return(0,Uw.h)("div",{className:$w("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:qw,onDragLeave:qw,onDrop:qw,onPaste:qw},(0,Uw.h)("div",{className:"uppy-DashboardContent-bar"},(0,Uw.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:(0,Uw.h)("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),(0,Uw.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),(0,Uw.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,Uw.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:Ww(e.type).color}},(0,Uw.h)(Vw,{file:e}),t&&(0,Uw.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),(0,Uw.h)("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),(0,Uw.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,Uw.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),(0,Uw.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}var Gw=Kw,Yw=kb;const Qw=Ic.exports,Zw="uppy-transition-slideDownUp",Jw=250;class Xw extends Yw.Component{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,n=(0,Yw.toChildArray)(e.children)[0];if(t===n)return null;const i={cachedChildren:n};n&&!t&&(i.className=`${Zw}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Zw}-enter ${Zw}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),Jw)}))),t&&!n&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=`${Zw}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Zw}-leave ${Zw}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),Jw)}))),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,Yw.cloneElement)(e,{className:Qw(t,e.props.className)}):null}}var e_=kb;function t_(){return t_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t_.apply(this,arguments)}const n_=Ic.exports,i_=wx,r_=e=>{const t=0===e.totalFileCount,n=dw("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),i=1===e.itemsPerRow?71:200,r={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},o=Object.keys(e.files);e.recoveredState&&o.sort(((t,n)=>e.files[n].isGhost-e.files[t].isGhost));const s=function(e,t){const n=[];let i=[];return e.forEach((e=>{i.length<t?i.push(e):(n.push(i),i=[e])})),i.length&&n.push(i),n}(o,e.itemsPerRow);return(0,uw.h)(fw,{class:n,role:"list",data:s,renderRow:t=>(0,uw.h)("div",{role:"presentation",key:t[0]},t.map((t=>(0,uw.h)(hw,pw({key:t,uppy:e.uppy},r,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:i})},o_=vw,s_=_w,a_=Ow,l_=Sw,c_=Pw,u_=Gw,p_=Xw,d_=900,h_=700,f_=576,m_=400;var g_=kb,b_=vm.exports,v_=Mm,y_=mv;function x_(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var w_=0;function __(e){return"__private_"+w_+++"_"+e}const k_=Ev.exports,E_=dy.exports,C_=Ry,M_=By,O_=gv,D_=Ky,T_=Jy,S_=bv,N_=xx,A_=function(e){const t=0===e.totalFileCount,n=e.containerWidth>f_,i=n_({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>f_,"uppy-size--lg":e.containerWidth>h_,"uppy-size--xl":e.containerWidth>d_,"uppy-size--height-md":e.containerHeight>m_,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let r=1;e.containerWidth>d_?r=5:e.containerWidth>h_?r=4:e.containerWidth>f_&&(r=3);const o=e.showSelectedFiles&&!t,s=e.recoveredState?Object.keys(e.recoveredState.files).length:null,a=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null;return(0,e_.h)("div",{className:i,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&i_(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,e_.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,e_.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,e_.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,e_.h)("span",{"aria-hidden":"true"},"×")),(0,e_.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,e_.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),o&&(0,e_.h)(c_,e),s&&(0,e_.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,e_.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,e_.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,e_.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,e_.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,e_.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,e_.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,e_.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},a>0?e.i18n("recoveredXFiles",{smart_count:a}):e.i18n("recoveredAllFiles"))),o?(0,e_.h)(r_,t_({},e,{itemsPerRow:r})):(0,e_.h)(o_,t_({},e,{isSizeMD:n})),(0,e_.h)(p_,null,e.showAddFilesPanel?(0,e_.h)(s_,t_({key:"AddFiles"},e,{isSizeMD:n})):null),(0,e_.h)(p_,null,e.fileCardFor?(0,e_.h)(u_,t_({key:"FileCard"},e)):null),(0,e_.h)(p_,null,e.activePickerPanel?(0,e_.h)(a_,t_({key:"Picker"},e)):null),(0,e_.h)(p_,null,e.showFileEditor?(0,e_.h)(l_,t_({key:"Editor"},e)):null),(0,e_.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))))},j_={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."}}},L_=T_.default||T_,z_=9,I_=27;function R_(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}function F_(){return(0,g_.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,g_.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var B_=__("openFileEditorWhenFilesAdded"),P_=__("attachRenderFunctionToTarget"),U_=__("isTargetSupported"),H_=__("getAcquirers"),$_=__("getProgressIndicators"),W_=__("getEditors");class q_ extends b_.UIPlugin{constructor(e,t){var n;super(e,t),n=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,n=e.title||t,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"editor"!==i){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const r={id:t,name:n,type:i},o=this.getPluginState().targets.slice();return o.push(r),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),n=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:n,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return x_(this,W_)[W_](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),n=x_(this,W_)[W_](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();x_(this,W_)[W_](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=R_();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:i,isClosing:r}=n.getPluginState();if(i||r)return;const{promise:o,resolve:s}=R_();if(n.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),n.opts.animateOpenClose){n.setPluginState({isClosing:!0});const e=()=>{n.setPluginState({isHidden:!0,isClosing:!1}),n.superFocus.cancel(),n.savedActiveElement.focus(),n.el.removeEventListener("animationend",e,!1),s()};n.el.addEventListener("animationend",e,!1)}else n.setPluginState({isHidden:!0}),n.superFocus.cancel(),n.savedActiveElement.focus(),s();var a;(document.removeEventListener("keydown",n.handleKeyDownInModal),t)&&(n.opts.browserBackButtonClose&&null!=(a=history.state)&&a[n.modalName]&&history.back());return n.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log(`[Dashboard] Dark mode is ${t?"on":"off"}`),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const n=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",n):this.uppy.emit("dashboard:file-edit-complete",n),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:n,height:i}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${n} / ${i}`,"debug"),this.setPluginState({containerWidth:n,containerHeight:i,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=O_(this.el.querySelectorAll(S_));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{e.keyCode===I_&&this.requestCloseModal(e),e.keyCode===z_&&y_.forModal(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=O_(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=O_(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,n;e.preventDefault(),e.stopPropagation();const i=(()=>{let t=!0;return this.uppy.iteratePlugins((n=>{null!=n.canHandleRootDrop&&n.canHandleRootDrop(e)&&(t=!0)})),t})(),r=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!i&&!r||this.opts.disabled||this.opts.disableLocalFiles&&(r||!i)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)},this.handleDragLeave=e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let i=!1;const r=await D_(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),i||(this.uppy.info(e.message,"error"),i=!0)}});r.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(r)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{e.keyCode===z_&&y_.forInline(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,B_,{writable:!0,value:e=>{const t=e[0];this.canEditFile(t)&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=M_(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("file-editor:complete",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",x_(this,B_)[B_])},this.removeEvents=()=>{const e=M_(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("file-editor:complete",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",x_(this,B_)[B_])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=0===this.uppy.getState().info.length,i=!this.opts.inline;n&&(i||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,P_,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,U_,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,H_,{writable:!0,value:L_((e=>e.filter((e=>"acquirer"===e.type&&x_(this,U_)[U_](e))).map(x_(this,P_)[P_])))}),Object.defineProperty(this,$_,{writable:!0,value:L_((e=>e.filter((e=>"progressindicator"===e.type)).map(x_(this,P_)[P_])))}),Object.defineProperty(this,W_,{writable:!0,value:L_((e=>e.filter((e=>"editor"===e.type)).map(x_(this,P_)[P_])))}),this.render=e=>{const t=this.getPluginState(),{files:n,capabilities:i,allowNewUpload:r}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m}=this.uppy.getObjectOfFilesPerState(),g=x_(this,H_)[H_](t.targets),b=x_(this,$_)[$_](t.targets),v=x_(this,W_)[W_](t.targets);let y;return y="auto"===this.opts.theme?i.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),A_({state:e,isHidden:t.isHidden,files:n,newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m,totalFileCount:Object.keys(n).length,totalProgress:e.totalProgress,allowNewUpload:r,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:b,editors:v,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:n,allowMultipleUploadBatches:i}=this.uppy.opts;(n||i)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:r}=this.opts;r&&this.mount(r,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use(k_,{id:`${this.id}:StatusBar`,target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(E_,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(C_,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log(`[Dashboard] Dark mode is ${o?"on":"off"}`),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${(0,v_.nanoid)()}`,this.defaultLocale=j_;const i={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:F_,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...i,...t},this.i18nInit(),this.superFocus=N_(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}q_.VERSION="2.4.3",fv.exports=q_;const V_=wh.exports,K_=vm.exports.Uppy,G_=V_.instanceOf(K_).isRequired,Y_=V_.arrayOf(V_.string),Q_=V_.shape({strings:V_.object,pluralize:V_.func}),Z_=V_.shape({id:V_.string.isRequired,name:V_.string.isRequired,placeholder:V_.string}),J_=V_.oneOfType([V_.arrayOf(Z_),V_.func]),X_=V_.oneOfType([V_.string,V_.number]);var ek={uppy:G_,locale:Q_,dashboard:{uppy:G_,inline:V_.bool,plugins:Y_,width:X_,height:X_,showProgressDetails:V_.bool,hideUploadButton:V_.bool,hideProgressAfterFinish:V_.bool,note:V_.string,metaFields:J_,proudlyDisplayPoweredByUppy:V_.bool,disableStatusBar:V_.bool,disableInformer:V_.bool,disableThumbnailGenerator:V_.bool,thumbnailWidth:V_.number,locale:Q_}};const tk=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],nk=/^(aria-|data-)/;var ik=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return nk.test(t)||tk.includes(t)})));var rk=function(e,t){return Object.keys(e.props).some((n=>!((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(e.validProps,n)&&e.props[n]!==t[n]))};const ok=t,sk=fv.exports,ak=ek.dashboard,lk=ik,ck=rk,uk=ok.createElement;class pk extends ok.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(ck(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(sk,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=lk(this.props),uk("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}pk.propTypes=ak,pk.defaultProps={inline:!0};const dk=t,hk=wh.exports,fk=fv.exports,mk=ek.dashboard,gk=ik,bk=rk,vk=dk.createElement;class yk extends dk.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(bk(this,e)){const e={...this.props,onRequestCloseModal:this.props.onRequestClose};delete e.uppy,this.plugin.setOptions(e)}e.open&&!this.props.open?this.plugin.closeModal():!e.open&&this.props.open&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DashboardModal",...this.props,onRequestCloseModal:this.props.onRequestClose};t.target||(t.target=this.container),delete t.uppy,e.use(fk,t),this.plugin=e.getPlugin(t.id),this.props.open&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=gk(this.props),vk("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}yk.propTypes={target:"undefined"!=typeof window?hk.instanceOf(window.HTMLElement):hk.any,open:hk.bool,onRequestClose:hk.func,closeModalOnClickOutside:hk.bool,disablePageScrollWhenModalOpen:hk.bool,...mk};var xk={exports:{}},wk=vm.exports,_k=kb;const kk=gv,Ek=wx,Ck=Ky,Mk={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class Ok extends wk.UIPlugin{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const i=await Ck(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});i.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=Mk;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=Ek(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=kk(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,n;e.preventDefault(),e.stopPropagation();const{types:i}=e.dataTransfer,r=i.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!r||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)}handleDragLeave(e){var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,_k.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,_k.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,_k.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,_k.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,_k.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,_k.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e=`uppy-u-reset\n uppy-DragDrop-container\n ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n `,t={width:this.opts.width,height:this.opts.height};return(0,_k.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,_k.h)("div",{className:"uppy-DragDrop-inner"},Ok.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}Ok.VERSION="2.1.2";const Dk=t,Tk=xk.exports=Ok,Sk=ek,Nk=ik,Ak=rk,jk=Dk.createElement;class Lk extends Dk.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Ak(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DragDrop",...this.props,target:this.container};delete t.uppy,e.use(Tk,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Nk(this.props),jk("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Lk.propTypes={uppy:Sk.uppy,locale:Sk.locale},Lk.defaultProps={};var zk=Lk,Ik={exports:{}},Rk=kb,Fk=vm.exports;class Bk extends Fk.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,Rk.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},(0,Rk.h)("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),(0,Rk.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Bk.VERSION="2.1.2",Ik.exports=Bk;const Pk=t,Uk=wh.exports,Hk=Ik.exports,$k=ek.uppy,Wk=ik,qk=rk,Vk=Pk.createElement;class Kk extends Pk.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(qk(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:ProgressBar",...this.props,target:this.container};delete t.uppy,e.use(Hk,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Wk(this.props),Vk("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Kk.propTypes={uppy:$k,fixed:Uk.bool,hideAfterFinish:Uk.bool},Kk.defaultProps={};const Gk=t,Yk=wh.exports,Qk=Ev.exports,Zk=ek.uppy,Jk=ik,Xk=rk,eE=Gk.createElement;class tE extends Gk.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Xk(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:StatusBar",...this.props,target:this.container};delete t.uppy,e.use(Qk,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Jk(this.props),eE("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}tE.propTypes={uppy:Zk,hideAfterFinish:Yk.bool,showProgressDetails:Yk.bool},tE.defaultProps={};var nE={exports:{}},iE=vm.exports,rE=kb;const oE=gv,sE={strings:{chooseFiles:"Choose files"}};class aE extends iE.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=sE;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=oE(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,rE.h)("div",{className:"uppy-FileInput-container"},(0,rE.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,rE.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}aE.VERSION="2.1.2",nE.exports=aE;const lE=wh.exports,cE=t,uE=nE.exports,pE=ek,dE=cE.createElement;class hE extends cE.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:FileInput",...this.props,target:this.container};delete t.uppy,e.use(uE,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return dE("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}hE.propTypes={uppy:pE.uppy,locale:pE.locale,pretty:lE.bool,inputName:lE.string},hE.defaultProps={};const{useEffect:fE,useRef:mE}=t,gE=vm.exports.Uppy;function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vE,yE={exports:{}},xE={exports:{}},wE=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}},_E=wE,kE=Object.prototype.toString,EE=(vE=Object.create(null),function(e){var t=kE.call(e);return vE[t]||(vE[t]=t.slice(8,-1).toLowerCase())});function CE(e){return e=e.toLowerCase(),function(t){return EE(t)===e}}function ME(e){return Array.isArray(e)}function OE(e){return void 0===e}var DE=CE("ArrayBuffer");function TE(e){return null!==e&&"object"==typeof e}function SE(e){if("object"!==EE(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var NE=CE("Date"),AE=CE("File"),jE=CE("Blob"),LE=CE("FileList");function zE(e){return"[object Function]"===kE.call(e)}var IE=CE("URLSearchParams");function RE(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),ME(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var FE,BE=(FE="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return FE&&e instanceof FE}),PE={isArray:ME,isArrayBuffer:DE,isBuffer:function(e){return null!==e&&!OE(e)&&null!==e.constructor&&!OE(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||kE.call(e)===t||zE(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&DE(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:TE,isPlainObject:SE,isUndefined:OE,isDate:NE,isFile:AE,isBlob:jE,isFunction:zE,isStream:function(e){return TE(e)&&zE(e.pipe)},isURLSearchParams:IE,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:RE,merge:function e(){var t={};function n(n,i){SE(t[i])&&SE(n)?t[i]=e(t[i],n):SE(n)?t[i]=e({},n):ME(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)RE(arguments[i],n);return t},extend:function(e,t,n){return RE(t,(function(t,i){e[i]=n&&"function"==typeof t?_E(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,r,o,s={};t=t||{};do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)s[o=i[r]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:EE,kindOfTest:CE,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;var t=e.length;if(OE(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:BE,isFileList:LE},UE=PE;function HE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var $E=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(UE.isURLSearchParams(t))i=t.toString();else{var r=[];UE.forEach(t,(function(e,t){null!=e&&(UE.isArray(e)?t+="[]":e=[e],UE.forEach(e,(function(e){UE.isDate(e)?e=e.toISOString():UE.isObject(e)&&(e=JSON.stringify(e)),r.push(HE(t)+"="+HE(e))})))})),i=r.join("&")}if(i){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e},WE=PE;function qE(){this.handlers=[]}qE.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},qE.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},qE.prototype.forEach=function(e){WE.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var VE,KE,GE=qE,YE=PE;function QE(){if(KE)return VE;KE=1;var e=PE;function t(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,i={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){i[e]={value:e}})),Object.defineProperties(t,i),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(i,r,o,s,a,l){var c=Object.create(n);return e.toFlatObject(i,c,(function(e){return e!==Error.prototype})),t.call(c,i.message,r,o,s,a),c.name=i.name,l&&Object.assign(c,l),c},VE=t}var ZE,JE,XE,eC,tC,nC,iC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function rC(){if(JE)return ZE;JE=1;var e=PE;return ZE=function(t,n){n=n||new FormData;var i=[];function r(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,s){if(e.isPlainObject(o)||e.isArray(o)){if(-1!==i.indexOf(o))throw Error("Circular reference detected in "+s);i.push(o),e.forEach(o,(function(i,o){if(!e.isUndefined(i)){var a,l=s?s+"."+o:o;if(i&&!s&&"object"==typeof i)if(e.endsWith(o,"{}"))i=JSON.stringify(i);else if(e.endsWith(o,"[]")&&(a=e.toArray(i)))return void a.forEach((function(t){!e.isUndefined(t)&&n.append(l,r(t))}));t(i,l)}})),i.pop()}else n.append(s,r(o))}(t),n},ZE}function oC(){if(eC)return XE;eC=1;var e=QE();return XE=function(t,n,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?n(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}}function sC(){if(nC)return tC;nC=1;var e=PE;return tC=e.isStandardBrowserEnv()?{write:function(t,n,i,r,o,s){var a=[];a.push(t+"="+encodeURIComponent(n)),e.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),e.isString(r)&&a.push("path="+r),e.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},tC}var aC,lC,cC,uC,pC,dC,hC,fC,mC,gC,bC=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},vC=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},yC=function(e,t){return e&&!bC(t)?vC(e,t):t};function xC(){if(lC)return aC;lC=1;var e=PE,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return aC=function(n){var i,r,o,s={};return n?(e.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),i=e.trim(n.substr(0,o)).toLowerCase(),r=e.trim(n.substr(o+1)),i){if(s[i]&&t.indexOf(i)>=0)return;s[i]="set-cookie"===i?(s[i]?s[i]:[]).concat([r]):s[i]?s[i]+", "+r:r}})),s):s},aC}function wC(){if(uC)return cC;uC=1;var e=PE;return cC=e.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(n){var i=e.isString(n)?r(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}}function _C(){if(dC)return pC;dC=1;var e=QE();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return PE.inherits(t,e,{__CANCEL__:!0}),pC=t}function kC(){return fC||(fC=1,hC=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}),hC}var EC,CC,MC,OC,DC,TC={exports:{}},SC={exports:{}},NC={exports:{}};function AC(){if(CC)return EC;CC=1;var e=1e3,t=60*e,n=60*t,i=24*n,r=7*i,o=365.25*i;function s(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}return EC=function(a,l){l=l||{};var c=typeof a;if("string"===c&&a.length>0)return function(s){if((s=String(s)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!a)return;var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*r;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(a);if("number"===c&&isFinite(a))return l.long?function(r){var o=Math.abs(r);if(o>=i)return s(r,o,i,"day");if(o>=n)return s(r,o,n,"hour");if(o>=t)return s(r,o,t,"minute");if(o>=e)return s(r,o,e,"second");return r+" ms"}(a):function(r){var o=Math.abs(r);if(o>=i)return Math.round(r/i)+"d";if(o>=n)return Math.round(r/n)+"h";if(o>=t)return Math.round(r/t)+"m";if(o>=e)return Math.round(r/e)+"s";return r+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},EC}function jC(){if(OC)return MC;return OC=1,MC=function(e){function t(e){let i,r,o,s=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),o=r-(i||r);n.diff=o,n.prev=i,n.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,r)=>{if("%%"===i)return"%";s++;const o=t.formatters[r];if("function"==typeof o){const t=e[s];i=o.call(n,t),e.splice(s,1),s--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),r=i.length;for(n=0;n<r;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=AC(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},MC}var LC,zC,IC,RC,FC,BC,PC,UC,HC,$C,WC,qC,VC,KC={exports:{}};function GC(){return zC?LC:(zC=1,LC=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),r=t.indexOf("--");return-1!==i&&(-1===r||i<r)})}function YC(){return FC||(FC=1,function(e,t){const n=_,i=k;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:r}=this;if(r){const t=this.color,r="[3"+(t<8?t:"8;5;"+t),o=` ${r};1m${i} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(r+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(RC)return IC;RC=1;const e=E,t=_,n=GC(),{env:i}=process;let r;function o(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(t,o){if(0===r)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!o&&void 0===r)return 0;const s=r||0;if("dumb"===i.TERM)return s;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:s;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:s}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?r=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(r=1),"FORCE_COLOR"in i&&(r="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),IC={supportsColor:function(e){return o(s(e,e&&e.isTTY))},stdout:o(s(!0,t.isatty(1))),stderr:o(s(!0,t.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),e.exports=jC()(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(KC,KC.exports)),KC.exports}function QC(){return BC||(BC=1,function(e){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=(DC||(DC=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=jC()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(NC,NC.exports)),NC.exports):e.exports=YC()}(SC)),SC.exports}function ZC(){if(HC)return TC.exports;HC=1;var e=y,t=e.URL,n=b,i=v,r=x.Writable,o=w,s=function(){return UC||(UC=1,PC=function(){if(!e){try{e=QC()("follow-redirects")}catch(e){}"function"!=typeof e&&(e=function(){})}e.apply(null,arguments)}),PC;var e}(),a=["abort","aborted","connect","error","socket","timeout"],l=Object.create(null);a.forEach((function(e){l[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var c=E("ERR_INVALID_URL","Invalid URL",TypeError),u=E("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p=E("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),d=E("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h=E("ERR_STREAM_WRITE_AFTER_END","write after end");function f(e,t){r.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function m(n){var i={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(n).forEach((function(a){var l=a+":",u=r[l]=n[a],p=i[a]=Object.create(u);Object.defineProperties(p,{request:{value:function(n,a,u){if(M(n)){var p;try{p=_(new t(n))}catch(t){p=e.parse(n)}if(!M(p.protocol))throw new c({input:n});n=p}else t&&n instanceof t?n=_(n):(u=a,a=n,n={protocol:l});return O(a)&&(u=a,a=null),(a=Object.assign({maxRedirects:i.maxRedirects,maxBodyLength:i.maxBodyLength},n,a)).nativeProtocols=r,M(a.host)||M(a.hostname)||(a.hostname="::1"),o.equal(a.protocol,l,"protocol mismatch"),s("options",a),new f(a,u)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=p.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),i}function g(){}function _(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function k(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function E(e,t,n){function i(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),i.prototype.constructor=i,i.prototype.name="Error ["+e+"]",i}function C(e){for(var t of a)e.removeListener(t,l[t]);e.on("error",g),e.abort()}function M(e){return"string"==typeof e||e instanceof String}function O(e){return"function"==typeof e}return f.prototype=Object.create(r.prototype),f.prototype.abort=function(){C(this._currentRequest),this.emit("abort")},f.prototype.write=function(e,t,n){if(this._ending)throw new h;if(!M(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;O(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new d),this.abort()):n&&n()},f.prototype.end=function(e,t,n){if(O(e)?(n=e,e=t=null):O(t)&&(n=t,t=null),e){var i=this,r=this._currentRequest;this.write(e,t,(function(){i._ended=!0,r.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},f.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},f.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},f.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function r(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",r)}return t&&this.on("timeout",t),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){f.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(f.prototype,e,{get:function(){return this._currentRequest[e]}})})),f.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},f.prototype._performRequest=function(){var t=this._options.protocol,n=this._options.nativeProtocols[t];if(n){if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var r=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var o of(r._redirectable=this,a))r.on(o,l[o]);if(this._currentUrl=/^\//.test(this._options.path)?e.format(this._options):this._options.path,this._isRedirect){var s=0,c=this,u=this._requestBodyBuffers;!function e(t){if(r===c._currentRequest)if(t)c.emit("error",t);else if(s<u.length){var n=u[s++];r.finished||r.write(n.data,n.encoding,e)}else c._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+t))},f.prototype._processResponse=function(t){var n=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:n});var i=t.headers.location;if(!i||!1===this._options.followRedirects||n<300||n>=400)return t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),void(this._requestBodyBuffers=[]);if(C(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new p);else{var r,a=this._options.beforeRedirect;a&&(r=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var l=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],k(/^content-/i,this._options.headers));var c,d=k(/^host$/i,this._options.headers),h=e.parse(this._currentUrl),f=d||h.host,m=/^\w+:/.test(i)?this._currentUrl:e.format(Object.assign(h,{host:f}));try{c=e.resolve(m,i)}catch(e){return void this.emit("error",new u({cause:e}))}s("redirecting to",c),this._isRedirect=!0;var g=e.parse(c);if(Object.assign(this._options,g),(g.protocol!==h.protocol&&"https:"!==g.protocol||g.host!==f&&!function(e,t){o(M(e)&&M(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(g.host,f))&&k(/^(?:authorization|cookie)$/i,this._options.headers),O(a)){var b={headers:t.headers,statusCode:n},v={url:m,method:l,headers:r};try{a(this._options,b,v)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new u({cause:e}))}}},TC.exports=m({http:n,https:i}),TC.exports.wrap=m,TC.exports}function JC(){return WC?$C:(WC=1,$C={version:"0.27.2"})}function XC(){if(VC)return qC;VC=1;var e=PE,t=oC(),n=yC,i=$E,r=b,o=v,s=ZC().http,a=ZC().https,l=y,c=C,u=JC().version,p=iC,d=QE(),h=_C(),f=/https:?/,m=["http:","https:","file:"];function g(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var i=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.beforeRedirect=function(e){e.headers.host=e.host,g(e,t,e.href)}}return qC=function(b){return new Promise((function(v,y){var x;function w(){b.cancelToken&&b.cancelToken.unsubscribe(x),b.signal&&b.signal.removeEventListener("abort",x)}var _=function(e){w(),v(e)},k=!1,E=function(e){w(),k=!0,y(e)},C=b.data,M=b.headers,O={};if(Object.keys(M).forEach((function(e){O[e.toLowerCase()]=e})),"user-agent"in O?M[O["user-agent"]]||delete M[O["user-agent"]]:M["User-Agent"]="axios/"+u,e.isFormData(C)&&e.isFunction(C.getHeaders))Object.assign(M,C.getHeaders());else if(C&&!e.isStream(C)){if(Buffer.isBuffer(C));else if(e.isArrayBuffer(C))C=Buffer.from(new Uint8Array(C));else{if(!e.isString(C))return E(new d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",d.ERR_BAD_REQUEST,b));C=Buffer.from(C,"utf-8")}if(b.maxBodyLength>-1&&C.length>b.maxBodyLength)return E(new d("Request body larger than maxBodyLength limit",d.ERR_BAD_REQUEST,b));O["content-length"]||(M["Content-Length"]=C.length)}var D=void 0;b.auth&&(D=(b.auth.username||"")+":"+(b.auth.password||""));var T=n(b.baseURL,b.url),S=l.parse(T),N=S.protocol||m[0];if(-1===m.indexOf(N))return E(new d("Unsupported protocol "+N,d.ERR_BAD_REQUEST,b));if(!D&&S.auth){var A=S.auth.split(":");D=(A[0]||"")+":"+(A[1]||"")}D&&O.authorization&&delete M[O.authorization];var j=f.test(N),L=j?b.httpsAgent:b.httpAgent;try{i(S.path,b.params,b.paramsSerializer).replace(/^\?/,"")}catch(e){var z=new Error(e.message);z.config=b,z.url=b.url,z.exists=!0,E(z)}var I={path:i(S.path,b.params,b.paramsSerializer).replace(/^\?/,""),method:b.method.toUpperCase(),headers:M,agent:L,agents:{http:b.httpAgent,https:b.httpsAgent},auth:D};b.socketPath?I.socketPath=b.socketPath:(I.hostname=S.hostname,I.port=S.port);var R,F=b.proxy;if(!F&&!1!==F){var B=N.slice(0,-1)+"_proxy",P=process.env[B]||process.env[B.toUpperCase()];if(P){var U=l.parse(P),H=process.env.no_proxy||process.env.NO_PROXY,$=!0;if(H){var W=H.split(",").map((function(e){return e.trim()}));$=!W.some((function(e){return!!e&&("*"===e||("."===e[0]&&S.hostname.substr(S.hostname.length-e.length)===e||S.hostname===e))}))}if($&&(F={host:U.hostname,port:U.port,protocol:U.protocol},U.auth)){var q=U.auth.split(":");F.auth={username:q[0],password:q[1]}}}}F&&(I.headers.host=S.hostname+(S.port?":"+S.port:""),g(I,F,N+"//"+S.hostname+(S.port?":"+S.port:"")+I.path));var V=j&&(!F||f.test(F.protocol));b.transport?R=b.transport:0===b.maxRedirects?R=V?o:r:(b.maxRedirects&&(I.maxRedirects=b.maxRedirects),b.beforeRedirect&&(I.beforeRedirect=b.beforeRedirect),R=V?a:s),b.maxBodyLength>-1&&(I.maxBodyLength=b.maxBodyLength),b.insecureHTTPParser&&(I.insecureHTTPParser=b.insecureHTTPParser);var K=R.request(I,(function(n){if(!K.aborted){var i=n,r=n.req||K;if(204!==n.statusCode&&"HEAD"!==r.method&&!1!==b.decompress)switch(n.headers["content-encoding"]){case"gzip":case"compress":case"deflate":i=i.pipe(c.createUnzip()),delete n.headers["content-encoding"]}var o={status:n.statusCode,statusText:n.statusMessage,headers:n.headers,config:b,request:r};if("stream"===b.responseType)o.data=i,t(_,E,o);else{var s=[],a=0;i.on("data",(function(e){s.push(e),a+=e.length,b.maxContentLength>-1&&a>b.maxContentLength&&(k=!0,i.destroy(),E(new d("maxContentLength size of "+b.maxContentLength+" exceeded",d.ERR_BAD_RESPONSE,b,r)))})),i.on("aborted",(function(){k||(i.destroy(),E(new d("maxContentLength size of "+b.maxContentLength+" exceeded",d.ERR_BAD_RESPONSE,b,r)))})),i.on("error",(function(e){K.aborted||E(d.from(e,null,b,r))})),i.on("end",(function(){try{var n=1===s.length?s[0]:Buffer.concat(s);"arraybuffer"!==b.responseType&&(n=n.toString(b.responseEncoding),b.responseEncoding&&"utf8"!==b.responseEncoding||(n=e.stripBOM(n))),o.data=n}catch(e){E(d.from(e,null,b,o.request,o))}t(_,E,o)}))}}}));if(K.on("error",(function(e){E(d.from(e,null,b,K))})),K.on("socket",(function(e){e.setKeepAlive(!0,1e3*60)})),b.timeout){var G=parseInt(b.timeout,10);if(isNaN(G))return void E(new d("error trying to parse `config.timeout` to int",d.ERR_BAD_OPTION_VALUE,b,K));K.setTimeout(G,(function(){K.abort();var e=b.transitional||p;E(new d("timeout of "+G+"ms exceeded",e.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,b,K))}))}(b.cancelToken||b.signal)&&(x=function(e){K.aborted||(K.abort(),E(!e||e&&e.type?new h:e))},b.cancelToken&&b.cancelToken.subscribe(x),b.signal&&(b.signal.aborted?x():b.signal.addEventListener("abort",x))),e.isStream(C)?C.on("error",(function(e){E(d.from(e,b,null,K))})).pipe(K):K.end(C)}))},qC}var eM,tM,nM,iM,rM={exports:{}};function oM(){if(iM)return nM;iM=1;var e=k,t=x.Stream,n=function(){if(tM)return eM;tM=1;var e=x.Stream;function t(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}return eM=t,k.inherits(t,e),t.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(t.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),t.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},t.prototype.resume=function(){this._released||this.release(),this.source.resume()},t.prototype.pause=function(){this.source.pause()},t.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},t.prototype.pipe=function(){var t=e.prototype.pipe.apply(this,arguments);return this.resume(),t},t.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},t.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},eM}();function i(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}return nM=i,e.inherits(i,t),i.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},i.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},i.prototype.append=function(e){if(i.isStreamLike(e)){if(!(e instanceof n)){var t=n.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},i.prototype.pipe=function(e,n){return t.prototype.pipe.call(this,e,n),this.resume(),e},i.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},i.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){i.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},i.prototype._pipeNext=function(e){if(this._currentStream=e,i.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},i.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},i.prototype.write=function(e){this.emit("data",e)},i.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},i.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},i.prototype.end=function(){this._reset(),this.emit("end")},i.prototype.destroy=function(){this._reset(),this.emit("close")},i.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},i.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},i.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},i.prototype._emitError=function(e){this._reset(),this.emit("error",e)},nM}var sM,aM,lM,cM,uM,pM,dM,hM,fM,mM,gM,bM,vM,yM,xM,wM,_M={},kM={exports:{}},EM={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};function CM(){return aM||(aM=1,function(e){var t=sM?kM.exports:(sM=1,kM.exports=EM),n=M.extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=i.exec(e),o=n&&t[n[1].toLowerCase()];return o&&o.charset?o.charset:!(!n||!r.test(n[1]))&&"UTF-8"}e.charset=o,e.charsets={lookup:o},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];if(!r||!r.length)return!1;return r[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var i=n("x."+t).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),function(e,n){var i=["nginx","apache",void 0,"iana"];Object.keys(t).forEach((function(r){var o=t[r],s=o.extensions;if(s&&s.length){e[r]=s;for(var a=0;a<s.length;a++){var l=s[a];if(n[l]){var c=i.indexOf(t[n[l]].source),u=i.indexOf(o.source);if("application/octet-stream"!==n[l]&&(c>u||c===u&&"application/"===n[l].substr(0,12)))continue}n[l]=r}}}))}(e.extensions,e.types)}(_M)),_M}function MM(){if(pM)return uM;pM=1;var e=cM?lM:(cM=1,lM=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)});return uM=function(t){var n=!1;return e((function(){n=!0})),function(i,r){n?t(i,r):e((function(){t(i,r)}))}}}function OM(){if(hM)return dM;function e(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}return hM=1,dM=function(t){Object.keys(t.jobs).forEach(e.bind(t)),t.jobs={}}}function DM(){if(mM)return fM;mM=1;var e=MM(),t=OM();return fM=function(n,i,r,o){var s=r["keyedList"]?r["keyedList"][r.index]:r.index;r.jobs[s]=function(t,n,i,r){var o;o=2==t.length?t(i,e(r)):t(i,n,e(r));return o}(i,s,n[s],(function(e,n){s in r.jobs&&(delete r.jobs[s],e?t(r):r.results[s]=n,o(e,r.results))}))},fM}function TM(){if(bM)return gM;return bM=1,gM=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i},gM}function SM(){if(yM)return vM;yM=1;var e=OM(),t=MM();return vM=function(n){if(!Object.keys(this.jobs).length)return;this.index=this.size,e(this),t(n)(null,this.results)}}function NM(){if(wM)return xM;wM=1;var e=DM(),t=TM(),n=SM();return xM=function(i,r,o){var s=t(i);for(;s.index<(s["keyedList"]||i).length;)e(i,r,s,(function(e,t){e?o(e,t):0!==Object.keys(s.jobs).length||o(null,s.results)})),s.index++;return n.bind(s,o)},xM}var AM,jM,LM,zM,IM,RM,FM,BM,PM,UM,HM={exports:{}};function $M(){if(AM)return HM.exports;AM=1;var e=DM(),t=TM(),n=SM();function i(e,t){return e<t?-1:e>t?1:0}return HM.exports=function(i,r,o,s){var a=t(i,o);return e(i,r,a,(function t(n,o){n?s(n,o):(a.index++,a.index<(a["keyedList"]||i).length?e(i,r,a,t):s(null,a.results))})),n.bind(a,s)},HM.exports.ascending=i,HM.exports.descending=function(e,t){return-1*i(e,t)},HM.exports}function WM(){if(LM)return jM;LM=1;var e=$M();return jM=function(t,n,i){return e(t,n,null,i)}}function qM(){return IM?zM:(IM=1,zM={parallel:NM(),serial:WM(),serialOrdered:$M()})}function VM(){return FM||(FM=1,RM=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}),RM}var KM=PE,GM=function(e,t){YE.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))},YM=QE(),QM=iC,ZM=rC(),JM={"Content-Type":"application/x-www-form-urlencoded"};function XM(e,t){!KM.isUndefined(e)&&KM.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var eO,tO={transitional:QM,adapter:("undefined"!=typeof XMLHttpRequest?eO=function(){if(gC)return mC;gC=1;var e=PE,t=oC(),n=sC(),i=$E,r=yC,o=xC(),s=wC(),a=iC,l=QE(),c=_C(),u=kC();return mC=function(p){return new Promise((function(d,h){var f,m=p.data,g=p.headers,b=p.responseType;function v(){p.cancelToken&&p.cancelToken.unsubscribe(f),p.signal&&p.signal.removeEventListener("abort",f)}e.isFormData(m)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var y=new XMLHttpRequest;if(p.auth){var x=p.auth.username||"",w=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+w)}var _=r(p.baseURL,p.url);function k(){if(y){var e="getAllResponseHeaders"in y?o(y.getAllResponseHeaders()):null,n={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:e,config:p,request:y};t((function(e){d(e),v()}),(function(e){h(e),v()}),n),y=null}}if(y.open(p.method.toUpperCase(),i(_,p.params,p.paramsSerializer),!0),y.timeout=p.timeout,"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(k)},y.onabort=function(){y&&(h(new l("Request aborted",l.ECONNABORTED,p,y)),y=null)},y.onerror=function(){h(new l("Network Error",l.ERR_NETWORK,p,y,y)),y=null},y.ontimeout=function(){var e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",t=p.transitional||a;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),h(new l(e,t.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,p,y)),y=null},e.isStandardBrowserEnv()){var E=(p.withCredentials||s(_))&&p.xsrfCookieName?n.read(p.xsrfCookieName):void 0;E&&(g[p.xsrfHeaderName]=E)}"setRequestHeader"in y&&e.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),e.isUndefined(p.withCredentials)||(y.withCredentials=!!p.withCredentials),b&&"json"!==b&&(y.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&y.addEventListener("progress",p.onDownloadProgress),"function"==typeof p.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(f=function(e){y&&(h(!e||e&&e.type?new c:e),y.abort(),y=null)},p.cancelToken&&p.cancelToken.subscribe(f),p.signal&&(p.signal.aborted?f():p.signal.addEventListener("abort",f))),m||(m=null);var C=u(_);C&&-1===["http","https","file"].indexOf(C)?h(new l("Unsupported protocol "+C+":",l.ERR_BAD_REQUEST,p)):y.send(m)}))},mC}():"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(eO=XC()),eO),transformRequest:[function(e,t){if(GM(t,"Accept"),GM(t,"Content-Type"),KM.isFormData(e)||KM.isArrayBuffer(e)||KM.isBuffer(e)||KM.isStream(e)||KM.isFile(e)||KM.isBlob(e))return e;if(KM.isArrayBufferView(e))return e.buffer;if(KM.isURLSearchParams(e))return XM(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=KM.isObject(e),r=t&&t["Content-Type"];if((n=KM.isFileList(e))||i&&"multipart/form-data"===r){var o=this.env&&this.env.FormData;return ZM(n?{"files[]":e}:e,o&&new o)}return i||"application/json"===r?(XM(t,"application/json"),function(e,t,n){if(KM.isString(e))try{return(t||JSON.parse)(e),KM.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||tO.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,r=!n&&"json"===this.responseType;if(r||i&&KM.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw YM.from(e,YM.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:UM?rM.exports:(UM=1,rM.exports=function(){if(PM)return BM;PM=1;var e=oM(),t=k,n=M,i=b,r=v,o=y.parse,s=O,a=x.Stream,l=CM(),c=qM(),u=VM();function p(t){if(!(this instanceof p))return new p(t);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],e.call(this),t=t||{})this[n]=t[n]}return BM=p,t.inherits(p,e),p.LINE_BREAK="\r\n",p.DEFAULT_CONTENT_TYPE="application/octet-stream",p.prototype.append=function(n,i,r){"string"==typeof(r=r||{})&&(r={filename:r});var o=e.prototype.append.bind(this);if("number"==typeof i&&(i=""+i),t.isArray(i))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(n,i,r),a=this._multiPartFooter();o(s),o(i),o(a),this._trackLength(s,i,r)}},p.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=+n.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+p.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof a)&&(n.knownLength||this._valuesToMeasure.push(t))},p.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):s.stat(e.path,(function(n,i){var r;n?t(n):(r=i.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},p.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,r=this._getContentDisposition(t,n),o=this._getContentType(t,n),s="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(o||[])};for(var l in"object"==typeof n.header&&u(a,n.header),a)a.hasOwnProperty(l)&&null!=(i=a[l])&&(Array.isArray(i)||(i=[i]),i.length&&(s+=l+": "+i.join("; ")+p.LINE_BREAK));return"--"+this.getBoundary()+p.LINE_BREAK+s+p.LINE_BREAK},p.prototype._getContentDisposition=function(e,t){var i,r;return"string"==typeof t.filepath?i=n.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?i=n.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(i=n.basename(e.client._httpMessage.path||"")),i&&(r='filename="'+i+'"'),r},p.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=l.lookup(e.name)),!n&&e.path&&(n=l.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=l.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=p.DEFAULT_CONTENT_TYPE),n},p.prototype._multiPartFooter=function(){return function(e){var t=p.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},p.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+p.LINE_BREAK},p.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},p.prototype.setBoundary=function(e){this._boundary=e},p.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},p.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(p.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},p.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},p.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},p.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},p.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?c.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},p.prototype.submit=function(e,t){var n,s,a={method:"post"};return"string"==typeof e?(e=o(e),s=u({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(s=u(e,a)).port||(s.port="https:"==s.protocol?443:80),s.headers=this.getHeaders(e.headers),n="https:"==s.protocol?r.request(s):i.request(s),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var r,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",r),t.call(this,e,i)};r=o.bind(this,null),n.on("error",o),n.on("response",r)}}.bind(this)),n},p.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},p.prototype.toString=function(){return"[object FormData]"},BM}())},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};KM.forEach(["delete","get","head"],(function(e){tO.headers[e]={}})),KM.forEach(["post","put","patch"],(function(e){tO.headers[e]=KM.merge(JM)}));var nO,iO,rO=tO,oO=PE,sO=rO;function aO(){return iO?nO:(iO=1,nO=function(e){return!(!e||!e.__CANCEL__)})}var lO=PE,cO=function(e,t,n){var i=this||sO;return oO.forEach(n,(function(n){e=n.call(i,e,t)})),e},uO=aO(),pO=rO,dO=_C();function hO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dO}var fO=PE,mO=function(e,t){t=t||{};var n={};function i(e,t){return fO.isPlainObject(e)&&fO.isPlainObject(t)?fO.merge(e,t):fO.isPlainObject(t)?fO.merge({},t):fO.isArray(t)?t.slice():t}function r(n){return fO.isUndefined(t[n])?fO.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!fO.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return fO.isUndefined(t[n])?fO.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function a(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return fO.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||r,i=t(e);fO.isUndefined(i)&&t!==a||(n[e]=i)})),n},gO=JC().version,bO=QE(),vO={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){vO[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var yO={};vO.transitional=function(e,t,n){function i(e,t){return"[Axios v"+gO+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new bO(i(r," has been removed"+(t?" in "+t:"")),bO.ERR_DEPRECATED);return t&&!yO[r]&&(yO[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};var xO,wO,_O,kO,EO,CO,MO={assertOptions:function(e,t,n){if("object"!=typeof e)throw new bO("options must be an object",bO.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new bO("option "+o+" must be "+l,bO.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new bO("Unknown option "+o,bO.ERR_BAD_OPTION)}},validators:vO},OO=PE,DO=$E,TO=GE,SO=function(e){return hO(e),e.headers=e.headers||{},e.data=cO.call(e,e.data,e.headers,e.transformRequest),e.headers=lO.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),lO.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||pO.adapter)(e).then((function(t){return hO(e),t.data=cO.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return uO(t)||(hO(e),t&&t.response&&(t.response.data=cO.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},NO=mO,AO=yC,jO=MO,LO=jO.validators;function zO(e){this.defaults=e,this.interceptors={request:new TO,response:new TO}}zO.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=NO(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&jO.assertOptions(n,{silentJSONParsing:LO.transitional(LO.boolean),forcedJSONParsing:LO.transitional(LO.boolean),clarifyTimeoutError:LO.transitional(LO.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!r){var a=[SO,void 0];for(Array.prototype.unshift.apply(a,i),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var l=t;i.length;){var c=i.shift(),u=i.shift();try{l=c(l)}catch(e){u(e);break}}try{o=SO(l)}catch(e){return Promise.reject(e)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},zO.prototype.getUri=function(e){e=NO(this.defaults,e);var t=AO(e.baseURL,e.url);return DO(t,e.params,e.paramsSerializer)},OO.forEach(["delete","get","head","options"],(function(e){zO.prototype[e]=function(t,n){return this.request(NO(n||{},{method:e,url:t,data:(n||{}).data}))}})),OO.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(NO(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}zO.prototype[e]=t(),zO.prototype[e+"Form"]=t(!0)}));var IO=PE,RO=wE,FO=zO,BO=mO;var PO=function e(t){var n=new FO(t),i=RO(FO.prototype.request,n);return IO.extend(i,FO.prototype,n),IO.extend(i,n),i.create=function(n){return e(BO(t,n))},i}(rO);PO.Axios=FO,PO.CanceledError=_C(),PO.CancelToken=function(){if(wO)return xO;wO=1;var e=_C();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},t((function(t){i.reason||(i.reason=new e(t),n(i.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e,n=new t((function(t){e=t}));return{token:n,cancel:e}},xO=t}(),PO.isCancel=aO(),PO.VERSION=JC().version,PO.toFormData=rC(),PO.AxiosError=QE(),PO.Cancel=PO.CanceledError,PO.all=function(e){return Promise.all(e)},PO.spread=kO?_O:(kO=1,_O=function(e){return function(t){return e.apply(null,t)}}),PO.isAxiosError=function(){if(CO)return EO;CO=1;var e=PE;return EO=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),xE.exports=PO,xE.exports.default=PO;var UO=jc(yE.exports=xE.exports);const HO=(e,t,n)=>UO.post(e,t,n),$O=(e,t,n)=>UO.put(e,t,{...n});var WO={exports:{}};function qO(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var VO,KO={exports:{}};function GO(){return VO?KO.exports:(VO=1,KO.exports=function(){var e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Ac&&Ac.crypto&&(n=Ac.crypto),!n&&"function"==typeof qO)try{n=require("crypto")}catch(e){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},a=s.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a<r;a+=4)t[i+a>>>2]=n[a>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(n,t/2)}},p=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,r=i.words,o=i.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*c,o);if(c){for(var p=0;p<c;p+=s)this._doProcessBlock(r,p);n=r.splice(0,c),i.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=h.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:512/32,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=o.algo={};return o}(Math);return e}())}var YO,QO={exports:{}};function ZO(){return YO?QO.exports:(YO=1,QO.exports=function(e){return function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,s=n.x64={};s.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var r=e[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),e}(GO()))}var JO,XO={exports:{}};function eD(){return JO?XO.exports:(JO=1,XO.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,i=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,i=[],r=0;r<t;r++)i[r>>>2]|=e[r]<<24-r%4*8;n.call(this,i,t)}else n.apply(this,arguments)};i.prototype=t}}(),e.lib.WordArray}(GO()))}var tD,nD={exports:{}};function iD(){return tD?nD.exports:(tD=1,nD.exports=function(e){return function(){var t=e,n=t.lib.WordArray,i=t.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var o=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r++)i[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return n.create(i,2*t)}},i.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var s=r(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,i=[],o=0;o<t;o++)i[o>>>1]|=r(e.charCodeAt(o)<<16-o%2*16);return n.create(i,2*t)}}}(),e.enc.Utf16}(GO()))}var rD,oD={exports:{}};function sD(){return rD?oD.exports:(rD=1,oD.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function i(e,t,i){for(var r=[],o=0,s=0;s<t;s++)if(s%4){var a=i[e.charCodeAt(s-1)]<<s%4*2|i[e.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return n.create(r,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)r.push(i.charAt(s>>>6*(3-a)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return i(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(GO()))}var aD,lD={exports:{}};function cD(){return aD?lD.exports:(aD=1,lD.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function i(e,t,i){for(var r=[],o=0,s=0;s<t;s++)if(s%4){var a=i[e.charCodeAt(s-1)]<<s%4*2|i[e.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return n.create(r,o)}t.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<i;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l<i;l++)o.push(r.charAt(a>>>6*(3-l)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t=!0){var n=e.length,r=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(n=l)}return i(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(GO()))}var uD,pD={exports:{}};function dD(){return uD?pD.exports:(uD=1,pD.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,s=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],b=e[t+6],v=e[t+7],y=e[t+8],x=e[t+9],w=e[t+10],_=e[t+11],k=e[t+12],E=e[t+13],C=e[t+14],M=e[t+15],O=o[0],D=o[1],T=o[2],S=o[3];O=c(O,D,T,S,s,7,a[0]),S=c(S,O,D,T,l,12,a[1]),T=c(T,S,O,D,h,17,a[2]),D=c(D,T,S,O,f,22,a[3]),O=c(O,D,T,S,m,7,a[4]),S=c(S,O,D,T,g,12,a[5]),T=c(T,S,O,D,b,17,a[6]),D=c(D,T,S,O,v,22,a[7]),O=c(O,D,T,S,y,7,a[8]),S=c(S,O,D,T,x,12,a[9]),T=c(T,S,O,D,w,17,a[10]),D=c(D,T,S,O,_,22,a[11]),O=c(O,D,T,S,k,7,a[12]),S=c(S,O,D,T,E,12,a[13]),T=c(T,S,O,D,C,17,a[14]),O=u(O,D=c(D,T,S,O,M,22,a[15]),T,S,l,5,a[16]),S=u(S,O,D,T,b,9,a[17]),T=u(T,S,O,D,_,14,a[18]),D=u(D,T,S,O,s,20,a[19]),O=u(O,D,T,S,g,5,a[20]),S=u(S,O,D,T,w,9,a[21]),T=u(T,S,O,D,M,14,a[22]),D=u(D,T,S,O,m,20,a[23]),O=u(O,D,T,S,x,5,a[24]),S=u(S,O,D,T,C,9,a[25]),T=u(T,S,O,D,f,14,a[26]),D=u(D,T,S,O,y,20,a[27]),O=u(O,D,T,S,E,5,a[28]),S=u(S,O,D,T,h,9,a[29]),T=u(T,S,O,D,v,14,a[30]),O=p(O,D=u(D,T,S,O,k,20,a[31]),T,S,g,4,a[32]),S=p(S,O,D,T,y,11,a[33]),T=p(T,S,O,D,_,16,a[34]),D=p(D,T,S,O,C,23,a[35]),O=p(O,D,T,S,l,4,a[36]),S=p(S,O,D,T,m,11,a[37]),T=p(T,S,O,D,v,16,a[38]),D=p(D,T,S,O,w,23,a[39]),O=p(O,D,T,S,E,4,a[40]),S=p(S,O,D,T,s,11,a[41]),T=p(T,S,O,D,f,16,a[42]),D=p(D,T,S,O,b,23,a[43]),O=p(O,D,T,S,x,4,a[44]),S=p(S,O,D,T,k,11,a[45]),T=p(T,S,O,D,M,16,a[46]),O=d(O,D=p(D,T,S,O,h,23,a[47]),T,S,s,6,a[48]),S=d(S,O,D,T,v,10,a[49]),T=d(T,S,O,D,C,15,a[50]),D=d(D,T,S,O,g,21,a[51]),O=d(O,D,T,S,k,6,a[52]),S=d(S,O,D,T,f,10,a[53]),T=d(T,S,O,D,w,15,a[54]),D=d(D,T,S,O,l,21,a[55]),O=d(O,D,T,S,y,6,a[56]),S=d(S,O,D,T,M,10,a[57]),T=d(T,S,O,D,b,15,a[58]),D=d(D,T,S,O,E,21,a[59]),O=d(O,D,T,S,m,6,a[60]),S=d(S,O,D,T,_,10,a[61]),T=d(T,S,O,D,h,15,a[62]),D=d(D,T,S,O,x,21,a[63]),o[0]=o[0]+O|0,o[1]=o[1]+D|0,o[2]=o[2]+T|0,o[3]=o[3]+S|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),s=i;n[(r+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[(r+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,o,s){var a=e+(t&n|~t&i)+r+s;return(a<<o|a>>>32-o)+t}function u(e,t,n,i,r,o,s){var a=e+(t&i|n&~i)+r+s;return(a<<o|a>>>32-o)+t}function p(e,t,n,i,r,o,s){var a=e+(t^n^i)+r+s;return(a<<o|a>>>32-o)+t}function d(e,t,n,i,r,o,s){var a=e+(n^(t|~i))+r+s;return(a<<o|a>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5}(GO()))}var hD,fD={exports:{}};function mD(){return hD?fD.exports:(hD=1,fD.exports=function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,s=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],l=n[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var u=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=u<<1|u>>>31}var p=(i<<5|i>>>27)+l+s[c];p+=c<20?(r&o|~r&a)+1518500249:c<40?(r^o^a)+1859775393:c<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,l=a,a=o,o=r<<30|r>>>2,r=i,i=p}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(i+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=r._createHelper(a),t.HmacSHA1=r._createHmacHelper(a)}(),e.SHA1}(GO()))}var gD,bD={exports:{}};function vD(){return gD?bD.exports:(gD=1,bD.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,r=0;r<64;)e(i)&&(r<8&&(a[r]=n(t.pow(i,1/2))),l[r]=n(t.pow(i,1/3)),r++),i++}();var c=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],u=n[5],p=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],b=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+b+c[h-16]}var v=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),x=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&p)+l[h]+c[h];d=p,p=u,u=a,a=s+x|0,s=o,o=r,r=i,i=x+(y+v)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[(r+64>>>9<<4)+14]=t.floor(i/4294967296),n[(r+64>>>9<<4)+15]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),e.SHA256}(GO()))}var yD,xD={exports:{}};var wD,_D={exports:{}};function kD(){return wD?_D.exports:(wD=1,_D.exports=function(e){return function(){var t=e,n=t.lib.Hasher,i=t.x64,r=i.Word,o=i.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var u=s.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],u=n[5],p=n[6],d=n[7],h=i.high,f=i.low,m=r.high,g=r.low,b=o.high,v=o.low,y=s.high,x=s.low,w=a.high,_=a.low,k=u.high,E=u.low,C=p.high,M=p.low,O=d.high,D=d.low,T=h,S=f,N=m,A=g,j=b,L=v,z=y,I=x,R=w,F=_,B=k,P=E,U=C,H=M,$=O,W=D,q=0;q<80;q++){var V,K,G=c[q];if(q<16)K=G.high=0|e[t+2*q],V=G.low=0|e[t+2*q+1];else{var Y=c[q-15],Q=Y.high,Z=Y.low,J=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),ee=c[q-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,re=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[q-7],se=oe.high,ae=oe.low,le=c[q-16],ce=le.high,ue=le.low;K=(K=(K=J+se+((V=X+ae)>>>0<X>>>0?1:0))+ie+((V+=re)>>>0<re>>>0?1:0))+ce+((V+=ue)>>>0<ue>>>0?1:0),G.high=K,G.low=V}var pe,de=R&B^~R&U,he=F&P^~F&H,fe=T&N^T&j^N&j,me=S&A^S&L^A&L,ge=(T>>>28|S<<4)^(T<<30|S>>>2)^(T<<25|S>>>7),be=(S>>>28|T<<4)^(S<<30|T>>>2)^(S<<25|T>>>7),ve=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),ye=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),xe=l[q],we=xe.high,_e=xe.low,ke=$+ve+((pe=W+ye)>>>0<W>>>0?1:0),Ee=be+me;$=U,W=H,U=B,H=P,B=R,P=F,R=z+(ke=(ke=(ke=ke+de+((pe+=he)>>>0<he>>>0?1:0))+we+((pe+=_e)>>>0<_e>>>0?1:0))+K+((pe+=V)>>>0<V>>>0?1:0))+((F=I+pe|0)>>>0<I>>>0?1:0)|0,z=j,I=L,j=N,L=A,N=T,A=S,T=ke+(ge+fe+(Ee>>>0<be>>>0?1:0))+((S=pe+Ee|0)>>>0<pe>>>0?1:0)|0}f=i.low=f+S,i.high=h+T+(f>>>0<S>>>0?1:0),g=r.low=g+A,r.high=m+N+(g>>>0<A>>>0?1:0),v=o.low=v+L,o.high=b+j+(v>>>0<L>>>0?1:0),x=s.low=x+I,s.high=y+z+(x>>>0<I>>>0?1:0),_=a.low=_+F,a.high=w+R+(_>>>0<F>>>0?1:0),E=u.low=E+P,u.high=k+B+(E>>>0<P>>>0?1:0),M=p.low=M+H,p.high=C+U+(M>>>0<H>>>0?1:0),D=d.low=D+W,d.high=O+$+(D>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(i+128>>>10<<5)+31]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:1024/32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512}(GO(),ZO()))}var ED,CD={exports:{}};var MD,OD={exports:{}};function DD(){return MD?OD.exports:(MD=1,OD.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.x64.Word,a=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,p=0,d=0;d<7;d++){if(1&r){var h=(1<<d)-1;h<32?p^=1<<h:a^=1<<h-32}128&r?r=r<<1^113:r<<=1}u[o]=s.create(a,p)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=s.create()}();var d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=e[t+2*r],s=e[t+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(D=n[r]).high^=s,D.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var h=0,f=0,m=0;m<5;m++)h^=(D=n[d+5*m]).high,f^=D.low;var g=p[d];g.high=h,g.low=f}for(d=0;d<5;d++){var b=p[(d+4)%5],v=p[(d+1)%5],y=v.high,x=v.low;for(h=b.high^(y<<1|x>>>31),f=b.low^(x<<1|y>>>31),m=0;m<5;m++)(D=n[d+5*m]).high^=h,D.low^=f}for(var w=1;w<25;w++){var _=(D=n[w]).high,k=D.low,E=l[w];E<32?(h=_<<E|k>>>32-E,f=k<<E|_>>>32-E):(h=k<<E-32|_>>>64-E,f=_<<E-32|k>>>64-E);var C=p[c[w]];C.high=h,C.low=f}var M=p[0],O=n[0];for(M.high=O.high,M.low=O.low,d=0;d<5;d++)for(m=0;m<5;m++){var D=n[w=d+5*m],T=p[w],S=p[(d+1)%5+5*m],N=p[(d+2)%5+5*m];D.high=T.high^~S.high&N.high,D.low=T.low^~S.low&N.low}D=n[0];var A=u[a];D.high^=A.high,D.low^=A.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var i=8*e.sigBytes,o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],u=0;u<l;u++){var p=s[u],d=p.high,h=p.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(d)}return new r.init(c,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(d),n.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3}(GO(),ZO()))}var TD,SD={exports:{}};var ND,AD={exports:{}};function jD(){return ND?AD.exports:(ND=1,AD.exports=function(e){!function(){var t=e,n=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,l=s.words,c=0;c<n;c++)a[c]^=1549556828,l[c]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}(GO()))}var LD,zD={exports:{}};var ID,RD={exports:{}};function FD(){return ID?RD.exports:(ID=1,RD.exports=function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,s=o.MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,l=i.keySize,c=i.iterations;a.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();s.concat(n)}return s.sigBytes=4*l,s}});t.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)}}(),e.EvpKDF}(GO(),mD(),jD()))}var BD,PD={exports:{}};function UD(){return BD?PD.exports:(BD=1,PD.exports=function(e){e.lib.Cipher||function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,s=i.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var l=a.Base64,c=n.algo.EvpKDF,u=i.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:b}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){return this._process(!!"flush")},blockSize:1});var p=n.mode={},d=i.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=p.CBC=function(){var e=d.extend();function n(e,n,i){var r,o=this._iv;o?(r=o,this._iv=t):r=this._prevBlock;for(var s=0;s<i;s++)e[n+s]^=r[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);i.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=o}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(r);var l=o.create(s,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!!"flush")):(e=this._process(!!"flush"),t.unpad(e)),e},blockSize:128/32});var m=i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},b=i.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),o=r.finalize(t),s=r.cfg;return m.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=o.random(64/8));var r=c.create({keySize:t+n}).compute(e,i),s=o.create(r.words.slice(t),4*n);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:i})}},y=i.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:v}),encrypt:function(e,t,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=r.iv;var o=b.encrypt.call(this,e,t,r.key,i);return o.mixIn(r),o},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=r.iv,b.decrypt.call(this,e,t,r.key,i)}})}()}(GO(),FD()))}var HD,$D={exports:{}};function WD(){return HD?$D.exports:(HD=1,$D.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var s=0;s<n;s++)e[t+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=o}}),t}(),e.mode.CFB}(GO(),UD()))}var qD,VD={exports:{}};function KD(){return qD?VD.exports:(qD=1,VD.exports=function(e){return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)e[t+a]^=s[a]}}),t.Decryptor=n,t),e.mode.CTR;var t,n}(GO(),UD()))}var GD,YD={exports:{}};function QD(){return GD?YD.exports:(GD=1,YD.exports=function(e){
44
- /** @preserve
45
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
46
- * derived from CryptoJS.mode.CTR
47
- * Jan Hruby jhruby.web@gmail.com
48
- */
49
- return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function i(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),i(s);var a=s.slice(0);n.encryptBlock(a,0);for(var l=0;l<r;l++)e[t+l]^=a[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman}(GO(),UD()))}var ZD,JD={exports:{}};function XD(){return ZD?JD.exports:(ZD=1,JD.exports=function(e){return e.mode.OFB=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<i;s++)e[t+s]^=o[s]}}),t.Decryptor=n,t),e.mode.OFB;var t,n}(GO(),UD()))}var eT,tT={exports:{}};var nT,iT={exports:{}};var rT,oT={exports:{}};var sT,aT={exports:{}};var lT,cT={exports:{}};var uT,pT={exports:{}};var dT,hT={exports:{}};var fT,mT={exports:{}};var gT,bT={exports:{}};function vT(){return gT?bT.exports:(gT=1,bT.exports=function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=s[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var c=r[o]=[],u=l[o];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var p=this._invSubKeys=[];for(n=0;n<16;n++)p[n]=r[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((s^r[l])&u[l])>>>0];this._lBlock=s,this._rBlock=o^a}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=r._createHelper(p);var f=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(i.create(t)),this._des2=p.createEncryptor(i.create(n)),this._des3=p.createEncryptor(i.create(r))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:192/32,ivSize:64/32,blockSize:64/32});t.TripleDES=r._createHelper(f)}(),e.TripleDES}(GO(),sD(),dD(),FD(),UD()))}var yT,xT={exports:{}};var wT,_T={exports:{}};var kT,ET={exports:{}};var CT=WO.exports=function(e){return e}(GO(),ZO(),eD(),iD(),sD(),cD(),dD(),mD(),vD(),yD||(yD=1,xD.exports=function(e){return function(){var t=e,n=t.lib.WordArray,i=t.algo,r=i.SHA256,o=i.SHA224=r.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=r._createHelper(o),t.HmacSHA224=r._createHmacHelper(o)}(),e.SHA224}(GO(),vD())),kD(),ED||(ED=1,CD.exports=function(e){return function(){var t=e,n=t.x64,i=n.Word,r=n.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384}(GO(),ZO(),kD())),DD(),TD||(TD=1,SD.exports=function(e){
50
- /** @preserve
51
- (c) 2012 by Cédric Mesnil. All rights reserved.
52
-
53
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
54
-
55
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
56
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
57
-
58
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
59
- */
60
- return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=s.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,s,h,x,w,_,k,E,C,M,O,D=this._hash.words,T=p.words,S=d.words,N=a.words,A=l.words,j=c.words,L=u.words;for(_=o=D[0],k=s=D[1],E=h=D[2],C=x=D[3],M=w=D[4],n=0;n<80;n+=1)O=o+e[t+N[n]]|0,O+=n<16?f(s,h,x)+T[0]:n<32?m(s,h,x)+T[1]:n<48?g(s,h,x)+T[2]:n<64?b(s,h,x)+T[3]:v(s,h,x)+T[4],O=(O=y(O|=0,j[n]))+w|0,o=w,w=x,x=y(h,10),h=s,s=O,O=_+e[t+A[n]]|0,O+=n<16?v(k,E,C)+S[0]:n<32?b(k,E,C)+S[1]:n<48?g(k,E,C)+S[2]:n<64?m(k,E,C)+S[3]:f(k,E,C)+S[4],O=(O=y(O|=0,L[n]))+M|0,_=M,M=C,C=y(E,10),E=k,k=O;O=D[1]+h+C|0,D[1]=D[2]+x+M|0,D[2]=D[3]+w+_|0,D[3]=D[4]+o+k|0,D[4]=D[0]+s+E|0,D[0]=O},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function b(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}n.RIPEMD160=o._createHelper(h),n.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160}(GO())),jD(),LD||(LD=1,zD.exports=function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,s=o.SHA1,a=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=a.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,c=s.words,u=n.keySize,p=n.iterations;l.length<u;){var d=i.update(t).finalize(s);i.reset();for(var h=d.words,f=h.length,m=d,g=1;g<p;g++){m=i.finalize(m),i.reset();for(var b=m.words,v=0;v<f;v++)h[v]^=b[v]}o.concat(d),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}(GO(),mD(),jD())),FD(),UD(),WD(),KD(),QD(),XD(),eT||(eT=1,tT.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(GO(),UD())),nT||(nT=1,iT.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,r=i-n%i,o=n+r-1;e.clamp(),e.words[o>>>2]|=r<<24-o%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(GO(),UD())),rT||(rT=1,oT.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var i=4*n,r=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(GO(),UD())),sT||(sT=1,aT.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(GO(),UD())),lT||(lT=1,cT.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(GO(),UD())),uT||(uT=1,pT.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(GO(),UD())),dT||(dT=1,hT.exports=function(e){return function(t){var n=e,i=n.lib.CipherParams,r=n.enc.Hex;n.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return i.create({ciphertext:t})}}}(),e.format.Hex}(GO(),UD())),fT||(fT=1,mT.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,i=t.algo,r=[],o=[],s=[],a=[],l=[],c=[],u=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,r[n]=f,o[f]=n;var m=e[n],g=e[m],b=e[g],v=257*e[f]^16843008*f;s[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*b^65537*g^257*m^16843008*n,u[f]=v<<24|v>>>8,p[f]=v<<16|v>>>16,d[f]=v<<8|v>>>24,h[f]=v,n?(n=m^e[e[e[b^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s<i;s++)s<n?o[s]=t[s]:(c=o[s-1],s%n?n>6&&s%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=f[s/n|0]<<24),o[s]=o[s-n]^c);for(var a=this._invKeySchedule=[],l=0;l<i;l++){if(s=i-l,l%4)var c=o[s];else c=o[s-4];a[l]=l<4||s<=4?c:u[r[c>>>24]]^p[r[c>>>16&255]]^d[r[c>>>8&255]]^h[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,p,d,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,s,a){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],h=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[p>>>8&255]^s[255&d]^n[h++],g=i[u>>>24]^r[p>>>16&255]^o[d>>>8&255]^s[255&c]^n[h++],b=i[p>>>24]^r[d>>>16&255]^o[c>>>8&255]^s[255&u]^n[h++],v=i[d>>>24]^r[c>>>16&255]^o[u>>>8&255]^s[255&p]^n[h++];c=m,u=g,p=b,d=v}m=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[p>>>8&255]<<8|a[255&d])^n[h++],g=(a[u>>>24]<<24|a[p>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^n[h++],b=(a[p>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^n[h++],v=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&p])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=b,e[t+3]=v},keySize:256/32});t.AES=n._createHelper(m)}(),e.AES}(GO(),sD(),dD(),FD(),UD())),vT(),yT||(yT=1,xT.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=i.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%n,a=t[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:256/32,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,i=0,r=0;r<4;r++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,i|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,i}t.RC4=n._createHelper(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4}(GO(),sD(),dD(),FD(),UD())),wT||(wT=1,_T.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),p=c>>>16|4294901760&u,d=u<<16|65535&c;for(r[0]^=c,r[1]^=p,r[2]^=u,r[3]^=d,r[4]^=c,r[5]^=p,r[6]^=u,r[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:128/32,ivSize:64/32});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,a=i>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit}(GO(),sD(),dD(),FD(),UD())),kT||(kT=1,ET.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=[],o=[],s=[],a=i.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),p=c>>>16|4294901760&u,d=u<<16|65535&c;for(i[0]^=c,i[1]^=p,i[2]^=u,i[3]^=d,i[4]^=c,i[5]^=p,i[6]^=u,i[7]^=d,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:128/32,ivSize:64/32});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,a=i>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy}(GO(),sD(),dD(),FD(),UD())));const MT=async e=>{const t=await(e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=e=>{const n=CT.lib.WordArray.create(e.target.result);t(CT.MD5(n))},i.onerror=()=>n(new Error("Corrupted file")),i.readAsArrayBuffer(e)})))(e);return t.toString(CT.enc.Base64)};class OT{constructor(e){let{url:t,file:n,progress:i=Vu}=e;bE(this,"create",(async()=>{const{data:e}=await this.generateUrl(),{direct_upload:{url:t,headers:n}}=e;return await this.uploadToCloud(t,n),e})),bE(this,"generateUrl",(async()=>{const e={blob:{filename:this.file.name,byte_size:this.file.size,content_type:this.file.type,checksum:await MT(this.file)}};return HO(this.url,e)})),bE(this,"abort",(()=>this.abortController.abort())),bE(this,"uploadToCloud",((e,t)=>{const n={headers:t,onUploadProgress:this.progress,signal:this.abortController.signal};return $O(e,this.file,n)})),this.url=t,this.file=n,this.progress=i,this.abortController=new AbortController}}class DT extends vm.exports.BasePlugin{constructor(e,t){super(e,t),bE(this,"upload",(e=>{if(Pu(e))return Promise.resolve();const t=e.map((e=>this.uploadFile(this.uppy.getFile(e))));return Promise.all(t)})),bE(this,"uploadFile",(async e=>{this.uppy.on("file-removed",(n=>{n.id===e.id&&t.abort()})),this.uppy.on("upload-cancel",(n=>{n===e.id&&t.abort()})),this.uppy.on("cancel-all",(()=>t.abort()));const t=new OT({file:e.data,url:this.opts.directUploadUrl,progress:t=>{t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}});try{const n=await t.create();return this.uppy.setFileState(e.id,{response:{status:"success"}}),this.uppy.emit("upload-success",e,n),e}catch(t){throw this.uppy.setFileState(e.id,{response:{status:"error"}}),this.uppy.emit("upload-error",e,t),t}})),this.type="uploader",this.id=t.id||"ActiveStorageUpload",this.title=t.title||"Active Storage Upload"}install(){this.uppy.addUploader(this.upload)}uninstall(){this.uppy.removeUploader(this.upload)}}const TT=e=>{var n;let{uppy:i}=e;const[s,a]=r(0);o((()=>{i.on("progress",a)}),[i]);const l=`${s}%`;return t.createElement("div",{className:"neeto-editor-image-uploader__progress"},t.createElement("p",{className:"neeto-editor-image-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"neeto-editor-image-uploader__progress-file"},null===(n=i.getFiles()[0])||void 0===n?void 0:n.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(rm,{icon:vd,size:"small",style:"text",onClick:()=>i.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},ST=e=>{const t=["B","KB","MB","GB"];let n=0;for(;e>=1024&&n<t.length;)e/=1024,++n;return`${e.toFixed(1)} ${t[n]}`},NT=e=>{let{endpoint:n,onSuccess:i,uploadConfig:o}=e;const[s,a]=r(!1),[l,c]=r(""),u={...dm,...o},p=function(e){if("function"!=typeof e)throw new TypeError("useUppy: expected a function that returns a new Uppy instance");const t=mE(void 0);if(void 0===t.current&&(t.current=e(),!(t.current instanceof gE)))throw new TypeError(`useUppy: factory function must return an Uppy instance, got ${typeof t.current}`);return fE((()=>()=>{t.current.close({reason:"unmount"}),t.current=void 0}),[t]),t.current}((()=>new hv({...u,onBeforeFileAdded:e=>{const{maxFileSize:t,allowedFileTypes:n}=u.restrictions;return e.size>t?(c(`File size is too large. Max size is ${ST(u.restrictions.maxFileSize)}.`),!1):!!n.includes(`.${e.extension}`)||(c(`File type is not permitted. Allowed file types are: ${n.join(", ")}.`),!1)}}).use(DT,{directUploadUrl:n,...hm}).on("upload",(()=>a(!0))).on("upload-success",((e,t)=>{let{blob_url:n}=t;return i(n)})).on("cancel-all",(()=>a(!1))).on("complete",(()=>a(!1)))));return s?t.createElement(TT,{uppy:p}):t.createElement("div",{className:"neeto-editor-image-uploader__dnd-wrapper"},t.createElement(zk,{className:"neeto-editor-image-uploader__dnd","data-cy":"neeto-editor-image-local-uploader",uppy:p,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${ST(u.restrictions.maxFileSize)}`}),l&&t.createElement("p",{className:"neeto-editor-image-uploader__dnd--error"},l))};var AT={},jT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},LT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function i(e,t){return t._once=!0,n(e,t),this}function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return jT({},e,{on:n,once:i,off:r,emit:o})},zT=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),v={all:function(){return k(b.children)},new:function(){return k(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[M,O,D],x=[T,S,N,A],w=LT({pack:z,update:I,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function C(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function M(){i=C()}function O(){r=-1===i?m[m.length-1]:m[i]}function D(){s=E(r.columns)}function T(){p=v[t?"new":"all"]()}function S(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function N(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function A(){b.style.position="relative",b.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",b.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==C()&&(z(),w.emit("resize",r)),n=!1}function z(){return t=!1,_(y.concat(x)),w.emit("pack")}function I(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),IT=Lc(zT),RT={exports:{}},FT={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(wh.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(FT,FT.exports),RT.exports=FT.exports,Object.defineProperty(AT,"__esModule",{value:!0});var BT,PT,UT=AT.default=void 0,HT=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),$T=t,WT=GT($T),qT=GT(wh.exports),VT=GT(IT),KT=GT(RT.exports);function GT(e){return e&&e.__esModule?e:{default:e}}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QT(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ZT=(PT=BT=function(e){function t(){var e,n,i;YT(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=QT(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,VT.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},QT(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,$T.Component),HT(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return WT.default.createElement(KT.default,r,WT.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),BT.propTypes={children:qT.default.arrayOf(qT.default.element).isRequired,className:qT.default.string,initialLoad:qT.default.bool,pack:qT.default.bool,packed:qT.default.string,position:qT.default.bool,sizes:qT.default.array,style:qT.default.object},BT.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},PT);UT=AT.default=ZT;const JT=()=>t.createElement("div",{className:"neeto-editor-loader"},t.createElement("span",{className:"neeto-editor-loader__spinner-icon"})),XT=e=>{let{onSubmit:n,unsplashApiKey:i}=e;const s=c(null),[a,l]=r(""),[u,p]=r(!1),[d,h]=r([]),[f,m]=r(1),[g,b]=r(!0),[v,y]=r(!1),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,i]=r(e);return o((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),n}(a||"latest");o((()=>{w(1)}),[x]);const w=async e=>{try{y(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return UO.get(Bc,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:x,apiKey:i}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...d,...n]),m(e+1),b(e<r)}catch{p(!0)}finally{y(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(gm,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:a,onChange:e=>{let{target:{value:t}}=e;l(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!v&&qu(d)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(UT,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:g,loadMore:()=>{!v&&g&&f>1&&w(f)},loader:t.createElement(JT,{key:0}),ref:s,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.map(((e,i)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${i}`,key:i},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${i}`},t.createElement("img",{src:e.urls.regular,onClick:()=>n(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!g&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},eS=e=>{let{buttonLabel:n="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=r(""),[c,u]=r("");return t.createElement("div",{className:Rc("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(gm,{autoFocus:!0,"data-cy":"neeto-editor-image-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(rm,{"data-cy":"neeto-editor-image-upload-url-submit",disabled:!a,label:n,onClick:e=>{e.preventDefault(),Uc.test(a)?o(a):u("Please enter a valid url")}}))},tS=e=>{let{isOpen:n,onClose:i,editor:o,imageUploadUrl:s,uploadConfig:a,unsplashApiKey:l}=e;const[c,u]=(e=>{var t;const[n,i]=r(null===(t=e[0])||void 0===t?void 0:t.key);return[n,e=>i(e.key)]})(fm),[p,d]=r(""),h=!!l,f=e=>{d(e)},m={local:()=>t.createElement(NT,{endpoint:s,uploadConfig:a,onSuccess:f}),link:()=>t.createElement(eS,{buttonLabel:"Upload Image",placeholder:"Paste the image link",onSubmit:f}),unsplash:()=>t.createElement(XT,{unsplashApiKey:l,onSubmit:f})}[c];return t.createElement(am,{closeButton:!1,isOpen:n,onClose:()=>{i(),u(fm[0])}},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement(pm,null,fm.filter((e=>"unsplash"!==e.key||h)).map((e=>t.createElement(pm.Item,{active:c===e.key,key:e.key,onClick:()=>u(e)},e.title)))),t.createElement("div",{className:"neeto-editor-image-uploader__content"},p?t.createElement(bm,{editor:o,url:p,onClose:()=>{d(""),i()}}):t.createElement(m,null))))};var nS=Jc;var iS="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,i=arguments.length;n<i;){var r=arguments[n];if(null!=r)for(var o in r)nS(o,r)&&(t[o]=r[o]);n+=1}return t},rS=iS,oS=Qc((function(e,t){return rS({},t,e)})),sS=oS;const aS=as.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){return t.textBetween(0,t.content.size,void 0," ").length}return t.nodeSize},this.storage.words=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter((e=>""!==e)).length}},addProseMirrorPlugins(){return[new Zt({key:new en("characterCount"),filterTransaction:(e,t)=>{const n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;const i=this.storage.characters({node:t.doc}),r=this.storage.characters({node:e.doc});if(r<=n)return!0;if(i>n&&r>n&&r<=i)return!0;if(i>n&&r>n&&r>i)return!1;if(!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,s=o-(r-n),a=o;e.deleteRange(s,a);return!(this.storage.characters({node:e.doc})>n)}})]}}),lS=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,cS=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,uS=Js.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Gs({find:lS,type:this.type})]},addPasteRules(){return[ea({find:cS,type:this.type})]}}),pS=Xs.create({name:"doc",topNode:!0,content:"block+"}),dS=as.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new Zt({key:new en("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:i}=this.editor,{anchor:r}=t,o=[];if(!n||!i)return Br.create(e,[]);let s=0;"deepest"===this.options.mode&&e.descendants(((e,t)=>{if(e.isText)return;if(!(r>=t&&r<=t+e.nodeSize-1))return!1;s+=1}));let a=0;return e.descendants(((e,t)=>{if(e.isText)return!1;if(!(r>=t&&r<=t+e.nodeSize-1))return!1;a+=1;if("deepest"===this.options.mode&&s-a>0||"shallowest"===this.options.mode&&a>1)return"deepest"===this.options.mode;o.push(Ir.node(t,t+e.nodeSize,{class:this.options.className}))})),Br.create(e,o)}}})]}}),hS=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,fS=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,mS=Js.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Gs({find:hS,type:this.type})]},addPasteRules(){return[ea({find:fS,type:this.type})]}});function gS(e){this.j={},this.jr=[],this.jd=null,this.t=e}gS.prototype={accepts:function(){return!!this.t},tt:function(e,t){if(t&&t.j)return this.j[e]=t,t;var n=t,i=this.j[e];if(i)return n&&(i.t=n),i;i=bS();var r=wS(this,e);return r?(Object.assign(i.j,r.j),i.jr.append(r.jr),i.jr=r.jd,i.t=n||r.t):i.t=n,this.j[e]=i,i}};var bS=function(){return new gS},vS=function(e){return new gS(e)},yS=function(e,t,n){e.j[t]||(e.j[t]=n)},xS=function(e,t,n){e.jr.push([t,n])},wS=function(e,t){var n=e.j[t];if(n)return n;for(var i=0;i<e.jr.length;i++){var r=e.jr[i][0],o=e.jr[i][1];if(r.test(t))return o}return e.jd},_S=function(e,t,n){for(var i=0;i<t.length;i++)yS(e,t[i],n)},kS=function(e,t){for(var n=0;n<t.length;n++){var i=t[n][0],r=t[n][1];yS(e,i,r)}},ES=function(e,t,n,i){for(var r,o=0,s=t.length;o<s&&(r=e.j[t[o]]);)e=r,o++;if(o>=s)return[];for(;o<s-1;)r=i(),yS(e,t[o],r),e=r,o++;yS(e,t[s-1],n)},CS="DOMAIN",MS="LOCALHOST",OS="TLD",DS="NUM",TS="PROTOCOL",SS="MAILTO",NS="WS",AS="NL",jS="OPENBRACE",LS="OPENBRACKET",zS="OPENANGLEBRACKET",IS="OPENPAREN",RS="CLOSEBRACE",FS="CLOSEBRACKET",BS="CLOSEANGLEBRACKET",PS="CLOSEPAREN",US="AMPERSAND",HS="APOSTROPHE",$S="ASTERISK",WS="AT",qS="BACKSLASH",VS="BACKTICK",KS="CARET",GS="COLON",YS="COMMA",QS="DOLLAR",ZS="DOT",JS="EQUALS",XS="EXCLAMATION",eN="HYPHEN",tN="PERCENT",nN="PIPE",iN="PLUS",rN="POUND",oN="QUERY",sN="QUOTE",aN="SEMI",lN="SLASH",cN="TILDE",uN="UNDERSCORE",pN="SYM",dN=Object.freeze({__proto__:null,DOMAIN:CS,LOCALHOST:MS,TLD:OS,NUM:DS,PROTOCOL:TS,MAILTO:SS,WS:NS,NL:AS,OPENBRACE:jS,OPENBRACKET:LS,OPENANGLEBRACKET:zS,OPENPAREN:IS,CLOSEBRACE:RS,CLOSEBRACKET:FS,CLOSEANGLEBRACKET:BS,CLOSEPAREN:PS,AMPERSAND:US,APOSTROPHE:HS,ASTERISK:$S,AT:WS,BACKSLASH:qS,BACKTICK:VS,CARET:KS,COLON:GS,COMMA:YS,DOLLAR:QS,DOT:ZS,EQUALS:JS,EXCLAMATION:XS,HYPHEN:eN,PERCENT:tN,PIPE:nN,PLUS:iN,POUND:rN,QUERY:oN,QUOTE:sN,SEMI:aN,SLASH:lN,TILDE:cN,UNDERSCORE:uN,SYM:pN}),hN="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),fN=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,mN=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,gN=/\uFE0F/,bN=/\d/,vN=/\s/;function yN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=bS(),n=vS(DS),i=vS(CS),r=bS(),o=vS(NS),s=[[bN,i],[fN,i],[mN,i],[gN,i]],a=function(){var e=vS(CS);return e.j={"-":r},e.jr=[].concat(s),e},l=function(e){var t=a();return t.t=e,t};kS(t,[["'",vS(HS)],["{",vS(jS)],["[",vS(LS)],["<",vS(zS)],["(",vS(IS)],["}",vS(RS)],["]",vS(FS)],[">",vS(BS)],[")",vS(PS)],["&",vS(US)],["*",vS($S)],["@",vS(WS)],["`",vS(VS)],["^",vS(KS)],[":",vS(GS)],[",",vS(YS)],["$",vS(QS)],[".",vS(ZS)],["=",vS(JS)],["!",vS(XS)],["-",vS(eN)],["%",vS(tN)],["|",vS(nN)],["+",vS(iN)],["#",vS(rN)],["?",vS(oN)],['"',vS(sN)],["/",vS(lN)],[";",vS(aN)],["~",vS(cN)],["_",vS(uN)],["\\",vS(qS)]]),yS(t,"\n",vS(AS)),xS(t,vN,o),yS(o,"\n",bS()),xS(o,vN,o);for(var c=0;c<hN.length;c++)ES(t,hN[c],l(OS),a);var u=a(),p=a(),d=a(),h=a();ES(t,"file",u,a),ES(t,"ftp",p,a),ES(t,"http",d,a),ES(t,"mailto",h,a);var f=a(),m=vS(TS),g=vS(SS);yS(p,"s",f),yS(p,":",m),yS(d,"s",f),yS(d,":",m),yS(u,":",m),yS(f,":",m),yS(h,":",g);for(var b=a(),v=0;v<e.length;v++)ES(t,e[v],b,a);return yS(b,":",m),ES(t,"localhost",l(MS),a),xS(t,bN,n),xS(t,fN,i),xS(t,mN,i),xS(t,gN,i),xS(n,bN,n),xS(n,fN,i),xS(n,mN,i),xS(n,gN,i),yS(n,"-",r),yS(i,"-",r),yS(r,"-",r),xS(i,bN,i),xS(i,fN,i),xS(i,mN,i),xS(i,gN,i),xS(r,bN,i),xS(r,fN,i),xS(r,mN,i),xS(r,gN,i),t.jd=vS(pN),t}var xN={defaultProtocol:"http",events:null,format:wN,formatHref:wN,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function wN(e){return e}function _N(){}function kN(e,t){function n(t,n){this.t=e,this.v=t,this.tk=n}return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(e.prototype);for(var r in n)i[r]=n[r];i.constructor=t,t.prototype=i}(_N,n,t),n}_N.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xN.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};var EN=kN("email",{isLink:!0}),CN=kN("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),MN=kN("text"),ON=kN("nl"),DN=kN("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xN.defaultProtocol,t=this.tk,n=!1,i=!1,r=[],o=0;t[o].t===TS;)n=!0,r.push(t[o].v),o++;for(;t[o].t===lN;)i=!0,r.push(t[o].v),o++;for(;o<t.length;o++)r.push(t[o].v);return r=r.join(""),n||i||(r="".concat(e,"://").concat(r)),r},hasProtocol:function(){return this.tk[0].t===TS}}),TN=Object.freeze({__proto__:null,MultiToken:_N,Base:_N,createTokenClass:kN,MailtoEmail:EN,Email:CN,Text:MN,Nl:ON,Url:DN});function SN(){var e=bS(),t=bS(),n=bS(),i=bS(),r=bS(),o=bS(),s=bS(),a=vS(DN),l=bS(),c=vS(DN),u=vS(DN),p=bS(),d=bS(),h=bS(),f=bS(),m=bS(),g=vS(DN),b=vS(DN),v=vS(DN),y=vS(DN),x=bS(),w=bS(),_=bS(),k=bS(),E=bS(),C=bS(),M=vS(CN),O=bS(),D=vS(CN),T=vS(EN),S=bS(),N=bS(),A=bS(),j=bS(),L=vS(ON);yS(e,AS,L),yS(e,TS,t),yS(e,SS,n),yS(t,lN,i),yS(i,lN,r),yS(e,OS,o),yS(e,CS,o),yS(e,MS,a),yS(e,DS,o),yS(r,OS,u),yS(r,CS,u),yS(r,DS,u),yS(r,MS,u),yS(o,ZS,s),yS(E,ZS,C),yS(s,OS,a),yS(s,CS,o),yS(s,DS,o),yS(s,MS,o),yS(C,OS,M),yS(C,CS,E),yS(C,DS,E),yS(C,MS,E),yS(a,ZS,s),yS(M,ZS,C),yS(a,GS,l),yS(a,lN,u),yS(l,DS,c),yS(c,lN,u),yS(M,GS,O),yS(O,DS,D);var z=[US,$S,WS,qS,VS,KS,QS,CS,JS,eN,MS,DS,tN,nN,iN,rN,TS,lN,pN,cN,OS,uN],I=[HS,BS,RS,FS,PS,GS,YS,ZS,XS,zS,jS,LS,IS,oN,sN,aN];yS(u,jS,d),yS(u,LS,h),yS(u,zS,f),yS(u,IS,m),yS(p,jS,d),yS(p,LS,h),yS(p,zS,f),yS(p,IS,m),yS(d,RS,u),yS(h,FS,u),yS(f,BS,u),yS(m,PS,u),yS(g,RS,u),yS(b,FS,u),yS(v,BS,u),yS(y,PS,u),yS(x,RS,u),yS(w,FS,u),yS(_,BS,u),yS(k,PS,u),_S(d,z,g),_S(h,z,b),_S(f,z,v),_S(m,z,y),_S(d,I,x),_S(h,I,w),_S(f,I,_),_S(m,I,k),_S(g,z,g),_S(b,z,b),_S(v,z,v),_S(y,z,y),_S(g,I,g),_S(b,I,b),_S(v,I,v),_S(y,I,y),_S(x,z,g),_S(w,z,b),_S(_,z,v),_S(k,z,y),_S(x,I,x),_S(w,I,w),_S(_,I,_),_S(k,I,k),_S(u,z,u),_S(p,z,u),_S(u,I,p),_S(p,I,p),yS(n,OS,T),yS(n,CS,T),yS(n,DS,T),yS(n,MS,T),_S(T,z,T),_S(T,I,S),_S(S,z,T),_S(S,I,S);var R=[US,HS,$S,qS,VS,KS,RS,QS,CS,JS,eN,DS,jS,tN,nN,iN,rN,oN,lN,pN,cN,OS,uN];return _S(o,R,N),yS(o,WS,A),_S(a,R,N),yS(a,WS,A),_S(s,R,N),_S(N,R,N),yS(N,WS,A),yS(N,ZS,j),_S(j,R,N),yS(A,OS,E),yS(A,CS,E),yS(A,DS,E),yS(A,MS,M),e}function NN(e,t,n){var i=n[0].s,r=n[n.length-1].e;return new e(t.substr(i,r-i),n)}var AN="undefined"!=typeof console&&console&&console.warn||function(){},jN={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function LN(e){if(jN.initialized&&AN('linkifyjs: already initialized - will not register custom protocol "'.concat(e,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(e))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");jN.customProtocols.push(e)}function zN(e){return jN.initialized||function(){jN.scanner={start:yN(jN.customProtocols),tokens:dN},jN.parser={start:SN(),tokens:TN};for(var e={createTokenClass:kN},t=0;t<jN.pluginQueue.length;t++)jN.pluginQueue[t][1]({scanner:jN.scanner,parser:jN.parser,utils:e});jN.initialized=!0}(),function(e,t,n){for(var i=n.length,r=0,o=[],s=[];r<i;){for(var a=e,l=null,c=null,u=0,p=null,d=-1;r<i&&!(l=wS(a,n[r].t));)s.push(n[r++]);for(;r<i&&(c=l||wS(a,n[r].t));)l=null,(a=c).accepts()?(d=0,p=a):d>=0&&d++,r++,u++;if(d<0)for(var h=r-u;h<r;h++)s.push(n[h]);else{s.length>0&&(o.push(NN(MN,t,s)),s=[]),r-=d,u-=d;var f=p.t,m=n.slice(r-u,r);o.push(NN(f,t,m))}}return s.length>0&&o.push(NN(MN,t,s)),o}(jN.parser.start,e,function(e,t){for(var n=function(e){for(var t=[],n=e.length,i=0;i<n;){var r=e.charCodeAt(i),o=void 0,s=r<55296||r>56319||i+1===n||(o=e.charCodeAt(i+1))<56320||o>57343?e[i]:e.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,(function(e){return e.toLowerCase()}))),i=n.length,r=[],o=0,s=0;s<i;){for(var a=e,l=null,c=0,u=null,p=-1,d=-1;s<i&&(l=wS(a,n[s]));)(a=l).accepts()?(p=0,d=0,u=a):p>=0&&(p+=n[s].length,d++),c+=n[s].length,o+=n[s].length,s++;o-=p,s-=d,c-=p,r.push({t:u.t,v:t.substr(o-c,c),s:o-c,e:o})}return r}(jN.scanner.start,e))}function IN(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=zN(e),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||t&&o.t!==t||i.push(o.toObject())}return i}function RN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=zN(e);return 1===n.length&&n[0].isLink&&(!t||n[0].t===t)}function FN(e){return new Zt({key:new en("autolink"),appendTransaction:(t,n,i)=>{const r=t.some((e=>e.docChanged))&&!n.doc.eq(i.doc),o=t.some((e=>e.getMeta("preventAutolink")));if(!r||o)return;const{tr:s}=i,a=function(e,t){const n=new Ot(e);return t.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(n.doc,[...t]),{mapping:l}=a,c=function(e){const{mapping:t,steps:n}=e,i=[];return t.maps.forEach(((e,r)=>{const o=[];if(e.ranges.length)e.forEach(((e,t)=>{o.push({from:e,to:t})}));else{const{from:e,to:t}=n[r];if(void 0===e||void 0===t)return;o.push({from:e,to:t})}o.forEach((({from:e,to:n})=>{const o=t.slice(r).map(e,-1),s=t.slice(r).map(n),a=t.invert().map(o,-1),l=t.invert().map(s);i.push({oldRange:{from:a,to:l},newRange:{from:o,to:s}})}))})),Ns(i)}(a);return c.forEach((({oldRange:t,newRange:r})=>{As(t.from,t.to,n.doc).filter((t=>t.mark.type===e.type)).forEach((t=>{const r=As(l.map(t.from),l.map(t.to),i.doc).filter((t=>t.mark.type===e.type));if(!r.length)return;const o=r[0],a=n.doc.textBetween(t.from,t.to,void 0," "),c=i.doc.textBetween(o.from,o.to,void 0," "),u=RN(a),p=RN(c);u&&!p&&s.removeMark(o.from,o.to,e.type)}));const o=function(e,t,n){const i=[];return e.nodesBetween(t.from,t.to,((e,t)=>{n(e)&&i.push({node:e,pos:t})})),i}(i.doc,r,(e=>e.isTextblock));let a,c;if(o.length>1?(a=o[0],c=i.doc.textBetween(a.pos,a.pos+a.node.nodeSize,void 0," ")):o.length&&i.doc.textBetween(r.from,r.to," "," ").endsWith(" ")&&(a=o[0],c=i.doc.textBetween(a.pos,r.to,void 0," ")),a&&c){const t=c.split(" ").filter((e=>""!==e));if(t.length<=0)return!1;const n=t[t.length-1],i=a.pos+c.lastIndexOf(n);if(!n)return!1;IN(n).filter((e=>e.isLink)).filter((t=>!e.validate||e.validate(t.value))).map((e=>({...e,from:i+e.start+1,to:i+e.end+1}))).forEach((t=>{s.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),s.steps.length?s:void 0}})}const BN=Js.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(LN)},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){return["a",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ea({find:e=>IN(e).filter((e=>!this.options.validate||this.options.validate(e.value))).filter((e=>e.isLink)).map((e=>({text:e.value,index:e.start,data:e}))),type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];var t;return this.options.autolink&&e.push(FN({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push((t={type:this.type},new Zt({key:new en("handleClickLink"),props:{handleClick:(e,n,i)=>{var r;const o=Ss(e.state,t.type.name);return!(!(null===(r=i.target)||void 0===r?void 0:r.closest("a"))||!o.href||(window.open(o.href,o.target),0))}}}))),this.options.linkOnPaste&&e.push(function(e){return new Zt({key:new en("handlePasteLink"),props:{handlePaste:(t,n,i)=>{const{state:r}=t,{selection:o}=r,{empty:s}=o;if(s)return!1;let a="";i.content.forEach((e=>{a+=e.textContent}));const l=IN(a).find((e=>e.isLink&&e.value===a));return!(!a||!l||(e.editor.commands.setMark(e.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),e}}),PN=Js.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),UN=/^\s*>\s$/,HN=Xs.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Zs({find:UN,type:this.type})]}}),$N=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,WN=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,qN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,VN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,KN=Js.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Gs({find:$N,type:this.type}),Gs({find:qN,type:this.type})]},addPasteRules(){return[ea({find:WN,type:this.type}),ea({find:VN,type:this.type})]}}),GN=/^\s*([-+*])\s$/,YN=Xs.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){return[Zs({find:GN,type:this.type})]}}),QN=/^```([a-z]+)?[\s\n]$/,ZN=/^~~~([a-z]+)?[\s\n]$/,JN=Xs.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,i=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter((e=>e.startsWith(n))).map((e=>e.replace(n,"")))[0];return i||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",Ho(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!o||!s)&&e.chain().command((({tr:e})=>(e.delete(i.pos-2,i.pos),!0))).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:i}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;if(!(r.parentOffset===r.parent.nodeSize-2))return!1;const s=r.after();if(void 0===s)return!1;return!i.nodeAt(s)&&e.commands.exitCode()}}},addInputRules(){return[Qs({find:QN,type:this.type,getAttributes:e=>({language:e[1]})}),Qs({find:ZN,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Zt({key:new en("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),r=i?JSON.parse(i):void 0,o=null==r?void 0:r.mode;if(!n||!o)return!1;const{tr:s}=e.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(jt.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}});function XN(e={}){return new Zt({view:t=>new eA(t,e)})}class eA{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){let n=t.nodeBefore,i=t.nodeAfter;if(n||i){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),r=n?t.bottom:t.top;n&&i&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:t.left,right:t.right,top:r-this.width/2,bottom:r+this.width/2}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let n,i,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!r||r==document.body&&"static"==getComputedStyle(r).position)n=-pageXOffset,i=-pageYOffset;else{let e=r.getBoundingClientRect();n=e.left-r.scrollLeft,i=e.top-r.scrollTop}this.element.style.left=e.left-n+"px",this.element.style.top=e.top-i+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=n&&n.type.spec.disableDropCursor,r="function"==typeof i?i(this.editorView,t):i;if(t&&!r){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(e=ht(this.editorView.state.doc,e,this.editorView.dragging.slice),null==e))return this.setCursor(null);this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const tA=as.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[XN(this.options)]}});class nA extends Tt{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return nA.valid(n)?new nA(n):Tt.near(n)}content(){return B.empty}eq(e){return e instanceof nA&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new nA(e.resolve(t.pos))}getBookmark(){return new iA(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),i=e.node(t);if(0!=n)for(let e=i.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),i=e.node(t);if(n!=i.childCount)for(let e=i.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&nA.valid(e))return e;let i=e.pos,r=null;for(let n=e.depth;;n--){let o=e.node(n);if(t>0?e.indexAfter(n)<o.childCount:e.index(n)>0){r=o.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;i+=t;let s=e.doc.resolve(i);if(nA.valid(s))return s}for(;;){let o=t>0?r.firstChild:r.lastChild;if(!o){if(r.isAtom&&!r.isText&&!zt.isSelectable(r)){e=e.doc.resolve(i+r.nodeSize*t),n=!1;continue e}break}r=o,i+=t;let s=e.doc.resolve(i);if(nA.valid(s))return s}return null}}}nA.prototype.visible=!1,nA.findFrom=nA.findGapCursorFrom,Tt.jsonID("gapcursor",nA);class iA{constructor(e){this.pos=e}map(e){return new iA(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return nA.valid(t)?new nA(t):Tt.near(t)}}const rA=Eo({ArrowLeft:oA("horiz",-1),ArrowRight:oA("horiz",1),ArrowUp:oA("vert",-1),ArrowDown:oA("vert",1)});function oA(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,r){let o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof jt){if(!r.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}let l=nA.findGapCursorFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new nA(l))),!0)}}function sA(e,t,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(t);if(!nA.valid(i))return!1;let r=e.posAtCoords({left:n.clientX,top:n.clientY});return!(r&&r.inside>-1&&zt.isSelectable(e.state.doc.nodeAt(r.inside)))&&(e.dispatch(e.state.tr.setSelection(new nA(i))),!0)}function aA(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof nA))return!1;let{$from:n}=e.state.selection,i=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let r=j.empty;for(let e=i.length-1;e>=0;e--)r=j.from(i[e].createAndFill(null,r));let o=e.state.tr.replace(n.pos,n.pos,new B(r,0,0));return o.setSelection(jt.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function lA(e){if(!(e.selection instanceof nA))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Br.create(e.doc,[Ir.widget(e.selection.head,t,{key:"gapcursor"})])}const cA=as.create({name:"gapCursor",addProseMirrorPlugins:()=>[new Zt({props:{decorations:lA,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&nA.valid(n)?new nA(n):null,handleClick:sA,handleKeyDown:rA,handleDOMEvents:{beforeinput:aA}}})],extendNodeSchema(e){var t;return{allowGapCursor:null!==(t=qo(Fo(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}}),uA=Xs.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",Ho(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:i})=>e.first([()=>e.exitCode(),()=>e.command((()=>{const{selection:e,storedMarks:r}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=i.extensionManager,a=r||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command((({tr:e,dispatch:t})=>{if(t&&a&&o){const t=a.filter((e=>s.includes(e.type.name)));e.ensureMarks(t)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),pA=Xs.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((e=>({tag:`h${e}`,attrs:{level:e}})))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Ho(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce(((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})})),{})},addInputRules(){return this.options.levels.map((e=>Qs({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}})))}});var dA=200,hA=function(){};hA.prototype.append=function(e){return e.length?(e=hA.from(e),!this.length&&e||e.length<dA&&this.leafAppend(e)||this.length<dA&&e.leafPrepend(this)||this.appendInner(e)):this},hA.prototype.prepend=function(e){return e.length?hA.from(e).append(this):this},hA.prototype.appendInner=function(e){return new mA(this,e)},hA.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?hA.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},hA.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},hA.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},hA.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var i=[];return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},hA.from=function(e){return e instanceof hA?e:e&&e.length?new fA(e):hA.empty};var fA=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var r=t;r<n;r++)if(!1===e(this.values[r],i+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],i+r))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=dA)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=dA)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(hA);hA.empty=new fA([]);var mA=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),i))&&(!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,i+r))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,i){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,i+r))&&(!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,i))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(hA),gA=hA;const bA=500;class vA{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,i,r=this.items.length;for(;;r--){if(this.items.get(r-1).selection){--r;break}}t&&(n=this.remapping(r,this.items.length),i=n.maps.length);let o,s,a=e.tr,l=[],c=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(r,t+1),i=n.maps.length),i--,void c.push(e);if(n){c.push(new yA(e.map));let t,r=e.step.map(n.slice(i));r&&a.maybeStep(r).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new yA(t,void 0,void 0,l.length+c.length))),i--,t&&n.appendMap(t,i)}else a.maybeStep(e.step);return e.selection?(o=n?e.selection.map(n.slice(i)):e.selection,s=new vA(this.items.slice(0,r).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:o}}addTransform(e,t,n,i){let r=[],o=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null;for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),u=new yA(e.mapping.maps[n],c,t);(l=a&&a.merge(u))&&(u=l,n?r.pop():s=s.slice(0,s.length-1)),r.push(u),t&&(o++,t=void 0),i||(a=u)}let l=o-n.depth;return l>wA&&(s=function(e,t){let n;return e.forEach(((e,i)=>{if(e.selection&&0==t--)return n=i,!1})),e.slice(n)}(s,l),o-=l),new vA(s.append(r),o)}remapping(e,t){let n=new Ye;return this.items.forEach(((t,i)=>{let r=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,r)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new vA(this.items.append(e.map((e=>new yA(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],i=Math.max(0,this.items.length-t),r=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach((e=>{e.selection&&s--}),i);let a=t;this.items.forEach((t=>{let i=r.getMirror(--a);if(null==i)return;o=Math.min(o,i);let l=r.maps[i];if(t.step){let o=e.steps[i].invert(e.docs[i]),c=t.selection&&t.selection.map(r.slice(a+1,i));c&&s++,n.push(new yA(l,o,c))}else n.push(new yA(l))}),i);let l=[];for(let e=t;e<o;e++)l.push(new yA(r.maps[e]));let c=this.items.slice(0,i).append(l).append(n),u=new vA(c,s);return u.emptyItemCount()>bA&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,i=[],r=0;return this.items.forEach(((o,s)=>{if(s>=e)i.push(o),o.selection&&r++;else if(o.step){let e=o.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=o.selection&&o.selection.map(t.slice(n));a&&r++;let l,c=new yA(s.invert(),e,a),u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else o.map&&n--}),this.items.length,0),new vA(gA.from(i.reverse()),r)}}vA.empty=new vA(gA.empty,0);class yA{constructor(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new yA(t.getMap().invert(),t,this.selection)}}}class xA{constructor(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i}}const wA=20;function _A(e){let t=[];return e.forEach(((e,n,i,r)=>t.push(i,r))),t}function kA(e,t){if(!e)return null;let n=[];for(let i=0;i<e.length;i+=2){let r=t.map(e[i],1),o=t.map(e[i+1],-1);r<=o&&n.push(r,o)}return n}function EA(e,t,n,i){let r=OA(t),o=DA.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,r);if(!s)return;let a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),o,r),c=new xA(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(DA,{redo:i,historyState:c}).scrollIntoView())}let CA=!1,MA=null;function OA(e){let t=e.plugins;if(MA!=t){CA=!1,MA=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){CA=!0;break}}return CA}const DA=new en("history"),TA=new en("closeHistory");function SA(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Zt({key:DA,state:{init:()=>new xA(vA.empty,vA.empty,null,0),apply:(t,n,i)=>function(e,t,n,i){let r,o=n.getMeta(DA);if(o)return o.historyState;n.getMeta(TA)&&(e=new xA(e.done,e.undone,null,0));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(DA))return s.getMeta(DA).redo?new xA(e.done.addTransform(n,void 0,i,OA(t)),e.undone,_A(n.mapping.maps[n.steps.length-1]),e.prevTime):new xA(e.done,e.undone.addTransform(n,void 0,i,OA(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new xA(e.done.rebased(n,r),e.undone.rebased(n,r),kA(e.prevRanges,n.mapping),e.prevTime):new xA(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),kA(e.prevRanges,n.mapping),e.prevTime);{let r=0==e.prevTime||!s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,i)=>{for(let r=0;r<t.length;r+=2)e<=t[r+1]&&i>=t[r]&&(n=!0)})),n}(n,e.prevRanges)),o=s?kA(e.prevRanges,n.mapping):_A(n.mapping.maps[n.steps.length-1]);return new xA(e.done.addTransform(n,r?t.selection.getBookmark():void 0,i,OA(t)),vA.empty,o,n.time)}}(n,i,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,i="historyUndo"==n?NA:"historyRedo"==n?AA:null;return!!i&&(t.preventDefault(),i(e.state,e.dispatch))}}}})}const NA=(e,t)=>{let n=DA.getState(e);return!(!n||0==n.done.eventCount)&&(t&&EA(n,e,t,!1),!0)},AA=(e,t)=>{let n=DA.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&EA(n,e,t,!0),!0)},jA=as.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>NA(e,t),redo:()=>({state:e,dispatch:t})=>AA(e,t)}),addProseMirrorPlugins(){return[SA(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),LA=Xs.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",Ho(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e})=>e().insertContent({type:this.name}).command((({tr:e,dispatch:t})=>{var n;if(t){const{$to:t}=e.selection,i=t.end();if(t.nodeAfter)e.setSelection(jt.create(e.doc,t.pos));else{const r=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();r&&(e.insert(i,r),e.setSelection(jt.create(e.doc,i)))}e.scrollIntoView()}return!0})).run()}},addInputRules(){return[Ys({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),zA=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,IA=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,RA=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,FA=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,BA=Js.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Gs({find:zA,type:this.type}),Gs({find:RA,type:this.type})]},addPasteRules(){return[ea({find:IA,type:this.type}),ea({find:FA,type:this.type})]}}),PA=Xs.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",Ho(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),UA=/^(\d+)\.\s$/,HA=Xs.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return 1===t?["ol",Ho(this.options.HTMLAttributes,n),0]:["ol",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[Zs({find:UA,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]})]}}),$A=Xs.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),WA=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,qA=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,VA=Js.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",Ho(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Gs({find:WA,type:this.type})]},addPasteRules(){return[ea({find:qA,type:this.type})]}}),KA=Xs.create({name:"text",group:"inline"}),GA=as.create({name:"starterKit",addExtensions(){var e,t,n,i,r,o,s,a,l,c,u,p,d,h,f,m,g,b;const v=[];return!1!==this.options.blockquote&&v.push(HN.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&v.push(KN.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&v.push(YN.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&v.push(uS.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&v.push(JN.configure(null===(r=this.options)||void 0===r?void 0:r.codeBlock)),!1!==this.options.document&&v.push(pS.configure(null===(o=this.options)||void 0===o?void 0:o.document)),!1!==this.options.dropcursor&&v.push(tA.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&v.push(cA.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&v.push(uA.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&v.push(pA.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&v.push(jA.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&v.push(LA.configure(null===(p=this.options)||void 0===p?void 0:p.horizontalRule)),!1!==this.options.italic&&v.push(BA.configure(null===(d=this.options)||void 0===d?void 0:d.italic)),!1!==this.options.listItem&&v.push(PA.configure(null===(h=this.options)||void 0===h?void 0:h.listItem)),!1!==this.options.orderedList&&v.push(HA.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&v.push($A.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&v.push(VA.configure(null===(g=this.options)||void 0===g?void 0:g.strike)),!1!==this.options.text&&v.push(KA.configure(null===(b=this.options)||void 0===b?void 0:b.text)),v}});var YA={exports:{}};function QA(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||QA(n)})),e}YA.exports=QA,YA.exports.default=QA;class ZA{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function JA(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function XA(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const ej="</span>",tj=e=>!!e.scope||e.sublanguage&&e.language;class nj{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=JA(e)}openNode(e){if(!tj(e))return;let t="";t=e.sublanguage?`language-${e.language}`:((e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){tj(e)&&(this.buffer+=ej)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ij=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class rj{constructor(){this.rootNode=ij(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=ij({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{rj._collapse(e)})))}}class oj extends rj{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){return new nj(this,this.options).value()}finalize(){return!0}}function sj(e){return e?"string"==typeof e?e:e.source:null}function aj(e){return uj("(?=",e,")")}function lj(e){return uj("(?:",e,")*")}function cj(e){return uj("(?:",e,")?")}function uj(...e){const t=e.map((e=>sj(e))).join("");return t}function pj(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>sj(e))).join("|")+")";return n}function dj(e){return new RegExp(e.toString()+"|").exec("").length-1}const hj=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function fj(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let i=sj(e),r="";for(;i.length>0;){const e=hj.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)}const mj="[a-zA-Z]\\w*",gj="[a-zA-Z_]\\w*",bj="\\b\\d+(\\.\\d+)?",vj="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",yj="\\b(0b[01]+)",xj={begin:"\\\\[\\s\\S]",relevance:0},wj={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[xj]},_j={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[xj]},kj=function(e,t,n={}){const i=XA({scope:"comment",begin:e,end:t,contains:[]},n);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=pj("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:uj(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Ej=kj("//","$"),Cj=kj("/\\*","\\*/"),Mj=kj("#","$"),Oj={scope:"number",begin:bj,relevance:0},Dj={scope:"number",begin:vj,relevance:0},Tj={scope:"number",begin:yj,relevance:0},Sj={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[xj,{begin:/\[/,end:/\]/,relevance:0,contains:[xj]}]}]},Nj={scope:"title",begin:mj,relevance:0},Aj={scope:"title",begin:gj,relevance:0},jj={begin:"\\.\\s*"+gj,relevance:0};var Lj=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:mj,UNDERSCORE_IDENT_RE:gj,NUMBER_RE:bj,C_NUMBER_RE:vj,BINARY_NUMBER_RE:yj,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=uj(t,/.*\b/,e.binary,/\b.*/)),XA({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:xj,APOS_STRING_MODE:wj,QUOTE_STRING_MODE:_j,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:kj,C_LINE_COMMENT_MODE:Ej,C_BLOCK_COMMENT_MODE:Cj,HASH_COMMENT_MODE:Mj,NUMBER_MODE:Oj,C_NUMBER_MODE:Dj,BINARY_NUMBER_MODE:Tj,REGEXP_MODE:Sj,TITLE_MODE:Nj,UNDERSCORE_TITLE_MODE:Aj,METHOD_GUARD:jj,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function zj(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function Ij(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Rj(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=zj,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Fj(e,t){Array.isArray(e.illegal)&&(e.illegal=pj(...e.illegal))}function Bj(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Pj(e,t){void 0===e.relevance&&(e.relevance=1)}const Uj=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=uj(n.beforeMatch,aj(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Hj=["of","and","for","in","not","or","if","then","parent","list","value"],$j="keyword";function Wj(e,t,n=$j){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(i,Wj(e[n],t,n))})),i;function r(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");i[n[0]]=[e,qj(n[0],n[1])]}))}}function qj(e,t){return t?Number(t):function(e){return Hj.includes(e.toLowerCase())}(e)?0:1}const Vj={},Kj=e=>{console.error(e)},Gj=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Yj=(e,t)=>{Vj[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Vj[`${e}/${t}`]=!0)},Qj=new Error;function Zj(e,t,{key:n}){let i=0;const r=e[n],o={},s={};for(let e=1;e<=t.length;e++)s[e+i]=r[e],o[e+i]=!0,i+=dj(t[e-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function Jj(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Kj("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Qj;if("object"!=typeof e.beginScope||null===e.beginScope)throw Kj("beginScope must be object"),Qj;Zj(e,e.begin,{key:"beginScope"}),e.begin=fj(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Kj("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Qj;if("object"!=typeof e.endScope||null===e.endScope)throw Kj("endScope must be object"),Qj;Zj(e,e.end,{key:"endScope"}),e.end=fj(e.end,{joinWith:""})}}(e)}function Xj(e){function t(t,n){return new RegExp(sj(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=dj(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(fj(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=XA(e.classNameAliases||{}),function n(r,o){const s=r;if(r.isCompiled)return s;[Ij,Bj,Jj,Uj].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),r.__beforeBegin=null,[Rj,Fj,Pj].forEach((e=>e(r,o))),r.isCompiled=!0;let a=null;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),a=r.keywords.$pattern,delete r.keywords.$pattern),a=a||/\w+/,r.keywords&&(r.keywords=Wj(r.keywords,e.case_insensitive)),s.keywordPatternRe=t(a,!0),o&&(r.begin||(r.begin=/\B|\b/),s.beginRe=t(s.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(s.endRe=t(s.end)),s.terminatorEnd=sj(s.end)||"",r.endsWithParent&&o.terminatorEnd&&(s.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(s.illegalRe=t(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return XA(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(eL(e))return XA(e,{starts:e.starts?XA(e.starts):null});if(Object.isFrozen(e))return XA(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){n(e,s)})),r.starts&&n(r.starts,o),s.matcher=function(e){const t=new i;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function eL(e){return!!e&&(e.endsWithParent||eL(e.starts))}var tL="11.6.0";class nL extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const iL=JA,rL=XA,oL=Symbol("nomatch"),sL=7;var aL=function(e){const t=Object.create(null),n=Object.create(null),i=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:oj};function l(e){return a.noHighlightRe.test(e)}function c(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(Yj("10.7.0","highlight(lang, code, ...args) has been deprecated."),Yj("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const o={code:i,language:r};v("before:highlight",o);const s=o.result?o.result:u(o.language,o.code,n);return s.code=o.code,v("after:highlight",s),s}function u(e,n,i,s){const l=Object.create(null);function c(){if(!E.keywords)return void M.addText(O);let e=0;E.keywordPatternRe.lastIndex=0;let t=E.keywordPatternRe.exec(O),n="";for(;t;){n+=O.substring(e,t.index);const r=w.case_insensitive?t[0].toLowerCase():t[0],o=(i=r,E.keywords[i]);if(o){const[e,i]=o;if(M.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=sL&&(D+=i),e.startsWith("_"))n+=t[0];else{const n=w.classNameAliases[e]||e;M.addKeyword(t[0],n)}}else n+=t[0];e=E.keywordPatternRe.lastIndex,t=E.keywordPatternRe.exec(O)}var i;n+=O.substring(e),M.addText(n)}function d(){null!=E.subLanguage?function(){if(""===O)return;let e=null;if("string"==typeof E.subLanguage){if(!t[E.subLanguage])return void M.addText(O);e=u(E.subLanguage,O,!0,C[E.subLanguage]),C[E.subLanguage]=e._top}else e=p(O,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(D+=e.relevance),M.addSublanguage(e._emitter,e.language)}():c(),O=""}function h(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=w.classNameAliases[e[n]]||e[n],r=t[n];i?M.addKeyword(r,i):(O=r,c(),O=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(M.addKeyword(O,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),O=""):e.beginScope._multi&&(h(e.beginScope,t),O="")),E=Object.create(e,{parent:{value:E}}),E}function g(e,t,n){let i=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(i){if(e["on:end"]){const n=new ZA(e);e["on:end"](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,t,n)}function b(e){return 0===E.matcher.regexIndex?(O+=e[0],1):(N=!0,0)}function v(e){const t=e[0],i=n.substring(e.index),r=g(E,e,i);if(!r)return oL;const o=E;E.endScope&&E.endScope._wrap?(d(),M.addKeyword(t,E.endScope._wrap)):E.endScope&&E.endScope._multi?(d(),h(E.endScope,e)):o.skip?O+=t:(o.returnEnd||o.excludeEnd||(O+=t),d(),o.excludeEnd&&(O=t));do{E.scope&&M.closeNode(),E.skip||E.subLanguage||(D+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&f(r.starts,e),o.returnEnd?0:t.length}let y={};function x(t,o){const s=o&&o[0];if(O+=t,null==s)return d(),0;if("begin"===y.type&&"end"===o.type&&y.index===o.index&&""===s){if(O+=n.slice(o.index,o.index+1),!r){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=y.rule,t}return 1}if(y=o,"begin"===o.type)return function(e){const t=e[0],n=e.rule,i=new ZA(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,i),i.isMatchIgnored))return b(t);return n.skip?O+=t:(n.excludeBegin&&(O+=t),d(),n.returnBegin||n.excludeBegin||(O=t)),f(n,e),n.returnBegin?0:t.length}(o);if("illegal"===o.type&&!i){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(E.scope||"<unnamed>")+'"');throw e.mode=E,e}if("end"===o.type){const e=v(o);if(e!==oL)return e}if("illegal"===o.type&&""===s)return 1;if(S>1e5&&S>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return O+=s,s.length}const w=m(e);if(!w)throw Kj(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const _=Xj(w);let k="",E=s||_;const C={},M=new a.__emitter(a);!function(){const e=[];for(let t=E;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>M.openNode(e)))}();let O="",D=0,T=0,S=0,N=!1;try{for(E.matcher.considerAll();;){S++,N?N=!1:E.matcher.considerAll(),E.matcher.lastIndex=T;const e=E.matcher.exec(n);if(!e)break;const t=x(n.substring(T,e.index),e);T=e.index+t}return x(n.substring(T)),M.closeAllNodes(),M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:D,illegal:!1,_emitter:M,_top:E}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:iL(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:T,context:n.slice(T-100,T+100),mode:t.mode,resultSoFar:k},_emitter:M};if(r)return{language:e,value:iL(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:E};throw t}}function p(e,n){n=n||a.languages||Object.keys(t);const i=function(e){const t={value:iL(e),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return t._emitter.addText(e),t}(e),r=n.filter(m).filter(b).map((t=>u(t,e,!1)));r.unshift(i);const o=r.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=o,p=l;return p.secondBest=c,p}function d(e){let t=null;const i=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=a.languageDetectRe.exec(t);if(n){const t=m(n[1]);return t||(Gj(o.replace("{}",n[1])),Gj("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(i))return;if(v("before:highlightElement",{el:e,language:i}),e.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),a.throwUnescapedHTML)){throw new nL("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,s=i?c(r,{language:i,ignoreIllegals:!0}):p(r);e.innerHTML=s.value,function(e,t,i){const r=t&&n[t]||i;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,i,s.language),e.result={language:s.language,re:s.relevance,relevance:s.relevance},s.secondBest&&(e.secondBest={language:s.secondBest.language,relevance:s.secondBest.relevance}),v("after:highlightElement",{el:e,result:s,text:r})}let h=!1;function f(){if("loading"===document.readyState)return void(h=!0);document.querySelectorAll(a.cssSelector).forEach(d)}function m(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function g(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function b(e){const t=m(e);return t&&!t.disableAutodetect}function v(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){h&&f()}),!1),Object.assign(e,{highlight:c,highlightAuto:p,highlightAll:f,highlightElement:d,highlightBlock:function(e){return Yj("10.7.0","highlightBlock will be removed entirely in v12.0"),Yj("10.7.0","Please use highlightElement now."),d(e)},configure:function(e){a=rL(a,e)},initHighlighting:()=>{f(),Yj("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){f(),Yj("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,i){let o=null;try{o=i(e)}catch(e){if(Kj("Language definition for '{}' could not be registered.".replace("{}",n)),!r)throw e;Kj(e),o=s}o.name||(o.name=n),t[n]=o,o.rawDefinition=i.bind(null,e),o.aliases&&g(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:b,inherit:rL,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)}}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=tL,e.regex={concat:uj,lookahead:aj,either:pj,optional:cj,anyNumberOfTimes:lj};for(const e in Lj)"object"==typeof Lj[e]&&YA.exports(Lj[e]);return Object.assign(e,Lj),e}({}),lL=aL;aL.HighlightJS=aL,aL.default=aL;var cL=lL;function uL(e,t=[]){return e.map((e=>{const n=[...t,...e.properties?e.properties.className:[]];return e.children?uL(e.children,n):{text:e.value,classes:n}})).flat()}function pL(e){return e.value||e.children||[]}function dL({doc:e,name:t,lowlight:n,defaultLanguage:i}){const r=[];return Os(e,(e=>e.type.name===t)).forEach((e=>{let t=e.pos+1;const o=e.node.attrs.language||i,s=n.listLanguages();var a;uL(o&&(s.includes(o)||(a=o,Boolean(cL.getLanguage(a))))?pL(n.highlight(o,e.node.textContent)):pL(n.highlightAuto(e.node.textContent))).forEach((e=>{const n=t+e.text.length;if(e.classes.length){const i=Ir.inline(t,n,{class:e.classes.join(" ")});r.push(i)}t=n}))})),Br.create(e,r)}function hL({name:e,lowlight:t,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every((e=>"function"==typeof t[e])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const i=new Zt({key:new en("lowlight"),state:{init:(i,{doc:r})=>dL({doc:r,name:e,lowlight:t,defaultLanguage:n}),apply:(i,r,o,s)=>{const a=o.selection.$head.parent.type.name,l=s.selection.$head.parent.type.name,c=Os(o.doc,(t=>t.type.name===e)),u=Os(s.doc,(t=>t.type.name===e));return i.docChanged&&([a,l].includes(e)||u.length!==c.length||i.steps.some((e=>void 0!==e.from&&void 0!==e.to&&c.some((t=>t.pos>=e.from&&t.pos+t.node.nodeSize<=e.to)))))?dL({doc:i.doc,name:e,lowlight:t,defaultLanguage:n}):r.map(i.mapping,i.doc)}},props:{decorations:e=>i.getState(e)}});return i}const fL=JN.extend({addOptions(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),lowlight:{},defaultLanguage:null}},addProseMirrorPlugins(){var e;return[...(null===(e=this.parent)||void 0===e?void 0:e.call(this))||[],hL({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});const mL=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],gL=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],bL=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],vL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],yL=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();var xL="[0-9](_*[0-9])*",wL=`\\.(${xL})`,_L="[0-9a-fA-F](_*[0-9a-fA-F])*",kL={className:"number",variants:[{begin:`(\\b(${xL})((${wL})|\\.)?|(${wL}))`+`[eE][+-]?(${xL})[fFdD]?\\b`},{begin:`\\b(${xL})((${wL})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${wL})[fFdD]?\\b`},{begin:`\\b(${xL})[fFdD]\\b`},{begin:`\\b0[xX]((${_L})\\.?|(${_L})?\\.(${_L}))`+`[pP][+-]?(${xL})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${_L})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function EL(e,t,n){return-1===n?"":e.replace(t,(i=>EL(e,t,n-1)))}const CL="[A-Za-z$_][0-9A-Za-z$_]*",ML=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],OL=["true","false","null","undefined","NaN","Infinity"],DL=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],TL=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],SL=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],NL=["arguments","this","super","console","window","document","localStorage","module","global"],AL=[].concat(SL,DL,TL);var jL="[0-9](_*[0-9])*",LL=`\\.(${jL})`,zL="[0-9a-fA-F](_*[0-9a-fA-F])*",IL={className:"number",variants:[{begin:`(\\b(${jL})((${LL})|\\.)?|(${LL}))`+`[eE][+-]?(${jL})[fFdD]?\\b`},{begin:`\\b(${jL})((${LL})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${LL})[fFdD]?\\b`},{begin:`\\b(${jL})[fFdD]\\b`},{begin:`\\b0[xX]((${zL})\\.?|(${zL})?\\.(${zL}))`+`[pP][+-]?(${jL})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${zL})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};const RL=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],FL=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],BL=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],UL=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),HL=BL.concat(PL);const $L=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],WL=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],qL=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],VL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],KL=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function GL(e){return e?"string"==typeof e?e:e.source:null}function YL(e){return QL("(?=",e,")")}function QL(...e){const t=e.map((e=>GL(e))).join("");return t}function ZL(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>GL(e))).join("|")+")";return n}const JL=e=>QL(/\b/,e,/\w$/.test(e)?/\b/:/\B/),XL=["Protocol","Type"].map(JL),ez=["init","self"].map(JL),tz=["Any","Self"],nz=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],iz=["false","nil","true"],rz=["assignment","associativity","higherThan","left","lowerThan","none","right"],oz=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],sz=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],az=ZL(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),lz=ZL(az,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),cz=QL(az,lz,"*"),uz=ZL(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),pz=ZL(uz,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),dz=QL(uz,pz,"*"),hz=QL(/[A-Z]/,pz,"*"),fz=["autoclosure",QL(/convention\(/,ZL("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",QL(/objc\(/,dz,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],mz=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];const gz="[A-Za-z$_][0-9A-Za-z$_]*",bz=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],vz=["true","false","null","undefined","NaN","Infinity"],yz=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],xz=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wz=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],_z=["arguments","this","super","console","window","document","localStorage","module","global"],kz=[].concat(wz,yz,xz);function Ez(e){const t=e.regex,n=gz,i="<>",r="</>",o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());(r=e.input.substring(n).match(/^\s+extends\s+/))&&0===r.index&&t.ignoreMatch()}},s={$pattern:gz,keyword:bz,literal:vz,built_in:kz,"variable.language":_z},a="[0-9](_?[0-9])*",l=`\\.(${a})`,c=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,u={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))`+`[eE][+-]?(${a})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},m={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},g=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,f,u];p.contains=g.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(g)});const b=[].concat(m,p.contains),v=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},w={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...yz,...xz]}},_={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/};const k={match:t.concat(/\b/,(E=[...wz,"super"],t.concat("(?!",E.join("|"),")")),n,t.lookahead(/\(/)),className:"title.function",relevance:0};var E;const C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},O="(\\("+"[^()]*(\\("+"[^()]*(\\("+"[^()]*"+"\\)[^()]*)*"+"\\)[^()]*)*"+"\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,f,m,u,w,{className:"attr",begin:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\("+"[^()]*(\\("+"[^()]*(\\("+"[^()]*"+"\\)[^()]*)*"+"\\)[^()]*)*"+"\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,M,{match:/\$[(.]/}]}}var Cz={exports:{}};function Mz(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||Mz(n)})),e}Cz.exports=Mz,Cz.exports.default=Mz;class Oz{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Dz(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Tz(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const Sz="</span>",Nz=e=>!!e.scope||e.sublanguage&&e.language;class Az{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Dz(e)}openNode(e){if(!Nz(e))return;let t="";t=e.sublanguage?`language-${e.language}`:((e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){Nz(e)&&(this.buffer+=Sz)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const jz=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Lz{constructor(){this.rootNode=jz(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=jz({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Lz._collapse(e)})))}}class zz extends Lz{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){return new Az(this,this.options).value()}finalize(){return!0}}function Iz(e){return e?"string"==typeof e?e:e.source:null}function Rz(e){return Pz("(?=",e,")")}function Fz(e){return Pz("(?:",e,")*")}function Bz(e){return Pz("(?:",e,")?")}function Pz(...e){const t=e.map((e=>Iz(e))).join("");return t}function Uz(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>Iz(e))).join("|")+")";return n}function Hz(e){return new RegExp(e.toString()+"|").exec("").length-1}const $z=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Wz(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let i=Iz(e),r="";for(;i.length>0;){const e=$z.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)}const qz="[a-zA-Z]\\w*",Vz="[a-zA-Z_]\\w*",Kz="\\b\\d+(\\.\\d+)?",Gz="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Yz="\\b(0b[01]+)",Qz={begin:"\\\\[\\s\\S]",relevance:0},Zz={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Qz]},Jz={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Qz]},Xz=function(e,t,n={}){const i=Tz({scope:"comment",begin:e,end:t,contains:[]},n);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=Uz("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Pz(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},eI=Xz("//","$"),tI=Xz("/\\*","\\*/"),nI=Xz("#","$"),iI={scope:"number",begin:Kz,relevance:0},rI={scope:"number",begin:Gz,relevance:0},oI={scope:"number",begin:Yz,relevance:0},sI={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Qz,{begin:/\[/,end:/\]/,relevance:0,contains:[Qz]}]}]},aI={scope:"title",begin:qz,relevance:0},lI={scope:"title",begin:Vz,relevance:0},cI={begin:"\\.\\s*"+Vz,relevance:0};var uI=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:qz,UNDERSCORE_IDENT_RE:Vz,NUMBER_RE:Kz,C_NUMBER_RE:Gz,BINARY_NUMBER_RE:Yz,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Pz(t,/.*\b/,e.binary,/\b.*/)),Tz({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Qz,APOS_STRING_MODE:Zz,QUOTE_STRING_MODE:Jz,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:Xz,C_LINE_COMMENT_MODE:eI,C_BLOCK_COMMENT_MODE:tI,HASH_COMMENT_MODE:nI,NUMBER_MODE:iI,C_NUMBER_MODE:rI,BINARY_NUMBER_MODE:oI,REGEXP_MODE:sI,TITLE_MODE:aI,UNDERSCORE_TITLE_MODE:lI,METHOD_GUARD:cI,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function pI(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function dI(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function hI(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=pI,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function fI(e,t){Array.isArray(e.illegal)&&(e.illegal=Uz(...e.illegal))}function mI(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function gI(e,t){void 0===e.relevance&&(e.relevance=1)}const bI=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=Pz(n.beforeMatch,Rz(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},vI=["of","and","for","in","not","or","if","then","parent","list","value"],yI="keyword";function xI(e,t,n=yI){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(i,xI(e[n],t,n))})),i;function r(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");i[n[0]]=[e,wI(n[0],n[1])]}))}}function wI(e,t){return t?Number(t):function(e){return vI.includes(e.toLowerCase())}(e)?0:1}const _I={},kI=e=>{console.error(e)},EI=(e,...t)=>{console.log(`WARN: ${e}`,...t)},CI=(e,t)=>{_I[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_I[`${e}/${t}`]=!0)},MI=new Error;function OI(e,t,{key:n}){let i=0;const r=e[n],o={},s={};for(let e=1;e<=t.length;e++)s[e+i]=r[e],o[e+i]=!0,i+=Hz(t[e-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function DI(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw kI("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MI;if("object"!=typeof e.beginScope||null===e.beginScope)throw kI("beginScope must be object"),MI;OI(e,e.begin,{key:"beginScope"}),e.begin=Wz(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw kI("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MI;if("object"!=typeof e.endScope||null===e.endScope)throw kI("endScope must be object"),MI;OI(e,e.end,{key:"endScope"}),e.end=Wz(e.end,{joinWith:""})}}(e)}function TI(e){function t(t,n){return new RegExp(Iz(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=Hz(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(Wz(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Tz(e.classNameAliases||{}),function n(r,o){const s=r;if(r.isCompiled)return s;[dI,mI,DI,bI].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),r.__beforeBegin=null,[hI,fI,gI].forEach((e=>e(r,o))),r.isCompiled=!0;let a=null;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),a=r.keywords.$pattern,delete r.keywords.$pattern),a=a||/\w+/,r.keywords&&(r.keywords=xI(r.keywords,e.case_insensitive)),s.keywordPatternRe=t(a,!0),o&&(r.begin||(r.begin=/\B|\b/),s.beginRe=t(s.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(s.endRe=t(s.end)),s.terminatorEnd=Iz(s.end)||"",r.endsWithParent&&o.terminatorEnd&&(s.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(s.illegalRe=t(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return Tz(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(SI(e))return Tz(e,{starts:e.starts?Tz(e.starts):null});if(Object.isFrozen(e))return Tz(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){n(e,s)})),r.starts&&n(r.starts,o),s.matcher=function(e){const t=new i;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function SI(e){return!!e&&(e.endsWithParent||SI(e.starts))}var NI="11.6.0";class AI extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const jI=Dz,LI=Tz,zI=Symbol("nomatch"),II=7;var RI=function(e){const t=Object.create(null),n=Object.create(null),i=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:zz};function l(e){return a.noHighlightRe.test(e)}function c(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(CI("10.7.0","highlight(lang, code, ...args) has been deprecated."),CI("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const o={code:i,language:r};v("before:highlight",o);const s=o.result?o.result:u(o.language,o.code,n);return s.code=o.code,v("after:highlight",s),s}function u(e,n,i,s){const l=Object.create(null);function c(){if(!E.keywords)return void M.addText(O);let e=0;E.keywordPatternRe.lastIndex=0;let t=E.keywordPatternRe.exec(O),n="";for(;t;){n+=O.substring(e,t.index);const r=w.case_insensitive?t[0].toLowerCase():t[0],o=(i=r,E.keywords[i]);if(o){const[e,i]=o;if(M.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=II&&(D+=i),e.startsWith("_"))n+=t[0];else{const n=w.classNameAliases[e]||e;M.addKeyword(t[0],n)}}else n+=t[0];e=E.keywordPatternRe.lastIndex,t=E.keywordPatternRe.exec(O)}var i;n+=O.substring(e),M.addText(n)}function d(){null!=E.subLanguage?function(){if(""===O)return;let e=null;if("string"==typeof E.subLanguage){if(!t[E.subLanguage])return void M.addText(O);e=u(E.subLanguage,O,!0,C[E.subLanguage]),C[E.subLanguage]=e._top}else e=p(O,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(D+=e.relevance),M.addSublanguage(e._emitter,e.language)}():c(),O=""}function h(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=w.classNameAliases[e[n]]||e[n],r=t[n];i?M.addKeyword(r,i):(O=r,c(),O=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(M.addKeyword(O,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),O=""):e.beginScope._multi&&(h(e.beginScope,t),O="")),E=Object.create(e,{parent:{value:E}}),E}function g(e,t,n){let i=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(i){if(e["on:end"]){const n=new Oz(e);e["on:end"](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,t,n)}function b(e){return 0===E.matcher.regexIndex?(O+=e[0],1):(N=!0,0)}function v(e){const t=e[0],i=n.substring(e.index),r=g(E,e,i);if(!r)return zI;const o=E;E.endScope&&E.endScope._wrap?(d(),M.addKeyword(t,E.endScope._wrap)):E.endScope&&E.endScope._multi?(d(),h(E.endScope,e)):o.skip?O+=t:(o.returnEnd||o.excludeEnd||(O+=t),d(),o.excludeEnd&&(O=t));do{E.scope&&M.closeNode(),E.skip||E.subLanguage||(D+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&f(r.starts,e),o.returnEnd?0:t.length}let y={};function x(t,o){const s=o&&o[0];if(O+=t,null==s)return d(),0;if("begin"===y.type&&"end"===o.type&&y.index===o.index&&""===s){if(O+=n.slice(o.index,o.index+1),!r){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=y.rule,t}return 1}if(y=o,"begin"===o.type)return function(e){const t=e[0],n=e.rule,i=new Oz(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,i),i.isMatchIgnored))return b(t);return n.skip?O+=t:(n.excludeBegin&&(O+=t),d(),n.returnBegin||n.excludeBegin||(O=t)),f(n,e),n.returnBegin?0:t.length}(o);if("illegal"===o.type&&!i){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(E.scope||"<unnamed>")+'"');throw e.mode=E,e}if("end"===o.type){const e=v(o);if(e!==zI)return e}if("illegal"===o.type&&""===s)return 1;if(S>1e5&&S>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return O+=s,s.length}const w=m(e);if(!w)throw kI(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const _=TI(w);let k="",E=s||_;const C={},M=new a.__emitter(a);!function(){const e=[];for(let t=E;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>M.openNode(e)))}();let O="",D=0,T=0,S=0,N=!1;try{for(E.matcher.considerAll();;){S++,N?N=!1:E.matcher.considerAll(),E.matcher.lastIndex=T;const e=E.matcher.exec(n);if(!e)break;const t=x(n.substring(T,e.index),e);T=e.index+t}return x(n.substring(T)),M.closeAllNodes(),M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:D,illegal:!1,_emitter:M,_top:E}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:jI(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:T,context:n.slice(T-100,T+100),mode:t.mode,resultSoFar:k},_emitter:M};if(r)return{language:e,value:jI(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:E};throw t}}function p(e,n){n=n||a.languages||Object.keys(t);const i=function(e){const t={value:jI(e),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return t._emitter.addText(e),t}(e),r=n.filter(m).filter(b).map((t=>u(t,e,!1)));r.unshift(i);const o=r.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=o,p=l;return p.secondBest=c,p}function d(e){let t=null;const i=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=a.languageDetectRe.exec(t);if(n){const t=m(n[1]);return t||(EI(o.replace("{}",n[1])),EI("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(i))return;if(v("before:highlightElement",{el:e,language:i}),e.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),a.throwUnescapedHTML)){throw new AI("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,s=i?c(r,{language:i,ignoreIllegals:!0}):p(r);e.innerHTML=s.value,function(e,t,i){const r=t&&n[t]||i;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,i,s.language),e.result={language:s.language,re:s.relevance,relevance:s.relevance},s.secondBest&&(e.secondBest={language:s.secondBest.language,relevance:s.secondBest.relevance}),v("after:highlightElement",{el:e,result:s,text:r})}let h=!1;function f(){if("loading"===document.readyState)return void(h=!0);document.querySelectorAll(a.cssSelector).forEach(d)}function m(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function g(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function b(e){const t=m(e);return t&&!t.disableAutodetect}function v(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){h&&f()}),!1),Object.assign(e,{highlight:c,highlightAuto:p,highlightAll:f,highlightElement:d,highlightBlock:function(e){return CI("10.7.0","highlightBlock will be removed entirely in v12.0"),CI("10.7.0","Please use highlightElement now."),d(e)},configure:function(e){a=LI(a,e)},initHighlighting:()=>{f(),CI("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){f(),CI("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,i){let o=null;try{o=i(e)}catch(e){if(kI("Language definition for '{}' could not be registered.".replace("{}",n)),!r)throw e;kI(e),o=s}o.name||(o.name=n),t[n]=o,o.rawDefinition=i.bind(null,e),o.aliases&&g(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:b,inherit:LI,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)}}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=NI,e.regex={concat:Pz,lookahead:Rz,either:Uz,optional:Bz,anyNumberOfTimes:Fz};for(const e in uI)"object"==typeof uI[e]&&Cz.exports(uI[e]);return Object.assign(e,uI),e}({}),FI=RI;RI.HighlightJS=RI,RI.default=RI;var BI={exports:{}};!function(e){!function(){var t;function n(e){for(var t,n,i,r,o=1,s=[].slice.call(arguments),a=0,l=e.length,c="",u=!1,p=!1,d=function(){return s[o++]},h=function(){for(var n="";/\d/.test(e[a]);)n+=e[a++],t=e[a];return n.length>0?parseInt(n):null};a<l;++a)if(t=e[a],u)switch(u=!1,"."==t?(p=!1,t=e[++a]):"0"==t&&"."==e[a+1]?(p=!0,t=e[a+=2]):p=!0,r=h(),t){case"b":c+=parseInt(d(),10).toString(2);break;case"c":c+="string"==typeof(n=d())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(d(),10);break;case"f":i=String(parseFloat(d()).toFixed(r||6)),c+=p?i:i.replace(/^0/,"");break;case"j":c+=JSON.stringify(d());break;case"o":c+="0"+parseInt(d(),10).toString(8);break;case"s":c+=d();break;case"x":c+="0x"+parseInt(d(),10).toString(16);break;case"X":c+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?u=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()}(BI);var PI=BI.exports;const UI=Object.assign(HI(Error),{eval:HI(EvalError),range:HI(RangeError),reference:HI(ReferenceError),syntax:HI(SyntaxError),type:HI(TypeError),uri:HI(URIError)});function HI(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){const i=t?PI(t,...n):t;return new e(i)}}const $I={}.hasOwnProperty,WI="hljs-";function qI(e,t,n={}){let i=n.prefix;if("string"!=typeof e)throw UI("Expected `string` for name, got `%s`",e);if(!FI.getLanguage(e))throw UI("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw UI("Expected `string` for value, got `%s`",t);null==i&&(i=WI),FI.configure({__emitter:VI,classPrefix:i});const r=FI.highlight(t,{language:e,ignoreIllegals:!0});if(FI.configure({}),r.errorRaised)throw r.errorRaised;return r._emitter.root.data.language=r.language,r._emitter.root.data.relevance=r.relevance,r._emitter.root}class VI{constructor(e){this.options=e,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(e){if(""===e)return;const t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})}addKeyword(e,t){this.openNode(t),this.addText(e),this.closeNode()}addSublanguage(e,t){const n=this.stack[this.stack.length-1],i=e.root.children;t?n.children.push({type:"element",tagName:"span",properties:{className:[t]},children:i}):n.children.push(...i)}openNode(e){const t=e.split(".").map(((e,t)=>t?e+"_".repeat(t):this.options.classPrefix+e)),n={type:"element",tagName:"span",properties:{className:t},children:[]};this.stack[this.stack.length-1].children.push(n),this.stack.push(n)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const KI={highlight:qI,highlightAuto:function(e,t={}){const n=t.subset||FI.listLanguages();t.prefix;let i=-1,r={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw UI("Expected `string` for value, got `%s`",e);for(;++i<n.length;){const o=n[i];if(!FI.getLanguage(o))continue;const s=qI(o,e,t);s.data.relevance>r.data.relevance&&(r=s)}return r},registerLanguage:function(e,t){FI.registerLanguage(e,t)},registered:function(e){return Boolean(FI.getLanguage(e))},listLanguages:function(){return FI.listLanguages()},registerAlias:function(e,t){if("string"==typeof e)FI.registerAliases(t,{languageName:e});else{let t;for(t in e)$I.call(e,t)&&FI.registerAliases(e[t],{languageName:t})}}};KI.registerLanguage("arduino",(function(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line "+"pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},p=t.optional(r)+e.IDENT_RE+"\\s*\\(",d={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[h,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:f.concat([{begin:/\(/,end:/\)/,keywords:d,contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:d,relevance:0},{begin:p,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:d,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,g,h,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:d,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:d},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(e),i=n.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n})),KI.registerLanguage("bash",(function(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},i]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(s);const a={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},l=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[l,e.SHEBANG(),c,a,e.HASH_COMMENT_MODE,o,{match:/(\/[a-z._-]+)+/},s,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},n]}})),KI.registerLanguage("c",(function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line "+"pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},p=t.optional(r)+e.IDENT_RE+"\\s*\\(",d={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream "+"auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set "+"unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos "+"asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp "+"fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper "+"isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow "+"printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp "+"strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan "+"vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:h.concat([{begin:/\(/,end:/\)/,keywords:d,contains:h.concat(["self"]),relevance:0}]),relevance:0},m={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:d,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:d,disableAutodetect:!0,illegal:"</",contains:[].concat(f,m,h,[c,{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:a,keywords:d}}})),KI.registerLanguage("cpp",(function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line "+"pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},p=t.optional(r)+e.IDENT_RE+"\\s*\\(",d={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},f=[h,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:f.concat([{begin:/\(/,end:/\)/,keywords:d,contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:d,relevance:0},{begin:p,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:d,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,g,h,f,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:d,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:d},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}})),KI.registerLanguage("csharp",(function(e){const t={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},n=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},o=e.inherit(r,{illegal:/\n/}),s={className:"subst",begin:/\{/,end:/\}/,keywords:t},a=e.inherit(s,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,a]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]},u=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]});s.contains=[c,l,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE],a.contains=[u,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const p={variants:[c,l,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},p,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},n,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,d],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[p,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}})),KI.registerLanguage("css",(function(e){const t=e.regex,n=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"("+"%|em|ex|ch|rem"+"|vw|vh|vmin|vmax"+"|cm|mm|in|pt|pc|px"+"|deg|grad|rad|turn"+"|s|ms"+"|Hz|kHz"+"|dpi|dpcm|dppx"+")?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(e),i=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+bL.join("|")+")"},{begin:":(:)?("+vL.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+yL.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...i,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...i,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:gL.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...i,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+mL.join("|")+")\\b"}]}})),KI.registerLanguage("diff",(function(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}})),KI.registerLanguage("go",(function(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}})),KI.registerLanguage("graphql",(function(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}})),KI.registerLanguage("ini",(function(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[i,o,r,s,n,"self"],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:t.concat(l,"(\\s*\\.\\s*",l,")*",t.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[i,a,o,r,s,n]}}]}})),KI.registerLanguage("java",(function(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+EL("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),r={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},s={className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:r,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:r,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,kL,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},kL,o]}})),KI.registerLanguage("javascript",(function(e){const t=e.regex,n=CL,i="<>",r="</>",o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());(r=e.input.substring(n).match(/^\s+extends\s+/))&&0===r.index&&t.ignoreMatch()}},s={$pattern:CL,keyword:ML,literal:OL,built_in:AL,"variable.language":NL},a="[0-9](_?[0-9])*",l=`\\.(${a})`,c=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,u={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))`+`[eE][+-]?(${a})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},m={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},g=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,f,u];p.contains=g.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(g)});const b=[].concat(m,p.contains),v=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},w={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...DL,...TL]}},_={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},k={match:t.concat(/\b/,(E=[...SL,"super"],t.concat("(?!",E.join("|"),")")),n,t.lookahead(/\(/)),className:"title.function",relevance:0};var E;const C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},O="(\\("+"[^()]*(\\("+"[^()]*(\\("+"[^()]*"+"\\)[^()]*)*"+"\\)[^()]*)*"+"\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,f,m,u,w,{className:"attr",begin:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\("+"[^()]*(\\("+"[^()]*(\\("+"[^()]*"+"\\)[^()]*)*"+"\\)[^()]*)*"+"\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,M,{match:/\$[(.]/}]}})),KI.registerLanguage("json",(function(e){const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}})),KI.registerLanguage("kotlin",(function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline "+"crossinline dynamic final enum if else do while for when throw try catch finally "+"import package is in fun override companion reified inline lateinit init "+"interface annotation data sealed internal infix operator out by constructor super "+"tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},r={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[r,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,r,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},a={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=IL,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=u;return p.variants[1].contains=[u],u.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,s,a,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,s,a,o,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,a]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},l]}})),KI.registerLanguage("less",(function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"("+"%|em|ex|ch|rem"+"|vw|vh|vmin|vmax"+"|cm|mm|in|pt|pc|px"+"|deg|grad|rad|turn"+"|s|ms"+"|Hz|kHz"+"|dpi|dpcm|dppx"+")?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(e),n=HL,i="[\\w-]+",r="("+i+"|@\\{"+i+"\\})",o=[],s=[],a=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},l=function(e,t,n){return{className:e,begin:t,relevance:n}},c={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:FL.join(" ")},u={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a("'"),a('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const p=s.concat({begin:/\{/,end:/\}/,contains:o}),d={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},h={begin:r+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+UL.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},f={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},m={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},g={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:r,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+RL.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",r,0),l("selector-id","#"+r),l("selector-class","\\."+r,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+BL.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PL.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},b={begin:i+":(:)?"+`(${n.join("|")})`,returnBegin:!0,contains:[g]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,m,b,h,g,d,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:o}})),KI.registerLanguage("lua",(function(e){const t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len "+"__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert "+"collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring "+"module next pairs pcall print rawequal rawget rawset require select setfenv "+"setmetatable tonumber tostring type unpack xpcall arg self "+"coroutine resume yield status wrap create running debug getupvalue "+"debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv "+"io lines write close flush open output type read stderr stdin input stdout popen tmpfile "+"math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan "+"os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall "+"string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower "+"table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}})),KI.registerLanguage("makefile",(function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort "+"word wordlist firstword lastword dir notdir suffix basename "+"addsuffix addprefix join wildcard realpath abspath error warning "+"shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif "+"include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,i,r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o]}})),KI.registerLanguage("markdown",(function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},r={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},o=e.inherit(i,{contains:[]}),s=e.inherit(r,{contains:[]});i.contains.push(s),r.contains.push(o);let a=[t,n];return[i,r,o,s].forEach((e=>{e.contains=e.contains.concat(a)})),a=a.concat(i,r),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:a},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:a}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,r,{className:"quote",begin:"^>\\s+",contains:a,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},n,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}})),KI.registerLanguage("objectivec",(function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line "+"pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}})),KI.registerLanguage("perl",(function(e){const t=e.regex,n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"].join(" ")},r={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@][^\s\w{]/,relevance:0}]},a=[e.BACKSLASH_ESCAPE,r,s],l=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(e,i,r="\\1")=>{const o="\\1"===r?r:t.concat(r,i);return t.concat(t.concat("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,o,/(?:\\.|[^\\\/])*?/,r,n)},u=(e,i,r)=>t.concat(t.concat("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,r,n),p=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:a,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",t.either(...l,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:u("(?:m|qr)?",/\//,/\//)},{begin:u("m|qr",t.either(...l,{capture:!0}),/\1/)},{begin:u("m|qr",/\(/,/\)/)},{begin:u("m|qr",/\[/,/\]/)},{begin:u("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return r.contains=p,o.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:p}})),KI.registerLanguage("php",(function(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+i},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},a=e.inherit(e.APOS_STRING_MODE,{illegal:null}),l="[ \t\n]",c={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),a,e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s)})]},u={scope:"number",variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},p=["false","null","true"],d=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],h=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],f={keyword:d,literal:(e=>{const t=[];return e.forEach((e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())})),t})(p),built_in:h},m=e=>e.map((e=>e.replace(/\|\d+$/,""))),g={variants:[{match:[/new/,t.concat(l,"+"),t.concat("(?!",m(h).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},b=t.concat(i,"\\b(?!\\()"),v={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),b],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),b],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},y={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:f,contains:[y,o,v,e.C_BLOCK_COMMENT_MODE,c,u,g]},w={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",m(d).join("\\b|"),"|",m(h).join("\\b|"),"\\b)"),i,t.concat(l,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(w);const _=[y,v,e.C_BLOCK_COMMENT_MODE,c,u,g];return{case_insensitive:!1,keywords:f,contains:[{begin:t.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},contains:["self",..._]},..._,{scope:"meta",match:r}]},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},o,w,v,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},g,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",o,v,e.C_BLOCK_COMMENT_MODE,c,u]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},c,u]}})),KI.registerLanguage("php-template",(function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}})),KI.registerLanguage("plaintext",(function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}})),KI.registerLanguage("python",(function(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],r={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},a={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,p=`\\b|${i.join("|")}`,d={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${p})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${c})[jJ](?=${p})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:r,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",o,d,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,d,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|->|\?)|=>/,contains:[o,d,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[d,f,l]}]}})),KI.registerLanguage("python-repl",(function(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}})),KI.registerLanguage("r",(function(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 "+"NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F "+"abs acos acosh all any anyNA Arg as.call as.character "+"as.complex as.double as.environment as.integer as.logical "+"as.null.default as.numeric as.raw asin asinh atan atanh attr "+"attributes baseenv browser c call ceiling class Conj cos cosh "+"cospi cummax cummin cumprod cumsum digamma dim dimnames "+"emptyenv exp expression floor forceAndCall gamma gc.time "+"globalenv Im interactive invisible is.array is.atomic is.call "+"is.character is.complex is.double is.environment is.expression "+"is.finite is.function is.infinite is.integer is.language "+"is.list is.logical is.matrix is.na is.name is.nan is.null "+"is.numeric is.object is.pairlist is.raw is.recursive is.single "+"is.symbol lazyLoadDBfetch length lgamma list log max min "+"missing Mod names nargs nzchar oldClass on.exit pos.to.env "+"proc.time prod quote range Re rep retracemem return round "+"seq_along seq_len seq.int sign signif sin sinh sinpi sqrt "+"standardGeneric substitute sum switch tan tanh tanpi tracemem "+"trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[o,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}})),KI.registerLanguage("ruby",(function(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=t.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},p="[0-9](_?[0-9])*",d={className:"number",relevance:0,variants:[{begin:`\\b(${"[1-9](_?[0-9])*|0"})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},f=[u,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{relevance:0,match:[r,/\.new[ (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])"+`(?![A-Za-z])(?![@$?'])`},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,l),relevance:0}].concat(a,l);c.contains=f,h.contains=f;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:f}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:f}}];return l.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(l).concat(f)}})),KI.registerLanguage("rust",(function(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},i="([ui](8|16|32|64|128|size)|f(32|64))?",r=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],o=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:o,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+i},{begin:"\\b0o([0-7_]+)"+i},{begin:"\\b0x([A-Fa-f0-9_]+)"+i},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+i}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:r,type:o}},{className:"punctuation",begin:"->"},n]}})),KI.registerLanguage("scss",(function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"("+"%|em|ex|ch|rem"+"|vw|vh|vmin|vmax"+"|cm|mm|in|pt|pc|px"+"|deg|grad|rad|turn"+"|s|ms"+"|Hz|kHz"+"|dpi|dpcm|dppx"+")?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}))(e),n=VL,i=qL,r="@[a-z-]+",o={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+$L.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},o,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+KL.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,o,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:WL.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},o,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}})),KI.registerLanguage("shell",(function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}})),KI.registerLanguage("sql",(function(e){const t=e.regex,n=e.COMMENT("--","$"),i=["true","false","unknown"],r=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],o=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],a=o,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!o.includes(e))),c={begin:t.concat(/\b/,t.either(...a),/\s*\(/),relevance:0,keywords:{built_in:a}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const i=n;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:i(e)?`${e}|0`:e))}(l,{when:e=>e.length<3}),literal:i,type:r,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:t.either(...s),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:l.concat(s),literal:i,type:r}},{className:"type",begin:t.either("double precision","large object","with timezone","without timezone")},c,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}})),KI.registerLanguage("swift",(function(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,n],r={match:[/\./,ZL(...XL,...ez)],className:{2:"keyword"}},o={match:QL(/\./,ZL(...nz)),relevance:0},s=nz.filter((e=>"string"==typeof e)).concat(["_|0"]),a={variants:[{className:"keyword",match:ZL(...nz.filter((e=>"string"!=typeof e)).concat(tz).map(JL),...ez)}]},l={$pattern:ZL(/\b\w+/,/#\w+/),keyword:s.concat(oz),literal:iz},c=[r,o,a],u=[{match:QL(/\./,ZL(...sz)),relevance:0},{className:"built_in",match:QL(/\b/,ZL(...sz),/(?=\()/)}],p={match:/->/,relevance:0},d=[p,{className:"operator",relevance:0,variants:[{match:cz},{match:`\\.(\\.|${lz})+`}]}],h="([0-9]_*)+",f="([0-9a-fA-F]_*)+",m={className:"number",relevance:0,variants:[{match:`\\b(${h})(\\.(${h}))?`+`([eE][+-]?(${h}))?\\b`},{match:`\\b0x(${f})(\\.(${f}))?`+`([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},g=(e="")=>({className:"subst",variants:[{match:QL(/\\/,e,/[0\\tnr"']/)},{match:QL(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),b=(e="")=>({className:"subst",match:QL(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(e="")=>({className:"subst",label:"interpol",begin:QL(/\\/,e,/\(/),end:/\)/}),y=(e="")=>({begin:QL(e,/"""/),end:QL(/"""/,e),contains:[g(e),b(e),v(e)]}),x=(e="")=>({begin:QL(e,/"/),end:QL(/"/,e),contains:[g(e),v(e)]}),w={className:"string",variants:[y(),y("#"),y("##"),y("###"),x(),x("#"),x("##"),x("###")]},_={match:QL(/`/,dz,/`/)},k=[_,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${pz}+`}],E=[{match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:mz,contains:[...d,m,w]}]}},{className:"keyword",match:QL(/@/,ZL(...fz))},{className:"meta",match:QL(/@/,dz)}],C={match:YL(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:QL(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,pz,"+")},{className:"type",match:hz,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:QL(/\s+&\s+/,YL(hz)),relevance:0}]},M={begin:/</,end:/>/,keywords:l,contains:[...i,...c,...E,p,C]};C.contains.push(M);const O={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{match:QL(dz,/\s*:/),keywords:"_|0",relevance:0},...i,...c,...u,...d,m,w,...k,...E,C]},D={begin:/</,end:/>/,contains:[...i,C]},T={begin:/\(/,end:/\)/,keywords:l,contains:[{begin:ZL(YL(QL(dz,/\s*:/)),YL(QL(dz,/\s+/,dz,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:dz}]},...i,...c,...d,m,w,...E,C,O],endsParent:!0,illegal:/["']/},S={match:[/func/,/\s+/,ZL(_.match,dz,cz)],className:{1:"keyword",3:"title.function"},contains:[D,T,t],illegal:[/\[/,/%/]},N={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[D,T,t],illegal:/\[|%/},A={match:[/operator/,/\s+/,cz],className:{1:"keyword",3:"title"}},j={begin:[/precedencegroup/,/\s+/,hz],className:{1:"keyword",3:"title"},contains:[C],keywords:[...rz,...iz],end:/}/};for(const e of w.variants){const t=e.contains.find((e=>"interpol"===e.label));t.keywords=l;const n=[...c,...u,...d,m,w,...k];t.contains=[...n,{begin:/\(/,end:/\)/,contains:["self",...n]}]}return{name:"Swift",keywords:l,contains:[...i,S,N,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},A,j,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},...c,...u,...d,m,w,...k,...E,C,O]}})),KI.registerLanguage("typescript",(function(e){const t=Ez(e),n=gz,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[t.exports.CLASS_REFERENCE]},s={$pattern:gz,keyword:bz.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]),literal:vz,built_in:kz.concat(i),"variable.language":_z},a={className:"meta",begin:"@"+n},l=(e,t,n)=>{const i=e.contains.findIndex((e=>e.label===t));if(-1===i)throw new Error("can not find mode to replace");e.contains.splice(i,1,n)};Object.assign(t.keywords,s),t.exports.PARAMS_CONTAINS.push(a),t.contains=t.contains.concat([a,r,o]),l(t,"shebang",e.SHEBANG()),l(t,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/});const c=t.contains.find((e=>"func.def"===e.label));return c.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx"]}),t})),KI.registerLanguage("vbnet",(function(e){const t=e.regex,n=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,r=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,o=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:t.concat(/# */,t.either(i,n),/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,r,/ *#/)},{begin:t.concat(/# */,t.either(i,n),/ +/,t.either(r,o),/ *#/)}]},a=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval "+"call case catch class compare const continue custom declare default delegate dim distinct do "+"each equals else elseif end enum erase error event exit explicit finally for friend from function "+"get global goto group handles if implements imports in inherits interface into iterator "+"join key let lib loop me mid module mustinherit mustoverride mybase myclass "+"namespace narrowing new next notinheritable notoverridable "+"of off on operator option optional order overloads overridable overrides "+"paramarray partial preserve private property protected public "+"raiseevent readonly redim removehandler resume return "+"select set shadows shared skip static step stop structure strict sub synclock "+"take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor "+"cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},a,l,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[l]}]}})),KI.registerLanguage("wasm",(function(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);return t.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}})),KI.registerLanguage("xml",(function(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(r,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,a,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,a,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})),KI.registerLanguage("yaml",(function(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},s={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},a={begin:/\{/,end:/\}/,contains:[s],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[s],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},o,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},a,l,i],u=[...c];return u.pop(),u.push(r),s.contains=u,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}));const GI=()=>t.createElement(Oc,{"data-cy":"neeto-editor-code-block"},t.createElement("pre",null,t.createElement(Mc,{as:"code"})));var YI=fL.extend({addNodeView:()=>new Sc(GI)}).configure({lowlight:KI});const QI={code:{},underline:{},highlight:{},codeBlock:{},figCaption:{},embeds:{},link:{},emojiSuggestion:{},emojiPicker:{},customCommands:{},characterCount:{},focus:{mode:"shallowest"},starterKit:{document:!1,codeBlock:!1,code:!1},placeholder:{}};var ZI=as.create({name:"paste-unformatted",addCommands:()=>({pasteUnformatted:()=>async e=>{let{editor:t}=e;const n=await navigator.clipboard.readText();t.commands.insertContent(n)}})}),JI=Xs.create({name:"external-video",addOptions:()=>({inline:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},title:{default:null},frameborder:{default:"0"},allow:{default:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"},allowfullscreen:{default:"allowfullscreen"}}),parseHTML:()=>[{tag:"iframe[src]"}],renderHTML(e){let{HTMLAttributes:t}=e;return["iframe",Ho(this.options.HTMLAttributes,{...t,class:"video-wrapper"})]},addCommands(){return{setExternalVideo:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}});const XI=new en("suggestion");function eR({pluginKey:e=XI,editor:t,char:n="@",allowSpaces:i=!1,allowedPrefixes:r=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:p=(()=>!0)}){let d;const h=null==u?void 0:u(),f=new Zt({key:e,view(){return{update:async(e,n)=>{var i,r,o,s,a,u,p;const f=null===(i=this.key)||void 0===i?void 0:i.getState(n),m=null===(r=this.key)||void 0===r?void 0:r.getState(e.state),g=f.active&&m.active&&f.range.from!==m.range.from,b=!f.active&&m.active,v=f.active&&!m.active,y=b||g,x=!b&&!v&&f.query!==m.query&&!g,w=v||g;if(!y&&!x&&!w)return;const _=w&&!y?f:m,k=e.dom.querySelector(`[data-decoration-id="${_.decorationId}"]`);d={editor:t,range:_.range,query:_.query,text:_.text,items:[],command:e=>{l({editor:t,range:_.range,props:e})},decorationNode:k,clientRect:k?()=>{var n;const{decorationId:i}=null===(n=this.key)||void 0===n?void 0:n.getState(t.state),r=e.dom.querySelector(`[data-decoration-id="${i}"]`);return(null==r?void 0:r.getBoundingClientRect())||null}:null},y&&(null===(o=null==h?void 0:h.onBeforeStart)||void 0===o||o.call(h,d)),x&&(null===(s=null==h?void 0:h.onBeforeUpdate)||void 0===s||s.call(h,d)),(x||y)&&(d.items=await c({editor:t,query:_.query})),w&&(null===(a=null==h?void 0:h.onExit)||void 0===a||a.call(h,d)),x&&(null===(u=null==h?void 0:h.onUpdate)||void 0===u||u.call(h,d)),y&&(null===(p=null==h?void 0:h.onStart)||void 0===p||p.call(h,d))},destroy:()=>{var e;d&&(null===(e=null==h?void 0:h.onExit)||void 0===e||e.call(h,d))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(e,s,a,l){const{isEditable:c}=t,{composing:u}=t.view,{selection:d}=e,{empty:h,from:f}=d,m={...s};if(m.composing=u,c&&(h||t.view.composing)){!(f<s.range.from||f>s.range.to)||u||s.composing||(m.active=!1);const e=function(e){var t;const{char:n,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:s}=e,a=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),l=new RegExp(`\\s${a}$`),c=o?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),p=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!p)return null;const d=s.pos-p.length,h=Array.from(p.matchAll(u)).pop();if(!h||void 0===h.input||void 0===h.index)return null;const f=h.input.slice(Math.max(0,h.index-1),h.index),m=new RegExp(`^[${null==r?void 0:r.join("")}\0]?$`).test(f);if(null!==r&&!m)return null;const g=d+h.index;let b=g+h[0].length;return i&&l.test(p.slice(b-1,b+1))&&(h[0]+=" ",b+=1),g<s.pos&&b>=s.pos?{range:{from:g,to:b},query:h[0].slice(n.length),text:h[0]}:null}({char:n,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:d.$from}),a=`id_${Math.floor(4294967295*Math.random())}`;e&&p({editor:t,state:l,range:e.range})?(m.active=!0,m.decorationId=s.decorationId?s.decorationId:a,m.range=e.range,m.query=e.query,m.text=e.text):m.active=!1}else m.active=!1;return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null),m}},props:{handleKeyDown(e,t){var n;const{active:i,range:r}=f.getState(e.state);return i&&(null===(n=null==h?void 0:h.onKeyDown)||void 0===n?void 0:n.call(h,{view:e,event:t,range:r}))||!1},decorations(e){const{active:t,range:n,decorationId:i}=f.getState(e);return t?Br.create(e.doc,[Ir.inline(n.from,n.to,{nodeName:s,class:a,"data-decoration-id":i})]):null}}});return f}function tR(e){return e&&e.__esModule?e.default:e}function nR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iR,rR,oR,sR,aR,lR,cR={},uR=[],pR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function dR(e,t){for(var n in t)e[n]=t[n];return e}function hR(e){var t=e.parentNode;t&&t.removeChild(e)}function fR(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?iR.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return mR(e,s,i,r,null)}function mR(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++oR:r};return null==r&&null!=rR.vnode&&rR.vnode(o),o}function gR(e){return e.children}function bR(e,t){this.props=e,this.context=t}function vR(e,t){if(null==t)return e.__?vR(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?vR(e):null}function yR(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return yR(e)}}function xR(e){(!e.__d&&(e.__d=!0)&&sR.push(e)&&!wR.__r++||lR!==rR.debounceRendering)&&((lR=rR.debounceRendering)||aR)(wR)}function wR(){for(var e;wR.__r=sR.length;)e=sR.sort((function(e,t){return e.__v.__b-t.__v.__b})),sR=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=dR({},r)).__v=r.__v+1,SR(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?vR(r):o,r.__h),NR(n,r),r.__e!=o&&yR(r)))}))}function _R(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,b=i&&i.__k||uR,v=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?mR(null,h,null,null,h):Array.isArray(h)?mR(gR,{children:h},null,null,null):h.__b>0?mR(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=b[u])||d&&h.key==d.key&&h.type===d.type)b[u]=void 0;else for(p=0;p<v;p++){if((d=b[p])&&h.key==d.key&&h.type===d.type){b[p]=void 0;break}d=null}SR(e,h,d=d||cR,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=kR(h,l,e):l=CR(e,h,d,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=vR(d))}for(n.__e=m,u=v;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=vR(i,u+1)),jR(b[u],b[u]));if(g)for(u=0;u<g.length;u++)AR(g[u],g[++u],g[++u])}function kR(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?kR(i,t,n):CR(n,i,i,r,i.__e,t));return t}function ER(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){ER(e,t)})):t.push(e)),t}function CR(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function MR(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||pR.test(t)?n:n+"px"}function OR(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||MR(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||MR(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?TR:DR,o):e.removeEventListener(t,o?TR:DR,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function DR(e){this.l[e.type+!1](rR.event?rR.event(e):e)}function TR(e){this.l[e.type+!0](rR.event?rR.event(e):e)}function SR(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,b,v,y,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=rR.__b)&&c(t);try{e:if("function"==typeof x){if(g=t.props,b=(c=x.contextType)&&i[c.__c],v=c?b?b.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in x&&x.prototype.render?t.__c=u=new x(g,v):(t.__c=u=new bR(g,v),u.constructor=x,u.render=LR),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=v,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=x.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=dR({},u.__s)),dR(u.__s,x.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==x.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==x.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,v),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}u.context=v,u.props=g,u.state=u.__s,(c=rR.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(i=dR(dR({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),y=null!=c&&c.type===gR&&null==c.key?c.props.children:c,_R(e,Array.isArray(y)?y:[y],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&iR.call(e.childNodes),c=(p=n.props||cR).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||OR(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||OR(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,_R(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&vR(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&hR(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==p.value||f!==e.value||"progress"===h&&!f)&&OR(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&OR(e,"checked",f,p.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=rR.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),rR.__e(e,t,n)}}function NR(e,t){rR.__c&&rR.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){rR.__e(e,t.__v)}}))}function AR(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){rR.__e(e,n)}}function jR(e,t,n){var i,r;if(rR.unmount&&rR.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||AR(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){rR.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&jR(i[r],t,"function"!=typeof e.type);n||null==e.__e||hR(e.__e),e.__e=e.__d=void 0}function LR(e,t,n){return this.constructor(e,n)}function zR(e,t,n){var i,r,o;rR.__&&rR.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],SR(t,e=(!i&&n||t).__k=fR(gR,null,[e]),r||cR,cR,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?iR.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),NR(o,e)}iR=uR.slice,rR={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},oR=0,bR.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=dR({},this.state),"function"==typeof e&&(e=e(dR({},n),this.props)),e&&dR(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),xR(this))},bR.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xR(this))},bR.prototype.render=gR,sR=[],aR="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wR.__r=0;var IR=0;function RR(e,t,n,i,r){var o,s,a={};for(s in t)"ref"==s?o=t[s]:a[s]=t[s];var l={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--IR,__source:i,__self:r};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===a[s]&&(a[s]=o[s]);return rR.vnode&&rR.vnode(l),l}var FR={set:function(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch(e){}},get:function(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch(e){}}};const BR=new Map,PR=[{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function UR(e){if(BR.has(e))return BR.get(e);const t=HR(e);return BR.set(e,t),t}const HR=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d"))}catch{}if(!e)return()=>!1;const t=25,n=20,i=Math.floor(t/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=2*n,e.canvas.height=t,i=>{e.clearRect(0,0,2*n,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const r=e.getImageData(0,0,n,t).data,o=r.length;let s=0;for(;s<o&&!r[s+3];s+=4);if(s>=o)return!1;const a=n+s/4%n,l=Math.floor(s/4/n),c=e.getImageData(a,l,1,1).data;return r[s]===c[0]&&r[s+2]===c[2]&&!(e.measureText(i).width>=n)}})();var $R={latestVersion:function(){for(const{v:e,emoji:t}of PR)if(UR(t))return e},noCountryFlags:function(){return!UR("🇨🇦")}};const WR=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let qR=null;var VR,KR={add:function(e){qR||(qR=FR.get("frequently")||{});const t=e.id||e;t&&(qR[t]||(qR[t]=0),qR[t]+=1,FR.set("last",t),FR.set("frequently",qR))},get:function({maxFrequentRows:e,perLine:t}){if(!e)return[];qR||(qR=FR.get("frequently"));let n=[];if(!qR){qR={};for(let e in WR.slice(0,t)){const i=WR[e];qR[i]=t-e,n.push(i)}return n}const i=e*t,r=FR.get("last");for(let e in qR)n.push(e);if(n.sort(((e,t)=>{const n=qR[t],i=qR[e];return n==i?e.localeCompare(t):n-i})),n.length>i){const e=n.slice(i);n=n.slice(0,i);for(let t of e)t!=r&&delete qR[t];r&&-1==n.indexOf(r)&&(delete qR[n[n.length-1]],n.splice(-1,1,r)),FR.set("frequently",qR)}return n}};VR=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var GR={autoFocus:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","cs","de","es","fa","fi","fr","it","ja","nl","pl","pt","ru","uk","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let YR=null,QR=null;const ZR={};async function JR(e){if(ZR[e])return ZR[e];const t=await fetch(e),n=await t.json();return ZR[e]=n,n}let XR=null,eF=null,tF=!1;function nF(e,{caller:t}={}){return XR||(XR=new Promise((e=>{eF=e}))),e?async function(e){tF=!0;let{emojiVersion:t,set:n,locale:i}=e;if(t||(t=GR.emojiVersion.value),n||(n=GR.set.value),i||(i=GR.locale.value),QR)QR.categories=QR.categories.filter((e=>!!!e.name));else{QR=("function"==typeof e.data?await e.data():e.data)||await JR(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),QR.emoticons={},QR.natives={},QR.categories.unshift({id:"frequent",emojis:[]});for(const e in QR.aliases){const t=QR.aliases[e],n=QR.emojis[t];n&&(n.aliases||(n.aliases=[]),n.aliases.push(e))}}if(YR=("function"==typeof e.i18n?await e.i18n():e.i18n)||("en"==i?tR(VR):await JR(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let t in e.custom){t=parseInt(t);const n=e.custom[t],i=e.custom[t-1];if(n.emojis&&n.emojis.length){n.id||(n.id=`custom_${t+1}`),n.name||(n.name=YR.categories.custom),i&&!n.icon&&(n.target=i.target||i),QR.categories.push(n);for(const e of n.emojis)QR.emojis[e.id]=e}}e.categories&&(QR.categories=QR.categories.filter((t=>-1!=e.categories.indexOf(t.id))).sort(((t,n)=>e.categories.indexOf(t.id)-e.categories.indexOf(n.id))));let r=null,o=null;"native"==n&&(r=$R.latestVersion(),o=e.noCountryFlags||$R.noCountryFlags());let s=QR.categories.length,a=!1;for(;s--;){const t=QR.categories[s];if("frequent"==t.id){let{maxFrequentRows:n,perLine:i}=e;n||(n=GR.maxFrequentRows.value),i||(i=GR.perLine.value),t.emojis=KR.get({maxFrequentRows:n,perLine:i})}if(!t.emojis||!t.emojis.length){QR.categories.splice(s,1);continue}const{categoryIcons:n}=e;if(n){const e=n[t.id];e&&!t.icon&&(t.icon=e)}let i=t.emojis.length;for(;i--;){const e=t.emojis[i],n=e.id?e:QR.emojis[e],s=()=>{t.emojis.splice(i,1)};if(n)if(r&&n.version>r)s();else if(!o||"flags"!=t.id||aF.includes(n.id)){if(!n.search){if(a=!0,n.search=","+[[n.id,!1],[n.name,!0],[n.keywords,!1],[n.emoticons,!1]].map((([e,t])=>{if(e)return(Array.isArray(e)?e:[e]).map((e=>(t?e.split(/[-|_|\s]+/):[e]).map((e=>e.toLowerCase())))).flat()})).flat().filter((e=>e&&e.trim())).join(","),n.emoticons)for(const e of n.emoticons)QR.emoticons[e]||(QR.emoticons[e]=n.id);let e=0;for(const t of n.skins){if(!t)continue;e++;const{native:i}=t;i&&(QR.natives[i]=n.id,n.search+=`,${i}`);const r=1==e?"":`:skin-tone-${e}:`;t.shortcodes=`:${n.id}:${r}`}}}else s();else s()}}a&&sF.reset();eF()}(e):t&&!tF&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),XR}function iF(e,t,n){e||(e={});const i={};for(let r in t)i[r]=rF(r,e,t,n);return i}function rF(e,t,n,i){const r=n[e];let o=i&&i.getAttribute(e)||(null!=t[e]&&null!=t[e]?t[e]:null);return r?(null!=o&&r.value&&typeof r.value!=typeof o&&(o="boolean"==typeof r.value?"false"!=o:r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(null==o||r.choices&&-1==r.choices.indexOf(o))&&(o=r.value),o):o}let oF=null;var sF={search:async function(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await nF(null,{caller:n||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter(((e,t,n)=>e.trim()&&n.indexOf(e)==t));if(!i.length)return;let r,o,s=oF||(oF=Object.values(QR.emojis));for(const e of i){if(!s.length)break;r=[],o={};for(const t of s){if(!t.search)continue;const n=t.search.indexOf(`,${e}`);-1!=n&&(r.push(t),o[t.id]||(o[t.id]=0),o[t.id]+=t.id==e?0:n+1)}s=r}return r.length<2||(r.sort(((e,t)=>{const n=o[e.id],i=o[t.id];return n==i?e.id.localeCompare(t.id):n-i})),r.length>t&&(r=r.slice(0,t))),r},get:function(e){return e.id?e:QR.emojis[e]||QR.emojis[QR.aliases[e]]||QR.emojis[QR.natives[e]]},reset:function(){oF=null},SHORTCODES_REGEX:/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/};const aF=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];var lF={categories:{activity:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:RR("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:RR("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:RR("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:RR("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[RR("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),RR("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[RR("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),RR("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:RR("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[RR("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),RR("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:RR("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[RR("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),RR("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[RR("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),RR("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:RR("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:RR("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:RR("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:RR("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:RR("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function cF(e){let{id:t,skin:n,emoji:i}=e;if(e.shortcodes){const i=e.shortcodes.match(sF.SHORTCODES_REGEX);i&&(t=i[1],i[2]&&(n=i[2]))}if(i||(i=sF.get(t||e.native)),!i)return e.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||("native"==e.set||e.spritesheet?void 0:"function"==typeof e.getImageURL?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${r.unified}.png`),s="function"==typeof e.getSpritesheetURL?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return RR("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?RR("img",{style:{height:e.size||"1em",width:"auto",display:"inline-block",position:"relative",top:".1em"},alt:r.native||r.shortcodes,src:o}):"native"==e.set?RR("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):RR("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*QR.sheet.cols}% ${100*QR.sheet.rows}%`,backgroundPosition:`${100/(QR.sheet.cols-1)*r.x}% ${100/(QR.sheet.rows-1)*r.y}%`}})})}const uF="undefined"!=typeof window?window.HTMLElement:Object;class pF extends uF{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,n){if(!this.component)return;const i=rF(e,{[e]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:i}):(this.component.props[e]=i,this.component.forceUpdate())}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const n=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),n&&n.appendChild(this)}}}class dF extends pF{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var hF={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:GR.set,skin:GR.skin};class fF extends pF{async connectedCallback(){const e=iF(this.props,hF,this);e.element=this,e.ref=e=>{this.component=e},await nF(),zR(RR(cF,{...e}),this)}constructor(e){super(e)}}nR(fF,"Props",hF),"undefined"==typeof customElements||customElements.get("em-emoji")||customElements.define("em-emoji",fF);var mF,gF=[],bF=rR.__b,vF=rR.__r,yF=rR.diffed,xF=rR.__c,wF=rR.unmount;function _F(){var e;for(gF.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=gF.pop();)if(e.__P)try{e.__H.__h.forEach(EF),e.__H.__h.forEach(CF),e.__H.__h=[]}catch(t){e.__H.__h=[],rR.__e(t,e.__v)}}rR.__b=function(e){bF&&bF(e)},rR.__r=function(e){vF&&vF(e);var t=e.__c.__H;t&&(t.__h.forEach(EF),t.__h.forEach(CF),t.__h=[])},rR.diffed=function(e){yF&&yF(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==gF.push(t)&&mF===rR.requestAnimationFrame||((mF=rR.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),kF&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);kF&&(t=requestAnimationFrame(n))})(_F))},rR.__c=function(e,t){t.some((function(e){try{e.__h.forEach(EF),e.__h=e.__h.filter((function(e){return!e.__||CF(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],rR.__e(n,e.__v)}})),xF&&xF(e,t)},rR.unmount=function(e){wF&&wF(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{EF(e)}catch(e){t=e}})),t&&rR.__e(t,n.__v))};var kF="function"==typeof requestAnimationFrame;function EF(e){var t=e.__c;"function"==typeof t&&(e.__c=void 0,t())}function CF(e){e.__c=e.__()}function MF(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function OF(e){this.props=e}(OF.prototype=new bR).isPureReactComponent=!0,OF.prototype.shouldComponentUpdate=function(e,t){return MF(this.props,e)||MF(this.state,t)};var DF=rR.__b;rR.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),DF&&DF(e)};var TF=rR.__e;rR.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);TF(e,t,n)};var SF=rR.unmount;function NF(){this.__u=0,this.t=null,this.__b=null}function AF(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function jF(){this.u=null,this.o=null}rR.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),SF&&SF(e)},(NF.prototype=new bR).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=AF(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},NF.prototype.componentWillUnmount=function(){this.t=[]},NF.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&fR(gR,null,e.fallback);return r&&(r.__h=null),[fR(gR,null,t.__e?null:e.children),r]};var LF=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(jF.prototype=new bR).__e=function(e){var t=this,n=AF(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),LF(t,e,i)):r()};n?n(o):o()}},jF.prototype.render=function(e){this.u=null,this.o=new Map;var t=ER(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},jF.prototype.componentDidUpdate=jF.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){LF(e,n,t)}))};var zF="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,IF=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,RF="undefined"!=typeof document,FF=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};bR.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(bR.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var BF=rR.event;function PF(){}function UF(){return this.cancelBubble}function HF(){return this.defaultPrevented}rR.event=function(e){return BF&&(e=BF(e)),e.persist=PF,e.isPropagationStopped=UF,e.isDefaultPrevented=HF,e.nativeEvent=e};var $F={configurable:!0,get:function(){return this.class}},WF=rR.vnode;rR.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var o in i={},n){var s=n[o];RF&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!FF(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&IF.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),i[o]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=ER(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=ER(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i,n.class!=n.className&&($F.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",$F))}e.$$typeof=zF,WF&&WF(e)};var qF=rR.__r;rR.__r=function(e){qF&&qF(e),e.__c};const VF={light:"outline",dark:"solid"};class KF extends OF{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return RR("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return RR("img",{src:t.src})}const n=lF.categories[e.id]||lF.categories.custom;return n["auto"==this.props.icons?VF[this.props.theme]:this.props.icons]||n}render(){let e=null;return RR("nav",{id:"nav",class:"padding","data-position":this.props.position,children:RR("div",{class:"flex relative",children:[this.categories.map(((t,n)=>{const i=t.name||YR.categories[t.id],r=!this.props.unfocused&&t.id==this.state.categoryId;return r&&(e=n),RR("button",{"aria-label":i,"aria-selected":r||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:e=>e.preventDefault(),onClick:()=>{this.props.onClick({category:t,i:n})},children:this.renderIcon(t)})})),RR("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:null==e?0:1,transform:`translateX(${100*e}%)`}})]})})}constructor(){super(),this.categories=QR.categories.filter((e=>!e.target)),this.state={categoryId:this.categories[0].id}}}class GF extends OF{shouldComponentUpdate(e){for(let t in e)if("children"!=t&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const YF=10;class QF extends bR{getInitialState(e=this.props){return{skin:FR.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.observers=[],this.dir=YR.rtl?"rtl":"ltr",this.refs={menu:{current:null},navigation:{current:null},scroll:{current:null},search:{current:null},searchInput:{current:null},skinToneButton:{current:null},skinToneRadio:{current:null}},this.initGrid(),0==this.props.stickySearch&&"sticky"==this.props.searchPosition&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout((()=>{let e=!1;for(const t in this.nextState)this.props[t]=this.nextState[t],"custom"!==t&&"categories"!==t||(e=!0);delete this.nextState;const t=this.getInitialState();if(e)return this.reset(t);this.setState(t)}))}componentWillUnmount(){this.unregister()}async reset(e={}){await nF(this.props),this.initGrid(),this.unobserve(),this.setState(e,(()=>{this.observeCategories(),this.observeRows()}))}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve(){for(const e of this.observers)e.disconnect()}initGrid(){const{categories:e}=QR;this.refs.categories=new Map;const t=QR.categories.map((e=>e.id)).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const n=(e,t)=>{const n=[];n.__categoryId=t.id,n.__index=e.length,this.grid.push(n);const i=this.grid.length-1,r=i%YF?{}:{current:null};return r.index=i,r.posinset=this.grid.setsize+1,e.push(r),n};for(let t of e){const e=[];let i=n(e,t);for(let r of t.emojis)i.length==this.props.perLine&&(i=n(e,t)),this.grid.setsize+=1,i.push(r);this.refs.categories.set(t.id,{root:{current:null},rows:e})}}initTheme(e){if("auto"!=e)return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener((()=>{"auto"==this.props.theme&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}))}return this.darkMedia.matches?"dark":"light"}getEmojiByPos([e,t]){const n=this.state.searchResults||this.grid,i=n[e]&&n[e][t];if(i)return sF.get(i)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,n=t=>{t!=e.state.categoryId&&e.setState({categoryId:t})},i={root:this.refs.scroll.current,threshold:[0,1]},r=new IntersectionObserver((e=>{for(const n of e){const e=n.target.dataset.id;t.set(e,n.intersectionRatio)}const i=[...t],r=i[i.length-1];if(1==r[1])return n(r[0]);for(const[e,t]of i)if(t){n(e);break}}),i);for(const{root:e}of this.refs.categories.values())r.observe(e.current);this.observers.push(r)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver((t=>{for(const n of t){const t=parseInt(n.target.dataset.index);n.isIntersecting?e[t]=!0:delete e[t]}this.setState({visibleRows:e})}),{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(YF+5)}px 0px ${this.props.emojiButtonSize*YF}px`});for(const{rows:e}of this.refs.categories.values())for(const n of e)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e:e,input:t,left:n,right:i,up:r,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[a,l]=this.state.pos;const c=(()=>{if(0==a&&0==l&&!e.repeat&&(n||r))return null;if(-1==a)return e.repeat||!i&&!o||t.selectionStart!=t.value.length?null:[0,0];if(n||i){let e=s[a];const t=n?-1:1;if(l+=t,!e[l]){if(a+=t,e=s[a],!e)return a=n?0:s.length-1,l=n?0:s[a].length-1,[a,l];l=n?e.length-1:0}return[a,l]}if(r||o){a+=r?-1:1;const e=s[a];return e?(e[l]||(l=e.length-1),[a,l]):(a=r?0:s.length-1,l=r?0:s[a].length-1,[a,l])}})();c?(e.preventDefault(),this.setState({pos:c,keyboard:!0},(()=>{this.scrollTo({row:c[0]})}))):this.state.pos[0]>-1&&this.setState({pos:[-1,-1]})}scrollTo({categoryId:e,row:t}){const n=this.state.searchResults||this.grid;if(!n.length)return;const i=this.refs.scroll.current,r=i.getBoundingClientRect();let o=0;if(t>=0&&(e=n[t].__categoryId),e){o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(r.top-i.scrollTop)+1}if(t>=0)if(t){const e=o+n[t].__index*this.props.emojiButtonSize,s=e+this.props.emojiButtonSize+.88*this.props.emojiButtonSize;if(e<i.scrollTop)o=e;else{if(!(s>i.scrollTop+r.height))return;o=s-r.height}}else o=0;this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout((()=>{delete this.mouseIsIgnored}),100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({emoji:e,pos:t}){if(this.props.onEmojiSelect&&(!e&&t&&(e=this.getEmojiByPos(t)),e)){const t=function(e,{skinIndex:t}={}){const n=e.skins[t]||(t=0,e.skins[t]),i={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=t+1),n.src&&(i.src=n.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}(e,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&KR.add(t,this.props),this.props.onEmojiSelect(t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),FR.set("skin",e)}renderNav(){return RR(KF,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return RR("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[RR("div",{class:"flex flex-middle flex-grow",children:[RR("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:RR(cF,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||("top"==this.props.previewPosition?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),RR("div",{class:`margin-${this.dir[0]}`,children:RR("div",e?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[RR("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:e.name}),RR("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:e.skins[0].shortcodes})]}:t?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[RR("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:YR.search_no_results_1}),RR("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:YR.search_no_results_2})]}:{class:"color-c",style:{fontSize:21},children:YR.pick})})]}),!e&&"preview"==this.props.skinTonePosition&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:n,grid:i}){const r=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,s=(e.skins[o-1]||e.skins[0]).native,a=function(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>e==t[n]))}(this.state.pos,t),l=t.concat(e.id).join("");return RR(GF,{selected:a,skin:o,size:r,children:RR("button",{"aria-label":s,"aria-selected":a||void 0,"aria-posinset":n,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:"none"==this.props.previewPosition?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:()=>this.handleEmojiClick({emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[RR("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),RR(cF,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},l)}renderSearch(){const e="none"==this.props.previewPosition||"search"==this.props.skinTonePosition;return RR("div",{children:[RR("div",{class:"spacer"}),RR("div",{class:"flex flex-middle",children:[e&&"rtl"==this.dir&&this.renderSkinToneButton(),RR("div",{class:"search relative flex-grow",children:[RR("input",{type:"search",ref:this.refs.searchInput,placeholder:YR.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),RR("span",{class:"icon loupe flex",children:lF.search.loupe}),this.state.searchResults&&RR("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:lF.search.delete})]}),e&&"ltr"==this.dir&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?RR("div",{class:"category",ref:this.refs.search,children:[RR("div",{class:`sticky padding-small align-${this.dir[0]}`,children:YR.categories.search}),RR("div",{children:e.length?e.map(((t,n)=>RR("div",{class:"flex",children:t.map(((t,i)=>this.renderEmojiButton(t,{pos:[n,i],posinset:n*this.props.perLine+i+1,grid:e})))}))):RR("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&RR("a",{onClick:this.props.onAddCustomEmoji,children:YR.add_custom})})})]}):null}renderCategories(){const{categories:e}=QR,t=!!this.state.searchResults;return RR("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0},children:e.map((e=>{const{root:t,rows:n}=this.refs.categories.get(e.id);return RR("div",{"data-id":e.target?e.target.id:e.id,class:"category",ref:t,children:[RR("div",{class:`sticky padding-small align-${this.dir[0]}`,children:e.name||YR.categories[e.id]}),RR("div",{class:"relative",style:{height:n.length*this.props.emojiButtonSize},children:n.map(((t,n)=>{const i=t.index-t.index%YF,r=this.state.visibleRows[i],o="current"in t?t:void 0;if(!r&&!o)return null;const s=n*this.props.perLine,a=s+this.props.perLine,l=e.emojis.slice(s,a);return RR("div",{"data-index":t.index,ref:o,class:"flex row",style:{top:n*this.props.emojiButtonSize},children:r&&l.map(((e,n)=>{const i=sF.get(e);return this.renderEmojiButton(i,{pos:[t.index,n],posinset:t.posinset+n,grid:this.grid})}))},t.index)}))})]})}))})}renderSkinToneButton(){return"none"==this.props.skinTonePosition?null:RR("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:RR("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":YR.skins.choose,title:YR.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:RR("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos);return RR("div",{"aria-live":"polite",class:"sr-only",children:e?e.name:""})}renderSkins(){const e=this.refs.skinToneButton.current.getBoundingClientRect(),t=this.base.getBoundingClientRect(),n={};return"ltr"==this.dir?n.right=t.right-e.right-3:n.left=e.left-t.left-3,"bottom"==this.props.previewPosition&&"preview"==this.props.skinTonePosition?n.bottom=t.bottom-e.top+6:(n.top=e.bottom-t.top+3,n.bottom="auto"),RR("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":YR.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map((e=>{const t=e+1,n=this.state.skin==t;return RR("div",{children:[RR("input",{type:"radio",name:"skin-tone",value:t,"aria-label":YR.skins[t],ref:n?this.refs.skinToneRadio:null,defaultChecked:n,onChange:()=>this.handleSkinMouseOver(t),onKeyDown:e=>{"Enter"!=e.code&&"Space"!=e.code&&"Tab"!=e.code||(e.preventDefault(),this.handleSkinClick(t))}}),RR("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(t),onMouseEnter:()=>this.handleSkinMouseOver(t),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[RR("span",{class:`skin-tone skin-tone-${t}`}),RR("span",{class:"margin-small-lr",children:YR.skins[t]})]})]})}))})}render(){return RR("section",{id:"root",class:"flex flex-column",style:{width:this.props.perLine*this.props.emojiButtonSize+28},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:["top"==this.props.previewPosition&&this.renderPreview(),"top"==this.props.navPosition&&this.renderNav(),"sticky"==this.props.searchPosition&&RR("div",{class:"padding-lr",children:this.renderSearch()}),RR("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:RR("div",{style:{width:this.props.perLine*this.props.emojiButtonSize},children:["static"==this.props.searchPosition&&this.renderSearch(),this.renderSearchResults(),this.renderCategories(),RR("div",{class:"spacer"})]})}),"bottom"==this.props.navPosition&&this.renderNav(),"bottom"==this.props.previewPosition&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),nR(this,"handleClickOutside",(e=>{const{element:t}=this.props;e.target!=t&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside())})),nR(this,"handleBaseClick",(e=>{this.state.showSkins&&(e.target.closest(".menu")||(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins()))})),nR(this,"handleBaseKeydown",(e=>{this.state.showSkins&&"Escape"==e.key&&(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins())})),nR(this,"handleSearchClick",(()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})})),nR(this,"handleSearchInput",(async()=>{const e=this.refs.searchInput.current;if(!e)return;const{value:t}=e,n=await sF.search(t),i=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},i);const r=e.selectionStart==e.value.length?[0,0]:[-1,-1],o=[];o.setsize=n.length;let s=null;for(let e of n)o.length&&s.length!=this.props.perLine||(s=[],s.__categoryId="search",s.__index=o.length,o.push(s)),s.push(e);this.ignoreMouse(),this.setState({searchResults:o,pos:r},i)})),nR(this,"handleSearchKeyDown",(e=>{const t=e.currentTarget;switch(e.stopImmediatePropagation(),e.key){case"ArrowLeft":this.navigate({e:e,input:t,left:!0});break;case"ArrowRight":this.navigate({e:e,input:t,right:!0});break;case"ArrowUp":this.navigate({e:e,input:t,up:!0});break;case"ArrowDown":this.navigate({e:e,input:t,down:!0});break;case"Enter":e.preventDefault(),this.handleEmojiClick({pos:this.state.pos});break;case"Escape":e.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch()}})),nR(this,"clearSearch",(()=>{const e=this.refs.searchInput.current;e&&(e.value="",e.focus(),this.handleSearchInput())})),nR(this,"handleCategoryClick",(({category:e,i:t})=>{this.scrollTo(0==t?{row:-1}:{categoryId:e.id})})),nR(this,"openSkins",(e=>{const{currentTarget:t}=e,n=t.getBoundingClientRect();this.setState({showSkins:n},(async()=>{await async function(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}(2);const e=this.refs.menu.current;e&&(e.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))}))})),this.state={pos:[-1,-1],visibleRows:{0:!0},...this.getInitialState(e)}}}class ZF extends dF{async connectedCallback(){const e=iF(this.props,GR,this);e.element=this,e.ref=e=>{this.component=e},await nF(e),zR(RR(QF,{...e}),this.shadowRoot)}disconnectedCallback(){this.component&&this.component.unregister()}constructor(e){super(e,{styles:tR(JF)})}}nR(ZF,"Props",GR),"undefined"==typeof customElements||customElements.get("em-emoji-picker")||customElements.define("em-emoji-picker",ZF);var JF={};JF=':host {\n display: flex;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n --font-size: 15px;\n --shadow-color: 0deg 0% 0%;\n --shadow:\n 0.3px 0.5px 2.7px hsl(var(--shadow-color) / 0.14),\n 0.4px 0.8px 1px -3.2px hsl(var(--shadow-color) / 0.14),\n 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / 0.14);\n}\n\n[data-theme=light] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme=dark] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, .0, .2, 1);\n position: relative;\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*, *:before, *:after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-width: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: 0 0 auto;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: 1 1 auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.sr-only {\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n.scroll {\n overflow: auto;\n overflow-x: hidden;\n padding-right: 0;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: -1px;\n font-weight: 500;\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type=search] {\n display: block;\n border: 0;\n outline: 0;\n width: 100%;\n padding: 10px 2em 10px 2.2em;\n border-radius: 10px;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n}\n\n.search input[type=search]::-moz-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]:-ms-input-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]::placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search], .search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button, .search input[type=search]::-webkit-search-results-button, .search input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n.search input[type=search]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, 0.2);\n}\n\n.search .icon {\n z-index: 1;\n position: absolute;\n top: 50%;\n color: rgba(var(--em-rgb-color), 0.7);\n transform: translateY(-50%);\n}\n\n.search .loupe {\n left: 0.7em;\n pointer-events: none;\n}\n\n.search .delete {\n right: 0.7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n border: 0;\n background-color: transparent;\n}\n\n#nav {\n z-index: 2;\n position: relative;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav .bar {\n position: absolute;\n bottom: -12px;\n left: 0;\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n border-radius: 3px 3px 0 0;\n transition: transform var(--duration) var(--easing);\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n position: relative;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n}\n\n#nav:before, #preview:before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n}\n\n#nav[data-position=top]:before, #preview[data-position=top]:before {\n top: 100%;\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n}\n\n#nav[data-position=bottom]:before, #preview[data-position=bottom]:before {\n bottom: 100%;\n background: linear-gradient(to top, var(--em-color-border), transparent);\n}\n\n.category button {\n position: relative;\n font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0ms;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.skin-tone-button {\n border-radius: 100%;\n border: 1px solid transparent;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(0.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n border-left-width: 0;\n border-right-width: 0;\n border-top-color: rgba(0, 0, 0, 0.05);\n border-bottom-color: transparent;\n background-color: var(--em-color-border);\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(0.9);\n}\n\n.menu {\n z-index: 2;\n position: absolute;\n white-space: nowrap;\n padding: 4px;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n border-radius: 10px;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position=bottom] {\n transform-origin: bottom right;\n}\n\n.menu[data-position=bottom].hidden {\n transform: scale(0.9) rotate(-3deg) translateY(5%);\n}\n\n.menu[data-position=top] {\n transform-origin: top right;\n}\n\n.menu[data-position=top].hidden {\n transform: scale(0.9) rotate(3deg) translateY(-5%);\n}\n\n.menu input[type=radio] {\n position: absolute;\n overflow: hidden;\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n.menu input[type=radio]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n padding: 4px 6px;\n border-radius: 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 100%;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: "";\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: 1px solid rgba(0, 0, 0, 0.8);\n mix-blend-mode: overlay;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-emoji-set=twitter] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.5);\n box-shadow: none;\n}\n\n[data-emoji-set=twitter] .skin-tone-1 {\n background-color: #FADE72;\n}\n\n[data-emoji-set=twitter] .skin-tone-2 {\n background-color: #F3DFD0;\n}\n\n[data-emoji-set=twitter] .skin-tone-3 {\n background-color: #EED3A8;\n}\n\n[data-emoji-set=twitter] .skin-tone-4 {\n background-color: #CFAD8D;\n}\n\n[data-emoji-set=twitter] .skin-tone-5 {\n background-color: #A8805D;\n}\n\n[data-emoji-set=twitter] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set=google] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.4);\n}\n\n[data-emoji-set=google] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=google] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=google] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=google] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=google] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=google] .skin-tone-6 {\n background-color: #61493F;\n}\n\n[data-emoji-set=facebook] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set=facebook] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=facebook] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=facebook] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=facebook] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=facebook] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=facebook] .skin-tone-6 {\n background-color: #61493F;\n}\n';const XF=()=>UO.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");class eB extends t.Component{constructor(){super(...arguments),bE(this,"ref",t.createRef()),bE(this,"fetchEmojiData",(async()=>{try{const{data:e}=await XF();return e}catch{return{}}})),bE(this,"onKeyDown",(e=>{let{event:t}=e;return"Escape"===t.key&&(this.props.editor.chain().focus().deleteRange(this.props.range).run(),!0)})),bE(this,"handleSelect",(e=>{this.props.editor.chain().focus().deleteRange(this.props.range).setEmoji(e).run()}))}componentDidMount(){new ZF({...this.props,onEmojiSelect:this.handleSelect,style:{maxWidth:"100%"},theme:"light",native:!0,previewPosition:"none",showSkinTones:!1,data:this.fetchEmojiData,ref:this.ref})}render(){return t.createElement("div",{"data-cy":"neeto-editor-emoji-picker",ref:this.ref})}}eB.defaultProps={editor:{},range:{}},eB.propTypes={editor:wh.exports.object.isRequired,range:wh.exports.object};const tB=new en("emoji-picker"),nB=Xs.create({name:"emojiPicker",group:"inline",inline:!0,selectable:!1,atom:!0,addOptions:()=>({suggestion:{char:"::",startOfLine:!1,pluginKey:tB,items:()=>[],render:()=>{let e,t;return{onStart(n){e=new Dc(eB,{props:n,editor:n.editor}),t=pc("body",{theme:"light",getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t[0].destroy(),e.destroy()}}}}}),addProseMirrorPlugins(){return[eR({editor:this.editor,...this.options.suggestion})]}});class iB extends t.Component{constructor(){super(...arguments),bE(this,"state",{isLoading:!1,selectedIndex:0,emojiSuggestions:[]}),bE(this,"fetchEmojiData",(async()=>{this.setState({isLoading:!0});try{const{data:e}=await XF();return this.setState({isLoading:!1}),e}catch{return this.setState({isLoading:!1}),{}}})),bE(this,"searchEmoji",(async()=>{if(this.props.query)return(await sF.search(this.props.query)).slice(0,5);return(await Promise.all(["+1","-1","smile","tada","heart"].map((e=>sF.search(e))))).map((e=>e[0]))})),bE(this,"searchEmojiAndSetState",(async()=>{const e=await this.searchEmoji();this.setState({emojiSuggestions:e})})),bE(this,"setEditorState",(async()=>{const e=await this.searchEmoji();this.props.editor.chain().focus().deleteRange(this.props.range).setEmoji(e[0]).run()})),bE(this,"onKeyDown",(e=>{let{event:t}=e;return"ArrowLeft"===t.key||"ArrowDown"===t.key?(this.setState((e=>{let{selectedIndex:t,emojiSuggestions:n}=e;return{selectedIndex:(t+n.length-1)%n.length}})),!0):"ArrowRight"===t.key||"ArrowUp"===t.key?(this.setState((e=>{let{selectedIndex:t,emojiSuggestions:n}=e;return{selectedIndex:(t+1)%n.length}})),!0):"Enter"===t.key?(this.selectItem(this.state.selectedIndex),!0):" "===t.key?(qu(this.props.query)?this.props.editor.chain().focus().insertContent(" ").run():this.setEditorState(),!0):"Escape"===t.key&&(this.props.editor.chain().focus().insertContent(" ").run(),!0)})),bE(this,"selectItem",(e=>{this.props.editor.chain().focus().deleteRange(this.props.range).setEmoji(this.state.emojiSuggestions[e]).run()}))}componentDidMount(){nF({data:this.fetchEmojiData,theme:"light",previewPosition:"none"}),this.searchEmojiAndSetState()}componentDidUpdate(e){this.props.query!==e.query&&this.searchEmojiAndSetState()}render(){return t.createElement("div",{className:"neeto-editor-emoji-suggestion"},this.state.isLoading&&t.createElement(JT,null),!this.state.isLoading&&(this.state.emojiSuggestions.length>0?this.state.emojiSuggestions.map(((e,n)=>t.createElement("div",{"data-cy":`neeto-editor-emoji-suggestion-${e.id}`,key:e.id,className:Rc("neeto-editor-emoji-suggestion__item",{"neeto-editor-emoji-suggestion__item--selected":n===this.state.selectedIndex}),onClick:()=>this.selectItem(n)},e.skins[0].native))):t.createElement("p",null,"No results")))}}const rB=new en("emoji-suggestion"),oB=Xs.create({name:"emojiSuggestion",group:"inline",inline:!0,selectable:!1,atom:!0,addOptions:()=>({HTMLAttributes:{class:"neeto-editor-emoji"},renderEmoji(e){let{node:t}=e;return t.attrs.label},suggestion:{}}),addAttributes:()=>({label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-emoji]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",Ho({"data-emoji":""},this.options.HTMLAttributes,n),this.options.renderEmoji({node:t})]},renderText(e){let{node:t}=e;return this.options.renderEmoji({node:t})},addCommands(){return{setEmoji:e=>t=>{var n;let{chain:i}=t;i().focus().insertContent([{type:this.name,attrs:{label:(null==e?void 0:e.native)||(null==e||null===(n=e.skins[0])||void 0===n?void 0:n.native)||""}},{type:"text",text:" "}]).run()}}},addProseMirrorPlugins(){return[eR({editor:this.editor,...this.options.suggestion})]}}),sB={char:":",startOfLine:!1,pluginKey:rB,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setEmoji(i).run()},items:()=>[],render:()=>{let e,t;return{onStart(n){e=new Dc(iB,{props:n,editor:n.editor}),t=pc("body",{theme:"light",getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"top-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t[0].destroy(),e.destroy()}}}};var aB=oB.configure({suggestion:sB});const lB=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,cB=Xs.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Ho(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Ys({find:lB,type:this.type,getAttributes:e=>{const[,,t,n,i]=e;return{src:n,alt:t,title:i}}})]}});var uB,pB=void 0&&(void 0).__extends||(uB=function(e,t){return uB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},uB(e,t)},function(e,t){function n(){this.constructor=e}uB(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dB=void 0&&(void 0).__assign||function(){return dB=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},dB.apply(this,arguments)},hB={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},fB={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},mB={width:"20px",height:"20px",position:"absolute"},gB={top:dB(dB({},hB),{top:"-5px"}),right:dB(dB({},fB),{left:void 0,right:"-5px"}),bottom:dB(dB({},hB),{top:void 0,bottom:"-5px"}),left:dB(dB({},fB),{left:"-5px"}),topRight:dB(dB({},mB),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:dB(dB({},mB),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:dB(dB({},mB),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:dB(dB({},mB),{left:"-10px",top:"-10px",cursor:"nw-resize"})},bB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){e.props.onResizeStart(t,e.props.direction)},e.onTouchStart=function(t){e.props.onResizeStart(t,e.props.direction)},e}return pB(n,t),n.prototype.render=function(){return e.createElement("div",{className:this.props.className||"",style:dB(dB({position:"absolute",userSelect:"none"},gB[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},n}(e.PureComponent),vB=void 0&&(void 0).__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yB=void 0&&(void 0).__assign||function(){return yB=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},yB.apply(this,arguments)},xB={width:"auto",height:"auto"},wB=function(e,t,n){return Math.max(Math.min(e,n),t)},_B=function(e,t){return Math.round(e/t)*t},kB=function(e,t){return new RegExp(e,"i").test(t)},EB=function(e){return Boolean(e.touches&&e.touches.length)},CB=function(e,t,n){void 0===n&&(n=0);var i=t.reduce((function(n,i,r){return Math.abs(i-e)<Math.abs(t[n]-e)?r:n}),0),r=Math.abs(t[i]-e);return 0===n||r<n?t[i]:e},MB=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},OB=function(e,t,n,i){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return i*(Number(e.replace("vh",""))/100)}return e},DB=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],TB="__resizable_base__",SB=function(t){function n(e){var n=t.call(this,e)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(TB):t.className+=TB,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return vB(n,t),Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||xB},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,i=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:i,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return MB(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?MB(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?MB(t.height):n("height")}},enumerable:!1,configurable:!0}),n.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var i={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),i},n.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},n.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},n.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},n.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},n.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},n.prototype.calculateNewMaxFromBoundary=function(e,t){var n,i,r=this.props.boundsByDirection,o=this.state.direction,s=r&&kB("left",o),a=r&&kB("top",o);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),i=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,i=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),i=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),i&&Number.isFinite(i)&&(t=t&&t<i?t:i),{maxWidth:e,maxHeight:t}},n.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,i=this.props.resizeRatio||1,r=this.state,o=r.direction,s=r.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,u=a.lockAspectRatioExtraWidth,p=s.width,d=s.height,h=c||0,f=u||0;return kB("right",o)&&(p=s.width+(e-s.x)*i/n,l&&(d=(p-f)/this.ratio+h)),kB("left",o)&&(p=s.width-(e-s.x)*i/n,l&&(d=(p-f)/this.ratio+h)),kB("bottom",o)&&(d=s.height+(t-s.y)*i/n,l&&(p=(d-h)*this.ratio+f)),kB("top",o)&&(d=s.height-(t-s.y)*i/n,l&&(p=(d-h)*this.ratio+f)),{newWidth:p,newHeight:d}},n.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,i){var r=this.props,o=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===i.width?10:i.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===i.height?10:i.height,p=void 0===n.height||n.height<0?t:n.height,d=s||0,h=a||0;if(o){var f=(u-d)*this.ratio+h,m=(p-d)*this.ratio+h,g=(l-h)/this.ratio+d,b=(c-h)/this.ratio+d,v=Math.max(l,f),y=Math.min(c,m),x=Math.max(u,g),w=Math.min(p,b);e=wB(e,v,y),t=wB(t,x,w)}else e=wB(e,l,c),t=wB(t,u,p);return{newWidth:e,newHeight:t}},n.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),r=i.left,o=i.top,s=i.right,a=i.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=o,this.resizableBottom=a}},n.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,i=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(i=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&EB(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:i,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:yB(yB({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},n.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&EB(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,i=n.maxWidth,r=n.maxHeight,o=n.minWidth,s=n.minHeight,a=EB(e)?e.touches[0].clientX:e.clientX,l=EB(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,p=c.original,d=c.width,h=c.height,f=this.getParentSize(),g=function(e,t,n,i,r,o,s){return i=OB(i,e.width,t,n),r=OB(r,e.height,t,n),o=OB(o,e.width,t,n),s=OB(s,e.height,t,n),{maxWidth:void 0===i?void 0:Number(i),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===o?void 0:Number(o),minHeight:void 0===s?void 0:Number(s)}}(f,this.window.innerWidth,this.window.innerHeight,i,r,o,s);i=g.maxWidth,r=g.maxHeight,o=g.minWidth,s=g.minHeight;var b=this.calculateNewSizeFromDirection(a,l),v=b.newHeight,y=b.newWidth,x=this.calculateNewMaxFromBoundary(i,r);this.props.snap&&this.props.snap.x&&(y=CB(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=CB(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(y,v,{width:x.maxWidth,height:x.maxHeight},{width:o,height:s});if(y=w.newWidth,v=w.newHeight,this.props.grid){var _=_B(y,this.props.grid[0]),k=_B(v,this.props.grid[1]),E=this.props.snapGap||0;y=0===E||Math.abs(_-y)<=E?_:y,v=0===E||Math.abs(k-v)<=E?k:v}var C={width:y-p.width,height:v-p.height};if(d&&"string"==typeof d)if(d.endsWith("%"))y=y/f.width*100+"%";else if(d.endsWith("vw")){y=y/this.window.innerWidth*100+"vw"}else if(d.endsWith("vh")){y=y/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(h.endsWith("%"))v=v/f.height*100+"%";else if(h.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(h.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var M={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?M.flexBasis=M.width:"column"===this.flexDir&&(M.flexBasis=M.height),m((function(){t.setState(M)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},n.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,i=t.direction,r=t.original;if(n&&this.resizable){var o={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:yB(yB({},this.state.backgroundStyle),{cursor:"auto"})})}},n.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},n.prototype.renderResizer=function(){var t=this,n=this.props,i=n.enable,r=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,a=n.handleWrapperClass,l=n.handleComponent;if(!i)return null;var c=Object.keys(i).map((function(n){return!1!==i[n]?e.createElement(bB,{key:n,direction:n,onResizeStart:t.onResizeStart,replaceStyles:r&&r[n],className:o&&o[n]},l&&l[n]?l[n]:null):null}));return e.createElement("div",{className:a,style:s},c)},n.prototype.render=function(){var t=this,n=Object.keys(this.props).reduce((function(e,n){return-1!==DB.indexOf(n)||(e[n]=t.props[n]),e}),{}),i=yB(yB(yB({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return e.createElement(r,yB({ref:this.ref,style:i,className:this.props.className},n),this.state.isResizing&&e.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},n.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},n}(e.PureComponent);const NB=e=>{let{node:n,editor:i,getPos:r}=e;const{alt:o,src:s,float:a,align:l,height:c,width:u}=n.attrs,p=o||"",{view:d}=i;return t.createElement(Oc,null,t.createElement(SB,{lockAspectRatio:!0,className:`neeto-editor__image neeto-editor__image--${a} neeto-editor__image--${l} neeto-editor__image-defaults`,size:{height:c,width:u},onResizeStop:(e,t,o)=>{d.dispatch(d.state.tr.setNodeMarkup(r(),void 0,{...n.attrs,height:o.offsetHeight,width:o.offsetWidth})),i.commands.focus()}},t.createElement("figure",null,t.createElement("img",T({alt:p,src:s},n.attrs)),t.createElement("figcaption",null,p))))},AB=cB.extend({name:"image",addAttributes:()=>({...cB.config.addAttributes(),height:{default:"auto",rendered:!1},width:{default:"fit-content",rendered:!1},float:{default:"none",rendered:!1},align:{default:"center",rendered:!1}}),addCommands(){return{setImage:e=>t=>{var n,i,r;let{tr:o,commands:s}=t;return"image"===(null===(n=o.selection)||void 0===n||null===(i=n.node)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.name)?s.updateAttributes("image",e):s.insertContent({type:this.name,attrs:e})},setImageAttributes:e=>t=>{let{tr:n}=t;const{selection:i}=n,r={...i.node.attrs,...e},o=this.type.create(r);n.replaceRangeWith(i.from,i.to,o)}}},parseHTML:()=>[{tag:"img"}],renderHTML(e){let{node:t}=e;const{alt:n,src:i,float:r,align:o,height:s,width:a}=t.attrs,l=n||"";return["a",{class:`neeto-editor__image neeto-editor__image--${r} neeto-editor__image--${o} neeto-editor__image-defaults`,style:`height:${isNaN(s)?s:`${s}px`};width:${isNaN(a)?a:`${a}px`};`,href:i,target:"_blank",rel:"noopener noreferrer"},["figure",{},["img",Ho(t.attrs,{src:i,caption:l})],["figcaption",l]]]},addNodeView:()=>Sc(NB)}),jB=async(e,t)=>{const n=new OT({file:e,url:t}),{blob_url:i}=await n.create();return i};var LB=e=>{let{uploadEndpoint:t}=e;return AB.extend({addProseMirrorPlugins:()=>[new Zt({props:{handleDOMEvents:{paste(e,n){var i,r;const{schema:o,selection:{$anchor:{pos:s}}}=e.state;if(!(null===(i=n.clipboardData)||void 0===i||null===(r=i.files)||void 0===r?void 0:r.length))return;const a=Array.from(n.clipboardData.files).filter((e=>/image/i.test(e.type)));Pu(a)||(n.preventDefault(),a.forEach((async n=>{const i=o.nodes.image.create({src:await jB(n,t)}),r=e.state.tr.insert(s,i);e.dispatch(r)})))}}}})]})},zB=Xs.create({name:"figcaption",selectable:!1,draggable:!1,parseHTML:()=>[{tag:"figcaption"}]});const IB=e=>{let{onSubmit:t,shortcuts:n}=e;return as.create({name:"keyboard-shortcuts",addKeyboardShortcuts(){return{"Mod-Enter":()=>(null==t||t(this.editor.getHTML()),this.editor.commands.blur(),!0),...n}}})};var RB=e=>{let{onSubmit:t,shortcuts:n}=e;return IB({onSubmit:t,shortcuts:n})};const FB=new en("mention"),BB=Xs.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n;return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:FB,command:({editor:e,range:t,props:n})=>{var i,r;const o=e.view.state.selection.$to.nodeAfter;(null===(i=null==o?void 0:o.text)||void 0===i?void 0:i.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),null===(r=window.getSelection())||void 0===r||r.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),i=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(i)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",Ho({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((({tr:e,state:t})=>{let n=!1;const{selection:i}=t,{empty:r,anchor:o}=i;return!!r&&(t.doc.nodesBetween(o-1,o,((t,i)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",i,i+t.nodeSize),!1})),n)}))}},addProseMirrorPlugins(){return[eR({editor:this.editor,...this.options.suggestion})]}}),PB=e=>{let{size:n="medium",user:i={},isSquare:o=!1,status:s=null,onClick:a=(()=>{}),className:l="",...c}=e;const[u,p]=r(!1),{name:d="",imageUrl:h}=i,f="medium"===n,m="large"===n,g="extraLarge"===n,b=(e=>{if(e&&"string"==typeof e){const t=e.trim().split(" "),n=t.reduce(((e,n,i)=>(0!==i&&i!==t.length-1||(e=`${e}${n.charAt(0).toUpperCase()}`),e)),"");return n}return""})(d),v={height:Rf[n],width:Rf[n]},y=Rc("ne-avatar ",{"ne-avatar--medium":f,"ne-avatar--large":m,"ne-avatar--xlarge":g,"ne-avatar--round":!o,hidden:u}),x=Rc("ne-avatar__text",{"ne-avatar__text-medium":f,"ne-avatar__text-large":m,"ne-avatar__text-xlarge":g}),w=Rc("ne-avatar__status",s,{"ne-avatar__status-medium":f,"ne-avatar__status-large":m,"ne-avatar__status-xlarge":g,"ne-avatar__status-square":o}),_=()=>Hu(s)?t.Fragment:t.createElement("span",{className:w,"data-testid":"indicator"}),k=()=>t.createElement("span",{className:x,"data-testid":"initials"},b),E=b&&!(h&&!u);return t.createElement("span",T({style:v,className:Rc("ne-avatar--container ne-select-none",{"ne-avatar--container-round":!o},l,(()=>{const e=(b.charCodeAt(0)||0)+(b.charCodeAt(1)||0);return Ff[e%65%Ff.length]||Ff[0]})()),onClick:a},c),t.createElement(_,null),E?t.createElement(k,null):t.createElement("img",{alt:`avatar-${b}`,className:y,"data-chromatic":"ignore",src:h||Bf,onError:()=>p(!0)}))};PB.propTypes={size:wh.exports.oneOf(Object.keys(Rf)),user:wh.exports.shape({imageUrl:wh.exports.string,name:wh.exports.string}),isSquare:wh.exports.bool,onClick:wh.exports.func,status:wh.exports.oneOf(Object.keys({online:"online",idle:"idle",offline:"offline"})),className:wh.exports.string};const UB=e=>{let{wrapperRef:t,index:n}=e;if(!t.current||n>=t.current.children.length)return;const i=8,r=t.current,o=r.children[n],s=o.clientHeight+i;let a=r.scrollTop;o.offsetTop+s>a+r.clientHeight?a=o.offsetTop-r.clientHeight+s:a>o.offsetTop&&(a=o.offsetTop-i),t.current.scrollTop=a};class HB extends t.Component{constructor(e){super(e),bE(this,"selectItem",(e=>{const{items:t,command:n}=this.props,i=t[e];i&&n({label:i.name,id:i.key})})),bE(this,"upHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+e.length-1)%e.length}}))})),bE(this,"downHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+1)%e.length}}))})),bE(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),bE(this,"onKeyDown",(e=>{let{event:t}=e;const n={ArrowUp:this.upHandler,ArrowDown:this.downHandler,Enter:this.enterHandler};return!!Object.prototype.hasOwnProperty.call(n,t.key)&&(n[t.key](),!0)})),this.state={selectedIndex:0},this.mentionRef=t.createRef()}componentDidUpdate(e){const{items:t}=this.props;t!==e.items&&this.setState({selectedIndex:0}),UB({wrapperRef:this.mentionRef,index:this.state.selectedIndex})}render(){const{selectedIndex:e}=this.state,{items:n}=this.props;return Pu(n)?t.createElement("div",{className:"neeto-editor-mentions__wrapper"},t.createElement("p",{className:"neeto-editor-mentions__item"},"No Results")):t.createElement("div",{className:"neeto-editor-mentions__wrapper","data-cy":"neeto-editor-mention-list",ref:this.mentionRef},n.map(((n,i)=>{let{key:r,name:o,imageUrl:s}=n;return t.createElement("button",{"data-cy":`neeto-editor-mention-list-${o}`,key:r,type:"button",className:Rc("neeto-editor-mentions__item",{active:i===e}),onClick:()=>this.selectItem(i)},t.createElement(PB,{user:{name:o,imageUrl:s}}),t.createElement("p",null,o))})))}}const $B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort(((e,t)=>e.name.localeCompare(t.name)))},WB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=$B(e);return e=>{let{query:n}=e;return t.filter((e=>{let{name:t}=e;return t.toLocaleLowerCase().includes(n.toLocaleLowerCase())}))}},qB={render:()=>{let e,t;return{onStart:n=>{e=new Dc(HB,{props:n,editor:n.editor}),t=pc("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var i;return"Escape"===n.event.key?(t[0].hide(),!0):null===(i=e.ref)||void 0===i?void 0:i.onKeyDown(n)},onExit(){t[0].destroy(),e.destroy()}}}},VB=BB.extend({addCommands(){return{setMention:e=>{let{id:t,label:n}=e;return e=>{let{chain:i}=e;i().focus().insertContent([{type:this.name,attrs:{id:t,label:n}},{type:"text",text:" "}]).run()}}}}});var KB=e=>{let{suggestion:t={},...n}=e;return VB.configure({...n,suggestion:{...qB,...t}})};const GB=as.create({name:"placeholder",addOptions:()=>({excludeNodeTypes:["variable","codeBlock"],emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!1,includeChildren:!1}),addProseMirrorPlugins(){return[new Zt({props:{decorations:e=>{let{doc:t,selection:n}=e;const i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];return i?(t.descendants(((e,t)=>{const n=r>=t&&r<=t+e.nodeSize,i=!e.isLeaf&&!e.childCount,s=this.options.excludeNodeTypes.includes(e.type.name);if((n||!this.options.showOnlyCurrent)&&!s&&i){const n=[this.options.emptyNodeClass];this.editor.isEmpty&&n.push(this.options.emptyEditorClass);const i=Ir.node(t,t+e.nodeSize,{class:n.join(" "),"data-placeholder":this.options.placeholder});o.push(i)}return this.options.includeChildren})),Br.create(t,o)):null}}})]}});var YB={exports:{}};
61
- /**
62
- * @license
63
- * Lodash <https://lodash.com/>
64
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
65
- * Released under MIT license <https://lodash.com/license>
66
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
67
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
68
- */!function(e,t){(function(){var n,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",p=1,d=2,h=4,f=1,m=2,g=1,b=2,v=4,y=8,x=16,w=32,_=64,k=128,E=256,C=512,M=30,O="...",D=800,T=16,S=1,N=2,A=3,j=1/0,L=9007199254740991,z=17976931348623157e292,I=0/0,R=4294967295,F=R-1,B=R>>>1,P=[["ary",k],["bind",g],["bindKey",b],["curry",y],["curryRight",x],["flip",C],["partial",w],["partialRight",_],["rearg",E]],U="[object Arguments]",H="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",q="[object Date]",V="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",Z="[object Number]",J="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",ie="[object Set]",re="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",pe="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ve="[object Uint16Array]",ye="[object Uint32Array]",xe=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ce=RegExp(ke.source),Me=RegExp(Ee.source),Oe=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(je.source),ze=/^\s+/,Ie=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",et="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",it="A-Z\\xc0-\\xd6\\xd8-\\xde",rt="\\ufe0e\\ufe0f",ot="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",st="['’]",at="["+Xe+"]",lt="["+ot+"]",ct="["+et+"]",ut="\\d+",pt="["+tt+"]",dt="["+nt+"]",ht="[^"+Xe+ot+ut+tt+nt+it+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="[^"+Xe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="["+it+"]",yt="\\u200d",xt="(?:"+dt+"|"+ht+")",wt="(?:"+vt+"|"+ht+")",_t="(?:"+st+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+st+"(?:D|LL|M|RE|S|T|VE))?",Et="(?:"+ct+"|"+ft+")"+"?",Ct="["+rt+"]?",Mt=Ct+Et+("(?:"+yt+"(?:"+[mt,gt,bt].join("|")+")"+Ct+Et+")*"),Ot="(?:"+[pt,gt,bt].join("|")+")"+Mt,Dt="(?:"+[mt+ct+"?",ct,gt,bt,at].join("|")+")",Tt=RegExp(st,"g"),St=RegExp(ct,"g"),Nt=RegExp(ft+"(?="+ft+")|"+Dt+Mt,"g"),At=RegExp([vt+"?"+dt+"+"+_t+"(?="+[lt,vt,"$"].join("|")+")",wt+"+"+kt+"(?="+[lt,vt+xt,"$"].join("|")+")",vt+"?"+xt+"+"+_t,vt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Ot].join("|"),"g"),jt=RegExp("["+yt+Xe+et+rt+"]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],It=-1,Rt={};Rt[pe]=Rt[de]=Rt[he]=Rt[fe]=Rt[me]=Rt[ge]=Rt[be]=Rt[ve]=Rt[ye]=!0,Rt[U]=Rt[H]=Rt[ce]=Rt[W]=Rt[ue]=Rt[q]=Rt[K]=Rt[G]=Rt[Q]=Rt[Z]=Rt[X]=Rt[ne]=Rt[ie]=Rt[re]=Rt[ae]=!1;var Ft={};Ft[U]=Ft[H]=Ft[ce]=Ft[ue]=Ft[W]=Ft[q]=Ft[pe]=Ft[de]=Ft[he]=Ft[fe]=Ft[me]=Ft[Q]=Ft[Z]=Ft[X]=Ft[ne]=Ft[ie]=Ft[re]=Ft[oe]=Ft[ge]=Ft[be]=Ft[ve]=Ft[ye]=!0,Ft[K]=Ft[G]=Ft[ae]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pt=parseFloat,Ut=parseInt,Ht="object"==typeof Ac&&Ac&&Ac.Object===Object&&Ac,$t="object"==typeof self&&self&&self.Object===Object&&self,Wt=Ht||$t||Function("return this")(),qt=t&&!t.nodeType&&t,Vt=qt&&"object"=="object"&&e&&!e.nodeType&&e,Kt=Vt&&Vt.exports===qt,Gt=Kt&&Ht.process,Yt=function(){try{var e=Vt&&Vt.require&&Vt.require("util").types;return e||Gt&&Gt.binding&&Gt.binding("util")}catch(e){}}(),Qt=Yt&&Yt.isArrayBuffer,Zt=Yt&&Yt.isDate,Jt=Yt&&Yt.isMap,Xt=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function on(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function sn(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function ln(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function cn(e,t){return!!(null==e?0:e.length)&&yn(e,t,0)>-1}function un(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function pn(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function dn(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function hn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function fn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function mn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var gn=kn("length");function bn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function vn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function yn(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):vn(e,wn,n)}function xn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function wn(e){return e!=e}function _n(e,t){var n=null==e?0:e.length;return n?Mn(e,t)/n:I}function kn(e){return function(t){return null==t?n:t[e]}}function En(e){return function(t){return null==e?n:e[t]}}function Cn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Mn(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function On(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Dn(e){return e?e.slice(0,Vn(e)+1).replace(ze,""):e}function Tn(e){return function(t){return e(t)}}function Sn(e,t){return pn(t,(function(t){return e[t]}))}function Nn(e,t){return e.has(t)}function An(e,t){for(var n=-1,i=e.length;++n<i&&yn(t,e[n],0)>-1;);return n}function jn(e,t){for(var n=e.length;n--&&yn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var zn=En({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),In=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Rn(e){return"\\"+Bt[e]}function Fn(e){return jt.test(e)}function Bn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function Pn(e,t){return function(n){return e(t(n))}}function Un(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[r++]=n)}return o}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Wn(e){return Fn(e)?function(e){var t=Nt.lastIndex=0;for(;Nt.test(e);)++t;return t}(e):gn(e)}function qn(e){return Fn(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.split("")}(e)}function Vn(e){for(var t=e.length;t--&&Ie.test(e.charAt(t)););return t}var Kn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gn=function e(t){var Ie,Xe=(t=null==t?Wt:Gn.defaults(Wt.Object(),t,Gn.pick(Wt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,it=t.Math,rt=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Xe.prototype,ct=nt.prototype,ut=rt.prototype,pt=t["__core-js_shared__"],dt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(Ie=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ie:"",gt=ut.toString,bt=dt.call(rt),vt=Wt._,yt=ot("^"+dt.call(ht).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=Kt?t.Buffer:n,wt=t.Symbol,_t=t.Uint8Array,kt=xt?xt.allocUnsafe:n,Et=Pn(rt.getPrototypeOf,rt),Ct=rt.create,Mt=ut.propertyIsEnumerable,Ot=lt.splice,Dt=wt?wt.isConcatSpreadable:n,Nt=wt?wt.iterator:n,jt=wt?wt.toStringTag:n,Bt=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ht=t.clearTimeout!==Wt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==Wt.Date.now&&et.now,qt=t.setTimeout!==Wt.setTimeout&&t.setTimeout,Vt=it.ceil,Gt=it.floor,Yt=rt.getOwnPropertySymbols,gn=xt?xt.isBuffer:n,En=t.isFinite,Yn=lt.join,Qn=Pn(rt.keys,rt),Zn=it.max,Jn=it.min,Xn=et.now,ei=t.parseInt,ti=it.random,ni=lt.reverse,ii=qo(t,"DataView"),ri=qo(t,"Map"),oi=qo(t,"Promise"),si=qo(t,"Set"),ai=qo(t,"WeakMap"),li=qo(rt,"create"),ci=ai&&new ai,ui={},pi=vs(ii),di=vs(ri),hi=vs(oi),fi=vs(si),mi=vs(ai),gi=wt?wt.prototype:n,bi=gi?gi.valueOf:n,vi=gi?gi.toString:n;function yi(e){if(za(e)&&!Ea(e)&&!(e instanceof ki)){if(e instanceof _i)return e;if(ht.call(e,"__wrapped__"))return ys(e)}return new _i(e)}var xi=function(){function e(){}return function(t){if(!La(t))return{};if(Ct)return Ct(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function wi(){}function _i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function ki(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mi;++t<n;)this.add(e[t])}function Di(e){var t=this.__data__=new Ci(e);this.size=t.size}function Ti(e,t){var n=Ea(e),i=!n&&ka(e),r=!n&&!i&&Da(e),o=!n&&!i&&!r&&$a(e),s=n||i||r||o,a=s?On(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Jo(c,l))||a.push(c);return a}function Si(e){var t=e.length;return t?e[Or(0,t-1)]:n}function Ni(e,t){return ms(lo(e),Pi(t,0,e.length))}function Ai(e){return ms(lo(e))}function ji(e,t,i){(i!==n&&!xa(e[t],i)||i===n&&!(t in e))&&Fi(e,t,i)}function Li(e,t,i){var r=e[t];ht.call(e,t)&&xa(r,i)&&(i!==n||t in e)||Fi(e,t,i)}function zi(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function Ii(e,t,n,i){return qi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ri(e,t){return e&&co(t,pl(t),e)}function Fi(e,t,n){"__proto__"==t&&Bt?Bt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bi(e,t){for(var i=-1,r=t.length,o=Xe(r),s=null==e;++i<r;)o[i]=s?n:sl(e,t[i]);return o}function Pi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function Ui(e,t,i,r,o,s){var a,l=t&p,c=t&d,u=t&h;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!La(e))return e;var f=Ea(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Da(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,dl(t),e)}(a,e)):function(e,t){return co(e,Vo(e),t)}(e,Ri(a,e))}else{if(!Ft[m])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case ce:return io(e);case W:case q:return new i(+e);case ue:return function(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case pe:case de:case he:case fe:case me:case ge:case be:case ve:case ye:return ro(e,n);case Q:return new i;case Z:case re:return new i(e);case ne:return function(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ie:return new i;case oe:return r=e,bi?rt(bi.call(r)):{}}var r}(e,m,l)}}s||(s=new Di);var b=s.get(e);if(b)return b;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ui(n,t,i,n,e,s))})):Ia(e)&&e.forEach((function(n,r){a.set(r,Ui(n,t,i,r,e,s))}));var v=f?n:(u?c?Fo:Ro:c?dl:pl)(e);return on(v||e,(function(n,r){v&&(n=e[r=n]),Li(a,r,Ui(n,t,i,r,e,s))})),a}function Hi(e,t,i){var r=i.length;if(null==e)return!r;for(e=rt(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $i(e,t,i){if("function"!=typeof e)throw new at(s);return ps((function(){e.apply(n,i)}),t)}function Wi(e,t,n,i){var o=-1,s=cn,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=pn(t,Tn(n))),i?(s=un,a=!1):t.length>=r&&(s=Nn,a=!1,t=new Oi(t));e:for(;++o<l;){var p=e[o],d=null==n?p:n(p);if(p=i||0!==p?p:0,a&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(p)}else s(t,d,i)||c.push(p)}return c}yi.templateSettings={escape:Oe,evaluate:De,interpolate:Te,variable:"",imports:{_:yi}},yi.prototype=wi.prototype,yi.prototype.constructor=yi,_i.prototype=xi(wi.prototype),_i.prototype.constructor=_i,ki.prototype=xi(wi.prototype),ki.prototype.constructor=ki,Ei.prototype.clear=function(){this.__data__=li?li(null):{},this.size=0},Ei.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(li){var i=t[e];return i===l?n:i}return ht.call(t,e)?t[e]:n},Ei.prototype.has=function(e){var t=this.__data__;return li?t[e]!==n:ht.call(t,e)},Ei.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=li&&t===n?l:t,this},Ci.prototype.clear=function(){this.__data__=[],this.size=0},Ci.prototype["delete"]=function(e){var t=this.__data__,n=zi(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},Ci.prototype.get=function(e){var t=this.__data__,i=zi(t,e);return i<0?n:t[i][1]},Ci.prototype.has=function(e){return zi(this.__data__,e)>-1},Ci.prototype.set=function(e,t){var n=this.__data__,i=zi(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Mi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ri||Ci),string:new Ei}},Mi.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Mi.prototype.get=function(e){return $o(this,e).get(e)},Mi.prototype.has=function(e){return $o(this,e).has(e)},Mi.prototype.set=function(e,t){var n=$o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Oi.prototype.add=Oi.prototype.push=function(e){return this.__data__.set(e,l),this},Oi.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.clear=function(){this.__data__=new Ci,this.size=0},Di.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Di.prototype.get=function(e){return this.__data__.get(e)},Di.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ci){var i=n.__data__;if(!ri||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mi(i)}return n.set(e,t),this.size=n.size,this};var qi=ho(Xi),Vi=ho(er,!0);function Ki(e,t){var n=!0;return qi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Gi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):i(a,l)))var l=a,c=s}return c}function Yi(e,t){var n=[];return qi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Qi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=Zo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qi(a,t-1,n,i,r):dn(r,a):i||(r[r.length]=a)}return r}var Zi=fo(),Ji=fo(!0);function Xi(e,t){return e&&Zi(e,t,pl)}function er(e,t){return e&&Ji(e,t,pl)}function tr(e,t){return ln(t,(function(t){return Na(e[t])}))}function nr(e,t){for(var i=0,r=(t=Jr(t,e)).length;null!=e&&i<r;)e=e[bs(t[i++])];return i&&i==r?e:n}function ir(e,t,n){var i=t(e);return Ea(e)?i:dn(i,n(e))}function rr(e){return null==e?e===n?se:J:jt&&jt in rt(e)?function(e){var t=ht.call(e,jt),i=e[jt];try{e[jt]=n;var r=!0}catch(e){}var o=gt.call(e);r&&(t?e[jt]=i:delete e[jt]);return o}(e):function(e){return gt.call(e)}(e)}function or(e,t){return e>t}function sr(e,t){return null!=e&&ht.call(e,t)}function ar(e,t){return null!=e&&t in rt(e)}function lr(e,t,i){for(var r=i?un:cn,o=e[0].length,s=e.length,a=s,l=Xe(s),c=1/0,u=[];a--;){var p=e[a];a&&t&&(p=pn(p,Tn(t))),c=Jn(p.length,c),l[a]=!i&&(t||o>=120&&p.length>=120)?new Oi(a&&p):n}p=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var f=p[d],m=t?t(f):f;if(f=i||0!==f?f:0,!(h?Nn(h,m):r(u,m,i))){for(a=s;--a;){var g=l[a];if(!(g?Nn(g,m):r(e[a],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function cr(e,t,i){var r=null==(e=as(e,t=Jr(t,e)))?e:e[bs(Ss(t))];return null==r?n:nn(r,e,i)}function ur(e){return za(e)&&rr(e)==U}function pr(e,t,i,r,o){return e===t||(null==e||null==t||!za(e)&&!za(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Ea(e),l=Ea(t),c=a?H:Go(e),u=l?H:Go(t),p=(c=c==U?X:c)==X,d=(u=u==U?X:u)==X,h=c==u;if(h&&Da(e)){if(!Da(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Di),a||$a(e)?zo(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case W:case q:case Z:return xa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case re:return e==t+"";case Q:var a=Bn;case ie:var l=i&f;if(a||(a=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=m,s.set(e,t);var u=zo(a(e),a(t),i,r,o,s);return s["delete"](e),u;case oe:if(bi)return bi.call(e)==bi.call(t)}return!1}(e,t,c,i,r,o,s);if(!(i&f)){var g=p&&ht.call(e,"__wrapped__"),b=d&&ht.call(t,"__wrapped__");if(g||b){var v=g?e.value():e,y=b?t.value():t;return s||(s=new Di),o(v,y,i,r,s)}}if(!h)return!1;return s||(s=new Di),function(e,t,i,r,o,s){var a=i&f,l=Ro(e),c=l.length,u=Ro(t).length;if(c!=u&&!a)return!1;var p=c;for(;p--;){var d=l[p];if(!(a?d in t:ht.call(t,d)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var b=a;for(;++p<c;){var v=e[d=l[p]],y=t[d];if(r)var x=a?r(y,v,d,t,e,s):r(v,y,d,e,t,s);if(!(x===n?v===y||o(v,y,i,r,s):x)){g=!1;break}b||(b="constructor"==d)}if(g&&!b){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,i,r,o,s)}(e,t,i,r,pr,o))}function dr(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=rt(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],p=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var d=new Di;if(r)var h=r(u,p,c,e,t,d);if(!(h===n?pr(p,u,f|m,r,d):h))return!1}}return!0}function hr(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Na(e)?yt:Ke).test(vs(e));var t}function fr(e){return"function"==typeof e?e:null==e?Rl:"object"==typeof e?Ea(e)?xr(e[0],e[1]):yr(e):Vl(e)}function mr(e){if(!is(e))return Qn(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gr(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}(e);var t=is(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function br(e,t){return e<t}function vr(e,t){var n=-1,i=Ma(e)?Xe(e.length):[];return qi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function yr(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}}function xr(e,t){return es(e)&&rs(t)?os(bs(e),t):function(i){var r=sl(i,e);return r===n&&r===t?al(i,e):pr(t,r,f|m)}}function wr(e,t,i,r,o){e!==t&&Zi(t,(function(s,a){if(o||(o=new Di),La(s))!function(e,t,i,r,o,s,a){var l=cs(e,i),c=cs(t,i),u=a.get(c);if(u)return void ji(e,i,u);var p=s?s(l,c,i+"",e,t,a):n,d=p===n;if(d){var h=Ea(c),f=!h&&Da(c),m=!h&&!f&&$a(c);p=c,h||f||m?Ea(l)?p=l:Oa(l)?p=lo(l):f?(d=!1,p=no(c,!0)):m?(d=!1,p=ro(c,!0)):p=[]:Fa(c)||ka(c)?(p=l,ka(l)?p=Za(l):La(l)&&!Na(l)||(p=Qo(c))):d=!1}d&&(a.set(c,p),o(p,c,r,s,a),a["delete"](c));ji(e,i,p)}(e,t,a,i,wr,r,o);else{var l=r?r(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),ji(e,a,l)}}),dl)}function _r(e,t){var i=e.length;if(i)return Jo(t+=t<0?i:0,i)?e[t]:n}function kr(e,t,n){t=t.length?pn(t,(function(e){return Ea(e)?function(t){return nr(t,1===e.length?e[0]:e)}:e})):[Rl];var i=-1;t=pn(t,Tn(Ho()));var r=vr(e,(function(e,n,r){var o=pn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var l=oo(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Er(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=nr(e,s);n(a,s)&&Ar(o,Jr(s,e),a)}return o}function Cr(e,t,n,i){var r=i?xn:yn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=pn(e,Tn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==e&&Ot.call(a,l,1),Ot.call(e,l,1);return e}function Mr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Jo(r)?Ot.call(e,r,1):Wr(e,r)}}return e}function Or(e,t){return e+Gt(ti()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Gt(t/2))&&(e+=e)}while(t);return n}function Tr(e,t){return ds(ss(e,t,Rl),e+"")}function Sr(e){return Si(xl(e))}function Nr(e,t){var n=xl(e);return ms(n,Pi(t,0,n.length))}function Ar(e,t,i,r){if(!La(e))return e;for(var o=-1,s=(t=Jr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=bs(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var p=l[c];(u=r?r(p,c,l):n)===n&&(u=La(p)?p:Jo(t[o+1])?[]:{})}Li(l,c,u),l=l[c]}return e}var jr=ci?function(e,t){return ci.set(e,t),e}:Rl,Lr=Bt?function(e,t){return Bt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Rl;function zr(e){return ms(xl(e))}function Ir(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Xe(r);++i<r;)o[i]=e[i+t];return o}function Rr(e,t){var n;return qi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Fr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=B){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Br(e,t,Rl,n)}function Br(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var p=Gt((o+s)/2),d=i(e[p]),h=d!==n,f=null===d,m=d==d,g=Ha(d);if(a)var b=r||m;else b=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);b?o=p+1:s=p}return Jn(s,F)}function Pr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!xa(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Ur(e){return"number"==typeof e?e:Ha(e)?I:+e}function Hr(e){if("string"==typeof e)return e;if(Ea(e))return pn(e,Hr)+"";if(Ha(e))return vi?vi.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function $r(e,t,n){var i=-1,o=cn,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=un;else if(s>=r){var u=t?null:To(e);if(u)return Hn(u);a=!1,o=Nn,c=new Oi}else c=t?[]:l;e:for(;++i<s;){var p=e[i],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(p)}else o(c,d,n)||(c!==l&&c.push(d),l.push(p))}return l}function Wr(e,t){return null==(e=as(e,t=Jr(t,e)))||delete e[bs(Ss(t))]}function qr(e,t,n,i){return Ar(e,t,n(nr(e,t)),i)}function Vr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?Ir(e,i?0:o,i?o+1:r):Ir(e,i?o+1:0,i?r:o)}function Kr(e,t){var n=e;return n instanceof ki&&(n=n.value()),hn(t,(function(e,t){return t.func.apply(t.thisArg,dn([e],t.args))}),n)}function Gr(e,t,n){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var r=-1,o=Xe(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Wi(o[r]||s,e[a],t,n));return $r(Qi(o,1),t,n)}function Yr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:n;i(a,e[r],l)}return a}function Qr(e){return Oa(e)?e:[]}function Zr(e){return"function"==typeof e?e:Rl}function Jr(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Ja(e))}var Xr=Tr;function eo(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:Ir(e,t,i)}var to=Ht||function(e){return Wt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,i=kt?kt(n):new e.constructor(n);return e.copy(i),i}function io(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function ro(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Zn(o-s,0),u=Xe(l+c),p=!i;++a<l;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;c--;)u[a++]=e[r++];return u}function ao(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Zn(o-a,0),p=Xe(u+c),d=!i;++r<u;)p[r]=e[r];for(var h=r;++l<c;)p[h+l]=t[l];for(;++s<a;)(d||r<o)&&(p[h+n[s]]=e[r++]);return p}function lo(e,t){var n=-1,i=e.length;for(t||(t=Xe(i));++n<i;)t[n]=e[n];return t}function co(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(i[l],e[l],l,i,e):n;c===n&&(c=e[l]),o?Fi(i,l,c):Li(i,l,c)}return i}function uo(e,t){return function(n,i){var r=Ea(n)?rn:Ii,o=t?t():{};return r(n,e,Ho(i,2),o)}}function po(e){return Tr((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=rt(t);++r<o;){var l=i[r];l&&e(t,l,r,s)}return t}))}function ho(e,t){return function(n,i){if(null==n)return n;if(!Ma(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=rt(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function fo(e){return function(t,n,i){for(var r=-1,o=rt(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var i=Fn(t=Ja(t))?qn(t):n,r=i?i[0]:t.charAt(0),o=i?eo(i,1).join(""):t.slice(1);return r[e]()+o}}function go(e){return function(t){return hn(Nl(kl(t).replace(Tt,"")),e,"")}}function bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xi(e.prototype),i=e.apply(n,t);return La(i)?i:n}}function vo(e){return function(t,i,r){var o=rt(t);if(!Ma(t)){var s=Ho(i,3);t=pl(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function yo(e){return Io((function(t){var i=t.length,r=i,o=_i.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new _i([],!0)}for(r=l?r:i;++r<i;){var c=Po(a=t[r]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(k|y|w|E)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ea(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function xo(e,t,i,r,o,s,a,l,c,u){var p=t&k,d=t&g,h=t&b,f=t&(y|x),m=t&C,v=h?n:bo(e);return function n(){for(var g=arguments.length,b=Xe(g),y=g;y--;)b[y]=arguments[y];if(f)var x=Uo(n),w=Ln(b,x);if(r&&(b=so(b,r,o,f)),s&&(b=ao(b,s,a,f)),g-=w,f&&g<u){var _=Un(b,x);return Oo(e,t,xo,n.placeholder,i,b,_,l,c,u-g)}var k=d?i:this,E=h?k[e]:e;return g=b.length,l?b=ls(b,l):m&&g>1&&b.reverse(),p&&c<g&&(b.length=c),this&&this!==Wt&&this instanceof n&&(E=v||bo(E)),E.apply(k,b)}}function wo(e,t){return function(n,i){return function(e,t,n,i){return Xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function _o(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=Hr(i),r=Hr(r)):(i=Ur(i),r=Ur(r)),o=e(i,r)}return o}}function ko(e){return Io((function(t){return t=pn(t,Tn(Ho())),Tr((function(n){var i=this;return e(t,(function(e){return nn(e,i,n)}))}))}))}function Eo(e,t){var i=(t=t===n?" ":Hr(t)).length;if(i<2)return i?Dr(t,e):t;var r=Dr(t,Vt(e/Wn(t)));return Fn(t)?eo(qn(r),0,e).join(""):r.slice(0,e)}function Co(e){return function(t,i,r){return r&&"number"!=typeof r&&Xo(t,i,r)&&(i=r=n),t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n,i){for(var r=-1,o=Zn(Vt((t-e)/(n||1)),0),s=Xe(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:Ka(r),e)}}function Mo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Oo(e,t,i,r,o,s,a,l,c,u){var p=t&y;t|=p?w:_,(t&=~(p?_:w))&v||(t&=~(g|b));var d=[e,t,o,p?s:n,p?a:n,p?n:s,p?n:a,l,c,u],h=i.apply(n,d);return ts(e)&&us(h,d),h.placeholder=r,hs(h,e,t)}function Do(e){var t=it[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Jn(Ga(n),292))&&En(e)){var i=(Ja(e)+"e").split("e");return+((i=(Ja(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var To=si&&1/Hn(new si([,-0]))[1]==j?function(e){return new si(e)}:Hl;function So(e){return function(t){var n=Go(t);return n==Q?Bn(t):n==ie?$n(t):function(e,t){return pn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function No(e,t,i,r,o,a,l,c){var p=t&b;if(!p&&"function"!=typeof e)throw new at(s);var d=r?r.length:0;if(d||(t&=~(w|_),r=o=n),l=l===n?l:Zn(Ga(l),0),c=c===n?c:Ga(c),d-=o?o.length:0,t&_){var h=r,f=o;r=o=n}var m=p?n:Bo(e),C=[e,t,i,r,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(g|b|k),s=i==k&&n==y||i==k&&n==E&&e[7].length<=t[8]||i==(k|E)&&t[7].length<=t[8]&&n==y;if(!o&&!s)return e;i&g&&(e[2]=t[2],r|=n&g?0:v);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Un(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Un(e[5],u):t[6]);(a=t[7])&&(e[7]=a);i&k&&(e[8]=null==e[8]?t[8]:Jn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(C,m),e=C[0],t=C[1],i=C[2],r=C[3],o=C[4],!(c=C[9]=C[9]===n?p?0:e.length:Zn(C[9]-d,0))&&t&(y|x)&&(t&=~(y|x)),t&&t!=g)M=t==y||t==x?function(e,t,i){var r=bo(e);return function o(){for(var s=arguments.length,a=Xe(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Un(a,c);return(s-=u.length)<i?Oo(e,t,xo,o.placeholder,n,a,u,n,n,i-s):nn(this&&this!==Wt&&this instanceof o?r:e,this,a)}}(e,t,c):t!=w&&t!=(g|w)||o.length?xo.apply(n,C):function(e,t,n,i){var r=t&g,o=bo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=i.length,u=Xe(c+a),p=this&&this!==Wt&&this instanceof t?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++s];return nn(p,r?n:this,u)}}(e,t,i,r);else var M=function(e,t,n){var i=t&g,r=bo(e);return function t(){return(this&&this!==Wt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return hs((m?jr:us)(M,C),e,t)}function Ao(e,t,i,r){return e===n||xa(e,ut[i])&&!ht.call(r,i)?t:e}function jo(e,t,i,r,o,s){return La(e)&&La(t)&&(s.set(t,e),wr(e,t,n,jo,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function zo(e,t,i,r,o,s){var a=i&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,h=!0,g=i&m?new Oi:n;for(s.set(e,t),s.set(t,e);++d<l;){var b=e[d],v=t[d];if(r)var y=a?r(v,b,d,t,e,s):r(b,v,d,e,t,s);if(y!==n){if(y)continue;h=!1;break}if(g){if(!mn(t,(function(e,t){if(!Nn(g,t)&&(b===e||o(b,e,i,r,s)))return g.push(t)}))){h=!1;break}}else if(b!==v&&!o(b,v,i,r,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function Io(e){return ds(ss(e,n,Cs),e+"")}function Ro(e){return ir(e,pl,Vo)}function Fo(e){return ir(e,dl,Ko)}var Bo=ci?function(e){return ci.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ui[t],i=ht.call(ui,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Uo(e){return(ht.call(yi,"placeholder")?yi:e).placeholder}function Ho(){var e=yi.iteratee||Fl;return e=e===Fl?fr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wo(e){for(var t=pl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,rs(r)]}return t}function qo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return hr(i)?i:n}var Vo=Yt?function(e){return null==e?[]:(e=rt(e),ln(Yt(e),(function(t){return Mt.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)dn(t,Vo(e)),e=Et(e);return t}:Yl,Go=rr;function Yo(e,t,n){for(var i=-1,r=(t=Jr(t,e)).length,o=!1;++i<r;){var s=bs(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ja(r)&&Jo(s,r)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||is(e)?{}:xi(Et(e))}function Zo(e){return Ea(e)||ka(e)||!!(Dt&&e&&e[Dt])}function Jo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var i=typeof t;return!!("number"==i?Ma(n)&&Jo(t,n.length):"string"==i&&t in n)&&xa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Ne.test(e)||!Se.test(e)||null!=t&&e in rt(t))}function ts(e){var t=Po(e),n=yi[t];if("function"!=typeof n||!(t in ki.prototype))return!1;if(e===n)return!0;var i=Bo(n);return!!i&&e===i[0]}(ii&&Go(new ii(new ArrayBuffer(1)))!=ue||ri&&Go(new ri)!=Q||oi&&Go(oi.resolve())!=ee||si&&Go(new si)!=ie||ai&&Go(new ai)!=ae)&&(Go=function(e){var t=rr(e),i=t==X?e.constructor:n,r=i?vs(i):"";if(r)switch(r){case pi:return ue;case di:return Q;case hi:return ee;case fi:return ie;case mi:return ae}return t});var ns=pt?Na:Ql;function is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function rs(e){return e==e&&!La(e)}function os(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in rt(i)))}}function ss(e,t,i){return t=Zn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Zn(n.length-t,0),s=Xe(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Xe(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),nn(e,this,a)}}function as(e,t){return t.length<2?e:nr(e,Ir(t,0,-1))}function ls(e,t){for(var i=e.length,r=Jn(t.length,i),o=lo(e);r--;){var s=t[r];e[r]=Jo(s,i)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(jr),ps=qt||function(e,t){return Wt.setTimeout(e,t)},ds=fs(Lr);function hs(e,t,n){var i=t+"";return ds(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return on(P,(function(n){var i="_."+n[0];t&n[1]&&!cn(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(Be):[]}(i),n)))}function fs(e){var t=0,i=0;return function(){var r=Xn(),o=T-(r-i);if(i=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Or(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ae,(function(e,n,i,r){t.push(i?r.replace(He,"$1"):n||e)})),t}));function bs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function vs(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ys(e){if(e instanceof ki)return e.clone();var t=new _i(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xs=Tr((function(e,t){return Oa(e)?Wi(e,Qi(t,1,Oa,!0)):[]})),ws=Tr((function(e,t){var i=Ss(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),Ho(i,2)):[]})),_s=Tr((function(e,t){var i=Ss(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),n,i):[]}));function ks(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),vn(e,Ho(t,3),r)}function Es(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=Ga(i),o=i<0?Zn(r+o,0):Jn(o,r-1)),vn(e,Ho(t,3),o,!0)}function Cs(e){return(null==e?0:e.length)?Qi(e,1):[]}function Ms(e){return e&&e.length?e[0]:n}var Os=Tr((function(e){var t=pn(e,Qr);return t.length&&t[0]===e[0]?lr(t):[]})),Ds=Tr((function(e){var t=Ss(e),i=pn(e,Qr);return t===Ss(i)?t=n:i.pop(),i.length&&i[0]===e[0]?lr(i,Ho(t,2)):[]})),Ts=Tr((function(e){var t=Ss(e),i=pn(e,Qr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?lr(i,n,t):[]}));function Ss(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ns=Tr(As);function As(e,t){return e&&e.length&&t&&t.length?Cr(e,t):e}var js=Io((function(e,t){var n=null==e?0:e.length,i=Bi(e,t);return Mr(e,pn(t,(function(e){return Jo(e,n)?+e:e})).sort(oo)),i}));function Ls(e){return null==e?e:ni.call(e)}var zs=Tr((function(e){return $r(Qi(e,1,Oa,!0))})),Is=Tr((function(e){var t=Ss(e);return Oa(t)&&(t=n),$r(Qi(e,1,Oa,!0),Ho(t,2))})),Rs=Tr((function(e){var t=Ss(e);return t="function"==typeof t?t:n,$r(Qi(e,1,Oa,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=ln(e,(function(e){if(Oa(e))return t=Zn(e.length,t),!0})),On(t,(function(t){return pn(e,kn(t))}))}function Bs(e,t){if(!e||!e.length)return[];var i=Fs(e);return null==t?i:pn(i,(function(e){return nn(t,n,e)}))}var Ps=Tr((function(e,t){return Oa(e)?Wi(e,t):[]})),Us=Tr((function(e){return Gr(ln(e,Oa))})),Hs=Tr((function(e){var t=Ss(e);return Oa(t)&&(t=n),Gr(ln(e,Oa),Ho(t,2))})),$s=Tr((function(e){var t=Ss(e);return t="function"==typeof t?t:n,Gr(ln(e,Oa),n,t)})),Ws=Tr(Fs);var qs=Tr((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,Bs(e,i)}));function Vs(e){var t=yi(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=Io((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ki&&Jo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new _i(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Fi(e,n,1)}));var Qs=vo(ks),Zs=vo(Es);function Js(e,t){return(Ea(e)?on:qi)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?sn:Vi)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fi(e,n,[t])}));var ta=Tr((function(e,t,n){var i=-1,r="function"==typeof t,o=Ma(e)?Xe(e.length):[];return qi(e,(function(e){o[++i]=r?nn(t,e,n):cr(e,t,n)})),o})),na=uo((function(e,t,n){Fi(e,n,t)}));function ia(e,t){return(Ea(e)?pn:vr)(e,Ho(t,3))}var ra=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Tr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),kr(e,Qi(t,1),[])})),sa=$t||function(){return Wt.Date.now()};function aa(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,No(e,k,n,n,n,n,t)}function la(e,t){var i;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ca=Tr((function(e,t,n){var i=g;if(n.length){var r=Un(n,Uo(ca));i|=w}return No(e,i,t,n,r)})),ua=Tr((function(e,t,n){var i=g|b;if(n.length){var r=Un(n,Uo(ua));i|=w}return No(t,i,e,n,r)}));function pa(e,t,i){var r,o,a,l,c,u,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var i=r,s=o;return r=o=n,p=t,l=e.apply(s,i)}function g(e){return p=e,c=ps(v,t),d?m(e):l}function b(e){var i=e-u;return u===n||i>=t||i<0||h&&e-p>=a}function v(){var e=sa();if(b(e))return y(e);c=ps(v,function(e){var n=t-(e-u);return h?Jn(n,a-(e-p)):n}(e))}function y(e){return c=n,f&&r?m(e):(r=o=n,l)}function x(){var e=sa(),i=b(e);if(r=arguments,o=this,u=e,i){if(c===n)return g(u);if(h)return to(c),c=ps(v,t),m(u)}return c===n&&(c=ps(v,t)),l}return t=Qa(t)||0,La(i)&&(d=!!i.leading,a=(h="maxWait"in i)?Zn(Qa(i.maxWait)||0,t):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){c!==n&&to(c),p=0,r=u=o=c=n},x.flush=function(){return c===n?l:y(sa())},x}var da=Tr((function(e,t){return $i(e,1,t)})),ha=Tr((function(e,t,n){return $i(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(fa.Cache||Mi),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Mi;var ga=Xr((function(e,t){var n=(t=1==t.length&&Ea(t[0])?pn(t[0],Tn(Ho())):pn(Qi(t,1),Tn(Ho()))).length;return Tr((function(i){for(var r=-1,o=Jn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return nn(e,this,i)}))})),ba=Tr((function(e,t){var i=Un(t,Uo(ba));return No(e,w,n,t,i)})),va=Tr((function(e,t){var i=Un(t,Uo(va));return No(e,_,n,t,i)})),ya=Io((function(e,t){return No(e,E,n,n,n,t)}));function xa(e,t){return e===t||e!=e&&t!=t}var wa=Mo(or),_a=Mo((function(e,t){return e>=t})),ka=ur(function(){return arguments}())?ur:function(e){return za(e)&&ht.call(e,"callee")&&!Mt.call(e,"callee")},Ea=Xe.isArray,Ca=Qt?Tn(Qt):function(e){return za(e)&&rr(e)==ce};function Ma(e){return null!=e&&ja(e.length)&&!Na(e)}function Oa(e){return za(e)&&Ma(e)}var Da=gn||Ql,Ta=Zt?Tn(Zt):function(e){return za(e)&&rr(e)==q};function Sa(e){if(!za(e))return!1;var t=rr(e);return t==K||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Na(e){if(!La(e))return!1;var t=rr(e);return t==G||t==Y||t==$||t==te}function Aa(e){return"number"==typeof e&&e==Ga(e)}function ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function za(e){return null!=e&&"object"==typeof e}var Ia=Jt?Tn(Jt):function(e){return za(e)&&Go(e)==Q};function Ra(e){return"number"==typeof e||za(e)&&rr(e)==Z}function Fa(e){if(!za(e)||rr(e)!=X)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==bt}var Ba=Xt?Tn(Xt):function(e){return za(e)&&rr(e)==ne};var Pa=en?Tn(en):function(e){return za(e)&&Go(e)==ie};function Ua(e){return"string"==typeof e||!Ea(e)&&za(e)&&rr(e)==re}function Ha(e){return"symbol"==typeof e||za(e)&&rr(e)==oe}var $a=tn?Tn(tn):function(e){return za(e)&&ja(e.length)&&!!Rt[rr(e)]};var Wa=Mo(br),qa=Mo((function(e,t){return e<=t}));function Va(e){if(!e)return[];if(Ma(e))return Ua(e)?qn(e):lo(e);if(Nt&&e[Nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nt]());var t=Go(e);return(t==Q?Bn:t==ie?Hn:xl)(e)}function Ka(e){return e?(e=Qa(e))===j||e===-j?(e<0?-1:1)*z:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pi(Ga(e),0,R):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return I;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Dn(e);var n=Ve.test(e);return n||Ge.test(e)?Ut(e.slice(2),n?2:8):qe.test(e)?I:+e}function Za(e){return co(e,dl(e))}function Ja(e){return null==e?"":Hr(e)}var Xa=po((function(e,t){if(is(t)||Ma(t))co(t,pl(t),e);else for(var n in t)ht.call(t,n)&&Li(e,n,t[n])})),el=po((function(e,t){co(t,dl(t),e)})),tl=po((function(e,t,n,i){co(t,dl(t),e,i)})),nl=po((function(e,t,n,i){co(t,pl(t),e,i)})),il=Io(Bi);var rl=Tr((function(e,t){e=rt(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=dl(s),l=-1,c=a.length;++l<c;){var u=a[l],p=e[u];(p===n||xa(p,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Tr((function(e){return e.push(n,jo),nn(fl,n,e)}));function sl(e,t,i){var r=null==e?n:nr(e,t);return r===n?i:r}function al(e,t){return null!=e&&Yo(e,t,ar)}var ll=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(Rl)),cl=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Tr(cr);function pl(e){return Ma(e)?Ti(e):mr(e)}function dl(e){return Ma(e)?Ti(e,!0):gr(e)}var hl=po((function(e,t,n){wr(e,t,n)})),fl=po((function(e,t,n,i){wr(e,t,n,i)})),ml=Io((function(e,t){var n={};if(null==e)return n;var i=!1;t=pn(t,(function(t){return t=Jr(t,e),i||(i=t.length>1),t})),co(e,Fo(e),n),i&&(n=Ui(n,p|d|h,Lo));for(var r=t.length;r--;)Wr(n,t[r]);return n}));var gl=Io((function(e,t){return null==e?{}:function(e,t){return Er(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function bl(e,t){if(null==e)return{};var n=pn(Fo(e),(function(e){return[e]}));return t=Ho(t),Er(e,n,(function(e,n){return t(e,n[0])}))}var vl=So(pl),yl=So(dl);function xl(e){return null==e?[]:Sn(e,pl(e))}var wl=go((function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}));function _l(e){return Sl(Ja(e).toLowerCase())}function kl(e){return(e=Ja(e))&&e.replace(Qe,zn).replace(St,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Cl=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ml=mo("toLowerCase");var Ol=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=go((function(e,t,n){return e+(n?" ":"")+Sl(t)}));var Tl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Sl=mo("toUpperCase");function Nl(e,t,i){return e=Ja(e),(t=i?n:t)===n?function(e){return Lt.test(e)}(e)?function(e){return e.match(At)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var Al=Tr((function(e,t){try{return nn(e,n,t)}catch(e){return Sa(e)?e:new tt(e)}})),jl=Io((function(e,t){return on(t,(function(t){t=bs(t),Fi(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var zl=yo(),Il=yo(!0);function Rl(e){return e}function Fl(e){return fr("function"==typeof e?e:Ui(e,p))}var Bl=Tr((function(e,t){return function(n){return cr(n,e,t)}})),Pl=Tr((function(e,t){return function(n){return cr(e,n,t)}}));function Ul(e,t,n){var i=pl(t),r=tr(t,i);null!=n||La(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=tr(t,pl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Na(e);return on(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=lo(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,dn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(pn),Wl=ko(an),ql=ko(mn);function Vl(e){return es(e)?kn(bs(e)):function(e){return function(t){return nr(t,e)}}(e)}var Kl=Co(),Gl=Co(!0);function Yl(){return[]}function Ql(){return!1}var Zl=_o((function(e,t){return e+t}),0),Jl=Do("ceil"),Xl=_o((function(e,t){return e/t}),1),ec=Do("floor");var tc=_o((function(e,t){return e*t}),1),nc=Do("round"),ic=_o((function(e,t){return e-t}),0);return yi.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},yi.ary=aa,yi.assign=Xa,yi.assignIn=el,yi.assignInWith=tl,yi.assignWith=nl,yi.at=il,yi.before=la,yi.bind=ca,yi.bindAll=jl,yi.bindKey=ua,yi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},yi.chain=Vs,yi.chunk=function(e,t,i){t=(i?Xo(e,t,i):t===n)?1:Zn(Ga(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=Xe(Vt(r/t));o<r;)a[s++]=Ir(e,o,o+=t);return a},yi.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},yi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return dn(Ea(n)?lo(n):[n],Qi(t,1))},yi.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?pn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Tr((function(n){for(var i=-1;++i<t;){var r=e[i];if(nn(r[0],this,n))return nn(r[1],this,n)}}))},yi.conforms=function(e){return function(e){var t=pl(e);return function(n){return Hi(n,e,t)}}(Ui(e,p))},yi.constant=Ll,yi.countBy=Ys,yi.create=function(e,t){var n=xi(e);return null==t?n:Ri(n,t)},yi.curry=function e(t,i,r){var o=No(t,y,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.curryRight=function e(t,i,r){var o=No(t,x,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.debounce=pa,yi.defaults=rl,yi.defaultsDeep=ol,yi.defer=da,yi.delay=ha,yi.difference=xs,yi.differenceBy=ws,yi.differenceWith=_s,yi.drop=function(e,t,i){var r=null==e?0:e.length;return r?Ir(e,(t=i||t===n?1:Ga(t))<0?0:t,r):[]},yi.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?Ir(e,0,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t):[]},yi.dropRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0,!0):[]},yi.dropWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0):[]},yi.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ga(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ga(r))<0&&(r+=o),r=i>r?0:Ya(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},yi.filter=function(e,t){return(Ea(e)?ln:Yi)(e,Ho(t,3))},yi.flatMap=function(e,t){return Qi(ia(e,t),1)},yi.flatMapDeep=function(e,t){return Qi(ia(e,t),j)},yi.flatMapDepth=function(e,t,i){return i=i===n?1:Ga(i),Qi(ia(e,t),i)},yi.flatten=Cs,yi.flattenDeep=function(e){return(null==e?0:e.length)?Qi(e,j):[]},yi.flattenDepth=function(e,t){return(null==e?0:e.length)?Qi(e,t=t===n?1:Ga(t)):[]},yi.flip=function(e){return No(e,C)},yi.flow=zl,yi.flowRight=Il,yi.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},yi.functions=function(e){return null==e?[]:tr(e,pl(e))},yi.functionsIn=function(e){return null==e?[]:tr(e,dl(e))},yi.groupBy=ea,yi.initial=function(e){return(null==e?0:e.length)?Ir(e,0,-1):[]},yi.intersection=Os,yi.intersectionBy=Ds,yi.intersectionWith=Ts,yi.invert=ll,yi.invertBy=cl,yi.invokeMap=ta,yi.iteratee=Fl,yi.keyBy=na,yi.keys=pl,yi.keysIn=dl,yi.map=ia,yi.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,t(e,i,r),e)})),n},yi.mapValues=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,i,t(e,i,r))})),n},yi.matches=function(e){return yr(Ui(e,p))},yi.matchesProperty=function(e,t){return xr(e,Ui(t,p))},yi.memoize=fa,yi.merge=hl,yi.mergeWith=fl,yi.method=Bl,yi.methodOf=Pl,yi.mixin=Ul,yi.negate=ma,yi.nthArg=function(e){return e=Ga(e),Tr((function(t){return _r(t,e)}))},yi.omit=ml,yi.omitBy=function(e,t){return bl(e,ma(Ho(t)))},yi.once=function(e){return la(2,e)},yi.orderBy=function(e,t,i,r){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(i=r?n:i)||(i=null==i?[]:[i]),kr(e,t,i))},yi.over=$l,yi.overArgs=ga,yi.overEvery=Wl,yi.overSome=ql,yi.partial=ba,yi.partialRight=va,yi.partition=ra,yi.pick=gl,yi.pickBy=bl,yi.property=Vl,yi.propertyOf=function(e){return function(t){return null==e?n:nr(e,t)}},yi.pull=Ns,yi.pullAll=As,yi.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Cr(e,t,Ho(n,2)):e},yi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Cr(e,t,n,i):e},yi.pullAt=js,yi.range=Kl,yi.rangeRight=Gl,yi.rearg=ya,yi.reject=function(e,t){return(Ea(e)?ln:Yi)(e,ma(Ho(t,3)))},yi.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Ho(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Mr(e,r),n},yi.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Tr(e,t=t===n?t:Ga(t))},yi.reverse=Ls,yi.sampleSize=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),(Ea(e)?Ni:Nr)(e,t)},yi.set=function(e,t,n){return null==e?e:Ar(e,t,n)},yi.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Ar(e,t,i,r)},yi.shuffle=function(e){return(Ea(e)?Ai:zr)(e)},yi.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Xo(e,t,i)?(t=0,i=r):(t=null==t?0:Ga(t),i=i===n?r:Ga(i)),Ir(e,t,i)):[]},yi.sortBy=oa,yi.sortedUniq=function(e){return e&&e.length?Pr(e):[]},yi.sortedUniqBy=function(e,t){return e&&e.length?Pr(e,Ho(t,2)):[]},yi.split=function(e,t,i){return i&&"number"!=typeof i&&Xo(e,t,i)&&(t=i=n),(i=i===n?R:i>>>0)?(e=Ja(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hr(t))&&Fn(e)?eo(qn(e),0,i):e.split(t,i):[]},yi.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Zn(Ga(t),0),Tr((function(n){var i=n[t],r=eo(n,0,t);return i&&dn(r,i),nn(e,this,r)}))},yi.tail=function(e){var t=null==e?0:e.length;return t?Ir(e,1,t):[]},yi.take=function(e,t,i){return e&&e.length?Ir(e,0,(t=i||t===n?1:Ga(t))<0?0:t):[]},yi.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?Ir(e,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t,r):[]},yi.takeRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!1,!0):[]},yi.takeWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3)):[]},yi.tap=function(e,t){return t(e),e},yi.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pa(e,t,{leading:i,maxWait:t,trailing:r})},yi.thru=Ks,yi.toArray=Va,yi.toPairs=vl,yi.toPairsIn=yl,yi.toPath=function(e){return Ea(e)?pn(e,bs):Ha(e)?[e]:lo(gs(Ja(e)))},yi.toPlainObject=Za,yi.transform=function(e,t,n){var i=Ea(e),r=i||Da(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:La(e)&&Na(o)?xi(Et(e)):{}}return(r?on:Xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},yi.unary=function(e){return aa(e,1)},yi.union=zs,yi.unionBy=Is,yi.unionWith=Rs,yi.uniq=function(e){return e&&e.length?$r(e):[]},yi.uniqBy=function(e,t){return e&&e.length?$r(e,Ho(t,2)):[]},yi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$r(e,n,t):[]},yi.unset=function(e,t){return null==e||Wr(e,t)},yi.unzip=Fs,yi.unzipWith=Bs,yi.update=function(e,t,n){return null==e?e:qr(e,t,Zr(n))},yi.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:qr(e,t,Zr(i),r)},yi.values=xl,yi.valuesIn=function(e){return null==e?[]:Sn(e,dl(e))},yi.without=Ps,yi.words=Nl,yi.wrap=function(e,t){return ba(Zr(t),e)},yi.xor=Us,yi.xorBy=Hs,yi.xorWith=$s,yi.zip=Ws,yi.zipObject=function(e,t){return Yr(e||[],t||[],Li)},yi.zipObjectDeep=function(e,t){return Yr(e||[],t||[],Ar)},yi.zipWith=qs,yi.entries=vl,yi.entriesIn=yl,yi.extend=el,yi.extendWith=tl,Ul(yi,yi),yi.add=Zl,yi.attempt=Al,yi.camelCase=wl,yi.capitalize=_l,yi.ceil=Jl,yi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Qa(i))==i?i:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pi(Qa(e),t,i)},yi.clone=function(e){return Ui(e,h)},yi.cloneDeep=function(e){return Ui(e,p|h)},yi.cloneDeepWith=function(e,t){return Ui(e,p|h,t="function"==typeof t?t:n)},yi.cloneWith=function(e,t){return Ui(e,h,t="function"==typeof t?t:n)},yi.conformsTo=function(e,t){return null==t||Hi(e,t,pl(t))},yi.deburr=kl,yi.defaultTo=function(e,t){return null==e||e!=e?t:e},yi.divide=Xl,yi.endsWith=function(e,t,i){e=Ja(e),t=Hr(t);var r=e.length,o=i=i===n?r:Pi(Ga(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},yi.eq=xa,yi.escape=function(e){return(e=Ja(e))&&Me.test(e)?e.replace(Ee,In):e},yi.escapeRegExp=function(e){return(e=Ja(e))&&Le.test(e)?e.replace(je,"\\$&"):e},yi.every=function(e,t,i){var r=Ea(e)?an:Ki;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.find=Qs,yi.findIndex=ks,yi.findKey=function(e,t){return bn(e,Ho(t,3),Xi)},yi.findLast=Zs,yi.findLastIndex=Es,yi.findLastKey=function(e,t){return bn(e,Ho(t,3),er)},yi.floor=ec,yi.forEach=Js,yi.forEachRight=Xs,yi.forIn=function(e,t){return null==e?e:Zi(e,Ho(t,3),dl)},yi.forInRight=function(e,t){return null==e?e:Ji(e,Ho(t,3),dl)},yi.forOwn=function(e,t){return e&&Xi(e,Ho(t,3))},yi.forOwnRight=function(e,t){return e&&er(e,Ho(t,3))},yi.get=sl,yi.gt=wa,yi.gte=_a,yi.has=function(e,t){return null!=e&&Yo(e,t,sr)},yi.hasIn=al,yi.head=Ms,yi.identity=Rl,yi.includes=function(e,t,n,i){e=Ma(e)?e:xl(e),n=n&&!i?Ga(n):0;var r=e.length;return n<0&&(n=Zn(r+n,0)),Ua(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&yn(e,t,n)>-1},yi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),yn(e,t,r)},yi.inRange=function(e,t,i){return t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n){return e>=Jn(t,n)&&e<Zn(t,n)}(e=Qa(e),t,i)},yi.invoke=ul,yi.isArguments=ka,yi.isArray=Ea,yi.isArrayBuffer=Ca,yi.isArrayLike=Ma,yi.isArrayLikeObject=Oa,yi.isBoolean=function(e){return!0===e||!1===e||za(e)&&rr(e)==W},yi.isBuffer=Da,yi.isDate=Ta,yi.isElement=function(e){return za(e)&&1===e.nodeType&&!Fa(e)},yi.isEmpty=function(e){if(null==e)return!0;if(Ma(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Q||t==ie)return!e.size;if(is(e))return!mr(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},yi.isEqual=function(e,t){return pr(e,t)},yi.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?pr(e,t,n,i):!!r},yi.isError=Sa,yi.isFinite=function(e){return"number"==typeof e&&En(e)},yi.isFunction=Na,yi.isInteger=Aa,yi.isLength=ja,yi.isMap=Ia,yi.isMatch=function(e,t){return e===t||dr(e,t,Wo(t))},yi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,dr(e,t,Wo(t),i)},yi.isNaN=function(e){return Ra(e)&&e!=+e},yi.isNative=function(e){if(ns(e))throw new tt(o);return hr(e)},yi.isNil=function(e){return null==e},yi.isNull=function(e){return null===e},yi.isNumber=Ra,yi.isObject=La,yi.isObjectLike=za,yi.isPlainObject=Fa,yi.isRegExp=Ba,yi.isSafeInteger=function(e){return Aa(e)&&e>=-L&&e<=L},yi.isSet=Pa,yi.isString=Ua,yi.isSymbol=Ha,yi.isTypedArray=$a,yi.isUndefined=function(e){return e===n},yi.isWeakMap=function(e){return za(e)&&Go(e)==ae},yi.isWeakSet=function(e){return za(e)&&rr(e)==le},yi.join=function(e,t){return null==e?"":Yn.call(e,t)},yi.kebabCase=El,yi.last=Ss,yi.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=Ga(i))<0?Zn(r+o,0):Jn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):vn(e,wn,o,!0)},yi.lowerCase=Cl,yi.lowerFirst=Ml,yi.lt=Wa,yi.lte=qa,yi.max=function(e){return e&&e.length?Gi(e,Rl,or):n},yi.maxBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),or):n},yi.mean=function(e){return _n(e,Rl)},yi.meanBy=function(e,t){return _n(e,Ho(t,2))},yi.min=function(e){return e&&e.length?Gi(e,Rl,br):n},yi.minBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),br):n},yi.stubArray=Yl,yi.stubFalse=Ql,yi.stubObject=function(){return{}},yi.stubString=function(){return""},yi.stubTrue=function(){return!0},yi.multiply=tc,yi.nth=function(e,t){return e&&e.length?_r(e,Ga(t)):n},yi.noConflict=function(){return Wt._===this&&(Wt._=vt),this},yi.noop=Hl,yi.now=sa,yi.pad=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?Wn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Eo(Gt(r),n)+e+Eo(Vt(r),n)},yi.padEnd=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?Wn(e):0;return t&&i<t?e+Eo(t-i,n):e},yi.padStart=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?Wn(e):0;return t&&i<t?Eo(t-i,n)+e:e},yi.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ei(Ja(e).replace(ze,""),t||0)},yi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=ti();return Jn(e+o*(t-e+Pt("1e-"+((o+"").length-1))),t)}return Or(e,t)},yi.reduce=function(e,t,n){var i=Ea(e)?hn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,qi)},yi.reduceRight=function(e,t,n){var i=Ea(e)?fn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,Vi)},yi.repeat=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),Dr(Ja(e),t)},yi.replace=function(){var e=arguments,t=Ja(e[0]);return e.length<3?t:t.replace(e[1],e[2])},yi.result=function(e,t,i){var r=-1,o=(t=Jr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[bs(t[r])];s===n&&(r=o,s=i),e=Na(s)?s.call(e):s}return e},yi.round=nc,yi.runInContext=e,yi.sample=function(e){return(Ea(e)?Si:Sr)(e)},yi.size=function(e){if(null==e)return 0;if(Ma(e))return Ua(e)?Wn(e):e.length;var t=Go(e);return t==Q||t==ie?e.size:mr(e).length},yi.snakeCase=Ol,yi.some=function(e,t,i){var r=Ea(e)?mn:Rr;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.sortedIndex=function(e,t){return Fr(e,t)},yi.sortedIndexBy=function(e,t,n){return Br(e,t,Ho(n,2))},yi.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Fr(e,t);if(i<n&&xa(e[i],t))return i}return-1},yi.sortedLastIndex=function(e,t){return Fr(e,t,!0)},yi.sortedLastIndexBy=function(e,t,n){return Br(e,t,Ho(n,2),!0)},yi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},yi.startCase=Dl,yi.startsWith=function(e,t,n){return e=Ja(e),n=null==n?0:Pi(Ga(n),0,e.length),t=Hr(t),e.slice(n,n+t.length)==t},yi.subtract=ic,yi.sum=function(e){return e&&e.length?Mn(e,Rl):0},yi.sumBy=function(e,t){return e&&e.length?Mn(e,Ho(t,2)):0},yi.template=function(e,t,i){var r=yi.templateSettings;i&&Xo(e,t,i)&&(t=n),e=Ja(e),t=tl({},t,r,Ao);var o,s,l=tl({},t.imports,r.imports,Ao),c=pl(l),u=Sn(l,c),p=0,d=t.interpolate||Ze,h="__p += '",f=ot((t.escape||Ze).source+"|"+d.source+"|"+(d===Te?$e:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++It+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(p,l).replace(Je,Rn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(xe,""):h).replace(we,"$1").replace(_e,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Al((function(){return nt(c,m+"return "+h).apply(n,u)}));if(b.source=h,Sa(b))throw b;return b},yi.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=R,i=Jn(e,R);t=Ho(t),e-=R;for(var r=On(i,t);++n<e;)t(n);return r},yi.toFinite=Ka,yi.toInteger=Ga,yi.toLength=Ya,yi.toLower=function(e){return Ja(e).toLowerCase()},yi.toNumber=Qa,yi.toSafeInteger=function(e){return e?Pi(Ga(e),-L,L):0===e?e:0},yi.toString=Ja,yi.toUpper=function(e){return Ja(e).toUpperCase()},yi.trim=function(e,t,i){if((e=Ja(e))&&(i||t===n))return Dn(e);if(!e||!(t=Hr(t)))return e;var r=qn(e),o=qn(t);return eo(r,An(r,o),jn(r,o)+1).join("")},yi.trimEnd=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.slice(0,Vn(e)+1);if(!e||!(t=Hr(t)))return e;var r=qn(e);return eo(r,0,jn(r,qn(t))+1).join("")},yi.trimStart=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.replace(ze,"");if(!e||!(t=Hr(t)))return e;var r=qn(e);return eo(r,An(r,qn(t))).join("")},yi.truncate=function(e,t){var i=M,r=O;if(La(t)){var o="separator"in t?t.separator:o;i="length"in t?Ga(t.length):i,r="omission"in t?Hr(t.omission):r}var s=(e=Ja(e)).length;if(Fn(e)){var a=qn(e);s=a.length}if(i>=s)return e;var l=i-Wn(r);if(l<1)return r;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+r;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,p=c;for(o.global||(o=ot(o.source,Ja(We.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;c=c.slice(0,d===n?l:d)}}else if(e.indexOf(Hr(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},yi.unescape=function(e){return(e=Ja(e))&&Ce.test(e)?e.replace(ke,Kn):e},yi.uniqueId=function(e){var t=++ft;return Ja(e)+t},yi.upperCase=Tl,yi.upperFirst=Sl,yi.each=Js,yi.eachRight=Xs,yi.first=Ms,Ul(yi,function(){var e={};return Xi(yi,(function(t,n){ht.call(yi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),yi.VERSION=i,on(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){yi[e].placeholder=yi})),on(["drop","take"],(function(e,t){ki.prototype[e]=function(i){i=i===n?1:Zn(Ga(i),0);var r=this.__filtered__&&!t?new ki(this):this.clone();return r.__filtered__?r.__takeCount__=Jn(i,r.__takeCount__):r.__views__.push({size:Jn(i,R),type:e+(r.__dir__<0?"Right":"")}),r},ki.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),on(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==S||n==A;ki.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),on(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ki.prototype[e]=function(){return this[n](1).value()[0]}})),on(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ki.prototype[e]=function(){return this.__filtered__?new ki(this):this[n](1)}})),ki.prototype.compact=function(){return this.filter(Rl)},ki.prototype.find=function(e){return this.filter(e).head()},ki.prototype.findLast=function(e){return this.reverse().find(e)},ki.prototype.invokeMap=Tr((function(e,t){return"function"==typeof e?new ki(this):this.map((function(n){return cr(n,e,t)}))})),ki.prototype.reject=function(e){return this.filter(ma(Ho(e)))},ki.prototype.slice=function(e,t){e=Ga(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ki(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ga(t))<0?i.dropRight(-t):i.take(t-e)),i)},ki.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ki.prototype.toArray=function(){return this.take(R)},Xi(ki.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=yi[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(yi.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof ki,c=a[0],u=l||Ea(t),p=function(e){var t=o.apply(yi,dn([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,m=l&&!h;if(!s&&u){t=m?t:new ki(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[p],thisArg:n}),new _i(g,d)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?g.value()[0]:g.value():g)})})),on(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);yi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ea(r)?r:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xi(ki.prototype,(function(e,t){var n=yi[t];if(n){var i=n.name+"";ht.call(ui,i)||(ui[i]=[]),ui[i].push({name:t,func:n})}})),ui[xo(n,b).name]=[{name:"wrapper",func:n}],ki.prototype.clone=function(){var e=new ki(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},ki.prototype.reverse=function(){if(this.__filtered__){var e=new ki(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ki.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Jn(t,e+s);break;case"takeRight":e=Zn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,h=Jn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return Kr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<p;){var b=u[m],v=b.iteratee,y=b.type,x=v(g);if(y==N)g=x;else if(!x){if(y==S)continue e;break e}}f[d++]=g}return f},yi.prototype.at=Gs,yi.prototype.chain=function(){return Vs(this)},yi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},yi.prototype.next=function(){this.__values__===n&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},yi.prototype.plant=function(e){for(var t,i=this;i instanceof wi;){var r=ys(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},yi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ki){var t=e;return this.__actions__.length&&(t=new ki(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new _i(t,this.__chain__)}return this.thru(Ls)},yi.prototype.toJSON=yi.prototype.valueOf=yi.prototype.value=function(){return Kr(this.__wrapped__,this.__actions__)},yi.prototype.first=yi.prototype.head,Nt&&(yi.prototype[Nt]=function(){return this}),yi}();Vt?((Vt.exports=Gn)._=Gn,qt._=Gn):Wt._=Gn}).call(Ac)}(YB,YB.exports);const QB=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),ZB=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),JB={onMouseEnter:QB,onMouseLeave:ZB};class XB extends t.Component{constructor(e){super(e),bE(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),bE(this,"selectItem",(e=>{const{items:t,editor:n,range:i}=this.props,r=t[e],o=r&&r.command,s=qu(r.items);o&&s&&r.command({editor:n,range:i})})),bE(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),bE(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),bE(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),bE(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),bE(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:i}=this.state,r=n[i];r&&!qu(r.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=t.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:i}=this.props,r=n===i;t!==e.items&&this.setState({selectedIndex:0}),UB({wrapperRef:this.menuRef,index:this.state.selectedIndex}),r?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:i}=this.props,{selectedIndex:r}=this.state,o=n===i;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,i)=>{const s=qu(e.items),a=t.createElement(eP,{index:i,item:e,key:e.title,selectItem:()=>s&&this.selectItem(i),selectedIndex:o?r:-1,onHover:()=>this.setState({selectedIndex:i})});return s?a:t.createElement(nm,{interactive:!0,key:e.title,placement:"right",visible:r===i,content:t.createElement(XB,T({},this.props,{items:e.items,menuIndex:n+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const eP=p(((e,n)=>{let{item:i,selectedIndex:r,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=i;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:Rc("neeto-editor-slash-commands__item",{active:o===r}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,i.title),t.createElement("p",null,i.description)))}));class tP extends t.Component{constructor(){super(...arguments),bE(this,"state",{activeMenuIndex:0}),bE(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),bE(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(XB,T({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const nP=[{optionName:Fc.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:Gd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:Fc.H1,title:"H1",description:"Add a big heading.",Icon:lh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:Fc.H2,title:"H2",description:"Add a sub-heading.",Icon:uh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:Fc.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:fh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:Fc.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:fh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:Fc.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:fh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:Fc.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:fh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:Fc.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:Hd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:Fc.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:Pd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:Fc.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Ad,command:Vu},{optionName:Fc.ATTACHMENTS,title:"Attachments",description:"Add an attachment.",Icon:Dd,command:Vu},{optionName:Fc.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:dd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:Fc.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:xd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:Fc.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:nh,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:Fc.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:Wd,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:Fc.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:xh,command:Vu},{optionName:Fc.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:Vd,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],iP={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}};var rP=Kc,oP=Qc,sP=qc;var aP=function(e){return function t(n,i,r){switch(arguments.length){case 0:return t;case 1:return sP(n)?t:oP((function(t,i){return e(n,t,i)}));case 2:return sP(n)&&sP(i)?t:sP(n)?oP((function(t,n){return e(t,i,n)})):sP(i)?oP((function(t,i){return e(n,t,i)})):rP((function(t){return e(n,i,t)}));default:return sP(n)&&sP(i)&&sP(r)?t:sP(n)&&sP(i)?oP((function(t,n){return e(t,n,r)})):sP(n)&&sP(r)?oP((function(t,n){return e(t,i,n)})):sP(i)&&sP(r)?oP((function(t,i){return e(n,t,i)})):sP(n)?rP((function(t){return e(t,i,r)})):sP(i)?rP((function(t){return e(n,t,r)})):sP(r)?rP((function(t){return e(n,i,t)})):e(n,i,r)}}},lP=Number.isInteger||function(e){return e<<0===e},cP=iu,uP=lP;var pP=function(e,t,n){if(uP(e)&&cP(n)){var i=[].concat(n);return i[e]=t,i}var r={};for(var o in n)r[o]=n[o];return r[e]=t,r},dP=Jc,hP=lP,fP=pP,mP=Hu,gP=aP((function e(t,n,i){if(0===t.length)return n;var r=t[0];if(t.length>1){var o=!mP(i)&&dP(r,i)?i[r]:hP(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}return fP(r,n,i)})),bP=gP,vP=aP((function(e,t,n){return bP([e],t,n)})),yP=vP;const xP=e=>{let{editor:t,range:n}=e;const i=prompt("Please enter Youtube/Loom/Vimeo embed URL."),r=!!i&&(wP(i)||kP(i)||_P(i));r?t.chain().focus().deleteRange(n).setExternalVideo({src:r}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},wP=e=>{const t=e.match(Hc);return t&&`https://www.youtube.com/embed/${t[5]}`},_P=e=>{const t=e.match($c);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},kP=e=>{const t=e.match(Wc);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},EP=new en("commands");var CP=e=>{let{addonCommands:t,options:n,openImageUploader:i}=e;const r=(e=>{let{options:t,addonCommands:n,openImageUploader:i}=e;const r=nP.map((e=>e.optionName===Fc.IMAGE_UPLOAD?yP("command",(e=>t=>{let{editor:n,range:i}=t;e(!0),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===Fc.VIDEO_EMBED?yP("command",xP,e):e));return[...r.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]})({options:n,addonCommands:t,openImageUploader:i});return as.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:EP,command:e=>{let{editor:t,range:n,props:i}=e;i.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=r.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return YB.exports.isEmpty(n)?[iP]:n},render:()=>{let e,t;return{onStart:n=>{e=new Dc(tP,{props:n,editor:n.editor}),t=pc("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),QB()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),ZB()}}}}}),addProseMirrorPlugins(){return[eR({editor:this.editor,...this.options.suggestion})]}})};const MP=e=>{let{onClickVariable:n,variables:i}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:i,category_label:r,variables:o}=n;if(i&&o){const e=o.map(yP("category_key",i));t.push({label:r,variables:e})}else e.push(n)})),YB.exports.isEmpty(e)||t.push({label:YB.exports.isEmpty(t)?null:"Others",variables:e}),t}(i);return Pu(i)?null:t.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,i)=>{let{label:r,variables:o}=e;return t.createElement(OP,{index:i,key:i,title:r,variables:o,onClickItem:n})})))},OP=e=>{let{index:n,title:i,variables:r,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},i&&t.createElement("h6",null,i),t.createElement("div",{className:"neeto-editor-variables-row"},r.map((e=>t.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},DP=e=>{let{items:n,command:i}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(MP,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,r=t?`${t}.${n}`:n;i({label:r,id:r})}}))},TP=new en("variables"),SP=Xs.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",Ho({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,i=!1;const{selection:r}=n,{empty:o,anchor:s}=r;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return i=!0,t.insertText("",n,n+e.nodeSize),!1})),i)}))}},addProseMirrorPlugins(){return[eR({editor:this.editor,...this.options.suggestion})]}}),NP={char:"{{",startOfLine:!1,pluginKey:TP,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setVariable(i).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new Dc(DP,{props:n,editor:n.editor}),t=pc("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var AP=e=>{let{suggestion:t={}}=e;return SP.configure({suggestion:{...NP,...t}})};var jP=[],LP=[];function zP(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=jP.indexOf(o);-1===s&&(s=jP.push(o)-1,LP[s]={}),n=LP[s]&&LP[s][i]?LP[s][i]:LP[s][i]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}zP(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const IP=e=>{let{editor:n,isOpen:i,onClose:r}=e;const o=n&&n.view.state.selection.node;return t.createElement(am,{isOpen:i,onClose:r},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement("div",{className:"neeto-editor-image-uploader__content"},t.createElement(bm,{alt:null==o?void 0:o.attrs.alt,editor:n,url:null==o?void 0:o.attrs.src,onClose:r}))))};var RP=ou,FP=Qc((function(e,t){var n=e<0?t.length+e:e;return RP(t)?t.charAt(n):t[n]})),BP=lP,PP=FP,UP=Qc((function(e,t){if(null!=t)return BP(e)?PP(e,t):t[e]})),HP=UP;const $P=e=>{let{icon:n,iconActive:i=!0,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(im,r,t.createElement("button",T({disabled:a,type:"button",className:Rc("neeto-editor-menu__item",{active:i})},function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?JB:{}}(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:Lf,color:s||(i?zf:If)})))};$P.propTypes={icon:wh.exports.oneOfType([wh.exports.element,wh.exports.func]),iconActive:wh.exports.bool,onClick:wh.exports.func,tooltipProps:wh.exports.object};const WP=e=>{let{editor:t,isImageUploadOpen:n,setIsImageUploadOpen:i}=e;return[{Icon:Id,command:()=>t.chain().focus().setImageAttributes({float:"left",align:"none"}).run(),active:t.isActive("image",{float:"left",align:"none"}),optionName:"Float Left"},{Icon:gd,command:()=>t.chain().focus().setImageAttributes({float:"none",align:"center"}).run(),active:t.isActive("image",{float:"none",align:"center"}),optionName:"Align Center"},{Icon:eh,command:()=>t.chain().focus().setImageAttributes({float:"right",align:"none"}).run(),active:t.isActive("image",{float:"right",align:"center"}),optionName:"Float Right"},{Icon:Ed,command:()=>i(!0),active:n,optionName:"Caption"},{Icon:vd,command:()=>t.commands.deleteSelection(),active:!1,optionName:"Remove"}]},qP=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement($P,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:Wu(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},VP=e=>{let{editor:t,isImageEditorModalOpen:n,setIsImageEditorModalOpen:i}=e;return WP({editor:t,isImageEditorModalOpen:n,setIsImageEditorModalOpen:i}).map(qP)},KP=e=>{let{editor:n,handleClose:i,handleAnimateInvalidLink:s}=e;const[a,l]=r("");o((()=>{l(n.getAttributes("link").href||"")}),[]);const c=()=>{Uc.test(a)?(n.chain().focus().setLink({href:a}).run(),i()):qu(a)?(n.chain().focus().unsetLink().run(),i()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(rm,{"data-cy":"neeto-editor-link-cancel-button",icon:()=>t.createElement(vd,{size:16}),style:"icon",onClick:()=>{a?(l(""),n.chain().focus().unsetLink().run()):i()}}))},GP=e=>{let{children:n,className:i,...r}=e;return t.createElement("ul",T({className:Rc("ne-dropdown__popup-menu",i)},r),n)};GP.propTypes={className:wh.exports.string,children:wh.exports.node};const YP=e=>{let{children:n,className:i,...r}=e;return t.createElement("li",T({className:Rc("ne-dropdown__popup-menu-item",i)},r),n)};YP.propTypes={className:wh.exports.string,children:wh.exports.node,isActive:wh.exports.bool};const QP=e=>{let n,i,{children:r,className:o,isActive:s,style:a,prefix:l,suffix:c,type:u=Uf.button,href:p="",...d}=e;return p?(n="a",i={href:p}):(n="button",i={type:u}),t.createElement(YP,null,t.createElement(n,T({className:Rc("ne-dropdown__popup-menu-item-btn",o,{"ne-dropdown__popup-menu-item-btn":s,"ne-dropdown__popup-menu-item-btn--style-danger":a===Pf})},d,i),l&&t.createElement("div",{className:"ne-dropdown__popup-menu-item-btn__prefix"},l),r,c&&t.createElement("div",{className:"ne-dropdown__popup-menu-item-btn__suffix"},c)))};QP.propTypes={className:wh.exports.string,children:wh.exports.node,isActive:wh.exports.bool,to:wh.exports.string,href:wh.exports.string,suffix:wh.exports.node,prefix:wh.exports.node,type:wh.exports.oneOf(Object.values(Uf))},YP.Button=QP;const ZP={primary:"primary",secondary:"secondary",danger:"danger",danger_text:"danger-text",text:"text",link:"link"},JP={small:"small",medium:"medium",large:"large"},XP={absolute:"absolute",fixed:"fixed"},eU={auto:"auto",autoStart:"auto-start",autoEnd:"auto-end",top:"top",topStart:"top-start",topEnd:"top-end",bottom:"bottom",bottomStart:"bottom-start",bottomEnd:"bottom-end",right:"right",rightStart:"right-start",rightEnd:"right-end",left:"left",leftStart:"left-start",leftEnd:"left-end"},tU={click:"click",hover:"mouseenter focus"},nU={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(null==i||i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},iU=t.forwardRef(((e,n)=>{let{icon:i,label:o,isOpen:s,onClose:a=(()=>{}),dropdownProps:l={},position:c=eU.bottomEnd,children:u,className:p,buttonStyle:d=ZP.primary,buttonSize:h=JP.medium,buttonProps:{style:f,size:m,...g}={},customTarget:b,disabled:v=!1,closeOnEsc:y=!0,closeOnSelect:x=!0,closeOnOutsideClick:w=!0,dropdownModifiers:_=[],trigger:k=tU.click,strategy:E=XP.fixed,onClick:C,...M}=e;const[O,D]=r(null),[S,N]=r(!1),A=!Hu(s),j=A?{visible:s,onClickOutside:a}:{onClickOutside:()=>(a(),w)},{classNames:L,...z}=l,I=!A&&(w||"toggle");return t.createElement(nm,T({interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:I,hideOnEsc:y,maxWidth:"none",offset:0,placement:c||eU.bottomEnd,plugins:[nU],ref:n,role:"dropdown",theme:"light",trigger:tU[k],className:Rc("ne-dropdown",{[p]:p}),content:S?t.createElement("div",T({className:Rc("ne-dropdown__popup",{[L]:L}),onClick:x?()=>{O.hide(),a()}:()=>{}},z),u):null,popperOptions:{strategy:E,modifiers:_},onCreate:e=>e&&D(e),onHidden:()=>{N(!1)},onMount:()=>{N(!0)}},M,j),b?t.createElement("span",{onClick:C},"function"==typeof b?b():b):t.createElement(rm,T({disabled:v||(null==g?void 0:g.disabled),icon:i||_d,iconPosition:"right",label:o,size:null!=m?m:h,style:null!=f?f:d,onClick:C},g)))}));iU.Menu=GP,iU.MenuItem=YP,iU.Divider=e=>t.createElement("li",T({className:"ne-dropdown__popup-divider"},e)),iU.displayName="Dropdown";const rU=e=>{let{editor:n,theme:i="light"}=e;const r=c(),{Menu:o}=iU;return t.createElement(iU,{closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},position:"bottom-start",ref:r,customTarget:()=>{var e,n,o;return t.createElement($P,{"data-cy":"neeto-editor-fixed-menu-emoji-option-button",icon:nh,iconActive:null==r||null===(e=r.current)||void 0===e||null===(n=e._tippy)||void 0===n||null===(o=n.state)||void 0===o?void 0:o.isVisible,tooltipProps:{content:"Emoji",position:"bottom",delay:[500]},color:"dark"===i&&"white"})}},t.createElement(o,null,t.createElement(eB,{editor:n})))},oU=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var sU=Kc((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const aU=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],lU=e=>{let{editor:t,options:n,setIsImageUploadOpen:i}=e;const r=((e,t)=>({font:[{Icon:rh,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:dh,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:gh,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:sh,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Sd,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:Qd,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:xd,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:Pd,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Hd,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:Dd,command:()=>{},active:!1,optionName:"attachments"},{Icon:Ad,command:()=>t(!0),active:e.isActive("imageUpload"),optionName:"image-upload"}],right:[{Icon:vh,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:Jd,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return sU(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},cU=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement($P,{"data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:Wu(o),position:"bottom",delay:[500]},onClick:i})},uU=e=>{let{editor:n,mentions:i,menuType:r="fixed"}=e;const o=c(),s=$B(i),{Menu:a,MenuItem:l}=iU;return Pu(s)?null:t.createElement(iU,{ref:o,customTarget:()=>{var e,n,i;return t.createElement($P,{color:"bubble"===r&&"white","data-cy":"neeto-editor-mention-option",icon:Md,iconActive:null==o||null===(e=o.current)||void 0===e||null===(n=e._tippy)||void 0===n||null===(i=n.state)||void 0===i?void 0:i.isVisible,tooltipProps:{content:"Mention",position:"bottom",delay:[500]}})}},t.createElement(a,null,s.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(l.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(PB,{size:"small",user:{name:r,imageUrl:o}}),t.createElement("span",null,r))}))))},pU=e=>{let{editor:n,options:i,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l}=e;const[c,u]=r(!1),p=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),d=(e=>{var t;return(null===(t=e.find(HP("active")))||void 0===t?void 0:t.optionName)||"Text"})(p),h=i.includes(Fc.EMOJI),f=i.includes(Fc.LINK),{font:m,block:g,list:b}=lU({editor:n,options:i,setIsImageUploadVisible:Vu}),v=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},y=()=>u(!1);return a?t.createElement(KP,{editor:n,handleAnimateInvalidLink:v,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(nm,{interactive:!0,arrow:!1,placement:"bottom",visible:c,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},p.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),y()}},n)}))),onClickOutside:y},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>u((e=>!e))},d,t.createElement(_d,{size:14}))),t.createElement(oU,null),m.map(qP),t.createElement(oU,null),g.map(qP),h&&t.createElement(rU,{editor:n,theme:"dark"}),t.createElement(oU,null),b.map(qP),t.createElement(oU,null),f&&qP({Icon:Fd,command:()=>l(!0),active:n.isActive("link"),optionName:"link",highlight:!1}),t.createElement(uU,{editor:n,mentions:o,menuType:"bubble"}))},dU=e=>{let{editor:n,options:i,mentions:o}=e;const[s,a]=r(!1),[l,c]=r(!1),[u,p]=r(!1),d=n&&n.view.state.selection.node,h=d&&"image"===d.type.name,f=[Fc.BOLD,Fc.ITALIC,Fc.UNDERLINE,Fc.STRIKETHROUGH,Fc.LINK],m=qu(i.filter((e=>f.includes(e))));return!n||!h&&m?null:t.createElement("div",null,t.createElement(yc,{editor:n,className:Rc("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":s}),tippyOptions:{arrow:wl,zIndex:99999,onHide:()=>c(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},h?t.createElement(VP,{editor:n,isImageEditorModalOpen:u,setIsImageEditorModalOpen:p}):t.createElement(pU,{editor:n,isLinkOptionActive:l,mentions:o,options:i,setIsInvalidLink:a,setIsLinkOptionActive:c})),t.createElement(IP,{editor:n,isOpen:u,onClose:()=>p(!1)}))},hU=e=>{var n;let{editor:i}=e;const r=e=>i.isActive("heading",{level:e}),o=(null===(n=aU.find((e=>{let{value:t}=e;return r(t)})))||void 0===n?void 0:n.label)||"Paragraph",{Menu:s,MenuItem:a}=iU;return t.createElement(iU,{className:"neeto-editor-font-size-wrapper",dropdownProps:{classNames:"ne-dropdown__popup--auto-width"},placement:"bottom-start",customTarget:()=>t.createElement($P,{"data-cy":"neeto-editor-fixed-menu-font-size-option",icon:_d,iconActive:!1,label:o,tooltipProps:{content:"Font Size",position:"bottom",delay:[500]}})},t.createElement(s,null,aU.map((e=>{let{label:n,value:o}=e;return t.createElement(a.Button,{className:Rc({active:r(o)}),"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:o,onClick:()=>{return(e=o)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},fU=e=>{let{editor:n}=e;const[i,o]=r(""),[s,a]=r(""),[l,c]=r(!1),u=n.isActive("link"),p=()=>a(n.getAttributes("link").href||""),d=()=>c(!1),h=()=>{Uc.test(s)?(n.chain().focus().setLink({href:s}).run(),d()):o("Please enter a valid url")};return t.createElement(iU,{className:"neeto-editor-link-wrapper",closeOnSelect:!1,isOpen:l,position:"bottom",customTarget:()=>t.createElement($P,{"data-cy":"neeto-editor-fixed-menu-link-option",icon:Fd,iconActive:u,tooltipProps:{content:"Link",position:"bottom",delay:[500]},onClick:p}),onClick:()=>c((e=>!e)),onClose:d},t.createElement("div",{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?d():"Enter"===e.key&&h()}},t.createElement(gm,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(rm,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:h}),u&&t.createElement(rm,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{n.chain().focus().unsetLink().run(),d()}})))},mU=e=>{let{editor:n,variables:i}=e;const r=c(),{Menu:o}=iU;return Pu(i)?null:t.createElement(iU,{ref:r,customTarget:()=>{var e,n,i;return t.createElement($P,{"data-cy":"neeto-editor-variable-option",icon:fd,iconActive:null==r||null===(e=r.current)||void 0===e||null===(n=e._tippy)||void 0===n||null===(i=n.state)||void 0===i?void 0:i.isVisible,color:"white",tooltipProps:{content:"Variables",position:"bottom",delay:[500]}})}},t.createElement(o,null,t.createElement(MP,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},gU=e=>{let{editor:n,options:i,mentions:r,variables:o,isImageUploadOpen:s,setIsImageUploadOpen:a,isIndependant:l,className:c}=e;const u=n&&n.view.state.selection.node,p=u&&"image"===u.type.name;if(!n)return null;const{font:d,block:h,list:f,misc:m,right:g}=lU({editor:n,options:i,setIsImageUploadOpen:a}),b=i.filter((e=>e.match(/^h[1-6]$/))),v=b.length>0,y=i.includes(Fc.EMOJI),x=i.includes(Fc.LINK);return t.createElement("div",{className:Rc("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},v&&t.createElement(hU,{editor:n}),d.map(cU),(v||!Pu(b))&&t.createElement(oU,null),h.map(cU),y&&t.createElement(rU,{editor:n}),(y||!Pu(h))&&t.createElement(oU,null),f.map(cU),p&&WP({editor:n,isImageUploadOpen:s,setIsImageUploadOpen:a}).map(cU),(p||!Pu(f))&&t.createElement(oU,null),x&&t.createElement(fU,{editor:n}),m.map(cU),t.createElement(uU,{editor:n,mentions:r}),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},g.map(cU))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(mU,{editor:n,variables:o})))},bU=e=>{let{editor:n,menuType:i="fixed",defaults:o=Gu,addons:s=[],editorSecrets:a={},uploadEndpoint:l=Pc,uploadConfig:c={},mentions:u=[],variables:p=[],isIndependant:d=!0,className:h}=e;const[f,m]=r(!1),g=[...o,...s],b="fixed"===i,v="bubble"===i;return t.createElement(t.Fragment,null,b&&t.createElement(gU,{className:Rc({[h]:h}),editor:n,isImageUploadOpen:f,isIndependant:d,mentions:u,options:g,setIsImageUploadOpen:m,variables:p}),v&&t.createElement(dU,{editor:n,mentions:u,options:g}),t.createElement(tS,{editor:n,imageUploadUrl:l,isOpen:f,unsplashApiKey:a.unsplash,uploadConfig:c,onClose:()=>m(!1)}))},vU=e=>{let{rows:t}=e;return`min-height: ${t*Zu+2*(Yu+Qu)}px;`},yU=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=ie.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=j.fromArray(n);return B.maxOpen(i)},xU=(e,n)=>{let{initialValue:i="",menuType:s="fixed",autoFocus:a=!1,hideSlashCommands:l=!1,defaults:c=Gu,addons:u=[],addonCommands:p=[],className:d,uploadEndpoint:f=Pc,uploadConfig:m={},onChange:g=Vu,onFocus:b=Vu,onBlur:v=Vu,onSubmit:y=Vu,variables:x=[],mentions:w=[],placeholder:_,extensions:k=[],editorSecrets:E={},rows:C=6,isCharacterCountActive:M=!1,keyboardShortcuts:O=[],error:D=null,config:S={},...N}=e;const A="fixed"===s,j="bubble"===s,L=!l,z=!!_,[I,R]=r(!1),F=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,openImageUploader:d}=e;const h=sS(p,QI);let f=[pS,uS.configure(h.code),PN.configure(h.underline),mS.configure(h.highlight),YI.configure(h.codeBlock),zB.configure(h.figCaption),JI.configure(h.embeds),BN.configure(h.link),aB.configure(h.emojiSuggestion),nB.configure(h.emojiPicker),ZI.configure(h.customCommands),aS.configure(h.characterCount),dS.configure(h.focus),LB({uploadEndpoint:u}),GA.configure(h.starterKit),RB({onSubmit:l,shortcuts:c}),GB.configure(sS({placeholder:t},h.placeholder))];return o&&f.push(CP({options:s,addonCommands:a,openImageUploader:d})),Pu(i)||f.push(KB({suggestion:{items:WB(i)}})),Pu(r)||f.push(AP({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:_,extensions:k,mentions:w,variables:x,isSlashCommandsActive:L,options:[...c,...u],addonCommands:p,onSubmit:y,keyboardShortcuts:O,uploadEndpoint:f,config:S,openImageUploader:()=>R(!0)});(e=>{let{initialValue:t}=e;o((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&qu(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:i}),h(n,(()=>({editor:P})));const B=Rc("neeto-editor",{"slash-active":L&&!z,"fixed-menu-active border":A,"bubble-menu-active":j,"placeholder-active":z,[d]:d}),P=Nc({extensions:F,content:i,injectCSS:!1,autofocus:a&&"end",editorProps:{attributes:{class:B,style:vU({rows:C})},clipboardTextParser:yU},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!a&&(e=>{const{state:t,view:n}=e,i=Tt.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return g(t.getHTML())},onFocus:b,onBlur:v});return so.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:Rc({[d]:d})},t.createElement(Ku,{error:D,isFixedMenuActive:A},t.createElement(Ju,{editor:P,isActive:M},t.createElement(bU,{addons:u,defaults:c,editor:P,editorSecrets:E,isIndependant:!1,mentions:w,menuType:s,uploadConfig:m,uploadEndpoint:f,variables:x}),t.createElement(kc,T({editor:P},N)),t.createElement(tS,{editor:P,imageUploadUrl:f,isOpen:I,unsplashApiKey:E.unsplash,uploadConfig:m,onClose:()=>R(!1)}))))};var wU=t.forwardRef(xU);
69
- /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function _U(e){return _U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_U(e)}function kU(e,t){return kU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kU(e,t)}function EU(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function CU(e,t,n){return CU=EU()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&kU(r,n.prototype),r},CU.apply(null,arguments)}function MU(e){return function(e){if(Array.isArray(e))return OU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return OU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OU(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var DU=Object.hasOwnProperty,TU=Object.setPrototypeOf,SU=Object.isFrozen,NU=Object.getPrototypeOf,AU=Object.getOwnPropertyDescriptor,jU=Object.freeze,LU=Object.seal,zU=Object.create,IU="undefined"!=typeof Reflect&&Reflect,RU=IU.apply,FU=IU.construct;RU||(RU=function(e,t,n){return e.apply(t,n)}),jU||(jU=function(e){return e}),LU||(LU=function(e){return e}),FU||(FU=function(e,t){return CU(e,MU(t))});var BU,PU=QU(Array.prototype.forEach),UU=QU(Array.prototype.pop),HU=QU(Array.prototype.push),$U=QU(String.prototype.toLowerCase),WU=QU(String.prototype.match),qU=QU(String.prototype.replace),VU=QU(String.prototype.indexOf),KU=QU(String.prototype.trim),GU=QU(RegExp.prototype.test),YU=(BU=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return FU(BU,t)});function QU(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return RU(e,t,i)}}function ZU(e,t,n){n=n||$U,TU&&TU(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(SU(t)||(t[i]=o),r=o)}e[r]=!0}return e}function JU(e){var t,n=zU(null);for(t in e)RU(DU,e,[t])&&(n[t]=e[t]);return n}function XU(e,t){for(;null!==e;){var n=AU(e,t);if(n){if(n.get)return QU(n.get);if("function"==typeof n.value)return QU(n.value)}e=NU(e)}return function(e){return console.warn("fallback value for",e),null}}var eH=jU(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tH=jU(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nH=jU(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),iH=jU(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rH=jU(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),oH=jU(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sH=jU(["#text"]),aH=jU(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),lH=jU(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cH=jU(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),uH=jU(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pH=LU(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dH=LU(/<%[\w\W]*|[\w\W]*%>/gm),hH=LU(/^data-[\-\w.\u00B7-\uFFFF]/),fH=LU(/^aria-[\-\w]+$/),mH=LU(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gH=LU(/^(?:\w+script|data):/i),bH=LU(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vH=LU(/^html$/i),yH=function(){return"undefined"==typeof window?null:window},xH=function(e,t){if("object"!==_U(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var wH=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yH(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,p=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=XU(m,"cloneNode"),b=XU(m,"nextSibling"),v=XU(m,"childNodes"),y=XU(m,"parentNode");if("function"==typeof s){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var w=xH(f,i),_=w?w.createHTML(""):"",k=r,E=k.implementation,C=k.createNodeIterator,M=k.createDocumentFragment,O=k.getElementsByTagName,D=i.importNode,T={};try{T=JU(r).documentMode?r.documentMode:{}}catch(e){}var S={};n.isSupported="function"==typeof y&&E&&void 0!==E.createHTMLDocument&&9!==T;var N,A,j=pH,L=dH,z=hH,I=fH,R=gH,F=bH,B=mH,P=null,U=ZU({},[].concat(MU(eH),MU(tH),MU(nH),MU(rH),MU(sH))),H=null,$=ZU({},[].concat(MU(aH),MU(lH),MU(cH),MU(uH))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,V=null,K=!0,G=!0,Y=!1,Q=!1,Z=!1,J=!1,X=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=ZU({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pe=null,de=ZU({},["audio","video","img","source","image","track"]),he=null,fe=ZU({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",ve=be,ye=!1,xe=["application/xhtml+xml","text/html"],we="text/html",_e=null,ke=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(e){_e&&_e===e||(e&&"object"===_U(e)||(e={}),e=JU(e),N=N=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?we:e.PARSER_MEDIA_TYPE,A="application/xhtml+xml"===N?function(e){return e}:$U,P="ALLOWED_TAGS"in e?ZU({},e.ALLOWED_TAGS,A):U,H="ALLOWED_ATTR"in e?ZU({},e.ALLOWED_ATTR,A):$,he="ADD_URI_SAFE_ATTR"in e?ZU(JU(fe),e.ADD_URI_SAFE_ATTR,A):fe,pe="ADD_DATA_URI_TAGS"in e?ZU(JU(de),e.ADD_DATA_URI_TAGS,A):de,ce="FORBID_CONTENTS"in e?ZU({},e.FORBID_CONTENTS,A):ue,q="FORBID_TAGS"in e?ZU({},e.FORBID_TAGS,A):{},V="FORBID_ATTR"in e?ZU({},e.FORBID_ATTR,A):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,ve=e.NAMESPACE||be,e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(P=ZU({},MU(sH)),H=[],!0===le.html&&(ZU(P,eH),ZU(H,aH)),!0===le.svg&&(ZU(P,tH),ZU(H,lH),ZU(H,uH)),!0===le.svgFilters&&(ZU(P,nH),ZU(H,lH),ZU(H,uH)),!0===le.mathMl&&(ZU(P,rH),ZU(H,cH),ZU(H,uH))),e.ADD_TAGS&&(P===U&&(P=JU(P)),ZU(P,e.ADD_TAGS,A)),e.ADD_ATTR&&(H===$&&(H=JU(H)),ZU(H,e.ADD_ATTR,A)),e.ADD_URI_SAFE_ATTR&&ZU(he,e.ADD_URI_SAFE_ATTR,A),e.FORBID_CONTENTS&&(ce===ue&&(ce=JU(ce)),ZU(ce,e.FORBID_CONTENTS,A)),se&&(P["#text"]=!0),Z&&ZU(P,["html","head","body"]),P.table&&(ZU(P,["tbody"]),delete q.tbody),jU&&jU(e),_e=e)},Me=ZU({},["mi","mo","mn","ms","mtext"]),Oe=ZU({},["foreignobject","desc","title","annotation-xml"]),De=ZU({},["title","style","font","a","script"]),Te=ZU({},tH);ZU(Te,nH),ZU(Te,iH);var Se=ZU({},rH);ZU(Se,oH);var Ne=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var n=$U(e.tagName),i=$U(t.tagName);return e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Me[i]):Boolean(Te[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&Oe[i]:Boolean(Se[n]):e.namespaceURI===be&&(!(t.namespaceURI===ge&&!Oe[i])&&(!(t.namespaceURI===me&&!Me[i])&&(!Se[n]&&(De[n]||!Te[n]))))},Ae=function(e){HU(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},je=function(e,t){try{HU(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){HU(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Ae(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var i=WU(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(ve===be)try{t=(new h).parseFromString(o,N)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),ve===be?O.call(t,Z?"html":"body")[0]:Z?t.documentElement:s},ze=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ie=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Re=function(e){return"object"===_U(a)?e instanceof a:e&&"object"===_U(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Fe=function(e,t,i){S[e]&&PU(S[e],(function(e){e.call(n,t,i,_e)}))},Be=function(e){var t;if(Fe("beforeSanitizeElements",e,null),Ie(e))return Ae(e),!0;if(GU(/[\u0080-\uFFFF]/,e.nodeName))return Ae(e),!0;var i=A(e.nodeName);if(Fe("uponSanitizeElement",e,{tagName:i,allowedTags:P}),e.hasChildNodes()&&!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&GU(/<[/\w]/g,e.innerHTML)&&GU(/<[/\w]/g,e.textContent))return Ae(e),!0;if("select"===i&&GU(/<template/i,e.innerHTML))return Ae(e),!0;if(!P[i]||q[i]){if(!q[i]&&Ue(i)){if(W.tagNameCheck instanceof RegExp&&GU(W.tagNameCheck,i))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(i))return!1}if(se&&!ce[i]){var r=y(e)||e.parentNode,o=v(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),b(e))}return Ae(e),!0}return e instanceof l&&!Ne(e)?(Ae(e),!0):"noscript"!==i&&"noembed"!==i||!GU(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=qU(t,j," "),t=qU(t,L," "),e.textContent!==t&&(HU(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe("afterSanitizeElements",e,null),!1):(Ae(e),!0)},Pe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if(G&&!V[t]&&GU(z,t));else if(K&&GU(I,t));else if(!H[t]||V[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&GU(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&GU(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&GU(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(GU(B,qU(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==VU(n,"data:")||!pe[e]){if(Y&&!GU(R,qU(n,F,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,i,r,o;Fe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(i="value"===c?t.value:KU(t.value),r=A(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(je(c,e),a.keepAttr))if(GU(/\/>/i,i))je(c,e);else{Q&&(i=qU(i,j," "),i=qU(i,L," "));var p=A(e.nodeName);if(Pe(p,r,i)){if(!re||"id"!==r&&"name"!==r||(je(c,e),i=oe+i),w&&"object"===_U(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(p,r)){case"TrustedHTML":i=w.createHTML(i);break;case"TrustedScriptURL":i=w.createScriptURL(i)}try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),UU(n.removed)}catch(e){}}}}Fe("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,i=ze(t);for(Fe("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Fe("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),He(n));Fe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var r,s,l,c,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw YU("toString is not a function");if("string"!=typeof(e=e.toString()))throw YU("dirty is not a string, aborting")}if(!n.isSupported){if("object"===_U(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Re(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Ce(p),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var d=A(e.nodeName);if(!P[d]||q[d])throw YU("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(r=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(!(r=Le(e)))return ee?null:ne?_:""}r&&X&&Ae(r.firstChild);for(var h=ze(ae?e:r);l=h.nextNode();)3===l.nodeType&&l===c||Be(l)||(l.content instanceof o&&$e(l.content),He(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=M.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return H.shadowroot&&(u=D.call(i,u,!0)),u}var f=Z?r.outerHTML:r.innerHTML;return Z&&P["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&GU(vH,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),Q&&(f=qU(f,j," "),f=qU(f,L," ")),w&&ne?w.createHTML(f):f},n.setConfig=function(e){Ce(e),J=!0},n.clearConfig=function(){_e=null,J=!1},n.isValidAttribute=function(e,t,n){_e||Ce({});var i=A(e),r=A(t);return Pe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(S[e]=S[e]||[],HU(S[e],t))},n.removeHook=function(e){if(S[e])return UU(S[e])},n.removeHooks=function(e){S[e]&&(S[e]=[])},n.removeAllHooks=function(){S={}},n}();const _H="neeto-editor-content",kH={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder"]},EH=/<pre><code>([\S\s]*?)<\/code><\/pre>/gim,CH=e=>{if(e.tagName){const n=e.children?e.children.map(CH):null;return t.createElement(e.tagName,e.properties,n)}return e.value},MH=e=>{let{content:n="",className:i,...r}=e;const o=(e=>e.replace(EH,((e,t)=>{const n=KI.highlightAuto(t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).children.map(CH);return`<pre><code>${D(n)}</code></pre>`})))(n),s=wH.sanitize;return t.createElement("div",T({"data-cy":"neeto-editor-content",className:Rc(_H,{[i]:i}),dangerouslySetInnerHTML:{__html:s(o,kH)}},r))};zP('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=button]:-moz-focusring,\n[type=reset]:-moz-focusring,\n[type=submit]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=checkbox],\n[type=radio] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=search] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\naudio,\ncanvas,\nembed,\niframe,\nimg,\nobject,\nsvg,\nvideo {\n display: block;\n}\nbutton {\n background-color: transparent;\n background-image: none;\n border: none;\n}\nfieldset,\nol,\nul {\n margin: 0;\n padding: 0;\n}\nblockquote,\ndd,\ndl,\nfigure,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\n[type=checkbox],\n[type=radio] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n padding: 0;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n display: inline-block;\n vertical-align: middle;\n background-origin: border-box;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n flex-shrink: 0;\n height: 1rem;\n width: 1rem;\n color: #2563eb;\n background-color: rgb(var(--neeto-ui-white));\n border-color: #6b7280;\n border-width: 1px;\n}\n[type=checkbox]:checked,\n[type=radio]:checked {\n border-color: transparent;\n background-color: currentColor;\n background-size: auto;\n background-position: center;\n background-repeat: no-repeat;\n}\n[type=radio]:checked {\n background-image: url("data:image/svg+xml,%3Csvg width=\'6\' height=\'6\' viewBox=\'0 0 6 6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Ccircle cx=\'3\' cy=\'3\' r=\'3\' fill=\'white\'/%3E%3C/svg%3E%0A");\n}\n[type=checkbox]:checked {\n background-image: url("data:image/svg+xml,%3Csvg width=\'11\' height=\'8\' viewBox=\'0 0 11 8\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M9.66671 1L4.00004 6.66667L1.33337 4\' stroke=\'white\' stroke-width=\'1.5\' stroke-linecap=\'round\' stroke-linejoin=\'round\'/%3E%3C/svg%3E%0A");\n}\n[type=radio] {\n border-radius: 100%;\n}\nbody {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.3;\n color: #222;\n}\nbody *,\nbody *::after,\nbody *::before {\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\nbody {\n color: rgb(var(--neeto-ui-gray-800));\n}\nh1 {\n font-size: var(--neeto-ui-text-3xl);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\nh2 {\n font-size: var(--neeto-ui-text-2xl);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\nh3 {\n font-size: var(--neeto-ui-text-xl);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\nh4 {\n font-size: var(--neeto-ui-text-base);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\nh5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\nh6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-tight);\n}\np {\n font-size: var(--neeto-ui-text-sm);\n line-height: var(--neeto-ui-leading-normal);\n}\n:root {\n --neeto-ui-black: 27, 31, 35;\n --neeto-ui-white: 255, 255, 255;\n --neeto-ui-gray-800: 47, 57, 65;\n --neeto-ui-gray-700: 73, 84, 92;\n --neeto-ui-gray-600: 104, 115, 125;\n --neeto-ui-gray-500: 135, 146, 157;\n --neeto-ui-gray-400: 194, 200, 204;\n --neeto-ui-gray-300: 216, 220, 222;\n --neeto-ui-gray-200: 233, 235, 237;\n --neeto-ui-gray-100: 248, 249, 249;\n --neeto-ui-primary-800: 45, 54, 212;\n --neeto-ui-primary-600: 54, 66, 223;\n --neeto-ui-primary-500: 69, 88, 249;\n --neeto-ui-primary-100: 235, 236, 254;\n --neeto-ui-error-800: 187, 18, 26;\n --neeto-ui-error-600: 201, 37, 45;\n --neeto-ui-error-500: 215, 55, 63;\n --neeto-ui-error-100: 254, 236, 240;\n --neeto-ui-success-800: 16, 113, 84;\n --neeto-ui-success-600: 18, 128, 92;\n --neeto-ui-success-500: 38, 142, 108;\n --neeto-ui-success-100: 225, 243, 238;\n --neeto-ui-warning-800: 189, 100, 13;\n --neeto-ui-warning-600: 203, 111, 16;\n --neeto-ui-warning-500: 218, 123, 17;\n --neeto-ui-warning-100: 251, 242, 225;\n --neeto-ui-info-800: 9, 90, 186;\n --neeto-ui-info-600: 13, 102, 208;\n --neeto-ui-info-500: 20, 115, 230;\n --neeto-ui-info-100: 226, 242, 255;\n --neeto-ui-pastel-silver: 232, 233, 237;\n --neeto-ui-pastel-red: 255, 229, 229;\n --neeto-ui-pastel-yellow: 254, 243, 197;\n --neeto-ui-pastel-green: 211, 249, 232;\n --neeto-ui-pastel-blue: 236, 244, 255;\n --neeto-ui-pastel-purple: 238, 235, 255;\n --neeto-ui-pastel-pink: 253, 226, 241;\n --neeto-ui-pastel-silver: 232, 233, 237;\n --neeto-ui-pastel-red: 255, 229, 229;\n --neeto-ui-pastel-yellow: 254, 243, 197;\n --neeto-ui-pastel-green: 211, 249, 232;\n --neeto-ui-pastel-blue: 236, 244, 255;\n --neeto-ui-pastel-purple: 238, 235, 255;\n --neeto-ui-pastel-pink: 253, 226, 241;\n --neeto-ui-surface-bg: 255, 255, 255;\n --neeto-ui-shadow-xs: 0px 1px 4px -1px rgba(28, 48, 74, 0.12);\n --neeto-ui-shadow-s: 0px 3px 12px -1px rgba(28, 52, 84, 0.12), 0px 2px 4px -1px rgba(28, 55, 90, 0.08);\n --neeto-ui-shadow-m: 0px 8px 24px -4px rgba(28, 50, 79, 0.12), 0px 2px 6px -1px rgba(28, 55, 90, 0.08);\n --neeto-ui-shadow-l: 0px 12px 48px -6px rgba(28, 50, 79, 0.12), 0px 3px 18px -2px rgba(28, 55, 90, 0.08);\n --neeto-ui-text-h1: 32px;\n --neeto-ui-text-h2: 24px;\n --neeto-ui-text-h3: 20px;\n --neeto-ui-text-h4: 16px;\n --neeto-ui-text-h5: 14px;\n --neeto-ui-text-h6: 12px;\n --neeto-ui-text-body1: 16px;\n --neeto-ui-text-body2: 14px;\n --neeto-ui-text-body3: 12px;\n --neeto-ui-text-nano: 10px;\n --neeto-ui-text-xxs: 10px;\n --neeto-ui-text-xs: 12px;\n --neeto-ui-text-sm: 14px;\n --neeto-ui-text-base: 16px;\n --neeto-ui-text-lg: 18px;\n --neeto-ui-text-xl: 20px;\n --neeto-ui-text-2xl: 24px;\n --neeto-ui-text-3xl: 32px;\n --neeto-ui-text-4xl: 48px;\n --neeto-ui-font-thin: 100;\n --neeto-ui-font-extralight: 200;\n --neeto-ui-font-light: 300;\n --neeto-ui-font-normal: 400;\n --neeto-ui-font-medium: 500;\n --neeto-ui-font-semibold: 600;\n --neeto-ui-font-bold: 700;\n --neeto-ui-font-extrabold: 800;\n --neeto-ui-font-black: 900;\n --neeto-ui-leading-none: 1;\n --neeto-ui-leading-tight: 1.25;\n --neeto-ui-leading-snug: 1.375;\n --neeto-ui-leading-normal: 1.5;\n --neeto-ui-leading-relaxed: 1.625;\n --neeto-ui-leading-loose: 2;\n --neeto-ui-text-transform-none: none;\n --neeto-ui-text-transform-capitalize: capitalize;\n --neeto-ui-text-transform-uppercase: uppercase;\n --neeto-ui-text-transform-lowercase: lowercase;\n --neeto-ui-text-transform-full-width: full-width;\n --neeto-ui-text-transform-inherit: inherit;\n --neeto-ui-text-transform-initial: initial;\n --neeto-ui-text-transform-revert: revert;\n --neeto-ui-text-transform-unset: unset;\n --neeto-ui-rounded-none: 0;\n --neeto-ui-rounded-sm: 3px;\n --neeto-ui-rounded: 5px;\n --neeto-ui-rounded-md: 6px;\n --neeto-ui-rounded-lg: 8px;\n --neeto-ui-rounded-xl: 12px;\n --neeto-ui-rounded-full: 999px;\n --neeto-ui-transition: all 0.3s linear;\n --neeto-ui-modal-z-index: 99999;\n}\n.neeto-ui-theme--dark {\n --neeto-ui-surface-bg: 18, 18, 18;\n background-color: rgb(18, 18, 18);\n --neeto-ui-white: 18, 18, 18;\n --neeto-ui-black: 224, 224, 224;\n --neeto-ui-gray-100: 30, 30, 30;\n --neeto-ui-gray-200: 44, 44, 44;\n --neeto-ui-gray-300: 57, 57, 57;\n --neeto-ui-gray-400: 73, 73, 73;\n --neeto-ui-gray-500: 92, 92, 92;\n --neeto-ui-gray-600: 124, 124, 124;\n --neeto-ui-gray-700: 162, 162, 162;\n --neeto-ui-gray-800: 200, 200, 200;\n --neeto-ui-primary-800: 209, 213, 254;\n --neeto-ui-primary-600: 181, 188, 253;\n --neeto-ui-primary-500: 125, 137, 251;\n --neeto-ui-primary-100: 27, 28, 37;\n --neeto-ui-error-800: 247, 109, 116;\n --neeto-ui-error-600: 236, 91, 98;\n --neeto-ui-error-500: 227, 72, 80;\n --neeto-ui-error-100: 129, 33, 38;\n --neeto-ui-success-800: 57, 185, 144;\n --neeto-ui-success-600: 51, 171, 132;\n --neeto-ui-success-500: 45, 157, 120;\n --neeto-ui-success-100: 23, 85, 65;\n --neeto-ui-warning-800: 249, 164, 63;\n --neeto-ui-warning-600: 242, 148, 35;\n --neeto-ui-warning-500: 230, 134, 25;\n --neeto-ui-warning-100: 131, 74, 11;\n --neeto-ui-info-800: 75, 156, 245;\n --neeto-ui-info-600: 55, 142, 240;\n --neeto-ui-info-500: 38, 128, 235;\n --neeto-ui-info-100: 11, 69, 137;\n --neeto-ui-pastel-silver: 167, 168, 170;\n --neeto-ui-pastel-red: 183, 164, 165;\n --neeto-ui-pastel-yellow: 182, 175, 143;\n --neeto-ui-pastel-green: 152, 179, 167;\n --neeto-ui-pastel-blue: 170, 175, 183;\n --neeto-ui-pastel-purple: 171, 169, 183;\n --neeto-ui-pastel-pink: 181, 162, 174;\n}\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.ne-dropdown {\n margin: 6px 0;\n box-shadow: var(--neeto-ui-shadow-xs) !important;\n border-radius: var(--neeto-ui-rounded) !important;\n border: 1px solid rgb(var(--neeto-ui-gray-400));\n}\n.ne-dropdown .tippy-content {\n position: relative;\n padding: 0;\n z-index: 1;\n}\n.ne-dropdown__popup {\n width: auto;\n min-width: 168px;\n max-height: 360px;\n overflow-y: auto;\n background-color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n z-index: 99999;\n}\n.ne-dropdown__popup.ne-dropdown__popup--auto-width {\n min-width: auto;\n}\n.ne-dropdown__popup li,\n.ne-dropdown__popup .ne-dropdown--item {\n display: flex;\n cursor: pointer;\n position: relative;\n white-space: nowrap;\n transition: var(--neeto-ui-transition);\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n color: rgb(var(--neeto-ui-gray-800));\n padding: 6px 40px 6px 12px;\n text-decoration: none;\n outline-color: transparent;\n}\n.ne-dropdown__popup li.disabled,\n.ne-dropdown__popup .ne-dropdown--item.disabled {\n cursor: not-allowed;\n color: rgb(var(--neeto-ui-gray-500));\n}\n.ne-dropdown__popup li:hover, .ne-dropdown__popup li:focus,\n.ne-dropdown__popup .ne-dropdown--item:hover,\n.ne-dropdown__popup .ne-dropdown--item:focus {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-dropdown__popup li.loading:not(.active):after,\n.ne-dropdown__popup .ne-dropdown--item.loading:not(.active):after {\n content: "";\n position: absolute;\n right: 16px;\n top: 0;\n bottom: 0;\n margin: auto;\n width: 16px;\n height: 16px;\n display: block;\n border-radius: 50%;\n border: solid 2px rgb(var(--neeto-ui-gray-200));\n border-top-color: rgb(var(--neeto-ui-black));\n border-left-color: rgb(var(--neeto-ui-black));\n animation: theme("animation.spin");\n}\n.ne-dropdown__popup li.active,\n.ne-dropdown__popup .ne-dropdown--item.active {\n background-color: rgb(var(--neeto-ui-gray-800));\n color: rgb(var(--neeto-ui-white));\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu {\n padding: 4px 0;\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item {\n all: unset;\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn {\n width: 100%;\n display: flex;\n align-items: center;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: relative;\n white-space: nowrap;\n line-height: 1.143;\n transition: var(--neeto-ui-transition);\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-normal);\n color: rgb(var(--neeto-ui-gray-800));\n padding: 6px 12px;\n min-height: 24px;\n gap: 8px;\n text-decoration: none;\n outline-color: transparent;\n border-radius: 0;\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn.disabled {\n cursor: not-allowed;\n color: rgb(var(--neeto-ui-gray-500));\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn:hover, .ne-dropdown__popup .ne-dropdown__popup-menu-item-btn:focus {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-primary-500));\n color: rgb(var(--neeto-ui-white));\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn--style-danger {\n color: rgb(var(--neeto-ui-error-800));\n}\n.ne-dropdown__popup .ne-dropdown__popup-divider {\n all: unset;\n width: 100%;\n display: flex;\n height: 1px;\n background-color: rgb(var(--neeto-ui-gray-200));\n margin: 4px 0;\n pointer-events: none;\n}\n.ne-dropdown__popup .ne-dropdown__popup-menu-item-btn__suffix {\n margin-left: auto;\n}\n.ne-avatar--container {\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n}\n.ne-avatar--container.ne-avatar--container-round {\n border-radius: var(--neeto-ui-rounded-full);\n}\n.ne-avatar--container .ne-avatar__text {\n font-weight: var(--neeto-ui-font-semibold);\n text-align: center;\n text-transform: capitalize;\n font-size: var(--neeto-ui-text-xxs);\n color: rgb(47, 57, 65);\n line-height: 1;\n}\n.ne-avatar--container .ne-avatar__text.ne-avatar__text-medium {\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-avatar--container .ne-avatar__text.ne-avatar__text-large {\n font-size: var(--neeto-ui-text-sm);\n}\n.ne-avatar--container .ne-avatar__text.ne-avatar__text-xlarge {\n font-size: var(--neeto-ui-text-2xl);\n}\n.ne-avatar--container .ne-avatar__status {\n position: absolute;\n right: 0;\n top: 0;\n width: 0.4rem;\n height: 0.4rem;\n background-color: white;\n border: 0.5px solid white;\n border-radius: var(--neeto-ui-rounded-full);\n transform: translateX(-40%);\n}\n.ne-avatar--container .ne-avatar__status.ne-avatar__status-medium {\n width: 0.465rem;\n height: 0.465rem;\n}\n.ne-avatar--container .ne-avatar__status.ne-avatar__status-large {\n width: 0.563rem;\n height: 0.563rem;\n}\n.ne-avatar--container .ne-avatar__status.ne-avatar__status-xlarge {\n width: 0.75rem;\n height: 0.75rem;\n transform: translateX(-65%);\n}\n.ne-avatar--container .ne-avatar__status.ne-avatar__status-square {\n transform: translate(25%, -25%);\n}\n.ne-avatar--container .ne-avatar__status.online {\n background-color: rgb(var(--neeto-ui-success-500));\n}\n.ne-avatar--container .ne-avatar__status.idle {\n background-color: rgb(var(--neeto-ui-warning-500));\n}\n.ne-avatar--container .ne-avatar__status.offline {\n background-color: rgb(var(--neeto-ui-gray-300));\n}\n.ne-avatar--container .ne-avatar {\n display: inline-block;\n border-radius: var(--neeto-ui-rounded-sm);\n height: 1.5rem;\n width: 1.5rem;\n -o-object-fit: cover;\n object-fit: cover;\n}\n.ne-avatar--container .ne-avatar.hidden {\n display: none;\n}\n.ne-avatar--container .ne-avatar.ne-avatar--medium {\n height: 2rem;\n width: 2rem;\n}\n.ne-avatar--container .ne-avatar.ne-avatar--large {\n height: 2.5rem;\n width: 2.5rem;\n}\n.ne-avatar--container .ne-avatar.ne-avatar--xlarge {\n height: 4rem;\n width: 4rem;\n}\n.ne-avatar--container .ne-avatar.ne-avatar--round {\n border-radius: var(--neeto-ui-rounded-full);\n}\n.ne-avatar--container-bg-1 {\n background-color: rgb(var(--neeto-ui-pastel-silver));\n}\n.ne-avatar--container-bg-2 {\n background-color: rgb(var(--neeto-ui-pastel-red));\n}\n.ne-avatar--container-bg-3 {\n background-color: rgb(var(--neeto-ui-pastel-yellow));\n}\n.ne-avatar--container-bg-4 {\n background-color: rgb(var(--neeto-ui-pastel-green));\n}\n.ne-avatar--container-bg-5 {\n background-color: rgb(var(--neeto-ui-pastel-blue));\n}\n.ne-avatar--container-bg-6 {\n background-color: rgb(var(--neeto-ui-pastel-purple));\n}\n.ne-avatar--container-bg-7 {\n background-color: rgb(var(--neeto-ui-pastel-pink));\n}\n.ne-tab__wrapper {\n width: 100%;\n display: flex;\n border-bottom: 2px solid rgb(var(--neeto-ui-gray-300));\n}\n.ne-tab__wrapper--size-large .ne-tab {\n font-size: var(--neeto-ui-text-xl);\n padding-left: 12px;\n padding-right: 12px;\n}\n.ne-tab__wrapper--underline-none {\n border-bottom: none;\n}\n.ne-tab__wrapper--underline-none .ne-tab::before {\n display: none;\n}\n.ne-tab {\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: rgb(var(--neeto-ui-gray-500));\n font-weight: var(--neeto-ui-font-semibold);\n font-size: var(--neeto-ui-text-sm);\n line-height: 1;\n padding: 12px 8px;\n transition: var(--neeto-ui-transition);\n position: relative;\n cursor: pointer;\n text-decoration: none;\n outline: none;\n}\n.ne-tab:hover, .ne-tab:focus, .ne-tab:focus-visible, .ne-tab:active {\n text-decoration: none;\n outline: none;\n}\n.ne-tab:focus, .ne-tab:focus-visible {\n color: rgb(var(--neeto-ui-gray-800));\n}\n.ne-tab__icon {\n margin-right: 12px;\n}\n.ne-tab svg {\n width: 16px;\n height: 16px;\n}\n.ne-tab:hover {\n color: rgb(var(--neeto-ui-gray-600));\n}\n.ne-tab:before {\n content: "";\n position: absolute;\n width: 100%;\n height: 2px;\n background-color: transparent;\n left: 0;\n right: 0;\n bottom: -2px;\n transition: var(--neeto-ui-transition);\n}\n.ne-tab.active {\n color: rgb(var(--neeto-ui-gray-800));\n}\n.ne-tab.active:before {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.ne-btn {\n position: relative;\n display: inline-flex !important;\n align-items: center;\n padding: 6px 8px;\n gap: 4px;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-medium);\n line-height: 16px;\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded);\n border: none;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n min-width: 0;\n cursor: pointer;\n}\n.ne-btn.ne-btn--icon-only {\n padding: 6px;\n}\n.ne-btn.ne-btn--icon-only .ne-btn__icon,\n.ne-btn.ne-btn--icon-only .ne-btn__spinner svg {\n width: 16px !important;\n height: 16px !important;\n}\n.ne-btn--size-medium {\n font-size: var(--neeto-ui-text-sm);\n padding: 8px 16px;\n gap: 8px;\n}\n.ne-btn--size-medium.ne-btn--icon-only .ne-btn__icon,\n.ne-btn--size-medium.ne-btn--icon-only .ne-btn__spinner svg {\n width: 20px !important;\n height: 20px !important;\n}\n.ne-btn--size-large {\n font-size: var(--neeto-ui-text-base);\n padding: 12px 20px;\n gap: 10px;\n}\n.ne-btn--size-large.ne-btn--icon-only {\n padding: 8px;\n}\n.ne-btn--size-large.ne-btn--icon-only .ne-btn__icon,\n.ne-btn--size-large.ne-btn--icon-only .ne-btn__spinner svg {\n width: 24px !important;\n height: 24px !important;\n}\n.ne-btn:focus, .ne-btn:focus-visible {\n outline: none;\n}\n.ne-btn:hover {\n text-decoration: none;\n}\n.ne-btn.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.ne-btn--icon-left {\n flex-direction: row-reverse;\n}\n.ne-btn__icon,\n.ne-btn__spinner,\n.ne-btn__spinner-wrapper {\n color: inherit;\n}\n.ne-btn__icon svg,\n.ne-btn__spinner svg,\n.ne-btn__spinner-wrapper svg {\n color: inherit !important;\n}\n.ne-btn--width-full {\n width: 100% !important;\n justify-content: center;\n}\n.ne-btn--style-primary {\n color: rgb(var(--neeto-ui-white));\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.ne-btn--style-primary:hover:not(:disabled), .ne-btn--style-primary:active {\n color: rgb(var(--neeto-ui-white));\n background-color: rgb(var(--neeto-ui-primary-600));\n}\n.ne-btn--style-primary:focus {\n color: rgb(var(--neeto-ui-white));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-primary-500), 15%);\n}\n.ne-btn--style-primary:focus-visible {\n color: rgb(var(--neeto-ui-white));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-primary-500), 15%);\n}\n.ne-btn--style-secondary {\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-btn--style-secondary:hover:not(:disabled), .ne-btn--style-secondary:active {\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-gray-300));\n}\n.ne-btn--style-secondary:focus {\n color: rgb(var(--neeto-ui-gray-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-gray-800), 25%);\n}\n.ne-btn--style-secondary:focus-visible {\n color: rgb(var(--neeto-ui-gray-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-gray-800), 25%);\n}\n.ne-btn--style-text {\n color: rgb(var(--neeto-ui-gray-800));\n}\n.ne-btn--style-text:hover:not(:disabled), .ne-btn--style-text:active {\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-btn--style-text:focus {\n color: rgb(var(--neeto-ui-gray-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-gray-800), 15%);\n}\n.ne-btn--style-text:focus-visible {\n color: rgb(var(--neeto-ui-gray-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-gray-800), 15%);\n}\n.ne-btn--style-link {\n color: rgb(var(--neeto-ui-primary-500));\n padding: 0;\n}\n.ne-btn--style-link:hover:not(:disabled), .ne-btn--style-link:active, .ne-btn--style-link:focus {\n opacity: 0.8;\n color: rgb(var(--neeto-ui-primary-500));\n}\n.ne-btn--style-link:focus {\n opacity: 0.8;\n color: rgb(var(--neeto-ui-primary-500));\n}\n.ne-btn--style-link:focus-visible {\n opacity: 0.8;\n color: rgb(var(--neeto-ui-primary-500));\n}\n.ne-btn--style-danger {\n color: rgb(var(--neeto-ui-white));\n background-color: rgb(var(--neeto-ui-error-500));\n}\n.ne-btn--style-danger:hover:not(:disabled), .ne-btn--style-danger:active {\n color: rgb(var(--neeto-ui-white));\n background-color: rgb(var(--neeto-ui-error-600));\n}\n.ne-btn--style-danger:focus {\n color: rgb(var(--neeto-ui-white));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-error-500), 15%);\n}\n.ne-btn--style-danger:focus-visible {\n color: rgb(var(--neeto-ui-white));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-error-500), 15%);\n}\n.ne-btn--style-danger-text {\n color: rgb(var(--neeto-ui-error-800));\n}\n.ne-btn--style-danger-text:hover:not(:disabled), .ne-btn--style-danger-text:active {\n color: rgb(var(--neeto-ui-error-800));\n background-color: rgb(var(--neeto-ui-error-100));\n}\n.ne-btn--style-danger-text:focus {\n color: rgb(var(--neeto-ui-error-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-error-500), 15%);\n}\n.ne-btn--style-danger-text:focus-visible {\n color: rgb(var(--neeto-ui-error-800));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-error-500), 15%);\n}\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0;\n}\n[data-tippy-root] {\n max-width: calc(100vw - 10px);\n}\n.tippy-box {\n position: relative;\n background-color: rgb(var(--neeto-ui-gray-800));\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n font-size: var(--neeto-ui-text-xs);\n line-height: 1.4;\n outline: 0;\n transition-property: transform, visibility, opacity;\n}\n.tippy-box[data-placement^=top] > .tippy-arrow {\n bottom: 0;\n}\n.tippy-box[data-placement^=top] > .tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top;\n}\n.tippy-box[data-placement^=bottom] > .tippy-arrow {\n top: 0;\n}\n.tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom;\n}\n.tippy-box[data-placement^=left] > .tippy-arrow {\n right: 0;\n}\n.tippy-box[data-placement^=left] > .tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left;\n}\n.tippy-box[data-placement^=right] > .tippy-arrow {\n left: 0;\n}\n.tippy-box[data-placement^=right] > .tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right;\n}\n.tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);\n}\n.tippy-arrow {\n width: 16px;\n height: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n}\n.tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid;\n}\n.tippy-content {\n position: relative;\n padding: 4px 8px;\n z-index: 1;\n}\n[data-theme=neeto-editor-slash-menu] .tippy-content,\n[data-theme=neeto-editor-bubble-menu] .tippy-content {\n padding: 0 !important;\n}\n.tippy-box[data-placement^=top] > .tippy-svg-arrow {\n bottom: 0;\n}\n.tippy-box[data-placement^=top] > .tippy-svg-arrow:after,\n.tippy-box[data-placement^=top] > .tippy-svg-arrow > svg {\n top: 16px;\n transform: rotate(180deg);\n}\n.tippy-box[data-placement^=bottom] > .tippy-svg-arrow {\n top: 0;\n}\n.tippy-box[data-placement^=bottom] > .tippy-svg-arrow > svg {\n bottom: 16px;\n}\n.tippy-box[data-placement^=left] > .tippy-svg-arrow {\n right: 0;\n}\n.tippy-box[data-placement^=left] > .tippy-svg-arrow:after,\n.tippy-box[data-placement^=left] > .tippy-svg-arrow > svg {\n transform: rotate(90deg);\n top: calc(50% - 3px);\n left: 13px;\n}\n.tippy-box[data-placement^=right] > .tippy-svg-arrow {\n left: 0;\n}\n.tippy-box[data-placement^=right] > .tippy-svg-arrow:after,\n.tippy-box[data-placement^=right] > .tippy-svg-arrow > svg {\n transform: rotate(-90deg);\n top: calc(50% - 3px);\n right: 13px;\n}\n.tippy-svg-arrow {\n width: 16px;\n height: 16px;\n fill: rgb(var(--neeto-ui-gray-800));\n text-align: initial;\n}\n.tippy-svg-arrow,\n.tippy-svg-arrow > svg {\n position: absolute;\n}\n.tippy-svg-arrow > svg > path {\n fill: rgb(var(--neeto-ui-gray-800));\n}\n.tippy-box[data-theme~=light] .tippy-svg-arrow > svg > path {\n fill: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light] {\n color: rgb(var(--neeto-ui-gray-800));\n box-shadow: var(--neeto-ui-shadow-s);\n background-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light][data-placement^=top] > .tippy-arrow:before {\n border-top-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light][data-placement^=bottom] > .tippy-arrow:before {\n border-bottom-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light][data-placement^=left] > .tippy-arrow:before {\n border-left-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light][data-placement^=right] > .tippy-arrow:before {\n border-right-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light] > .tippy-backdrop {\n background-color: rgb(var(--neeto-ui-white));\n}\n.tippy-box[data-theme~=light] > .tippy-svg-arrow {\n fill: rgb(var(--neeto-ui-white));\n}\n.ne-input__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n flex-grow: 1;\n}\n.ne-input__wrapper .ne-input__label-wrapper {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n width: 100%;\n}\n.ne-input__wrapper .ne-input__label-wrapper .ne-label {\n flex-grow: 1;\n overflow-wrap: break-word;\n}\n.ne-input__wrapper .ne-input__label-wrapper .ne-input__max-length {\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n margin-bottom: 8px;\n margin-left: auto;\n}\n.ne-input__wrapper .ne-input__label-wrapper .ne-input__max-length.ne-input__max-length--error {\n color: rgb(var(--neeto-ui-error-800));\n}\n.ne-input__wrapper .ne-label {\n margin-bottom: 8px;\n}\n.ne-input__wrapper .ne-input {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n font-size: var(--neeto-ui-text-sm);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded);\n border: thin solid rgb(var(--neeto-ui-gray-400));\n background-color: rgb(var(--neeto-ui-white));\n color: rgb(var(--neeto-ui-gray-800));\n overflow: hidden;\n}\n.ne-input__wrapper .ne-input input,\n.ne-input__wrapper .ne-input textarea {\n width: 100%;\n background-color: transparent;\n color: inherit;\n border: none;\n font-size: inherit;\n box-shadow: none;\n outline: none;\n}\n.ne-input__wrapper .ne-input input::-moz-placeholder, .ne-input__wrapper .ne-input textarea::-moz-placeholder {\n color: rgb(var(--neeto-ui-gray-400));\n}\n.ne-input__wrapper .ne-input input::placeholder,\n.ne-input__wrapper .ne-input textarea::placeholder {\n color: rgb(var(--neeto-ui-gray-400));\n}\n.ne-input__wrapper .ne-input input:focus,\n.ne-input__wrapper .ne-input textarea:focus {\n outline-color: transparent;\n}\n.ne-input__wrapper .ne-input input {\n line-height: 1.2;\n}\n.ne-input__wrapper .ne-input textarea {\n padding: 0;\n max-height: 224px;\n overflow-y: auto;\n line-height: 1.5;\n}\n.ne-input__wrapper .ne-input:hover:not(.ne-input--naked, .ne-input--error, .ne-input--disabled) {\n border-color: rgb(var(--neeto-ui-gray-700));\n}\n.ne-input__wrapper .ne-input:focus-within:not(.ne-input--naked, .ne-input--error) {\n border-color: rgb(var(--neeto-ui-primary-500));\n box-shadow: 0 0 0 3px rgba(var(--neeto-ui-primary-500), 15%);\n}\n.ne-input__wrapper .ne-input:focus-within:not(.ne-input--naked, .ne-input--error) .ne-input__prefix,\n.ne-input__wrapper .ne-input:focus-within:not(.ne-input--naked, .ne-input--error) .ne-input__suffix {\n color: rgb(var(--neeto-ui-gray-800));\n}\n.ne-input__wrapper .ne-input.ne-input--error {\n border-color: rgb(var(--neeto-ui-error-500));\n}\n.ne-input__wrapper .ne-input.ne-input--error:focus-within:not(.ne-input--naked) {\n box-shadow: 0 0 0 3px rgb(var(--neeto-ui-error-100));\n}\n.ne-input__wrapper .ne-input.ne-input--error textarea {\n resize: none;\n}\n.ne-input__wrapper .ne-input.ne-input--disabled {\n background-color: rgb(var(--neeto-ui-gray-100));\n cursor: not-allowed;\n}\n.ne-input__wrapper .ne-input.ne-input--disabled input {\n cursor: not-allowed;\n}\n.ne-input__wrapper .ne-input.ne-input--disabled textarea {\n cursor: not-allowed;\n}\n.ne-input__wrapper .ne-input.ne-input--small input {\n padding: 4px 8px;\n min-height: 26px;\n}\n.ne-input__wrapper .ne-input.ne-input--small .ne-input__prefix {\n margin-left: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--small .ne-input__suffix {\n margin-right: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--small.ne-input--textarea {\n padding: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--medium input {\n padding: 5px 8px;\n min-height: 30px;\n}\n.ne-input__wrapper .ne-input.ne-input--medium .ne-input__prefix {\n margin-left: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--medium .ne-input__suffix {\n margin-right: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--medium.ne-input--textarea {\n padding: 8px;\n}\n.ne-input__wrapper .ne-input.ne-input--large input {\n padding: 8px 12px;\n min-height: 38px;\n}\n.ne-input__wrapper .ne-input.ne-input--large .ne-input__prefix {\n margin-left: 12px;\n}\n.ne-input__wrapper .ne-input.ne-input--large .ne-input__suffix {\n margin-right: 12px;\n}\n.ne-input__wrapper .ne-input.ne-input--large.ne-input--textarea {\n padding: 12px;\n}\n.ne-input__wrapper .ne-input.ne-input--naked {\n border: none;\n box-shadow: none;\n padding-left: 0;\n padding-right: 0;\n}\n.ne-input__wrapper .ne-input.ne-input--naked input {\n padding-left: 0;\n padding-right: 0;\n}\n.ne-input__wrapper .ne-input.ne-input--naked .ne-input__prefix {\n margin-left: 0;\n}\n.ne-input__wrapper .ne-input.ne-input--naked .ne-input__suffix {\n margin-right: 0;\n}\n.ne-input__wrapper .ne-input__prefix,\n.ne-input__wrapper .ne-input__suffix {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-700));\n}\n.ne-input__wrapper .ne-input__prefix svg,\n.ne-input__wrapper .ne-input__suffix svg {\n width: 16px;\n height: 16px;\n}\n.ne-input__wrapper .ne-input--block-add-on .ne-input__prefix,\n.ne-input__wrapper .ne-input--block-add-on .ne-input__suffix {\n margin: 0;\n padding: 8px 12px;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.ne-input__wrapper .ne-input--block-add-on .ne-input__prefix {\n border-right: thin solid rgb(var(--neeto-ui-gray-400));\n}\n.ne-input__wrapper .ne-input--block-add-on .ne-input__suffix {\n border-left: thin solid rgb(var(--neeto-ui-gray-400));\n}\n.ne-input__help-text {\n margin-top: 8px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-600));\n line-height: 1.1;\n}\n.ne-input__error {\n margin-top: 8px;\n line-height: 1.1;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-error-800));\n}\n.ne-label {\n display: flex;\n align-items: center;\n}\n:root {\n --neeto-ui-modal-spacing: 24px;\n}\n.ne-modal__backdrop {\n position: fixed;\n z-index: var(--neeto-ui-modal-z-index);\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n overflow-y: auto;\n overflow-x: hidden;\n display: grid;\n justify-content: center;\n align-items: center;\n transition: all 0.3s;\n background-color: rgba(27, 31, 35, 0.8666666667);\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n}\n.ne-modal__backdrop .ne-modal__wrapper {\n width: 50%;\n max-width: 100%;\n position: relative;\n background-color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded-xl);\n opacity: 0;\n transform: scale(1.1);\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n animation: showModalWrapper 0.3s forwards;\n}\n@keyframes showModalWrapper {\n 0% {\n opacity: 0;\n transform: scale(1.1);\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n -webkit-backdrop-filter: blur(0px);\n backdrop-filter: blur(0px);\n }\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-modal__close {\n position: absolute;\n top: var(--neeto-ui-modal-spacing);\n right: var(--neeto-ui-modal-spacing);\n}\n.ne-modal__backdrop .ne-modal__wrapper.ne-modal__wrapper--small {\n width: 320px;\n}\n.ne-modal__backdrop .ne-modal__wrapper.ne-modal__wrapper--medium {\n width: 480px;\n}\n.ne-modal__backdrop .ne-modal__wrapper.ne-modal__wrapper--large {\n width: 720px;\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-modal__header {\n padding: var(--neeto-ui-modal-spacing) 64px 16px var(--neeto-ui-modal-spacing);\n overflow-wrap: break-word;\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-modal__header-desc {\n margin-top: 8px;\n color: rgb(var(--neeto-ui-gray-700));\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-modal__body {\n padding: 0 var(--neeto-ui-modal-spacing);\n font-size: var(--neeto-ui-text-sm);\n line-height: 1.5;\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-modal__footer {\n padding: var(--neeto-ui-modal-spacing);\n}\n.ne-modal__backdrop .ne-modal__wrapper .ne-alert__footer {\n padding: var(--neeto-ui-modal-spacing);\n display: flex;\n}\n.ne-modal__backdrop .ne-icon__wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-bottom: var(--neeto-ui-modal-spacing);\n padding: 10px 0 0 2px;\n}\n.ne-modal-enter.ne-modal__backdrop {\n opacity: 0;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n}\n.ne-modal-enter-active.ne-modal__backdrop,\n.ne-modal-enter-done.ne-modal__backdrop {\n opacity: 1;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n}\n.ne-modal-exit.ne-modal__backdrop {\n opacity: 1;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n}\n.ne-modal-exit-active.ne-modal__backdrop {\n opacity: 0;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n}\n.neeto-editor-loader {\n width: 100%;\n height: 32px;\n display: flex;\n align-items: center;\n text-align: center;\n}\n.neeto-editor-loader__spinner-icon {\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: var(--neeto-ui-rounded-full);\n border: solid 2px var(--neeto-ui-gray-200);\n border-top-color: var(--neeto-ui-gray-800);\n border-left-color: var(--neeto-ui-gray-800);\n animation: spin 600ms linear infinite;\n margin: 1px auto;\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item .ne-avatar--container {\n margin-right: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 0.2em 0.4em;\n font-size: 85%;\n border-radius: 6px;\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image {\n display: inline-block;\n border: 1.5px solid rgb(var(--neeto-ui-pastel-blue));\n margin: 0 12px;\n}\n.neeto-editor__image figure {\n margin: 16px 12px;\n outline: none;\n}\n.neeto-editor__image figure img {\n height: 100%;\n width: 100%;\n -webkit-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.neeto-editor__image figure figcaption {\n color: rgb(var(--neeto-ui-gray-700));\n text-align: center;\n}\n.neeto-editor__image-defaults {\n width: -moz-fit-content;\n width: fit-content;\n}\n.neeto-editor__image--none {\n display: flex;\n justify-content: center;\n}\n.neeto-editor__image--left {\n float: left;\n margin-left: 0;\n}\n.neeto-editor__image--right {\n float: right;\n margin-right: 0;\n}\n.neeto-editor__image--center {\n margin: 0 auto;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-gray-100));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -32px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link-wrapper .ne-dropdown__popup {\n padding: 8px;\n width: 100%;\n max-width: 400px;\n}\n.neeto-editor-link-wrapper .ne-dropdown__popup .neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n}\n.neeto-editor-font-size-wrapper .ne-dropdown__popup-menu {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 4px;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor-image-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.neeto-editor-image-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__progress-title, .neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__progress-file, .neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-secondary-indigo));\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-secondary-indigo));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.neeto-editor-image-uploader .neeto-editor-image-uploader__dnd-wrapper .neeto-editor-image-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .ne-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.neeto-editor-image-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-secondary-indigo, 0.2));\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-secondary-indigo));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .ne-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-image-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.neeto-editor-image-editor figure {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n}\n.neeto-editor-image-editor figure img {\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.neeto-editor-image-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.neeto-editor-image-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.neeto-editor-image-editor .ne-input__wrapper {\n width: 100%;\n}\n.neeto-editor-image-editor .neeto-editor-image-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});export{wU as Editor,MH as EditorContent,bU as Menu};