From 027e3a29582769468b02092c6b0fea418b0f57b5 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Thu, 21 Nov 2024 14:35:38 +0800 Subject: [PATCH] build: v1.2.7 release (^.^)YYa!! --- dist/index.cjs | 232 +- dist/index.d.ts | 5 +- dist/index.js | 11308 ++++++++++++++++--------------- dist/style.css | 2 +- src/extensions/CodeBlockExt.ts | 2 +- src/extensions/ImageExt.ts | 2 +- 6 files changed, 5877 insertions(+), 5674 deletions(-) diff --git a/dist/index.cjs b/dist/index.cjs index 2e7e9fe..095bac6 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -1,16 +1,16 @@ -"use strict";var _E=Object.defineProperty;var Lu=t=>{throw TypeError(t)};var mE=(t,e,n)=>e in t?_E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>mE(t,typeof e!="symbol"?e+"":e,n),ku=(t,e,n)=>e.has(t)||Lu("Cannot "+n);var Or=(t,e,n)=>(ku(t,e,"read from private field"),n?n.call(t):e.get(t)),Pu=(t,e,n)=>e.has(t)?Lu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Fu=(t,e,n,r)=>(ku(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ze(t){this.content=t}Ze.prototype={constructor:Ze,find:function(t){for(var e=0;e>1}};Ze.from=function(t){if(t instanceof Ze)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ze(e)};function Z_(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=Z_(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function X_(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=t.child(--i),s=e.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let c=0,u=Math.min(a.text.length,s.text.length);for(;ce&&r(l,i+s,o||null,a)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",a=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);oe)for(let o=0,a=0;ae&&((an)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new L(r,i)}cutByIndex(e,n){return e==n?L.empty:e==0&&n==this.content.length?this:new L(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new L(i,o)}addToStart(e){return new L([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new L(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),a=i+o.nodeSize;if(a>=e)return a==e||n>0?vo(r+1,a):vo(r,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return L.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new L(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return L.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-i.type.rank),n}};Re.none=[];class aa extends Error{}class H{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=J_(this.content,e+this.openStart,n);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,n){return new H(j_(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return H.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(L.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new H(e,r,i)}}H.empty=new H(L.empty,0,0);function j_(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(i==e||o.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(j_(o.content,e-i-1,n-i-1)))}function J_(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),a=t.maybeChild(i);if(o==e||a.isText)return t.cut(0,e).append(n).append(t.cut(e));let s=J_(a.content,e-o-1,n);return s&&t.replaceChild(i,a.copy(s))}function fE(t,e,n){if(n.openStart>t.depth)throw new aa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new aa("Inconsistent open depths");return em(t,e,n,0)}function em(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ii(t,e,n,r){let i=(e||t).node(n),o=0,a=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(or(t.nodeAfter,r),o++));for(let s=o;si&&Nl(t,e,i+1),a=r.depth>i&&Nl(n,r,i+1),s=[];return Ii(null,t,i,s),o&&a&&e.index(i)==n.index(i)?(tm(o,a),or(ar(o,nm(t,e,n,r,i+1)),s)):(o&&or(ar(o,sa(t,e,i+1)),s),Ii(e,n,i,s),a&&or(ar(a,sa(n,r,i+1)),s)),Ii(r,null,i,s),new L(s)}function sa(t,e,n){let r=[];if(Ii(null,t,n,r),t.depth>n){let i=Nl(t,e,n+1);or(ar(i,sa(t,e,n+1)),r)}return Ii(e,null,n,r),new L(r)}function gE(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(L.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Gi{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new la(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=e;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(r.push(a,s,i+l),!c||(a=a.child(s),a.isText))break;o=c-1,i+=l+1}return new Gi(n,r,o)}static resolveCached(e,n){let r=Bu.get(e);if(r)for(let o=0;oe&&this.nodesBetween(e,n,o=>(r.isInSet(o.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()+")"),rm(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=L.empty,i=0,o=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=L.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};sr.prototype.text=void 0;class ca extends sr{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):rm(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ca(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ca(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function rm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new bE(e,n);if(r.next==null)return mr.empty;let i=im(r);r.next&&r.err("Unexpected trailing text");let o=NE(OE(i));return AE(o,r),o}matchType(e){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a"+e.indexOf(r.next[a].next);return o}).join(` -`)}}mr.empty=new mr(!0);class bE{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function im(t){let e=[];do e.push(TE(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function TE(t){let e=[];do e.push(CE(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function CE(t){let e=RE(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=yE(t,e);else break;return e}function Uu(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function yE(t,e){let n=Uu(t),r=n;return t.eat(",")&&(t.next!="}"?r=Uu(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function vE(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.groups.indexOf(e)>-1&&i.push(a)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function RE(t){if(t.eat("(")){let e=im(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=vE(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function OE(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(a,s,l){let c={term:l,to:s};return e[a].push(c),c}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;i(c,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c{t[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new mr(r.indexOf(t.length-1)>-1);for(let a=0;a-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[o]=new um(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function IE(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}class xE{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?IE(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Ja{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=cm(e,i.attrs),this.excluded=null;let o=am(this.attrs);this.instance=o?new Re(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Re(this,sm(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,a)=>r[o]=new Ja(o,i++,n,a)),r}removeFromSet(e){for(var n=0;n-1}}class dm{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Ze.from(e.nodes),n.marks=Ze.from(e.marks||{}),this.nodes=Gu.compile(this.spec.nodes,this),this.marks=Ja.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=mr.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?Vu(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:Vu(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Gu){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new ca(r,r.defaultAttrs,e,Re.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return sr.fromJSON(this,e)}markFromJSON(e){return Re.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Vu(t,e){let n=[];for(let r=0;r-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function DE(t){return t.tag!=null}function ME(t){return t.style!=null}let Wr=class Il{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(DE(i))this.tags.push(i);else if(ME(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new zu(this,n,!1);return r.addAll(e,Re.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new zu(this,n,!0);return r.addAll(e,Re.none,n.from,n.to),H.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a{r(a=$u(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=$u(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Il(e,Il.schemaRules(e)))}};const pm={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},wE={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_m={ol:!0,ul:!0},ua=1,da=2,xi=4;function Yu(t,e,n){return e!=null?(e?ua:0)|(e==="full"?da:0):t&&t.whitespace=="pre"?ua|da:n&~xi}class Ro{constructor(e,n,r,i,o,a){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Re.none,this.match=o||(a&xi?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(L.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&ua)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=L.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(L.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!pm.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class zu{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,a=Yu(null,n.preserveWhitespace,0)|(r?xi:0);i?o=new Ro(i.type,i.attrs,Re.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new Ro(null,null,Re.none,!0,null,a):o=new Ro(e.schema.topNodeType,null,Re.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top;if(i.options&da||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&ua)i.options&da?r=r.replace(/\r\n?/g,` -`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],a=e.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=e.nodeName.toLowerCase(),o;_m.hasOwnProperty(i)&&this.parser.normalizeLists&&LE(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));if(a?a.ignore:wE.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let s,l=this.top,c=this.needsBlock;if(pm.hasOwnProperty(i))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let u=a&&a.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),s&&this.sync(l),this.needsBlock=c}else{let s=this.readStyles(e,n);s&&this.addElementByRule(e,a,s,a.consuming===!1?o:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` -`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(e,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r)||this.leafFallback(e,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r)}o&&this.sync(s)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let a=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,n);this.findAtPoint(e,o)}findPlace(e,n){let r,i;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(e);if(s&&(!r||r.length>s.length)&&(r=s,i=a,!s.length)||a.solid)break}if(!r)return null;this.sync(i);for(let o=0;o(a.type?a.type.allowsMarkType(c.type):qu(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Ro(e,n,l,i,null,s)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function LE(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&_m.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function kE(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function $u(t){let e={};for(let n in t)e[n]=t[n];return e}function qu(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],a=s=>{o.push(s);for(let l=0;l{if(o.length||a.marks.length){let s=0,l=0;for(;s=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Zo(Ms(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Zo(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Cr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Wu(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Wu(e.marks)}}function Wu(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Ms(t){return t.document||window.document}const Ku=new WeakMap;function PE(t){let e=Ku.get(t);return e===void 0&&Ku.set(t,e=FE(t)),e}function FE(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:_,contentDOM:m}=Zo(t,p,n,r);if(l.appendChild(_),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}const mm=65535,fm=Math.pow(2,16);function BE(t,e){return t+e*fm}function Qu(t){return t&mm}function UE(t){return(t-(t&mm))/fm}const gm=1,hm=2,Xo=4,Em=8;class xl{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Em)>0}get deletedBefore(){return(this.delInfo&(gm|Xo))>0}get deletedAfter(){return(this.delInfo&(hm|Xo))>0}get deletedAcross(){return(this.delInfo&Xo)>0}}class Ct{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Ct.empty)return Ct.empty}recover(e){let n=0,r=Qu(e);if(!this.inverted)for(let i=0;ie)break;let c=this.ranges[s+o],u=this.ranges[s+a],d=l+c;if(e<=d){let p=c?e==l?-1:e==d?1:n:n,_=l+i+(p<0?0:u);if(r)return _;let m=e==(n<0?l:d)?null:BE(s/3,e-l),f=e==l?hm:e==d?gm:Xo;return(n<0?e!=l:e!=d)&&(f|=Em),new xl(_,f,m)}i+=u-c}return r?e+i:new xl(e+i,0,null)}touches(e,n){let r=0,i=Qu(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;se)break;let c=this.ranges[s+o],u=l+c;if(e<=u&&s==i*3)return!0;r+=this.ranges[s+a]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Kr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;ro&&l!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Pe.fromReplace(e,this.from,this.to,o)}invert(){return new Zt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Dn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Dn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Dn(n.from,n.to,e.markFromJSON(n.mark))}}ot.jsonID("addMark",Dn);class Zt extends ot{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new H(hc(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Pe.fromReplace(e,this.from,this.to,r)}invert(){return new Dn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Zt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Zt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Zt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Zt(n.from,n.to,e.markFromJSON(n.mark))}}ot.jsonID("removeMark",Zt);class Mn extends ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Pe.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Pe.fromReplace(e,this.pos,this.pos+1,new H(L.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new ze(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ze(n.from,n.to,n.gapFrom,n.gapTo,H.fromJSON(e,n.slice),n.insert,!!n.structure)}}ot.jsonID("replaceAround",ze);function Dl(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function HE(t,e,n,r){let i=[],o=[],a,s;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let p=Math.max(c,e),_=Math.min(c+l.nodeSize,n),m=r.addToSet(d);for(let f=0;ft.step(l)),o.forEach(l=>t.step(l))}function GE(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof Ja){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let u=0;ut.step(new Zt(a.from,a.to,a.style)))}function Sm(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l=0;l--)t.step(a[l])}function VE(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function _i(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),o=t.$from.index(r),a=t.$to.indexAfter(r);if(rn;m--)f||r.index(m)>0?(f=!0,u=L.from(r.node(m).copy(u)),d++):l--;let p=L.empty,_=0;for(let m=o,f=!1;m>n;m--)f||i.after(m+1)=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=L.from(n[a].type.create(n[a].attrs,r))}let i=e.start,o=e.end;t.step(new ze(i,o,i,o,new H(r,0,0),n.length,!0))}function WE(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&ZE(t.doc,t.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let _=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);_&&!m?c=!1:!_&&m&&(c=!0)}c===!1&&QE(t,a,s,o),Sm(t,t.mapping.slice(o).map(s,1),r,void 0,c===null);let u=t.mapping.slice(o),d=u.map(s,1),p=u.map(s+a.nodeSize,1);return t.step(new ze(d,p,d+1,p-1,new H(L.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&KE(t,a,s,o),!1}})}function KE(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+a.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function QE(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=t.mapping.slice(r).map(n+1+o);t.replaceWith(a,a+1,e.type.schema.text(` -`))}})}function ZE(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function XE(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ze(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new H(L.from(a),0,0),1,!0))}function Qr(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),p=i.index(c);if(d.type.spec.isolating)return!1;let _=d.content.cutByIndex(p,d.childCount),m=r&&r[u+1];m&&(_=_.replaceChild(0,m.type.create(m.attrs)));let f=r&&r[u]||d;if(!d.canReplace(p+1,d.childCount)||!f.type.validContent(_))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function jE(t,e,n=1,r){let i=t.doc.resolve(e),o=L.empty,a=L.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=L.from(i.node(s).copy(o));let u=r&&r[c];a=L.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}t.step(new Ue(e,e,new H(o.append(a),n,n),!0))}function zn(t,e){let n=t.resolve(e),r=n.index();return bm(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function bm(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function es(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let o,a,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&bm(o,a)&&r.node(i).canReplace(s,s+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function JE(t,e,n){let r=new Ue(e-n,e+n,H.empty,!0);t.step(r)}function eS(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),c=r.node(a),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function ts(t,e,n=e,r=H.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return Cm(i,o,r)?new Ue(e,n,r):new tS(i,o,r).fit()}function Cm(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class tS{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=L.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=L.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new H(o,a,s);return e>-1?new ze(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Ue(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=Ls(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(L.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=Ls(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new H(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=Ls(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new H(Oi(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new H(Oi(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let f=0;f1||l==0||f.content.size)&&(d=g,u.push(ym(f.mark(p.allowedMarks(f.marks)),c==1?l:0,c==s.childCount?_:-1)))}let m=c==s.childCount;m||(_=-1),this.placed=Ni(this.placed,n,L.from(u)),this.frontier[n].match=d,m&&_<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let f=0,g=s;f<_;f++){let E=g.lastChild;this.frontier.push({type:E.type,match:E.contentMatchAt(E.childCount)}),g=E.content}this.unplaced=m?e==0?H.empty:new H(Oi(a.content,e-1,1),e-1,_<0?a.openEnd:e-1):new H(Oi(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!ks(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n=0;s--){let{match:l,type:c}=this.frontier[s],u=ks(e,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ni(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Ni(this.placed,this.depth,L.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(L.empty,!0);n.childCount&&(this.placed=Ni(this.placed,this.frontier.length,n))}}function Oi(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Oi(t.firstChild.content,e-1,n)))}function Ni(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ni(t.lastChild.content,e-1,n)))}function Ls(t,e){for(let n=0;n1&&(r=r.replaceChild(0,ym(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(L.empty,!0)))),t.copy(r)}function ks(t,e,n,r,i){let o=t.node(e),a=i?t.indexAfter(e):t.index(e);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!nS(n,o.content,a)?s:null}function nS(t,e,n){for(let r=n;r0;p--,_--){let m=i.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?s=p:i.before(p)==_&&a.splice(1,0,-p)}let l=a.indexOf(s),c=[],u=r.openStart;for(let p=r.content,_=0;;_++){let m=p.firstChild;if(c.push(m),_==r.openStart)break;p=m.content}for(let p=u-1;p>=0;p--){let _=c[p],m=rS(_.type);if(m&&!_.sameMarkup(i.node(Math.abs(s)-1)))u=p;else if(m||!_.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let _=(p+u+1)%(r.openStart+1),m=c[_];if(m)for(let f=0;f=0&&(t.replace(e,n,r),!(t.steps.length>d));p--){let _=a[p];_<0||(e=i.before(_),n=o.after(_))}}function vm(t,e,n,r,i){if(er){let o=i.contentMatchAt(0),a=o.fillBefore(t).append(t);t=a.append(o.matchFragment(a).fillBefore(L.empty,!0))}return t}function oS(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=eS(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new H(L.from(r),0,0))}function aS(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=Rm(r,i);for(let a=0;a0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a)return t.delete(r.before(a),n);t.delete(e,n)}function Rm(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(oe.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}class Zr extends ot{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Pe.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Pe.fromReplace(e,this.pos,this.pos+1,new H(L.from(i),0,n.isLeaf?0:1))}getMap(){return Ct.empty}invert(e){return new Zr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Zr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Zr(n.pos,n.attr,n.value)}}ot.jsonID("attr",Zr);class Vi extends ot{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Pe.ok(r)}getMap(){return Ct.empty}invert(e){return new Vi(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Vi(n.attr,n.value)}}ot.jsonID("docAttr",Vi);let ei=class extends Error{};ei=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};ei.prototype=Object.create(Error.prototype);ei.prototype.constructor=ei;ei.prototype.name="TransformError";class Sc{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Kr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ei(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=H.empty){let i=ts(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new H(L.from(r),0,0))}delete(e,n){return this.replace(e,n,H.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return iS(this,e,n,r),this}replaceRangeWith(e,n,r){return oS(this,e,n,r),this}deleteRange(e,n){return aS(this,e,n),this}lift(e,n){return YE(this,e,n),this}join(e,n=1){return JE(this,e,n),this}wrap(e,n){return qE(this,e,n),this}setBlockType(e,n=e,r,i=null){return WE(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return XE(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new Zr(e,n,r)),this}setDocAttribute(e,n){return this.step(new Vi(e,n)),this}addNodeMark(e,n){return this.step(new Mn(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Re)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Jr(e,n)),this}split(e,n=1,r){return jE(this,e,n,r),this}addMark(e,n,r){return HE(this,e,n,r),this}removeMark(e,n,r){return GE(this,e,n,r),this}clearIncompatible(e,n,r){return Sm(this,e,n,r),this}}const Ps=Object.create(null);class te{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Om(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;o--){let a=n<0?Pr(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):Pr(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Dt(e.node(0))}static atStart(e){return Pr(e,e,0,0,1)||new Dt(e)}static atEnd(e){return Pr(e,e,e.content.size,e.childCount,-1)||new Dt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Ps[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Ps)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ps[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Z.between(this.$anchor,this.$head).getBookmark()}}te.prototype.visible=!0;class Om{constructor(e,n){this.$from=e,this.$to=n}}let Xu=!1;function ju(t){!Xu&&!t.parent.inlineContent&&(Xu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Z extends te{constructor(e,n=e){ju(e),ju(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return te.near(r);let i=e.resolve(n.map(this.anchor));return new Z(i.parent.inlineContent?i:r,r)}replace(e,n=H.empty){if(super.replace(e,n),n==H.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Z&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ns(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Z(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=te.findFrom(n,r,!0)||te.findFrom(n,-r,!0);if(o)n=o.$head;else return te.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(te.findFrom(e,-r,!0)||te.findFrom(e,r,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let s=e.child(a);if(s.isAtom){if(!o&&ee.isSelectable(s))return ee.create(t,n-(i<0?s.nodeSize:0))}else{let l=Pr(t,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function Ju(t,e,n){let r=t.steps.length-1;if(r{a==null&&(a=u)}),t.setSelection(te.near(t.doc.resolve(a),n))}const ed=1,Oo=2,td=4;class lS extends Sc{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.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Oo,this}ensureMarks(e){return Re.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&Oo)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Oo,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Re.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),this.selection.empty||this.setSelection(te.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=td,this}get scrolledIntoView(){return(this.updated&td)>0}}function nd(t,e){return!e||!t?t:t.bind(e)}class Ai{constructor(e,n,r){this.name=e,this.init=nd(n.init,r),this.apply=nd(n.apply,r)}}const cS=[new Ai("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ai("selection",{init(t,e){return t.selection||te.atStart(e.doc)},apply(t){return t.selection}}),new Ai("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ai("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Fs{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=cS.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ai(r.key,r.spec.state,r))})}}class Vr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Fs(e.schema,e.plugins),o=new Vr(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=sr.fromJSON(e.schema,n.doc);else if(a.name=="selection")o.selection=te.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,e,n[s],o);return}}o[a.name]=a.init(e,o)}}),o}}function Nm(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Nm(i,e,{})),n[r]=i}return n}class be{constructor(e){this.spec=e,this.props={},e.props&&Nm(e.props,this,this.props),this.key=e.key?e.key.key:Am("plugin")}getState(e){return e[this.key]}}const Bs=Object.create(null);function Am(t){return t in Bs?t+"$"+ ++Bs[t]:(Bs[t]=0,t+"$")}class ve{constructor(e="key"){this.key=Am(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Xe=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Yi=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Ml=null;const pn=function(t,e,n){let r=Ml||(Ml=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},uS=function(){Ml=null},fr=function(t,e,n,r){return n&&(rd(t,e,n,r,-1)||rd(t,e,n,r,1))},dS=/^(img|br|input|textarea|hr)$/i;function rd(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:It(t))){let o=t.parentNode;if(!o||o.nodeType!=1||uo(t)||dS.test(t.nodeName)||t.contentEditable=="false")return!1;e=Xe(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?It(t):0}else return!1}}function It(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function pS(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=It(t)}else if(t.parentNode&&!uo(t))e=Xe(t),t=t.parentNode;else return null}}function _S(t,e){for(;;){if(t.nodeType==3&&e2),At=ti||(tn?/Mac/.test(tn.platform):!1),hS=tn?/Win/.test(tn.platform):!1,Ut=/Android \d/.test($n),po=!!id&&"webkitFontSmoothing"in id.documentElement.style,ES=po?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function SS(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function ln(t,e){return typeof t=="number"?t:t[e]}function bS(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function od(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let a=n||t.dom;a;a=Yi(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,c=l?SS(o):bS(s),u=0,d=0;if(e.topc.bottom-ln(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+ln(i,"top")-c.top:e.bottom-c.bottom+ln(i,"bottom")),e.leftc.right-ln(r,"right")&&(u=e.right-c.right+ln(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let p=s.scrollLeft,_=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let m=s.scrollLeft-p,f=s.scrollTop-_;e={left:e.left-m,top:e.top-f,right:e.right-m,bottom:e.bottom-f}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function TS(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Dm(t.dom)}}function Dm(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Yi(r));return e}function CS({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Mm(n,r==0?0:r-e)}function Mm(t,e){for(let n=0;n=s){a=Math.max(m.bottom,a),s=Math.min(m.top,s);let f=m.left>e.left?m.left-e.left:m.right=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!l&&m.left<=e.left&&m.right>=e.left&&(l=u,c={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?vS(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:wm(n,i)}function vS(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function Tc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function RS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function NS(t,e,n,r){let i=-1;for(let o=e,a=!1;o!=t.dom;){let s=t.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:t.docView.posFromDOM(e,n,-1)}function Lm(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&i++}let c;po&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=NS(t,r,i,e))}s==null&&(s=OS(t,a,e));let l=t.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function ad(t){return t.top=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,Si(Cn(pn(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==It(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return Us(l.getBoundingClientRect(),!1)}if(o==null&&i=0)}if(o==null&&i&&(n<0||i==It(r))){let l=r.childNodes[i-1],c=l.nodeType==3?pn(l,It(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Si(Cn(c,1),!1)}if(o==null&&i=0)}function Si(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Us(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Pm(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function xS(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return Pm(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=km(t,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=pn(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const DS=/[\u0590-\u08ac]/;function MS(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=t.domSelection();return s?!DS.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Pm(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),p=s.caretBidiLevel;s.modify("move",n,"character");let _=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:f}=t.domSelectionRange(),g=m&&!_.contains(m.nodeType==1?m:m.parentNode)||l==m&&c==f;try{s.collapse(u,d),l&&(l!=u||c!=d)&&s.extend&&s.extend(l,c)}catch{}return p!=null&&(s.caretBidiLevel=p),g}):r.pos==r.start()||r.pos==r.end()}let sd=null,ld=null,cd=!1;function wS(t,e,n){return sd==e&&ld==n?cd:(sd=e,ld=n,cd=n=="up"||n=="down"?xS(t,e,n):MS(t,e,n))}const Mt=0,ud=1,nr=2,nn=3;class _o{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Mt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nXe(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||a instanceof Bm){i=e-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Fm&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Xe(o.dom)+1:0}}else{let o,a=!0;for(;o=r=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=a;for(let d=s;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){i=Xe(p.dom)+1;break}e-=p.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u_&&an){let _=s;s=l,l=_}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i=r:er){let s=r+o.border,l=a-o.border;if(e>=s&&n<=l){this.dirty=e==r||n==a?nr:ud,e==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=nn:o.markDirty(e-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?nr:nn}r=a}this.dirty=nr}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?nr:ud;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Mt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class LS extends _o{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class gr extends _o{constructor(e,n,r,i){super(e,[],r,i),this.mark=n}static create(e,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Cr.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new gr(e,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&nn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=nn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Mt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=Fl(o,0,e,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Cr.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let p=u;return u=Gm(u,r,n),c?l=new kS(e,n,r,i,u,d||null,p,c,o,a+1):n.isText?new is(e,n,r,i,u,p,o):new Un(e,n,r,i,u,d||null,p,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>L.empty)}return e}matchesNode(e,n,r){return this.dirty==Mt&&e.eq(this.node)&&pa(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new FS(this,a&&a.node,e);HS(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Re.none:this.node.child(u).marks,r,e),l.placeWidget(c,e,i)},(c,u,d,p)=>{l.syncToMarks(c.marks,r,e);let _;l.findNodeMatch(c,u,d,p)||s&&e.state.selection.from>i&&e.state.selection.to-1&&l.updateNodeAt(c,u,d,_,e)||l.updateNextNode(c,u,d,e,p,i)||l.addNode(c,u,d,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==nr)&&(a&&this.protectLocalComposition(e,a),Um(this.contentDOM,this.children,e),ti&&GS(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof Z)||rn+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=VS(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new LS(this,o,n,i);e.input.compositionNodes.push(a),this.children=Fl(this.children,r,r+i.length,e,a)}update(e,n,r,i){return this.dirty==nn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Mt}updateOuterDeco(e){if(pa(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Hm(this.dom,this.nodeDOM,Pl(this.outerDeco,this.node,n),Pl(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function dd(t,e,n,r,i){Gm(r,e,t);let o=new Un(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class is extends Un{constructor(e,n,r,i,o,a,s){super(e,n,r,i,o,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==nn||this.dirty!=Mt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Mt||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=Mt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new is(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=nn)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Bm extends _o{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Mt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class kS extends Un{constructor(e,n,r,i,o,a,s,l,c,u){super(e,n,r,i,o,a,s,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==nn)return!1;if(this.spec.update){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Um(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,e.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=gr.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof gr)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function US(t,e){return t.type.side-e.type.side}function HS(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;co;)s.push(i[a++]);let m=o+p.nodeSize;if(p.isText){let g=m;a!g.inline):s.slice();r(p,f,e.forChild(o,p),_),o=m}}function GS(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function VS(t,e,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let c=s=0&&c+e.length+s>=n)return s+c;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}function Fl(t,e,n,r,i){let o=[];for(let a=0,s=0;a=n||u<=e?o.push(l):(cn&&o.push(l.slice(n-c,l.size,r)))}return o}function Cc(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(rs(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&ee.isSelectable(d)&&i.parent&&!(d.isInline&&mS(n.focusNode,n.focusOffset,i.dom))){let p=i.posBefore;c=new ee(a==p?s:r.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,p=a;for(let _=0;_{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Vm(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function zS(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,Xe(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&pt&&Bn<=11&&(r.disabled=!0,r.disabled=!1)}function Ym(t,e){if(e instanceof ee){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(gd(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else gd(t)}function gd(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function yc(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||Z.between(e,n,r)}function hd(t){return t.editable&&!t.hasFocus()?!1:zm(t)}function zm(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function $S(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return fr(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Bl(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&te.findFrom(o,e)}function yn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Ed(t,e,n){let r=t.state.selection;if(r instanceof Z)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return yn(t,new Z(r.$anchor,a))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=Bl(t.state,e);return i&&i instanceof ee?yn(t,i):!1}else if(!(At&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=t.docView.descAt(s))&&!a.contentDOM?ee.isSelectable(o)?yn(t,new ee(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):po?yn(t,new Z(t.state.doc.resolve(e<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ee&&r.node.isInline)return yn(t,new Z(e>0?r.$to:r.$from));{let i=Bl(t.state,e);return i?yn(t,i):!1}}}function _a(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Mi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Ar(t,e){return e<0?qS(t):WS(t)}function qS(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,a=!1;for(Gt&&n.nodeType==1&&r<_a(n)&&Mi(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Mi(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if($m(n))break;{let s=n.previousSibling;for(;s&&Mi(s,-1);)i=n.parentNode,o=Xe(s),s=s.previousSibling;if(s)n=s,r=_a(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}a?Ul(t,n,r):i&&Ul(t,i,o)}function WS(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=_a(n),o,a;for(;;)if(r{t.state==i&&gn(t)},50)}function Sd(t,e){let n=t.state.doc.resolve(e);if(!(rt||hS)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function bd(t,e,n){let r=t.state.selection;if(r instanceof Z&&!r.empty||n.indexOf("s")>-1||At&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=Bl(t.state,e);if(a&&a instanceof ee)return yn(t,a)}if(!i.parent.inlineContent){let a=e<0?i:o,s=r instanceof Dt?te.near(a,e):te.findFrom(a,e);return s?yn(t,s):!1}return!1}function Td(t,e){if(!(t.state.selection instanceof Z))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=t.state.tr;return e<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),t.dispatch(a),!0}return!1}function Cd(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function ZS(t){if(!st||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Cd(t,r,"true"),setTimeout(()=>Cd(t,r,"false"),20)}return!1}function XS(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function jS(t,e){let n=e.keyCode,r=XS(e);if(n==8||At&&n==72&&r=="c")return Td(t,-1)||Ar(t,-1);if(n==46&&!e.shiftKey||At&&n==68&&r=="c")return Td(t,1)||Ar(t,1);if(n==13||n==27)return!0;if(n==37||At&&n==66&&r=="c"){let i=n==37?Sd(t,t.state.selection.from)=="ltr"?-1:1:-1;return Ed(t,i,r)||Ar(t,i)}else if(n==39||At&&n==70&&r=="c"){let i=n==39?Sd(t,t.state.selection.from)=="ltr"?1:-1:1;return Ed(t,i,r)||Ar(t,i)}else{if(n==38||At&&n==80&&r=="c")return bd(t,-1,r)||Ar(t,-1);if(n==40||At&&n==78&&r=="c")return ZS(t)||bd(t,1,r)||Ar(t,1);if(r==(At?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function qm(t,e){t.someProp("transformCopied",_=>{e=_(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let _=r.firstChild;n.push(_.type.name,_.attrs!=_.type.defaultAttrs?_.attrs:null),r=_.content}let a=t.someProp("clipboardSerializer")||Cr.fromSchema(t.state.schema),s=jm(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=Xm[c.nodeName.toLowerCase()]);){for(let _=u.length-1;_>=0;_--){let m=s.createElement(u[_]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",_=>_(e,t))||e.content.textBetween(0,e.content.size,` - -`);return{dom:l,text:p,slice:e}}function Wm(t,e,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!e)return null;let l=e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,o||r,t)}),o)return e?new H(L.from(t.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0):H.empty;let d=t.someProp("clipboardTextParser",p=>p(e,i,r,t));if(d)s=d;else{let p=i.marks(),{schema:_}=t.state,m=Cr.fromSchema(_);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(f=>{let g=a.appendChild(document.createElement("p"));f&&g.appendChild(m.serializeNode(_.text(f,p)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),a=nb(n),po&&rb(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||Wr.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!JS.test(p.parentNode.nodeName)?{ignore:!0}:null}})),u)s=ib(yd(s,+u[1],+u[2]),u[4]);else if(s=H.maxOpen(eb(s.content,i),!0),s.openStart||s.openEnd){let d=0,p=0;for(let _=s.content.firstChild;d{s=d(s,t)}),s}const JS=/^(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 eb(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,a=[];if(t.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&o.length&&Qm(l,o,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=Zm(a[a.length-1],o.length));let u=Km(s,l);a.push(u),i=i.matchType(u.type),o=l}}),a)return L.from(a)}return t}function Km(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,L.from(t));return t}function Qm(t,e,n,r,i){if(i1&&(o=0),i=n&&(s=e<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(L.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(s))}function yd(t,e,n){return en}).createHTML(t):t}function nb(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=jm().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&Xm[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"").reverse().join("")),n.innerHTML=tb(t),i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=L.from(l.create(r[s+1],i)),o++,a++}return new H(i,o,a)}const lt={},ct={},ob={touchstart:!0,touchmove:!0};class ab{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.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function sb(t){for(let e in lt){let n=lt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{cb(t,r)&&!vc(t,r)&&(t.editable||!(r.type in ct))&&n(t,r)},ob[e]?{passive:!0}:void 0)}st&&t.dom.addEventListener("input",()=>null),Gl(t)}function wn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function lb(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Gl(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>vc(t,r))})}function vc(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function cb(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function ub(t,e){!vc(t,e)&<[e.type]&&(t.editable||!(e.type in ct))&<[e.type](t,e)}ct.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!ef(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Ut&&rt&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),ti&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,jn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||jS(t,n)?n.preventDefault():wn(t,"key")};ct.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};ct.keypress=(t,e)=>{let n=e;if(ef(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||At&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Z)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function as(t){return{left:t.clientX,top:t.clientY}}function db(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Rc(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(t.someProp(e,s=>a>o.depth?s(t,n,o.nodeAfter,o.before(a),i,!0):s(t,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Xr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function pb(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&ee.isSelectable(r)?(Xr(t,new ee(n)),!0):!1}function _b(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof ee&&(r=n.node);let o=t.state.doc.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(ee.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(Xr(t,ee.create(t.state.doc,i)),!0):!1}function mb(t,e,n,r,i){return Rc(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?_b(t,n):pb(t,n))}function fb(t,e,n,r){return Rc(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function gb(t,e,n,r){return Rc(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||hb(t,n,r)}function hb(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Xr(t,Z.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Xr(t,Z.create(r,s+1,s+1+a.content.size));else if(ee.isSelectable(a))Xr(t,ee.create(r,s));else continue;return!0}}function Oc(t){return ma(t)}const Jm=At?"metaKey":"ctrlKey";lt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Oc(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&db(n,t.input.lastClick)&&!n[Jm]&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=t.posAtCoords(as(n));a&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Eb(t,a,n,!!r)):(o=="doubleClick"?fb:gb)(t,a.pos,a.inside,n)?n.preventDefault():wn(t,"pointer"))};class Eb{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Jm],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),a=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,a=u.depth?u.before():0}const s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof ee&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Gt&&!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)),wn(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(()=>gn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(as(e))),this.updateAllowDefault(e),this.allowDefault||!n?wn(this.view,"pointer"):mb(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||st&&this.mightDrag&&!this.mightDrag.node.isAtom||rt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Xr(this.view,te.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):wn(this.view,"pointer")}move(e){this.updateAllowDefault(e),wn(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}lt.touchstart=t=>{t.input.lastTouch=Date.now(),Oc(t),wn(t,"pointer")};lt.touchmove=t=>{t.input.lastTouch=Date.now(),wn(t,"pointer")};lt.contextmenu=t=>Oc(t);function ef(t,e){return t.composing?!0:st&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Sb=Ut?5e3:-1;ct.compositionstart=ct.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Z&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),ma(t,!0),t.markCursor=null;else if(ma(t,!e.selection.empty),Gt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=t.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}t.input.composing=!0}tf(t,Sb)};ct.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,tf(t,20))};function tf(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ma(t),e))}function nf(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Tb());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function bb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=pS(e.focusNode,e.focusOffset),r=_S(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function Tb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ma(t,e=!1){if(!(Ut&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),nf(t),e||t.docView&&t.docView.dirty){let n=Cc(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Cb(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const zi=pt&&Bn<15||ti&&ES<604;lt.copy=ct.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=zi?null:n.clipboardData,a=r.content(),{dom:s,text:l}=qm(t,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Cb(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function yb(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function vb(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?$i(t,r.value,null,i,e):$i(t,r.textContent,r.innerHTML,i,e)},50)}function $i(t,e,n,r,i){let o=Wm(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||H.empty)))return!0;if(!o)return!1;let a=yb(o),s=a?t.state.tr.replaceSelectionWith(a,r):t.state.tr.replaceSelection(o);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function rf(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ct.paste=(t,e)=>{let n=e;if(t.composing&&!Ut)return;let r=zi?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&$i(t,rf(r),r.getData("text/html"),i,n)?n.preventDefault():vb(t,n)};class of{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const af=At?"altKey":"ctrlKey";lt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(as(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof ee?i.to-1:i.to))){if(r&&r.mightDrag)a=ee.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(a=ee.create(t.state.doc,d.posBefore))}}let s=(a||t.state.selection).content(),{dom:l,text:c,slice:u}=qm(t,s);(!n.dataTransfer.files.length||!rt||xm>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(zi?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",zi||n.dataTransfer.setData("text/plain",c),t.dragging=new of(u,!n[af],a)};lt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};ct.dragover=ct.dragenter=(t,e)=>e.preventDefault();ct.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(as(n));if(!i)return;let o=t.state.doc.resolve(i.pos),a=r&&r.slice;a?t.someProp("transformPasted",m=>{a=m(a,t)}):a=Wm(t,rf(n.dataTransfer),zi?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[af]);if(t.someProp("handleDrop",m=>m(t,n,a||H.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?Tm(t.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let c=t.state.tr;if(s){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(p))return;let _=c.doc.resolve(u);if(d&&ee.isSelectable(a.content.firstChild)&&_.nodeAfter&&_.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new ee(_));else{let m=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((f,g,E,S)=>m=S),c.setSelection(yc(t,_,c.doc.resolve(m)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))};lt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&gn(t)},20))};lt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};lt.beforeinput=(t,e)=>{if(rt&&Ut&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,jn(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in ct)lt[t]=ct[t];function qi(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class fa{constructor(e,n){this.toDOM=e,this.spec=n||lr,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:a}=e.mapResult(n.from+i,this.side<0?-1:1);return a?null:new Fe(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof fa&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&qi(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Hn{constructor(e,n){this.attrs=e,this.spec=n||lr}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new Fe(o,a,this)}valid(e,n){return n.from=e&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;ae){let s=this.children[a]+1;this.children[a+2].findInner(e-s,n-s,r,i+s,o)}}map(e,n,r){return this==nt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||lr)}mapInner(e,n,r,i,o){let a;for(let s=0;s{let c=l+r,u;if(u=lf(n,s,c)){for(i||(i=this.children.slice());os&&d.to=e){this.children[s]==e&&(r=this.children[s+2]);break}let o=e+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Hn){let c=Math.max(o,l.from)-o,u=Math.min(a,l.to)-o;ci.map(e,n,lr));return Nn.from(r)}forChild(e,n){if(n.isLeaf)return Se.empty;let r=[];for(let i=0;in instanceof Se)?e:e.reduce((n,r)=>n.concat(r instanceof Se?r:r.members),[]))}}forEachSet(e){for(let n=0;n{let g=f-m-(_-p);for(let E=0;ES+u-d)continue;let b=s[E]+u-d;_>=b?s[E+1]=p<=b?-2:-1:p>=u&&g&&(s[E]+=g,s[E+1]+=g)}d+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let p=n.map(t[c+1]+o,-1),_=p-i,{index:m,offset:f}=r.content.findIndex(d),g=r.maybeChild(m);if(g&&f==d&&f+g.nodeSize==_){let E=s[c+2].mapInner(n,g,u+1,t[c]+o+1,a);E!=nt?(s[c]=d,s[c+1]=_,s[c+2]=E):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=Ob(s,t,e,n,i,o,a),u=ga(c,r,0,a);e=u.local;for(let d=0;dn&&a.to{let c=lf(t,s,l+n);if(c){o=!0;let u=ga(c,s,n+l+1,r);u!=nt&&i.push(l,l+s.nodeSize,u)}});let a=sf(o?cf(t):t,-n).sort(cr);for(let s=0;s0;)e++;t.splice(e,0,n)}function Gs(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=nt&&e.push(r)}),t.cursorWrapper&&e.push(Se.create(t.state.doc,[t.cursorWrapper.deco])),Nn.from(e)}const Nb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ab=pt&&Bn<=11;class Ib{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 xb{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ib,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),Ab&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Nb)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.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(hd(this.view)){if(this.suppressingSelectionUpdates)return gn(this.view);if(pt&&Bn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&fr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=Yi(o))n.add(o);for(let o=e.anchorNode;o;o=Yi(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&hd(this.view)&&!this.ignoreSelectionChange(e)}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=this.selectionChanged(r),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let u=0;ud.nodeName=="BR");if(u.length==2){let[d,p]=u;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of u){let _=p.parentNode;_&&_.nodeName=="LI"&&(!d||wb(e,d)!=_)&&p.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||i)&&(o>-1&&(e.docView.markDirty(o,a),Db(e)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||gn(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;ui;g--){let E=r.childNodes[g-1],S=E.pmViewDesc;if(E.nodeName=="BR"&&!S){o=g;break}if(!S||S.size)break}let d=t.state.doc,p=t.someProp("domParser")||Wr.fromSchema(t.state.schema),_=d.resolve(a),m=null,f=p.parse(r,{topNode:_.parent,topMatch:_.parent.contentMatchAt(_.index()),topOpen:!0,from:i,to:o,preserveWhitespace:_.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:kb,context:_});if(c&&c[0].pos!=null){let g=c[0].pos,E=c[1]&&c[1].pos;E==null&&(E=g),m={anchor:g+a,head:E+a}}return{doc:f,sel:m,from:a,to:s}}function kb(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(st&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||st&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Pb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Fb(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let O=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,M=Cc(t,O);if(M&&!t.state.selection.eq(M)){if(rt&&Ut&&t.input.lastKeyCode===13&&Date.now()-100Y(t,jn(13,"Enter"))))return;let B=t.state.tr.setSelection(M);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),o&&B.setMeta("composition",o),t.dispatch(B)}return}let a=t.state.doc.resolve(e),s=a.sharedDepth(n);e=a.before(s+1),n=t.state.doc.resolve(n).after(s+1);let l=t.state.selection,c=Lb(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),p,_;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Ut)&&i.some(O=>O.nodeType==1&&!Pb.test(O.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",O=>O(t,jn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Z&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let O=Id(t,t.state.doc,c.sel);if(O&&!O.eq(t.state.selection)){let M=t.state.tr.setSelection(O);o&&M.setMeta("composition",o),t.dispatch(M)}}return}t.state.selection.fromt.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?m.start=t.state.selection.from:m.endA=t.state.selection.to-2&&t.state.selection.to<=c.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),pt&&Bn<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let f=c.doc.resolveNoCache(m.start-c.from),g=c.doc.resolveNoCache(m.endB-c.from),E=u.resolve(m.start),S=f.sameParent(g)&&f.parent.inlineContent&&E.end()>=m.endA,b;if((ti&&t.input.lastIOSEnter>Date.now()-225&&(!S||i.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!S&&f.posO(t,jn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&Ub(u,m.start,m.endA,f,g)&&t.someProp("handleKeyDown",O=>O(t,jn(8,"Backspace")))){Ut&&rt&&t.domObserver.suppressSelectionUpdates();return}rt&&Ut&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Ut&&!S&&f.start()!=g.start()&&g.parentOffset==0&&f.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,g=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(O){return O(t,jn(13,"Enter"))})},20));let h=m.start,C=m.endA,T,R,x;if(S){if(f.pos==g.pos)pt&&Bn<=11&&f.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>gn(t),20)),T=t.state.tr.delete(h,C),R=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(x=Bb(f.parent.content.cut(f.parentOffset,g.parentOffset),E.parent.content.cut(E.parentOffset,m.endA-E.start()))))T=t.state.tr,x.type=="add"?T.addMark(h,C,x.mark):T.removeMark(h,C,x.mark);else if(f.parent.child(f.index()).isText&&f.index()==g.index()-(g.textOffset?0:1)){let O=f.parent.textBetween(f.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",M=>M(t,h,C,O)))return;T=t.state.tr.insertText(O,h,C)}}if(T||(T=t.state.tr.replace(h,C,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let O=Id(t,T.doc,c.sel);O&&!(rt&&Ut&&t.composing&&O.empty&&(m.start!=m.endB||t.input.lastAndroidDeletee.content.size?null:yc(t,e.resolve(n.anchor),e.resolve(n.head))}function Bb(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,a,s,l;for(let u=0;uu.mark(s.addToSet(u.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;un||Vs(a,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function Hb(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&e<=57343&&n>=55296&&n<=56319}class Gb{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ab,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(kd),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=wd(this),Md(this),this.nodeViews=Ld(this),this.docView=dd(this.state.doc,Dd(this),Gs(this),this.dom,this),this.domObserver=new xb(this,(r,i,o,a)=>Fb(this,r,i,o,a)),this.domObserver.start(),sb(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Gl(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(kd),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(nf(this),a=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let _=Ld(this);Yb(_,this.nodeViews)&&(this.nodeViews=_,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Gl(this),this.editable=wd(this),Md(this);let l=Gs(this),c=Dd(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(i.selection))&&(a=!0);let p=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&TS(this);if(a){this.domObserver.stop();let _=d&&(pt||rt)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Vb(i.selection,e.selection);if(d){let m=rt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=bb(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=dd(e.doc,c,l,this.dom,this)),m&&!this.trackWrites&&(_=!0)}_||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&$S(this))?gn(this,_):(Ym(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&CS(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ee){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&od(this,n.getBoundingClientRect(),e)}else od(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new of(e.slice,e.move,i<0?void 0:ee.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return AS(this,e)}coordsAtPos(e,n=1){return km(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return wS(this,n||this.state,e)}pasteHTML(e,n){return $i(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return $i(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(lb(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Gs(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,uS())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return ub(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?st&&this.root.nodeType===11&&fS(this.dom.ownerDocument)==this.dom&&Mb(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Dd(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Fe.node(0,t.state.doc.content.size,e)]}function Md(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Fe.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function wd(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Vb(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Ld(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Yb(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function kd(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Gn={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:"'"},ha={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},zb=typeof navigator<"u"&&/Mac/.test(navigator.platform),$b=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var je=0;je<10;je++)Gn[48+je]=Gn[96+je]=String(je);for(var je=1;je<=24;je++)Gn[je+111]="F"+je;for(var je=65;je<=90;je++)Gn[je]=String.fromCharCode(je+32),ha[je]=String.fromCharCode(je);for(var Ys in Gn)ha.hasOwnProperty(Ys)||(ha[Ys]=Gn[Ys]);function qb(t){var e=zb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||$b&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?ha:Gn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Wb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Kb(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Gn[r.keyCode])&&o!=i){let s=e[zs(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const Xb=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function uf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const jb=(t,e,n)=>{let r=uf(t,n);if(!r)return!1;let i=xc(r);if(!i){let a=r.blockRange(),s=a&&_i(a);return s==null?!1:(e&&e(t.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(mf(t,i,e,-1))return!0;if(r.parent.content.size==0&&(ni(o,"end")||ee.isSelectable(o)))for(let a=r.depth;;a--){let s=ts(t.doc,r.before(a),r.after(a),H.empty);if(s&&s.slice.size1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},Jb=(t,e,n)=>{let r=uf(t,n);if(!r)return!1;let i=xc(r);return i?df(t,i,e):!1},e0=(t,e,n)=>{let r=pf(t,n);if(!r)return!1;let i=Dc(r);return i?df(t,i,e):!1};function df(t,e,n){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let a=e.nodeAfter,s=a,l=e.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let u=s.firstChild;if(!u)return!1;s=u}let c=ts(t.doc,o,l,H.empty);if(!c||c.from!=o||c instanceof Ue&&c.slice.size>=l-o)return!1;if(n){let u=t.tr.step(c);u.setSelection(Z.create(u.doc,o)),n(u.scrollIntoView())}return!0}function ni(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const t0=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=xc(r)}let a=o&&o.nodeBefore;return!a||!ee.isSelectable(a)?!1:(e&&e(t.tr.setSelection(ee.create(t.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function xc(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function pf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=pf(t,n);if(!r)return!1;let i=Dc(r);if(!i)return!1;let o=i.nodeAfter;if(mf(t,i,e,1))return!0;if(r.parent.content.size==0&&(ni(o,"start")||ee.isSelectable(o))){let a=ts(t.doc,r.before(),r.after(),H.empty);if(a&&a.slice.size{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,r=n instanceof ee,i;if(r){if(n.node.isTextblock||!zn(t.doc,n.from))return!1;i=n.from}else if(i=es(t.doc,n.from,-1),i==null)return!1;if(e){let o=t.tr.join(i);r&&o.setSelection(ee.create(o.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},o0=(t,e)=>{let n=t.selection,r;if(n instanceof ee){if(n.node.isTextblock||!zn(t.doc,n.to))return!1;r=n.to}else if(r=es(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},a0=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),o=i&&_i(i);return o==null?!1:(e&&e(t.tr.lift(i,o).scrollIntoView()),!0)},s0=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` -`).scrollIntoView()),!0)};function _f(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=_f(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(e){let s=n.after(),l=t.tr.replaceWith(s,s,a.createAndFill());l.setSelection(te.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},c0=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Dt||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=_f(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let a=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Qr(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&_i(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},d0=(t,e)=>{let{$from:n,to:r}=t.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),e&&e(t.tr.setSelection(ee.create(t.doc,i))),!0)};function p0(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||zn(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function mf(t,e,n,r){let i=e.nodeBefore,o=e.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&p0(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let _=e.pos+o.nodeSize,m=L.empty;for(let E=a.length-1;E>=0;E--)m=L.from(a[E].create(null,m));m=L.from(i.copy(m));let f=t.tr.step(new ze(e.pos-1,_,e.pos,_,new H(m,1,0),a.length,!0)),g=_+2*a.length;zn(f.doc,g)&&f.join(g),n(f.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:te.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),p=d&&_i(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(c&&ni(o,"start",!0)&&ni(i,"end")){let _=i,m=[];for(;m.push(_),!_.isTextblock;)_=_.lastChild;let f=o,g=1;for(;!f.isTextblock;f=f.firstChild)g++;if(_.canReplace(_.childCount,_.childCount,f.content)){if(n){let E=L.empty;for(let b=m.length-1;b>=0;b--)E=L.from(m[b].copy(E));let S=t.tr.step(new ze(e.pos-m.length,e.pos+o.nodeSize,e.pos+g,e.pos+o.nodeSize-g,new H(E,m.length,0),0,!0));n(S.scrollIntoView())}return!0}}return!1}function ff(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(Z.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}const _0=ff(-1),m0=ff(1);function f0(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&Ec(a,t,e);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function Pd(t,e=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a=2&&i.node(a.depth-1).type.compatibleContent(t)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);l=new la(u,u,a.depth),a.endIndex=0;u--)o=L.from(n[u].type.create(n[u].attrs,o));t.step(new ze(e.start-(r?2:0),e.end,e.start,e.end,new H(o,0,0),n.length,!0));let a=0;for(let u=0;ua.childCount>0&&a.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?S0(e,n,t,o):b0(e,n,o):!0:!1}}function S0(t,e,n,r){let i=t.tr,o=r.end,a=r.$to.end(r.depth);of;m--)_-=i.child(m).nodeSize,r.delete(_-1,_+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?L.empty:L.from(i))))return!1;let d=o.pos,p=d+a.nodeSize;return r.step(new ze(d-(s?1:0),p+(l?1:0),d+1,p-1,new H((s?L.empty:L.from(i.copy(L.empty))).append(l?L.empty:L.from(i.copy(L.empty))),s?0:1,l?0:1),s?0:1)),e(r.scrollIntoView()),!0}function T0(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=L.from(c?t.create():null),d=new H(L.from(t.create(null,L.from(s.type.create(null,u)))),c?3:1,0),p=o.start,_=o.end;n(e.tr.step(new ze(p-(c?3:1),_,p,_,d,1,!0)).scrollIntoView())}return!0}}function ss(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class ls{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,a=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([s,l])=>[s,(...u)=>{const d=l(...u)(a);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s=[],l=!!e,c=e||o.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(c),s.every(p=>p===!0)),d={...Object.fromEntries(Object.entries(r).map(([p,_])=>[p,(...f)=>{const g=this.buildProps(c,n),E=_(...f)(g);return s.push(E),d}])),run:u};return d}createCan(e){const{rawCommands:n,state:r}=this,i=!1,o=e||r.tr,a=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...a,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s={tr:e,editor:i,view:a,state:ss({state:o,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(s)]))}};return s}}let C0=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(i=>i!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}};function W(t,e,n){return t.config[e]===void 0&&t.parent?W(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?W(t.parent,e,n):null}):t.config[e]}function cs(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function gf(t){const e=[],{nodeExtensions:n,markExtensions:r}=cs(t),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage,extensions:i},l=W(a,"addGlobalAttributes",s);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([p,_])=>{e.push({type:d,name:p,attribute:{...o,..._}})})})})}),i.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},l=W(a,"addAttributes",s);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const p={...o,...d};typeof(p==null?void 0:p.default)=="function"&&(p.default=p.default()),p!=null&&p.isRequired&&(p==null?void 0:p.default)===void 0&&delete p.default,e.push({type:a.name,name:u,attribute:p})})}),e}function qe(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function pe(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const s=o?o.split(" "):[],l=r[i]?r[i].split(" "):[],c=s.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else if(i==="style"){const s=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],l=r[i]?r[i].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,p]=u.split(":").map(_=>_.trim());c.set(d,p)}),s.forEach(u=>{const[d,p]=u.split(":").map(_=>_.trim());c.set(d,p)}),r[i]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else r[i]=o}),r},{})}function Vl(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>pe(n,r),{})}function hf(t){return typeof t=="function"}function le(t,e=void 0,...n){return hf(t)?e?t.bind(e)(...n):t(...n):t}function y0(t={}){return Object.keys(t).length===0&&t.constructor===Object}function v0(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Fd(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((o,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(n):v0(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function Bd(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&y0(n)?!1:n!=null))}function R0(t,e){var n;const r=gf(t),{nodeExtensions:i,markExtensions:o}=cs(t),a=(n=i.find(c=>W(c,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(c=>{const u=r.filter(E=>E.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((E,S)=>{const b=W(S,"extendNodeSchema",d);return{...E,...b?b(c):{}}},{}),_=Bd({...p,content:le(W(c,"content",d)),marks:le(W(c,"marks",d)),group:le(W(c,"group",d)),inline:le(W(c,"inline",d)),atom:le(W(c,"atom",d)),selectable:le(W(c,"selectable",d)),draggable:le(W(c,"draggable",d)),code:le(W(c,"code",d)),whitespace:le(W(c,"whitespace",d)),defining:le(W(c,"defining",d)),isolating:le(W(c,"isolating",d)),attrs:Object.fromEntries(u.map(E=>{var S;return[E.name,{default:(S=E==null?void 0:E.attribute)===null||S===void 0?void 0:S.default}]}))}),m=le(W(c,"parseHTML",d));m&&(_.parseDOM=m.map(E=>Fd(E,u)));const f=W(c,"renderHTML",d);f&&(_.toDOM=E=>f({node:E,HTMLAttributes:Vl(E,u)}));const g=W(c,"renderText",d);return g&&(_.toText=g),[c.name,_]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(g=>g.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((g,E)=>{const S=W(E,"extendMarkSchema",d);return{...g,...S?S(c):{}}},{}),_=Bd({...p,inclusive:le(W(c,"inclusive",d)),excludes:le(W(c,"excludes",d)),group:le(W(c,"group",d)),spanning:le(W(c,"spanning",d)),code:le(W(c,"code",d)),attrs:Object.fromEntries(u.map(g=>{var E;return[g.name,{default:(E=g==null?void 0:g.attribute)===null||E===void 0?void 0:E.default}]}))}),m=le(W(c,"parseHTML",d));m&&(_.parseDOM=m.map(g=>Fd(g,u)));const f=W(c,"renderHTML",d);return f&&(_.toDOM=g=>f({mark:g,HTMLAttributes:Vl(g,u)})),[c.name,_]}));return new dm({topNode:a,nodes:s,marks:l})}function $s(t,e){return e.nodes[t]||e.marks[t]||null}function Ud(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const O0=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,o,a,s)=>{var l,c;const u=((c=(l=i.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:i,pos:o,parent:a,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function Mc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class mo{constructor(e){this.find=e.find,this.handler=e.handler}}const N0=(t,e)=>{if(Mc(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function No(t){var e;const{editor:n,from:r,to:i,text:o,rules:a,plugin:s}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(p=>p.type.spec.code))return!1;let u=!1;const d=O0(c)+o;return a.forEach(p=>{if(u)return;const _=N0(d,p.find);if(!_)return;const m=l.state.tr,f=ss({state:l.state,transaction:m}),g={from:r-(_[0].length-o.length),to:i},{commands:E,chain:S,can:b}=new ls({editor:n,state:f});p.handler({state:f,range:g,match:_,commands:E,chain:S,can:b})===null||!m.steps.length||(m.setMeta(s,{transform:m,from:r,to:i,text:o}),l.dispatch(m),u=!0)}),u}function A0(t){const{editor:e,rules:n}=t,r=new be({state:{init(){return null},apply(i,o){const a=i.getMeta(r);if(a)return a;const s=i.getMeta("applyInputRules");return!!s&&setTimeout(()=>{const{from:c,text:u}=s,d=c+u.length;No({editor:e,from:c,to:d,text:u,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,a,s){return No({editor:e,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&No({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:a}=i.state.selection;return a?No({editor:e,from:a.pos,to:a.pos,text:` -`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function I0(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ao(t){return I0(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function us(t,e){const n={...t};return Ao(t)&&Ao(e)&&Object.keys(e).forEach(r=>{Ao(e[r])&&Ao(t[r])?n[r]=us(t[r],e[r]):n[r]=e[r]}),n}class ft{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ft(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>us(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ft(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const a=i.marks();if(!!!a.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=a.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}function x0(t){return typeof t=="number"}class D0{constructor(e){this.find=e.find,this.handler=e.handler}}const M0=(t,e,n)=>{if(Mc(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=t,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function w0(t){const{editor:e,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=t,{commands:l,chain:c,can:u}=new ls({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,i,(_,m)=>{if(!_.isTextblock||_.type.spec.code)return;const f=Math.max(r,m),g=Math.min(i,m+_.content.size),E=_.textBetween(f-m,g-m,void 0,"");M0(E,o.find,a).forEach(b=>{if(b.index===void 0)return;const h=f+b.index+1,C=h+b[0].length,T={from:n.tr.mapping.map(h),to:n.tr.mapping.map(C)},R=o.handler({state:n,range:T,match:b,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(R)})}),d.every(_=>_!==null)}const L0=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function k0(t){const{editor:e,rules:n}=t;let r=null,i=!1,o=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:u,from:d,to:p,rule:_,pasteEvt:m})=>{const f=u.tr,g=ss({state:u,transaction:f});if(!(!w0({editor:e,state:g,from:Math.max(d-1,0),to:p.b-1,rule:_,pasteEvent:m,dropEvent:s})||!f.steps.length))return s=typeof DragEvent<"u"?new DragEvent("drop"):null,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,f};return n.map(u=>new be({view(d){const p=_=>{var m;r=!((m=d.dom.parentElement)===null||m===void 0)&&m.contains(_.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",p),{destroy(){window.removeEventListener("dragstart",p)}}},props:{handleDOMEvents:{drop:(d,p)=>(o=r===d.dom.parentElement,s=p,!1),paste:(d,p)=>{var _;const m=(_=p.clipboardData)===null||_===void 0?void 0:_.getData("text/html");return a=p,i=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(d,p,_)=>{const m=d[0],f=m.getMeta("uiEvent")==="paste"&&!i,g=m.getMeta("uiEvent")==="drop"&&!o,E=m.getMeta("applyPasteRules"),S=!!E;if(!f&&!g&&!S)return;if(S){const{from:C,text:T}=E,R=C+T.length,x=L0(T);return l({rule:u,state:_,from:C,to:{b:R},pasteEvt:x})}const b=p.doc.content.findDiffStart(_.doc.content),h=p.doc.content.findDiffEnd(_.doc.content);if(!(!x0(b)||!h||b===h.b))return l({rule:u,state:_,from:b,to:h,pasteEvt:a})}}))}function P0(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}class Yr{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Yr.resolve(e),this.schema=R0(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Yr.sort(Yr.flatten(e)),r=P0(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=W(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(e){return e.sort((r,i)=>{const o=W(r,"priority")||100,a=W(i,"priority")||100;return o>a?-1:o{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:$s(n.name,this.schema)},i=W(n,"addCommands",r);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this,n=Yr.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:e,type:$s(a.name,this.schema)},l=[],c=W(a,"addKeyboardShortcuts",s);let u={};if(a.type==="mark"&&W(a,"exitable",s)&&(u.ArrowRight=()=>ft.handleExit({editor:e,mark:a})),c){const f=Object.fromEntries(Object.entries(c()).map(([g,E])=>[g,()=>E({editor:e})]));u={...u,...f}}const d=Zb(u);l.push(d);const p=W(a,"addInputRules",s);Ud(a,e.options.enableInputRules)&&p&&r.push(...p());const _=W(a,"addPasteRules",s);Ud(a,e.options.enablePasteRules)&&_&&i.push(..._());const m=W(a,"addProseMirrorPlugins",s);if(m){const f=m();l.push(...f)}return l}).flat();return[A0({editor:e,rules:r}),...k0({editor:e,rules:i}),...o]}get attributes(){return gf(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=cs(this.extensions);return Object.fromEntries(n.filter(r=>!!W(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:e,type:qe(r.name,this.schema)},a=W(r,"addNodeView",o);if(!a)return[];const s=(l,c,u,d,p)=>{const _=Vl(l,i);return a()({node:l,view:c,getPos:u,decorations:d,innerDecorations:p,editor:e,extension:r,HTMLAttributes:_})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:$s(e.name,this.schema)};e.type==="mark"&&(!((n=le(W(e,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const i=W(e,"onBeforeCreate",r),o=W(e,"onCreate",r),a=W(e,"onUpdate",r),s=W(e,"onSelectionUpdate",r),l=W(e,"onTransaction",r),c=W(e,"onFocus",r),u=W(e,"onBlur",r),d=W(e,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class ge{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ge(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>us(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ge({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}}function ds(t,e,n){const{from:r,to:i}=e,{blockSeparator:o=` - -`,textSerializers:a={}}=n||{};let s="";return t.nodesBetween(r,i,(l,c,u,d)=>{var p;l.isBlock&&c>r&&(s+=o);const _=a==null?void 0:a[l.type.name];if(_)return u&&(s+=_({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(s+=(p=l==null?void 0:l.text)===null||p===void 0?void 0:p.slice(Math.max(r,c)-c,i-c))}),s}function Ef(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const F0=ge.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new be({key:new ve("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,{ranges:o}=i,a=Math.min(...o.map(u=>u.$from.pos)),s=Math.max(...o.map(u=>u.$to.pos)),l=Ef(n);return ds(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),B0=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),U0=(t=!1)=>({commands:e})=>e.setContent("",t),H0=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:a})=>{t.doc.nodesBetween(o.pos,a.pos,(s,l)=>{if(s.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),p=c.resolve(u.map(l+s.nodeSize)),_=d.blockRange(p);if(!_)return;const m=_i(_);if(s.type.isTextblock){const{defaultType:f}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(_.start,f)}(m||m===0)&&e.lift(_,m)})}),!0},G0=t=>e=>t(e),V0=()=>({state:t,dispatch:e})=>c0(t,e),Y0=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const a=r.mapping.map(e);return r.insert(a,o.content),r.setSelection(new Z(r.doc.resolve(a-1))),!0},z0=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(e){const s=i.before(o),l=i.after(o);t.delete(s,l).scrollIntoView()}return!0}return!1},$0=t=>({tr:e,state:n,dispatch:r})=>{const i=qe(t,n.schema),o=e.selection.$anchor;for(let a=o.depth;a>0;a-=1)if(o.node(a).type===i){if(r){const l=o.before(a),c=o.after(a);e.delete(l,c).scrollIntoView()}return!0}return!1},q0=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},W0=()=>({state:t,dispatch:e})=>Xb(t,e),K0=()=>({commands:t})=>t.keyboardShortcut("Enter"),Q0=()=>({state:t,dispatch:e})=>l0(t,e);function ri(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:Mc(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function Yl(t,e,n={}){return t.find(r=>r.type===e&&ri(r.attrs,n))}function Z0(t,e,n={}){return!!Yl(t,e,n)}function wc(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(c=>c.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(c=>c.type===e))return;const i=Yl([...r.node.marks],e,n);if(!i)return;let o=r.index,a=t.start()+r.offset,s=o+1,l=a+r.node.nodeSize;for(Yl([...r.node.marks],e,n);o>0&&i.isInSet(t.parent.child(o-1).marks);)o-=1,a-=t.parent.child(o).nodeSize;for(;s({tr:n,state:r,dispatch:i})=>{const o=Sn(t,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(i){const d=wc(l,o,e);if(d&&d.from<=c&&d.to>=u){const p=Z.create(a,d.from,d.to);n.setSelection(p)}}return!0},j0=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r({editor:n,view:r,tr:i,dispatch:o})=>{e={scrollIntoView:!0,...e};const a=()=>{kc()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(o&&t===null&&!Lc(n.state.selection))return a(),!0;const s=Sf(i.doc,t)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),a()),!0},eT=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),tT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),bf=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&bf(r)}return t};function Io(t){const e=`${t}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return bf(n)}function Ea(t,e,n){n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return L.fromArray(t.map(s=>e.nodeFromJSON(s)));const a=e.nodeFromJSON(t);return n.errorOnInvalidContent&&a.check(),a}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Ea("",e,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new dm({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,s=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Wr.fromSchema(l).parseSlice(Io(t),n.parseOptions):Wr.fromSchema(l).parse(Io(t),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=Wr.fromSchema(e);return n.slice?o.parseSlice(Io(t),n.parseOptions).content:o.parse(Io(t),n.parseOptions)}return Ea("",e,n)}function nT(t,e,n){const r=t.steps.length-1;if(r{a===0&&(a=u)}),t.setSelection(te.near(t.doc.resolve(a),n))}const rT=t=>!("type"in t),iT=(t,e,n)=>({tr:r,dispatch:i,editor:o})=>{var a;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;try{s=Ea(e,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(m){return o.emit("contentError",{editor:o,error:m,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,d=!0;if((rT(s)?s:[s]).forEach(m=>{m.check(),u=u?m.isText&&m.marks.length===0:!1,d=d?m.isBlock:!1}),l===c&&d){const{parent:m}=r.doc.resolve(l);m.isTextblock&&!m.type.spec.code&&!m.childCount&&(l-=1,c+=1)}let _;u?(Array.isArray(e)?_=e.map(m=>m.text||"").join(""):typeof e=="object"&&e&&e.text?_=e.text:_=e,r.insertText(_,l,c)):(_=s,r.replaceWith(l,c,_)),n.updateSelection&&nT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:_}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:_})}return!0},oT=()=>({state:t,dispatch:e})=>i0(t,e),aT=()=>({state:t,dispatch:e})=>o0(t,e),sT=()=>({state:t,dispatch:e})=>jb(t,e),lT=()=>({state:t,dispatch:e})=>n0(t,e),cT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=es(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},uT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=es(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},dT=()=>({state:t,dispatch:e})=>Jb(t,e),pT=()=>({state:t,dispatch:e})=>e0(t,e);function Tf(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function _T(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,o,a;for(let s=0;s({editor:e,view:n,tr:r,dispatch:i})=>{const o=_T(t).split(/-(?!$)/),a=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,s))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function hr(t,e,n={}){const{from:r,to:i,empty:o}=t.selection,a=e?qe(e,t.schema):null,s=[];t.doc.nodesBetween(r,i,(d,p)=>{if(d.isText)return;const _=Math.max(r,p),m=Math.min(i,p+d.nodeSize);s.push({node:d,from:_,to:m})});const l=i-r,c=s.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>ri(d.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((d,p)=>d+p.to-p.from,0)>=l}const fT=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return hr(n,i,e)?a0(n,r):!1},gT=()=>({state:t,dispatch:e})=>u0(t,e),hT=t=>({state:e,dispatch:n})=>{const r=qe(t,e.schema);return E0(r)(e,n)},ET=()=>({state:t,dispatch:e})=>s0(t,e);function ps(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Hd(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}const ST=(t,e)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=ps(typeof t=="string"?t:t.name,r.schema);return s?(s==="node"&&(o=qe(t,r.schema)),s==="mark"&&(a=Sn(t,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&n.setNodeMarkup(u,void 0,Hd(c.attrs,e)),a&&c.marks.length&&c.marks.forEach(d=>{a===d.type&&n.addMark(u,u+c.nodeSize,a.create(Hd(d.attrs,e)))})})}),!0):!1},bT=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),TT=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),CT=()=>({state:t,dispatch:e})=>t0(t,e),yT=()=>({state:t,dispatch:e})=>r0(t,e),vT=()=>({state:t,dispatch:e})=>d0(t,e),RT=()=>({state:t,dispatch:e})=>m0(t,e),OT=()=>({state:t,dispatch:e})=>_0(t,e);function zl(t,e,n={},r={}){return Ea(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const NT=(t,e=!1,n={},r={})=>({editor:i,tr:o,dispatch:a,commands:s})=>{var l,c;const{doc:u}=o;if(n.preserveWhitespace!=="full"){const d=zl(t,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return a&&o.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return a&&o.setMeta("preventUpdate",!e),s.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:i.options.enableContentCheck})};function Pc(t,e){const n=Sn(e,t.schema),{from:r,to:i,empty:o}=t.selection,a=[];o?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,l=>{a.push(...l.marks)});const s=a.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function AT(t,e){const n=new Sc(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function IT(t){for(let e=0;e{e(r)&&n.push({node:r,pos:i})}),n}function xT(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function Cf(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function _s(t){return e=>Cf(e.$from,t)}function DT(t,e){const n=Cr.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function MT(t,e){const n={from:0,to:t.content.size};return ds(t,n,e)}function wT(t,e){const n=qe(e,t.schema),{from:r,to:i}=t.selection,o=[];t.doc.nodesBetween(r,i,s=>{o.push(s)});const a=o.reverse().find(s=>s.type.name===n.name);return a?{...a.attrs}:{}}function yf(t,e){const n=ps(typeof e=="string"?e:e.name,t.schema);return n==="node"?wT(t,e):n==="mark"?Pc(t,e):{}}function LT(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function kT(t){const e=LT(t);return e.length===1?e:e.filter((n,r)=>!e.filter((o,a)=>a!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function PT(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,o)=>{const a=[];if(i.ranges.length)i.forEach((s,l)=>{a.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;a.push({from:s,to:l})}a.forEach(({from:s,to:l})=>{const c=e.slice(o).map(s,-1),u=e.slice(o).map(l),d=e.invert().map(c,-1),p=e.invert().map(u);r.push({oldRange:{from:d,to:p},newRange:{from:c,to:u}})})}),kT(r)}function Fc(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const o=n.resolve(t),a=wc(o,i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(t,e,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(a=>({from:o,to:o+i.nodeSize,mark:a})))}),r}function jo(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(o=>o.type===e&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function ql(t,e,n={}){const{empty:r,ranges:i}=t.selection,o=e?Sn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>ri(d.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:d,$to:p})=>{const _=d.pos,m=p.pos;t.doc.nodesBetween(_,m,(f,g)=>{if(!f.isText&&!f.marks.length)return;const E=Math.max(_,g),S=Math.min(m,g+f.nodeSize),b=S-E;a+=b,s.push(...f.marks.map(h=>({mark:h,from:E,to:S})))})}),a===0)return!1;const l=s.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>ri(d.mark.attrs,n,{strict:!1})).reduce((d,p)=>d+p.to-p.from,0),c=s.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,p)=>d+p.to-p.from,0);return(l>0?l+c:l)>=a}function FT(t,e,n={}){if(!e)return hr(t,null,n)||ql(t,null,n);const r=ps(e,t.schema);return r==="node"?hr(t,e,n):r==="mark"?ql(t,e,n):!1}function Gd(t,e){const{nodeExtensions:n}=cs(e),r=n.find(a=>a.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=le(W(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function ms(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!==null&&r!==void 0?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(o=>{i!==!1&&(ms(o,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function vf(t){return t instanceof ee}function Wi(t,e,n){const i=t.state.doc.content.size,o=fn(e,0,i),a=fn(n,0,i),s=t.coordsAtPos(o),l=t.coordsAtPos(a,-1),c=Math.min(s.top,l.top),u=Math.max(s.bottom,l.bottom),d=Math.min(s.left,l.left),p=Math.max(s.right,l.right),_=p-d,m=u-c,E={top:c,bottom:u,left:d,right:p,width:_,height:m,x:d,y:c};return{...E,toJSON:()=>E}}function BT(t,e,n){var r;const{selection:i}=e;let o=null;if(Lc(i)&&(o=i.$cursor),o){const s=(r=t.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:a}=i;return a.some(({$from:s,$to:l})=>{let c=s.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(s.pos,l.pos,(u,d,p)=>{if(c)return!1;if(u.isInline){const _=!p||p.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(f=>f.type.excludes(n));c=_&&m}return!c}),c})}const UT=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Sn(t,r.schema);if(i)if(a){const c=Pc(r,l);n.addStoredMark(l.create({...c,...e}))}else s.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(p,_)=>{const m=Math.max(_,u),f=Math.min(_+p.nodeSize,d);p.marks.find(E=>E.type===l)?p.marks.forEach(E=>{l===E.type&&n.addMark(m,f,l.create({...E.attrs,...e}))}):n.addMark(m,f,l.create(e))})});return BT(r,n,l)},HT=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),GT=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const o=qe(t,n.schema);return o.isTextblock?i().command(({commands:a})=>Pd(o,e)(n)?!0:a.clearNodes()).command(({state:a})=>Pd(o,e)(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},VT=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=fn(t,0,r.content.size),o=ee.create(r,i);e.setSelection(o)}return!0},YT=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:o}=typeof t=="number"?{from:t,to:t}:t,a=Z.atStart(r).from,s=Z.atEnd(r).to,l=fn(i,a,s),c=fn(o,a,s),u=Z.create(r,l,c);e.setSelection(u)}return!0},zT=t=>({state:e,dispatch:n})=>{const r=qe(t,e.schema);return T0(r)(e,n)};function Vd(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e==null?void 0:e.includes(i.type.name));t.tr.ensureMarks(r)}}const $T=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:a}=e,{$from:s,$to:l}=o,c=i.extensionManager.attributes,u=jo(c,s.node().type.name,s.node().attrs);if(o instanceof ee&&o.node.isBlock)return!s.parentOffset||!Qr(a,s.pos)?!1:(r&&(t&&Vd(n,i.extensionManager.splittableMarks),e.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,p=s.depth===0?void 0:IT(s.node(-1).contentMatchAt(s.indexAfter(-1)));let _=d&&p?[{type:p,attrs:u}]:void 0,m=Qr(e.doc,e.mapping.map(s.pos),1,_);if(!_&&!m&&Qr(e.doc,e.mapping.map(s.pos),1,p?[{type:p}]:void 0)&&(m=!0,_=p?[{type:p,attrs:u}]:void 0),r){if(m&&(o instanceof Z&&e.deleteSelection(),e.split(e.mapping.map(s.pos),1,_),p&&!d&&!s.parentOffset&&s.parent.type!==p)){const f=e.mapping.map(s.before()),g=e.doc.resolve(f);s.node(-1).canReplaceWith(g.index(),g.index()+1,p)&&e.setNodeMarkup(e.mapping.map(s.before()),p)}t&&Vd(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},qT=(t,e={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var a;const s=qe(t,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const p=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let E=L.empty;const S=l.index(-1)?1:l.index(-2)?2:3;for(let x=l.depth-S;x>=l.depth-3;x-=1)E=L.from(l.node(x).copy(E));const b=l.indexAfter(-1){if(R>-1)return!1;x.isTextblock&&x.content.size===0&&(R=O+1)}),R>-1&&n.setSelection(Z.near(n.doc.resolve(R))),n.scrollIntoView()}return!0}const _=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...jo(p,d.type.name,d.attrs),...e},f={...jo(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const g=_?[{type:s,attrs:m},{type:_,attrs:f}]:[{type:s,attrs:m}];if(!Qr(n.doc,l.pos,2))return!1;if(i){const{selection:E,storedMarks:S}=r,{splittableMarks:b}=o.extensionManager,h=S||E.$to.parentOffset&&E.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!h||!i)return!0;const C=h.filter(T=>b.includes(T.type.name));n.ensureMarks(C)}return!0},qs=(t,e)=>{const n=_s(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&zn(t.doc,n.pos)&&t.join(n.pos),!0},Ws=(t,e)=>{const n=_s(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&zn(t.doc,r)&&t.join(r),!0},WT=(t,e,n,r={})=>({editor:i,tr:o,state:a,dispatch:s,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=i.extensionManager,_=qe(t,a.schema),m=qe(e,a.schema),{selection:f,storedMarks:g}=a,{$from:E,$to:S}=f,b=E.blockRange(S),h=g||f.$to.parentOffset&&f.$from.marks();if(!b)return!1;const C=_s(T=>Gd(T.type.name,d))(f);if(b.depth>=1&&C&&b.depth-C.depth<=1){if(C.node.type===_)return c.liftListItem(m);if(Gd(C.node.type.name,d)&&_.validContent(C.node.content)&&s)return l().command(()=>(o.setNodeMarkup(C.pos,_),!0)).command(()=>qs(o,_)).command(()=>Ws(o,_)).run()}return!n||!h||!s?l().command(()=>u().wrapInList(_,r)?!0:c.clearNodes()).wrapInList(_,r).command(()=>qs(o,_)).command(()=>Ws(o,_)).run():l().command(()=>{const T=u().wrapInList(_,r),R=h.filter(x=>p.includes(x.type.name));return o.ensureMarks(R),T?!0:c.clearNodes()}).wrapInList(_,r).command(()=>qs(o,_)).command(()=>Ws(o,_)).run()},KT=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Sn(t,r.schema);return ql(r,a,e)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,e)},QT=(t,e,n={})=>({state:r,commands:i})=>{const o=qe(t,r.schema),a=qe(e,r.schema),s=hr(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(a,l):i.setNode(o,{...l,...n})},ZT=(t,e={})=>({state:n,commands:r})=>{const i=qe(t,n.schema);return hr(n,i,e)?r.lift(i):r.wrapIn(i,e)},XT=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r=0;l-=1)a.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else a.delete(o.from,o.to)}return!0}}return!1},jT=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:i}=n;return r||e&&i.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},JT=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=e,{selection:s}=n,l=Sn(t,r.schema),{$from:c,empty:u,ranges:d}=s;if(!i)return!0;if(u&&a){let{from:p,to:_}=s;const m=(o=c.marks().find(g=>g.type===l))===null||o===void 0?void 0:o.attrs,f=wc(c,l,m);f&&(p=f.from,_=f.to),n.removeMark(p,_,l)}else d.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},eC=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=ps(typeof t=="string"?t:t.name,r.schema);return s?(s==="node"&&(o=qe(t,r.schema)),s==="mark"&&(a=Sn(t,r.schema)),i&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;r.doc.nodesBetween(c,u,(d,p)=>{o&&o===d.type&&n.setNodeMarkup(p,void 0,{...d.attrs,...e}),a&&d.marks.length&&d.marks.forEach(_=>{if(a===_.type){const m=Math.max(p,c),f=Math.min(p+d.nodeSize,u);n.addMark(m,f,a.create({..._.attrs,...e}))}})})}),!0):!1},tC=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return f0(i,e)(n,r)},nC=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return g0(i,e)(n,r)};var rC=Object.freeze({__proto__:null,blur:B0,clearContent:U0,clearNodes:H0,command:G0,createParagraphNear:V0,cut:Y0,deleteCurrentNode:z0,deleteNode:$0,deleteRange:q0,deleteSelection:W0,enter:K0,exitCode:Q0,extendMarkRange:X0,first:j0,focus:J0,forEach:eT,insertContent:tT,insertContentAt:iT,joinBackward:sT,joinDown:aT,joinForward:lT,joinItemBackward:cT,joinItemForward:uT,joinTextblockBackward:dT,joinTextblockForward:pT,joinUp:oT,keyboardShortcut:mT,lift:fT,liftEmptyBlock:gT,liftListItem:hT,newlineInCode:ET,resetAttributes:ST,scrollIntoView:bT,selectAll:TT,selectNodeBackward:CT,selectNodeForward:yT,selectParentNode:vT,selectTextblockEnd:RT,selectTextblockStart:OT,setContent:NT,setMark:UT,setMeta:HT,setNode:GT,setNodeSelection:VT,setTextSelection:YT,sinkListItem:zT,splitBlock:$T,splitListItem:qT,toggleList:WT,toggleMark:KT,toggleNode:QT,toggleWrap:ZT,undoInputRule:XT,unsetAllMarks:jT,unsetMark:JT,updateAttributes:eC,wrapIn:tC,wrapInList:nC});const iC=ge.create({name:"commands",addCommands(){return{...rC}}}),oC=ge.create({name:"drop",addProseMirrorPlugins(){return[new be({key:new ve("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),aC=ge.create({name:"editable",addProseMirrorPlugins(){return[new be({key:new ve("editable"),props:{editable:()=>this.editor.options.editable}})]}}),sC=ge.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new be({key:new ve("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),lC=ge.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:s})=>{const{selection:l,doc:c}=s,{empty:u,$anchor:d}=l,{pos:p,parent:_}=d,m=d.parent.isTextblock&&p>0?s.doc.resolve(p-1):d,f=m.parent.type.spec.isolating,g=d.pos-d.parentOffset,E=f&&m.parent.childCount===1?g===d.pos:te.atStart(c).from===p;return!u||!_.type.isTextblock||_.textContent.length||!E||E&&d.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return kc()||Tf()?o:i},addProseMirrorPlugins(){return[new be({key:new ve("clearDocument"),appendTransaction:(t,e,n)=>{const r=t.some(f=>f.docChanged)&&!e.doc.eq(n.doc),i=t.some(f=>f.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=e.selection,l=te.atStart(e.doc).from,c=te.atEnd(e.doc).to;if(o||!(a===l&&s===c)||!ms(n.doc))return;const p=n.tr,_=ss({state:n,transaction:p}),{commands:m}=new ls({editor:this.editor,state:_});if(m.clearNodes(),!!p.steps.length)return p}})]}}),cC=ge.create({name:"paste",addProseMirrorPlugins(){return[new be({key:new ve("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),uC=ge.create({name:"tabindex",addProseMirrorPlugins(){return[new be({key:new ve("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Jn{get name(){return this.node.type.name}constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Jn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Jn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Jn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,a=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new Jn(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),e.push(new Jn(s,this.editor,i,i?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const o=i.node.attrs,a=Object.keys(n);for(let s=0;s{r&&i.length>0||(a.node.type.name===e&&o.every(l=>n[l]===a.node.attrs[l])&&i.push(a),!(r&&i.length>0)&&(i=i.concat(a.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const dC=`.ProseMirror { +"use strict";var TE=Object.defineProperty;var Bu=t=>{throw TypeError(t)};var CE=(t,e,n)=>e in t?TE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var L=(t,e,n)=>CE(t,typeof e!="symbol"?e+"":e,n),Uu=(t,e,n)=>e.has(t)||Bu("Cannot "+n);var Or=(t,e,n)=>(Uu(t,e,"read from private field"),n?n.call(t):e.get(t)),Hu=(t,e,n)=>e.has(t)?Bu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Gu=(t,e,n,r)=>(Uu(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ze(t){this.content=t}Ze.prototype={constructor:Ze,find:function(t){for(var e=0;e>1}};Ze.from=function(t){if(t instanceof Ze)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ze(e)};function tm(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=tm(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function nm(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=t.child(--i),s=e.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let c=0,u=Math.min(a.text.length,s.text.length);for(;ce&&r(l,i+s,o||null,a)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",a=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);oe)for(let o=0,a=0;ae&&((an)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new w(r,i)}cutByIndex(e,n){return e==n?w.empty:e==0&&n==this.content.length?this:new w(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new w(i,o)}addToStart(e){return new w([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new w(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),a=i+o.nodeSize;if(a>=e)return a==e||n>0?Ro(r+1,a):Ro(r,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return w.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new w(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return w.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-i.type.rank),n}};Re.none=[];class sa extends Error{}class H{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=im(this.content,e+this.openStart,n);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,n){return new H(rm(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return H.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(w.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new H(e,r,i)}}H.empty=new H(w.empty,0,0);function rm(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(i==e||o.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(rm(o.content,e-i-1,n-i-1)))}function im(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),a=t.maybeChild(i);if(o==e||a.isText)return t.cut(0,e).append(n).append(t.cut(e));let s=im(a.content,e-o-1,n);return s&&t.replaceChild(i,a.copy(s))}function yE(t,e,n){if(n.openStart>t.depth)throw new sa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new sa("Inconsistent open depths");return om(t,e,n,0)}function om(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function xi(t,e,n,r){let i=(e||t).node(n),o=0,a=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(ar(t.nodeAfter,r),o++));for(let s=o;si&&Il(t,e,i+1),a=r.depth>i&&Il(n,r,i+1),s=[];return xi(null,t,i,s),o&&a&&e.index(i)==n.index(i)?(am(o,a),ar(sr(o,sm(t,e,n,r,i+1)),s)):(o&&ar(sr(o,la(t,e,i+1)),s),xi(e,n,i,s),a&&ar(sr(a,la(n,r,i+1)),s)),xi(r,null,i,s),new w(s)}function la(t,e,n){let r=[];if(xi(null,t,n,r),t.depth>n){let i=Il(t,e,n+1);ar(sr(i,la(t,e,n+1)),r)}return xi(e,null,n,r),new w(r)}function vE(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(w.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Vi{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new ca(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=e;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(r.push(a,s,i+l),!c||(a=a.child(s),a.isText))break;o=c-1,i+=l+1}return new Vi(n,r,o)}static resolveCached(e,n){let r=Vu.get(e);if(r)for(let o=0;oe&&this.nodesBetween(e,n,o=>(r.isInSet(o.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()+")"),lm(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=w.empty,i=0,o=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=w.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};Bn.prototype.text=void 0;class ua extends Bn{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):lm(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ua(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ua(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function lm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new AE(e,n);if(r.next==null)return mr.empty;let i=cm(r);r.next&&r.err("Unexpected trailing text");let o=kE(LE(i));return PE(o,r),o}matchType(e){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a"+e.indexOf(r.next[a].next);return o}).join(` +`)}}mr.empty=new mr(!0);class AE{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function cm(t){let e=[];do e.push(IE(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function IE(t){let e=[];do e.push(xE(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function xE(t){let e=wE(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=DE(t,e);else break;return e}function Yu(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function DE(t,e){let n=Yu(t),r=n;return t.eat(",")&&(t.next!="}"?r=Yu(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function ME(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(e)&&i.push(a)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function wE(t){if(t.eat("(")){let e=cm(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=ME(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function LE(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(a,s,l){let c={term:l,to:s};return e[a].push(c),c}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;i(c,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c{t[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new mr(r.indexOf(t.length-1)>-1);for(let a=0;a-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:pm(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Bn(this,this.computeAttrs(e),w.from(n),Re.setFrom(r))}createChecked(e=null,n,r){return n=w.from(n),this.checkContent(n),new Bn(this,this.computeAttrs(e),n,Re.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=w.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(w.empty,!0);return o?new Bn(this,e,n.append(o),Re.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[o]=new fm(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function FE(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}class BE{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?FE(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class es{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=mm(e,i.attrs),this.excluded=null;let o=dm(this.attrs);this.instance=o?new Re(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Re(this,pm(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,a)=>r[o]=new es(o,i++,n,a)),r}removeFromSet(e){for(var n=0;n-1}}class gm{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Ze.from(e.nodes),n.marks=Ze.from(e.marks||{}),this.nodes=$u.compile(this.spec.nodes,this),this.marks=es.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=mr.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?qu(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:qu(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof $u){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new ua(r,r.defaultAttrs,e,Re.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Bn.fromJSON(this,e)}markFromJSON(e){return Re.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function qu(t,e){let n=[];for(let r=0;r-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function UE(t){return t.tag!=null}function HE(t){return t.style!=null}let Wr=class Dl{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(UE(i))this.tags.push(i);else if(HE(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new Ku(this,n,!1);return r.addAll(e,Re.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Ku(this,n,!0);return r.addAll(e,Re.none,n.from,n.to),H.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a{r(a=Qu(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=Qu(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Dl(e,Dl.schemaRules(e)))}};const hm={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},GE={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Em={ol:!0,ul:!0},da=1,pa=2,Di=4;function Wu(t,e,n){return e!=null?(e?da:0)|(e==="full"?pa:0):t&&t.whitespace=="pre"?da|pa:n&~Di}class Oo{constructor(e,n,r,i,o,a){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Re.none,this.match=o||(a&Di?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(w.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&da)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=w.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!hm.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ku{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,a=Wu(null,n.preserveWhitespace,0)|(r?Di:0);i?o=new Oo(i.type,i.attrs,Re.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new Oo(null,null,Re.none,!0,null,a):o=new Oo(e.schema.topNodeType,null,Re.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top;if(i.options&pa||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&da)i.options&pa?r=r.replace(/\r\n?/g,` +`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],a=e.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=e.nodeName.toLowerCase(),o;Em.hasOwnProperty(i)&&this.parser.normalizeLists&&VE(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));if(a?a.ignore:GE.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let s,l=this.top,c=this.needsBlock;if(hm.hasOwnProperty(i))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let u=a&&a.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),s&&this.sync(l),this.needsBlock=c}else{let s=this.readStyles(e,n);s&&this.addElementByRule(e,a,s,a.consuming===!1?o:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(e,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r)||this.leafFallback(e,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(s)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let a=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,n);this.findAtPoint(e,o)}findPlace(e,n){let r,i;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(e);if(s&&(!r||r.length>s.length)&&(r=s,i=a,!s.length)||a.solid)break}if(!r)return null;this.sync(i);for(let o=0;o(a.type?a.type.allowsMarkType(c.type):Zu(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Oo(e,n,l,i,null,s)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function VE(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Em.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function YE(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Qu(t){let e={};for(let n in t)e[n]=t[n];return e}function Zu(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],a=s=>{o.push(s);for(let l=0;l{if(o.length||a.marks.length){let s=0,l=0;for(;s=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Xo(ws(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Xo(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Cr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Xu(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Xu(e.marks)}}function Xu(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function ws(t){return t.document||window.document}const ju=new WeakMap;function zE(t){let e=ju.get(t);return e===void 0&&ju.set(t,e=$E(t)),e}function $E(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:_,contentDOM:m}=Xo(t,p,n,r);if(l.appendChild(_),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}const Sm=65535,bm=Math.pow(2,16);function qE(t,e){return t+e*bm}function Ju(t){return t&Sm}function WE(t){return(t-(t&Sm))/bm}const Tm=1,Cm=2,jo=4,ym=8;class Ml{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&ym)>0}get deletedBefore(){return(this.delInfo&(Tm|jo))>0}get deletedAfter(){return(this.delInfo&(Cm|jo))>0}get deletedAcross(){return(this.delInfo&jo)>0}}class Ct{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Ct.empty)return Ct.empty}recover(e){let n=0,r=Ju(e);if(!this.inverted)for(let i=0;ie)break;let c=this.ranges[s+o],u=this.ranges[s+a],d=l+c;if(e<=d){let p=c?e==l?-1:e==d?1:n:n,_=l+i+(p<0?0:u);if(r)return _;let m=e==(n<0?l:d)?null:qE(s/3,e-l),f=e==l?Cm:e==d?Tm:jo;return(n<0?e!=l:e!=d)&&(f|=ym),new Ml(_,f,m)}i+=u-c}return r?e+i:new Ml(e+i,0,null)}touches(e,n){let r=0,i=Ju(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;se)break;let c=this.ranges[s+o],u=l+c;if(e<=u&&s==i*3)return!0;r+=this.ranges[s+a]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Kr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;ro&&l!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Fe.fromReplace(e,this.from,this.to,o)}invert(){return new Zt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Dn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Dn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Dn(n.from,n.to,e.markFromJSON(n.mark))}}ot.jsonID("addMark",Dn);class Zt extends ot{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new H(Sc(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Fe.fromReplace(e,this.from,this.to,r)}invert(){return new Dn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Zt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Zt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Zt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Zt(n.from,n.to,e.markFromJSON(n.mark))}}ot.jsonID("removeMark",Zt);class Mn extends ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Fe.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Fe.fromReplace(e,this.pos,this.pos+1,new H(w.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new ze(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ze(n.from,n.to,n.gapFrom,n.gapTo,H.fromJSON(e,n.slice),n.insert,!!n.structure)}}ot.jsonID("replaceAround",ze);function wl(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function KE(t,e,n,r){let i=[],o=[],a,s;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let p=Math.max(c,e),_=Math.min(c+l.nodeSize,n),m=r.addToSet(d);for(let f=0;ft.step(l)),o.forEach(l=>t.step(l))}function QE(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof es){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let u=0;ut.step(new Zt(a.from,a.to,a.style)))}function bc(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l=0;l--)t.step(a[l])}function ZE(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function _i(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),o=t.$from.index(r),a=t.$to.indexAfter(r);if(rn;m--)f||r.index(m)>0?(f=!0,u=w.from(r.node(m).copy(u)),d++):l--;let p=w.empty,_=0;for(let m=o,f=!1;m>n;m--)f||i.after(m+1)=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=w.from(n[a].type.create(n[a].attrs,r))}let i=e.start,o=e.end;t.step(new ze(i,o,i,o,new H(r,0,0),n.length,!0))}function tS(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&nS(t.doc,t.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let _=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);_&&!m?c=!1:!_&&m&&(c=!0)}c===!1&&Rm(t,a,s,o),bc(t,t.mapping.slice(o).map(s,1),r,void 0,c===null);let u=t.mapping.slice(o),d=u.map(s,1),p=u.map(s+a.nodeSize,1);return t.step(new ze(d,p,d+1,p-1,new H(w.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&vm(t,a,s,o),!1}})}function vm(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+a.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Rm(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=t.mapping.slice(r).map(n+1+o);t.replaceWith(a,a+1,e.type.schema.text(` +`))}})}function nS(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function rS(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ze(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new H(w.from(a),0,0),1,!0))}function Qr(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),p=i.index(c);if(d.type.spec.isolating)return!1;let _=d.content.cutByIndex(p,d.childCount),m=r&&r[u+1];m&&(_=_.replaceChild(0,m.type.create(m.attrs)));let f=r&&r[u]||d;if(!d.canReplace(p+1,d.childCount)||!f.type.validContent(_))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function iS(t,e,n=1,r){let i=t.doc.resolve(e),o=w.empty,a=w.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=w.from(i.node(s).copy(o));let u=r&&r[c];a=w.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}t.step(new Ue(e,e,new H(o.append(a),n,n),!0))}function $n(t,e){let n=t.resolve(e),r=n.index();return Om(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function oS(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&Om(o,a)&&r.node(i).canReplace(s,s+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function aS(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,o=t.doc.resolve(e-n),a=o.node().type;if(i&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let s=t.steps.length;if(r===!1){let u=t.doc.resolve(e+n);Rm(t,u.node(),u.before(),s)}a.inlineContent&&bc(t,e+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=t.mapping.slice(s),c=l.map(e-n);if(t.step(new Ue(c,l.map(e+n,-1),H.empty,!0)),r===!0){let u=t.doc.resolve(c);vm(t,u.node(),u.before(),t.steps.length)}return t}function sS(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),c=r.node(a),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function ns(t,e,n=e,r=H.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return Am(i,o,r)?new Ue(e,n,r):new lS(i,o,r).fit()}function Am(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class lS{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=w.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=w.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new H(o,a,s);return e>-1?new ze(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Ue(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=ks(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(w.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=ks(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new H(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=ks(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new H(Ni(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new H(Ni(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let f=0;f1||l==0||f.content.size)&&(d=g,u.push(Im(f.mark(p.allowedMarks(f.marks)),c==1?l:0,c==s.childCount?_:-1)))}let m=c==s.childCount;m||(_=-1),this.placed=Ai(this.placed,n,w.from(u)),this.frontier[n].match=d,m&&_<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let f=0,g=s;f<_;f++){let S=g.lastChild;this.frontier.push({type:S.type,match:S.contentMatchAt(S.childCount)}),g=S.content}this.unplaced=m?e==0?H.empty:new H(Ni(a.content,e-1,1),e-1,_<0?a.openEnd:e-1):new H(Ni(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Ps(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n=0;s--){let{match:l,type:c}=this.frontier[s],u=Ps(e,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ai(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Ai(this.placed,this.depth,w.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(w.empty,!0);n.childCount&&(this.placed=Ai(this.placed,this.frontier.length,n))}}function Ni(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ni(t.firstChild.content,e-1,n)))}function Ai(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ai(t.lastChild.content,e-1,n)))}function ks(t,e){for(let n=0;n1&&(r=r.replaceChild(0,Im(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(w.empty,!0)))),t.copy(r)}function Ps(t,e,n,r,i){let o=t.node(e),a=i?t.indexAfter(e):t.index(e);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!cS(n,o.content,a)?s:null}function cS(t,e,n){for(let r=n;r0;p--,_--){let m=i.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?s=p:i.before(p)==_&&a.splice(1,0,-p)}let l=a.indexOf(s),c=[],u=r.openStart;for(let p=r.content,_=0;;_++){let m=p.firstChild;if(c.push(m),_==r.openStart)break;p=m.content}for(let p=u-1;p>=0;p--){let _=c[p],m=uS(_.type);if(m&&!_.sameMarkup(i.node(Math.abs(s)-1)))u=p;else if(m||!_.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let _=(p+u+1)%(r.openStart+1),m=c[_];if(m)for(let f=0;f=0&&(t.replace(e,n,r),!(t.steps.length>d));p--){let _=a[p];_<0||(e=i.before(_),n=o.after(_))}}function xm(t,e,n,r,i){if(er){let o=i.contentMatchAt(0),a=o.fillBefore(t).append(t);t=a.append(o.matchFragment(a).fillBefore(w.empty,!0))}return t}function pS(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=sS(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new H(w.from(r),0,0))}function _S(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=Dm(r,i);for(let a=0;a0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return t.delete(r.before(a),n);t.delete(e,n)}function Dm(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(oe.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}class Zr extends ot{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Fe.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Fe.fromReplace(e,this.pos,this.pos+1,new H(w.from(i),0,n.isLeaf?0:1))}getMap(){return Ct.empty}invert(e){return new Zr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Zr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Zr(n.pos,n.attr,n.value)}}ot.jsonID("attr",Zr);class Yi extends ot{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Fe.ok(r)}getMap(){return Ct.empty}invert(e){return new Yi(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Yi(n.attr,n.value)}}ot.jsonID("docAttr",Yi);let ei=class extends Error{};ei=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};ei.prototype=Object.create(Error.prototype);ei.prototype.constructor=ei;ei.prototype.name="TransformError";class Cc{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Kr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ei(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=H.empty){let i=ns(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new H(w.from(r),0,0))}delete(e,n){return this.replace(e,n,H.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return dS(this,e,n,r),this}replaceRangeWith(e,n,r){return pS(this,e,n,r),this}deleteRange(e,n){return _S(this,e,n),this}lift(e,n){return XE(this,e,n),this}join(e,n=1){return aS(this,e,n),this}wrap(e,n){return eS(this,e,n),this}setBlockType(e,n=e,r,i=null){return tS(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return rS(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new Zr(e,n,r)),this}setDocAttribute(e,n){return this.step(new Yi(e,n)),this}addNodeMark(e,n){return this.step(new Mn(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Re)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Jr(e,n)),this}split(e,n=1,r){return iS(this,e,n,r),this}addMark(e,n,r){return KE(this,e,n,r),this}removeMark(e,n,r){return QE(this,e,n,r),this}clearIncompatible(e,n,r){return bc(this,e,n,r),this}}const Fs=Object.create(null);class te{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Mm(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;o--){let a=n<0?Pr(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):Pr(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Dt(e.node(0))}static atStart(e){return Pr(e,e,0,0,1)||new Dt(e)}static atEnd(e){return Pr(e,e,e.content.size,e.childCount,-1)||new Dt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Fs[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Fs)throw new RangeError("Duplicate use of selection JSON ID "+e);return Fs[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Z.between(this.$anchor,this.$head).getBookmark()}}te.prototype.visible=!0;class Mm{constructor(e,n){this.$from=e,this.$to=n}}let td=!1;function nd(t){!td&&!t.parent.inlineContent&&(td=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Z extends te{constructor(e,n=e){nd(e),nd(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return te.near(r);let i=e.resolve(n.map(this.anchor));return new Z(i.parent.inlineContent?i:r,r)}replace(e,n=H.empty){if(super.replace(e,n),n==H.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Z&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new rs(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Z(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=te.findFrom(n,r,!0)||te.findFrom(n,-r,!0);if(o)n=o.$head;else return te.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(te.findFrom(e,-r,!0)||te.findFrom(e,r,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let s=e.child(a);if(s.isAtom){if(!o&&ee.isSelectable(s))return ee.create(t,n-(i<0?s.nodeSize:0))}else{let l=Pr(t,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function rd(t,e,n){let r=t.steps.length-1;if(r{a==null&&(a=u)}),t.setSelection(te.near(t.doc.resolve(a),n))}const id=1,No=2,od=4;class fS extends Cc{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.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=No,this}ensureMarks(e){return Re.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&No)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~No,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Re.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),this.selection.empty||this.setSelection(te.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=od,this}get scrolledIntoView(){return(this.updated&od)>0}}function ad(t,e){return!e||!t?t:t.bind(e)}class Ii{constructor(e,n,r){this.name=e,this.init=ad(n.init,r),this.apply=ad(n.apply,r)}}const gS=[new Ii("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ii("selection",{init(t,e){return t.selection||te.atStart(e.doc)},apply(t){return t.selection}}),new Ii("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ii("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Bs{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=gS.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ii(r.key,r.spec.state,r))})}}class Vr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Bs(e.schema,e.plugins),o=new Vr(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=Bn.fromJSON(e.schema,n.doc);else if(a.name=="selection")o.selection=te.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,e,n[s],o);return}}o[a.name]=a.init(e,o)}}),o}}function wm(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=wm(i,e,{})),n[r]=i}return n}class Se{constructor(e){this.spec=e,this.props={},e.props&&wm(e.props,this,this.props),this.key=e.key?e.key.key:Lm("plugin")}getState(e){return e[this.key]}}const Us=Object.create(null);function Lm(t){return t in Us?t+"$"+ ++Us[t]:(Us[t]=0,t+"$")}class ve{constructor(e="key"){this.key=Lm(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Xe=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},zi=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Ll=null;const pn=function(t,e,n){let r=Ll||(Ll=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},hS=function(){Ll=null},fr=function(t,e,n,r){return n&&(sd(t,e,n,r,-1)||sd(t,e,n,r,1))},ES=/^(img|br|input|textarea|hr)$/i;function sd(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:xt(t))){let o=t.parentNode;if(!o||o.nodeType!=1||po(t)||ES.test(t.nodeName)||t.contentEditable=="false")return!1;e=Xe(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?xt(t):0}else return!1}}function xt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function SS(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=xt(t)}else if(t.parentNode&&!po(t))e=Xe(t),t=t.parentNode;else return null}}function bS(t,e){for(;;){if(t.nodeType==3&&e2),It=ti||(tn?/Mac/.test(tn.platform):!1),vS=tn?/Win/.test(tn.platform):!1,Ut=/Android \d/.test(qn),_o=!!ld&&"webkitFontSmoothing"in ld.documentElement.style,RS=_o?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function OS(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function ln(t,e){return typeof t=="number"?t:t[e]}function NS(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function cd(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let a=n||t.dom;a;a=zi(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,c=l?OS(o):NS(s),u=0,d=0;if(e.topc.bottom-ln(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+ln(i,"top")-c.top:e.bottom-c.bottom+ln(i,"bottom")),e.leftc.right-ln(r,"right")&&(u=e.right-c.right+ln(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let p=s.scrollLeft,_=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let m=s.scrollLeft-p,f=s.scrollTop-_;e={left:e.left-m,top:e.top-f,right:e.right-m,bottom:e.bottom-f}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function AS(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Fm(t.dom)}}function Fm(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=zi(r));return e}function IS({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Bm(n,r==0?0:r-e)}function Bm(t,e){for(let n=0;n=s){a=Math.max(m.bottom,a),s=Math.min(m.top,s);let f=m.left>e.left?m.left-e.left:m.right=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!l&&m.left<=e.left&&m.right>=e.left&&(l=u,c={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?DS(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:Um(n,i)}function DS(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function vc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function MS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function LS(t,e,n,r){let i=-1;for(let o=e,a=!1;o!=t.dom;){let s=t.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:t.docView.posFromDOM(e,n,-1)}function Hm(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&i++}let c;_o&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=LS(t,r,i,e))}s==null&&(s=wS(t,a,e));let l=t.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function ud(t){return t.top=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,Si(Cn(pn(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==xt(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return Hs(l.getBoundingClientRect(),!1)}if(o==null&&i=0)}if(o==null&&i&&(n<0||i==xt(r))){let l=r.childNodes[i-1],c=l.nodeType==3?pn(l,xt(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Si(Cn(c,1),!1)}if(o==null&&i=0)}function Si(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Hs(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Vm(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function FS(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return Vm(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=Gm(t,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=pn(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const BS=/[\u0590-\u08ac]/;function US(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=t.domSelection();return s?!BS.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:Vm(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),p=s.caretBidiLevel;s.modify("move",n,"character");let _=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:f}=t.domSelectionRange(),g=m&&!_.contains(m.nodeType==1?m:m.parentNode)||l==m&&c==f;try{s.collapse(u,d),l&&(l!=u||c!=d)&&s.extend&&s.extend(l,c)}catch{}return p!=null&&(s.caretBidiLevel=p),g}):r.pos==r.start()||r.pos==r.end()}let dd=null,pd=null,_d=!1;function HS(t,e,n){return dd==e&&pd==n?_d:(dd=e,pd=n,_d=n=="up"||n=="down"?FS(t,e,n):US(t,e,n))}const Mt=0,md=1,rr=2,nn=3;class mo{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Mt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nXe(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||a instanceof zm){i=e-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Ym&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Xe(o.dom)+1:0}}else{let o,a=!0;for(;o=r=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=a;for(let d=s;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){i=Xe(p.dom)+1;break}e-=p.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u_&&an){let _=s;s=l,l=_}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i=r:er){let s=r+o.border,l=a-o.border;if(e>=s&&n<=l){this.dirty=e==r||n==a?rr:md,e==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=nn:o.markDirty(e-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?rr:nn}r=a}this.dirty=rr}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?rr:md;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Mt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class GS extends mo{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class gr extends mo{constructor(e,n,r,i,o){super(e,[],r,i),this.mark=n,this.spec=o}static create(e,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Cr.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new gr(e,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&nn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=nn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Mt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=Ul(o,0,e,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Cr.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let p=u;return u=Wm(u,r,n),c?l=new VS(e,n,r,i,u,d||null,p,c,o,a+1):n.isText?new as(e,n,r,i,u,p,o):new Hn(e,n,r,i,u,d||null,p,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>w.empty)}return e}matchesNode(e,n,r){return this.dirty==Mt&&e.eq(this.node)&&_a(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new zS(this,a&&a.node,e);WS(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Re.none:this.node.child(u).marks,r,e),l.placeWidget(c,e,i)},(c,u,d,p)=>{l.syncToMarks(c.marks,r,e);let _;l.findNodeMatch(c,u,d,p)||s&&e.state.selection.from>i&&e.state.selection.to-1&&l.updateNodeAt(c,u,d,_,e)||l.updateNextNode(c,u,d,e,p,i)||l.addNode(c,u,d,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==rr)&&(a&&this.protectLocalComposition(e,a),$m(this.contentDOM,this.children,e),ti&&KS(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof Z)||rn+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=QS(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new GS(this,o,n,i);e.input.compositionNodes.push(a),this.children=Ul(this.children,r,r+i.length,e,a)}update(e,n,r,i){return this.dirty==nn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Mt}updateOuterDeco(e){if(_a(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=qm(this.dom,this.nodeDOM,Bl(this.outerDeco,this.node,n),Bl(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function fd(t,e,n,r,i){Wm(r,e,t);let o=new Hn(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class as extends Hn{constructor(e,n,r,i,o,a,s){super(e,n,r,i,o,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==nn||this.dirty!=Mt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Mt||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=Mt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new as(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=nn)}get domAtom(){return!1}isText(e){return this.node.text==e}}class zm extends mo{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Mt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class VS extends Hn{constructor(e,n,r,i,o,a,s,l,c,u){super(e,n,r,i,o,a,s,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==nn)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function $m(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,e.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=gr.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof gr)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function qS(t,e){return t.type.side-e.type.side}function WS(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;co;)s.push(i[a++]);let m=o+p.nodeSize;if(p.isText){let g=m;a!g.inline):s.slice();r(p,f,e.forChild(o,p),_),o=m}}function KS(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function QS(t,e,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let c=s=0&&c+e.length+s>=n)return s+c;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}function Ul(t,e,n,r,i){let o=[];for(let a=0,s=0;a=n||u<=e?o.push(l):(cn&&o.push(l.slice(n-c,l.size,r)))}return o}function Rc(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(is(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&ee.isSelectable(d)&&i.parent&&!(d.isInline&&TS(n.focusNode,n.focusOffset,i.dom))){let p=i.posBefore;c=new ee(a==p?s:r.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,p=a;for(let _=0;_{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Km(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function XS(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,Xe(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&pt&&Un<=11&&(r.disabled=!0,r.disabled=!1)}function Qm(t,e){if(e instanceof ee){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(bd(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else bd(t)}function bd(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Oc(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||Z.between(e,n,r)}function Td(t){return t.editable&&!t.hasFocus()?!1:Zm(t)}function Zm(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function jS(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return fr(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Hl(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&te.findFrom(o,e)}function yn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Cd(t,e,n){let r=t.state.selection;if(r instanceof Z)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return yn(t,new Z(r.$anchor,a))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=Hl(t.state,e);return i&&i instanceof ee?yn(t,i):!1}else if(!(It&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=t.docView.descAt(s))&&!a.contentDOM?ee.isSelectable(o)?yn(t,new ee(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):_o?yn(t,new Z(t.state.doc.resolve(e<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ee&&r.node.isInline)return yn(t,new Z(e>0?r.$to:r.$from));{let i=Hl(t.state,e);return i?yn(t,i):!1}}}function ma(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function wi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Ar(t,e){return e<0?JS(t):eb(t)}function JS(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,a=!1;for(Gt&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(wi(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Xm(n))break;{let s=n.previousSibling;for(;s&&wi(s,-1);)i=n.parentNode,o=Xe(s),s=s.previousSibling;if(s)n=s,r=ma(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}a?Gl(t,n,r):i&&Gl(t,i,o)}function eb(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=ma(n),o,a;for(;;)if(r{t.state==i&&gn(t)},50)}function yd(t,e){let n=t.state.doc.resolve(e);if(!(rt||vS)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function vd(t,e,n){let r=t.state.selection;if(r instanceof Z&&!r.empty||n.indexOf("s")>-1||It&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=Hl(t.state,e);if(a&&a instanceof ee)return yn(t,a)}if(!i.parent.inlineContent){let a=e<0?i:o,s=r instanceof Dt?te.near(a,e):te.findFrom(a,e);return s?yn(t,s):!1}return!1}function Rd(t,e){if(!(t.state.selection instanceof Z))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=t.state.tr;return e<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),t.dispatch(a),!0}return!1}function Od(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function rb(t){if(!st||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Od(t,r,"true"),setTimeout(()=>Od(t,r,"false"),20)}return!1}function ib(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function ob(t,e){let n=e.keyCode,r=ib(e);if(n==8||It&&n==72&&r=="c")return Rd(t,-1)||Ar(t,-1);if(n==46&&!e.shiftKey||It&&n==68&&r=="c")return Rd(t,1)||Ar(t,1);if(n==13||n==27)return!0;if(n==37||It&&n==66&&r=="c"){let i=n==37?yd(t,t.state.selection.from)=="ltr"?-1:1:-1;return Cd(t,i,r)||Ar(t,i)}else if(n==39||It&&n==70&&r=="c"){let i=n==39?yd(t,t.state.selection.from)=="ltr"?1:-1:1;return Cd(t,i,r)||Ar(t,i)}else{if(n==38||It&&n==80&&r=="c")return vd(t,-1,r)||Ar(t,-1);if(n==40||It&&n==78&&r=="c")return rb(t)||vd(t,1,r)||Ar(t,1);if(r==(It?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function jm(t,e){t.someProp("transformCopied",_=>{e=_(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let _=r.firstChild;n.push(_.type.name,_.attrs!=_.type.defaultAttrs?_.attrs:null),r=_.content}let a=t.someProp("clipboardSerializer")||Cr.fromSchema(t.state.schema),s=of(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=rf[c.nodeName.toLowerCase()]);){for(let _=u.length-1;_>=0;_--){let m=s.createElement(u[_]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",_=>_(e,t))||e.content.textBetween(0,e.content.size,` + +`);return{dom:l,text:p,slice:e}}function Jm(t,e,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!e)return null;let l=e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,o||r,t)}),o)return e?new H(w.from(t.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):H.empty;let d=t.someProp("clipboardTextParser",p=>p(e,i,r,t));if(d)s=d;else{let p=i.marks(),{schema:_}=t.state,m=Cr.fromSchema(_);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(f=>{let g=a.appendChild(document.createElement("p"));f&&g.appendChild(m.serializeNode(_.text(f,p)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),a=cb(n),_o&&ub(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||Wr.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!ab.test(p.parentNode.nodeName)?{ignore:!0}:null}})),u)s=db(Nd(s,+u[1],+u[2]),u[4]);else if(s=H.maxOpen(sb(s.content,i),!0),s.openStart||s.openEnd){let d=0,p=0;for(let _=s.content.firstChild;d{s=d(s,t)}),s}const ab=/^(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 sb(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,a=[];if(t.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&o.length&&tf(l,o,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=nf(a[a.length-1],o.length));let u=ef(s,l);a.push(u),i=i.matchType(u.type),o=l}}),a)return w.from(a)}return t}function ef(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,w.from(t));return t}function tf(t,e,n,r,i){if(i1&&(o=0),i=n&&(s=e<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(w.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(s))}function Nd(t,e,n){return en})),Vs.createHTML(t)):t}function cb(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=of().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&rf[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"").reverse().join("")),n.innerHTML=lb(t),i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=w.from(l.create(r[s+1],i)),o++,a++}return new H(i,o,a)}const lt={},ct={},pb={touchstart:!0,touchmove:!0};class _b{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.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function mb(t){for(let e in lt){let n=lt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{gb(t,r)&&!Nc(t,r)&&(t.editable||!(r.type in ct))&&n(t,r)},pb[e]?{passive:!0}:void 0)}st&&t.dom.addEventListener("input",()=>null),Yl(t)}function wn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function fb(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Yl(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Nc(t,r))})}function Nc(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function gb(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function hb(t,e){!Nc(t,e)&<[e.type]&&(t.editable||!(e.type in ct))&<[e.type](t,e)}ct.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!sf(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Ut&&rt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ti&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,Jn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||ob(t,n)?n.preventDefault():wn(t,"key")};ct.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};ct.keypress=(t,e)=>{let n=e;if(sf(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||It&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Z)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function ss(t){return{left:t.clientX,top:t.clientY}}function Eb(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ac(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(t.someProp(e,s=>a>o.depth?s(t,n,o.nodeAfter,o.before(a),i,!0):s(t,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Xr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Sb(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&ee.isSelectable(r)?(Xr(t,new ee(n)),!0):!1}function bb(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof ee&&(r=n.node);let o=t.state.doc.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(ee.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(Xr(t,ee.create(t.state.doc,i)),!0):!1}function Tb(t,e,n,r,i){return Ac(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?bb(t,n):Sb(t,n))}function Cb(t,e,n,r){return Ac(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function yb(t,e,n,r){return Ac(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||vb(t,n,r)}function vb(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Xr(t,Z.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Xr(t,Z.create(r,s+1,s+1+a.content.size));else if(ee.isSelectable(a))Xr(t,ee.create(r,s));else continue;return!0}}function Ic(t){return fa(t)}const af=It?"metaKey":"ctrlKey";lt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Ic(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&Eb(n,t.input.lastClick)&&!n[af]&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=t.posAtCoords(ss(n));a&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Rb(t,a,n,!!r)):(o=="doubleClick"?Cb:yb)(t,a.pos,a.inside,n)?n.preventDefault():wn(t,"pointer"))};class Rb{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[af],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),a=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,a=u.depth?u.before():0}const s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof ee&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Gt&&!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)),wn(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(()=>gn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(ss(e))),this.updateAllowDefault(e),this.allowDefault||!n?wn(this.view,"pointer"):Tb(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||st&&this.mightDrag&&!this.mightDrag.node.isAtom||rt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Xr(this.view,te.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):wn(this.view,"pointer")}move(e){this.updateAllowDefault(e),wn(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}lt.touchstart=t=>{t.input.lastTouch=Date.now(),Ic(t),wn(t,"pointer")};lt.touchmove=t=>{t.input.lastTouch=Date.now(),wn(t,"pointer")};lt.contextmenu=t=>Ic(t);function sf(t,e){return t.composing?!0:st&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Ob=Ut?5e3:-1;ct.compositionstart=ct.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Z&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),fa(t,!0),t.markCursor=null;else if(fa(t,!e.selection.empty),Gt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=t.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}t.input.composing=!0}lf(t,Ob)};ct.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,lf(t,20))};function lf(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>fa(t),e))}function cf(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Ab());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Nb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=SS(e.focusNode,e.focusOffset),r=bS(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function Ab(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function fa(t,e=!1){if(!(Ut&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),cf(t),e||t.docView&&t.docView.dirty){let n=Rc(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Ib(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const $i=pt&&Un<15||ti&&RS<604;lt.copy=ct.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=$i?null:n.clipboardData,a=r.content(),{dom:s,text:l}=jm(t,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):Ib(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function xb(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Db(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?qi(t,r.value,null,i,e):qi(t,r.textContent,r.innerHTML,i,e)},50)}function qi(t,e,n,r,i){let o=Jm(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||H.empty)))return!0;if(!o)return!1;let a=xb(o),s=a?t.state.tr.replaceSelectionWith(a,r):t.state.tr.replaceSelection(o);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function uf(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ct.paste=(t,e)=>{let n=e;if(t.composing&&!Ut)return;let r=$i?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&qi(t,uf(r),r.getData("text/html"),i,n)?n.preventDefault():Db(t,n)};class df{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const pf=It?"altKey":"ctrlKey";lt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(ss(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof ee?i.to-1:i.to))){if(r&&r.mightDrag)a=ee.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(a=ee.create(t.state.doc,d.posBefore))}}let s=(a||t.state.selection).content(),{dom:l,text:c,slice:u}=jm(t,s);(!n.dataTransfer.files.length||!rt||Pm>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($i?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",$i||n.dataTransfer.setData("text/plain",c),t.dragging=new df(u,!n[pf],a)};lt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};ct.dragover=ct.dragenter=(t,e)=>e.preventDefault();ct.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(ss(n));if(!i)return;let o=t.state.doc.resolve(i.pos),a=r&&r.slice;a?t.someProp("transformPasted",m=>{a=m(a,t)}):a=Jm(t,uf(n.dataTransfer),$i?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[pf]);if(t.someProp("handleDrop",m=>m(t,n,a||H.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?Nm(t.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let c=t.state.tr;if(s){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(p))return;let _=c.doc.resolve(u);if(d&&ee.isSelectable(a.content.firstChild)&&_.nodeAfter&&_.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new ee(_));else{let m=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((f,g,S,E)=>m=E),c.setSelection(Oc(t,_,c.doc.resolve(m)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))};lt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&gn(t)},20))};lt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};lt.beforeinput=(t,e)=>{if(rt&&Ut&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,Jn(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in ct)lt[t]=ct[t];function Wi(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class ga{constructor(e,n){this.toDOM=e,this.spec=n||lr,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:a}=e.mapResult(n.from+i,this.side<0?-1:1);return a?null:new ke(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ga&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Wi(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Gn{constructor(e,n){this.attrs=e,this.spec=n||lr}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new ke(o,a,this)}valid(e,n){return n.from=e&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;ae){let s=this.children[a]+1;this.children[a+2].findInner(e-s,n-s,r,i+s,o)}}map(e,n,r){return this==nt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||lr)}mapInner(e,n,r,i,o){let a;for(let s=0;s{let c=l+r,u;if(u=mf(n,s,c)){for(i||(i=this.children.slice());os&&d.to=e){this.children[s]==e&&(r=this.children[s+2]);break}let o=e+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Gn){let c=Math.max(o,l.from)-o,u=Math.min(a,l.to)-o;ci.map(e,n,lr));return Nn.from(r)}forChild(e,n){if(n.isLeaf)return be.empty;let r=[];for(let i=0;in instanceof be)?e:e.reduce((n,r)=>n.concat(r instanceof be?r:r.members),[]))}}forEachSet(e){for(let n=0;n{let g=f-m-(_-p);for(let S=0;SE+u-d)continue;let b=s[S]+u-d;_>=b?s[S+1]=p<=b?-2:-1:p>=u&&g&&(s[S]+=g,s[S+1]+=g)}d+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let p=n.map(t[c+1]+o,-1),_=p-i,{index:m,offset:f}=r.content.findIndex(d),g=r.maybeChild(m);if(g&&f==d&&f+g.nodeSize==_){let S=s[c+2].mapInner(n,g,u+1,t[c]+o+1,a);S!=nt?(s[c]=d,s[c+1]=_,s[c+2]=S):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=wb(s,t,e,n,i,o,a),u=ha(c,r,0,a);e=u.local;for(let d=0;dn&&a.to{let c=mf(t,s,l+n);if(c){o=!0;let u=ha(c,s,n+l+1,r);u!=nt&&i.push(l,l+s.nodeSize,u)}});let a=_f(o?ff(t):t,-n).sort(cr);for(let s=0;s0;)e++;t.splice(e,0,n)}function Ys(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=nt&&e.push(r)}),t.cursorWrapper&&e.push(be.create(t.state.doc,[t.cursorWrapper.deco])),Nn.from(e)}const Lb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},kb=pt&&Un<=11;class Pb{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 Fb{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Pb,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),kb&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Lb)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.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(Td(this.view)){if(this.suppressingSelectionUpdates)return gn(this.view);if(pt&&Un<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&fr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=zi(o))n.add(o);for(let o=e.anchorNode;o;o=zi(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Td(e)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let u=0;ud.nodeName=="BR");if(u.length==2){let[d,p]=u;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of u){let _=p.parentNode;_&&_.nodeName=="LI"&&(!d||Hb(e,d)!=_)&&p.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||i)&&(o>-1&&(e.docView.markDirty(o,a),Bb(e)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||gn(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;ui;g--){let S=r.childNodes[g-1],E=S.pmViewDesc;if(S.nodeName=="BR"&&!E){o=g;break}if(!E||E.size)break}let d=t.state.doc,p=t.someProp("domParser")||Wr.fromSchema(t.state.schema),_=d.resolve(a),m=null,f=p.parse(r,{topNode:_.parent,topMatch:_.parent.contentMatchAt(_.index()),topOpen:!0,from:i,to:o,preserveWhitespace:_.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Vb,context:_});if(c&&c[0].pos!=null){let g=c[0].pos,S=c[1]&&c[1].pos;S==null&&(S=g),m={anchor:g+a,head:S+a}}return{doc:f,sel:m,from:a,to:s}}function Vb(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(st&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||st&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Yb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function zb(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let O=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,M=Rc(t,O);if(M&&!t.state.selection.eq(M)){if(rt&&Ut&&t.input.lastKeyCode===13&&Date.now()-100Y(t,Jn(13,"Enter"))))return;let B=t.state.tr.setSelection(M);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),o&&B.setMeta("composition",o),t.dispatch(B)}return}let a=t.state.doc.resolve(e),s=a.sharedDepth(n);e=a.before(s+1),n=t.state.doc.resolve(n).after(s+1);let l=t.state.selection,c=Gb(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),p,_;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Ut)&&i.some(O=>O.nodeType==1&&!Yb.test(O.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",O=>O(t,Jn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Z&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let O=wd(t,t.state.doc,c.sel);if(O&&!O.eq(t.state.selection)){let M=t.state.tr.setSelection(O);o&&M.setMeta("composition",o),t.dispatch(M)}}return}t.state.selection.fromt.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?m.start=t.state.selection.from:m.endA=t.state.selection.to-2&&t.state.selection.to<=c.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),pt&&Un<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let f=c.doc.resolveNoCache(m.start-c.from),g=c.doc.resolveNoCache(m.endB-c.from),S=u.resolve(m.start),E=f.sameParent(g)&&f.parent.inlineContent&&S.end()>=m.endA,b;if((ti&&t.input.lastIOSEnter>Date.now()-225&&(!E||i.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!E&&f.posO(t,Jn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&qb(u,m.start,m.endA,f,g)&&t.someProp("handleKeyDown",O=>O(t,Jn(8,"Backspace")))){Ut&&rt&&t.domObserver.suppressSelectionUpdates();return}rt&&Ut&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Ut&&!E&&f.start()!=g.start()&&g.parentOffset==0&&f.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,g=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(O){return O(t,Jn(13,"Enter"))})},20));let h=m.start,C=m.endA,T,R,x;if(E){if(f.pos==g.pos)pt&&Un<=11&&f.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>gn(t),20)),T=t.state.tr.delete(h,C),R=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(x=$b(f.parent.content.cut(f.parentOffset,g.parentOffset),S.parent.content.cut(S.parentOffset,m.endA-S.start()))))T=t.state.tr,x.type=="add"?T.addMark(h,C,x.mark):T.removeMark(h,C,x.mark);else if(f.parent.child(f.index()).isText&&f.index()==g.index()-(g.textOffset?0:1)){let O=f.parent.textBetween(f.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",M=>M(t,h,C,O)))return;T=t.state.tr.insertText(O,h,C)}}if(T||(T=t.state.tr.replace(h,C,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let O=wd(t,T.doc,c.sel);O&&!(rt&&Ut&&t.composing&&O.empty&&(m.start!=m.endB||t.input.lastAndroidDeletee.content.size?null:Oc(t,e.resolve(n.anchor),e.resolve(n.head))}function $b(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,a,s,l;for(let u=0;uu.mark(s.addToSet(u.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;un||zs(a,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function Wb(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&e<=57343&&n>=55296&&n<=56319}class Kb{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new _b,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Ud),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Fd(this),Pd(this),this.nodeViews=Bd(this),this.docView=fd(this.state.doc,kd(this),Ys(this),this.dom,this),this.domObserver=new Fb(this,(r,i,o,a)=>zb(this,r,i,o,a)),this.domObserver.start(),mb(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Yl(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ud),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(cf(this),a=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let _=Bd(this);Zb(_,this.nodeViews)&&(this.nodeViews=_,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Yl(this),this.editable=Fd(this),Pd(this);let l=Ys(this),c=kd(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(i.selection))&&(a=!0);let p=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&AS(this);if(a){this.domObserver.stop();let _=d&&(pt||rt)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Qb(i.selection,e.selection);if(d){let m=rt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Nb(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=fd(e.doc,c,l,this.dom,this)),m&&!this.trackWrites&&(_=!0)}_||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&jS(this))?gn(this,_):(Qm(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&IS(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ee){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&cd(this,n.getBoundingClientRect(),e)}else cd(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new df(e.slice,e.move,i<0?void 0:ee.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return kS(this,e)}coordsAtPos(e,n=1){return Gm(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return HS(this,n||this.state,e)}pasteHTML(e,n){return qi(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return qi(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(fb(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Ys(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,hS())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return hb(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?st&&this.root.nodeType===11&&CS(this.dom.ownerDocument)==this.dom&&Ub(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function kd(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[ke.node(0,t.state.doc.content.size,e)]}function Pd(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:ke.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Fd(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Qb(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Bd(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Zb(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Ud(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Vn={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:"'"},Ea={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Xb=typeof navigator<"u"&&/Mac/.test(navigator.platform),jb=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var je=0;je<10;je++)Vn[48+je]=Vn[96+je]=String(je);for(var je=1;je<=24;je++)Vn[je+111]="F"+je;for(var je=65;je<=90;je++)Vn[je]=String.fromCharCode(je+32),Ea[je]=String.fromCharCode(je);for(var $s in Vn)Ea.hasOwnProperty($s)||(Ea[$s]=Vn[$s]);function Jb(t){var e=Xb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||jb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ea:Vn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const e0=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function t0(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Vn[r.keyCode])&&o!=i){let s=e[qs(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const i0=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function gf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const o0=(t,e,n)=>{let r=gf(t,n);if(!r)return!1;let i=wc(r);if(!i){let a=r.blockRange(),s=a&&_i(a);return s==null?!1:(e&&e(t.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(bf(t,i,e,-1))return!0;if(r.parent.content.size==0&&(ni(o,"end")||ee.isSelectable(o)))for(let a=r.depth;;a--){let s=ns(t.doc,r.before(a),r.after(a),H.empty);if(s&&s.slice.size1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},a0=(t,e,n)=>{let r=gf(t,n);if(!r)return!1;let i=wc(r);return i?hf(t,i,e):!1},s0=(t,e,n)=>{let r=Ef(t,n);if(!r)return!1;let i=Lc(r);return i?hf(t,i,e):!1};function hf(t,e,n){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let a=e.nodeAfter,s=a,l=e.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let u=s.firstChild;if(!u)return!1;s=u}let c=ns(t.doc,o,l,H.empty);if(!c||c.from!=o||c instanceof Ue&&c.slice.size>=l-o)return!1;if(n){let u=t.tr.step(c);u.setSelection(Z.create(u.doc,o)),n(u.scrollIntoView())}return!0}function ni(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const l0=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=wc(r)}let a=o&&o.nodeBefore;return!a||!ee.isSelectable(a)?!1:(e&&e(t.tr.setSelection(ee.create(t.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function wc(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Ef(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=Ef(t,n);if(!r)return!1;let i=Lc(r);if(!i)return!1;let o=i.nodeAfter;if(bf(t,i,e,1))return!0;if(r.parent.content.size==0&&(ni(o,"start")||ee.isSelectable(o))){let a=ns(t.doc,r.before(),r.after(),H.empty);if(a&&a.slice.size{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,r=n instanceof ee,i;if(r){if(n.node.isTextblock||!$n(t.doc,n.from))return!1;i=n.from}else if(i=ts(t.doc,n.from,-1),i==null)return!1;if(e){let o=t.tr.join(i);r&&o.setSelection(ee.create(o.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},p0=(t,e)=>{let n=t.selection,r;if(n instanceof ee){if(n.node.isTextblock||!$n(t.doc,n.to))return!1;r=n.to}else if(r=ts(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},_0=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),o=i&&_i(i);return o==null?!1:(e&&e(t.tr.lift(i,o).scrollIntoView()),!0)},m0=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function Sf(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=Sf(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(e){let s=n.after(),l=t.tr.replaceWith(s,s,a.createAndFill());l.setSelection(te.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},g0=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Dt||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=Sf(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let a=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Qr(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&_i(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},E0=(t,e)=>{let{$from:n,to:r}=t.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),e&&e(t.tr.setSelection(ee.create(t.doc,i))),!0)};function S0(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||$n(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function bf(t,e,n,r){let i=e.nodeBefore,o=e.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&S0(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let _=e.pos+o.nodeSize,m=w.empty;for(let S=a.length-1;S>=0;S--)m=w.from(a[S].create(null,m));m=w.from(i.copy(m));let f=t.tr.step(new ze(e.pos-1,_,e.pos,_,new H(m,1,0),a.length,!0)),g=f.doc.resolve(_+2*a.length);g.nodeAfter&&g.nodeAfter.type==i.type&&$n(f.doc,g.pos)&&f.join(g.pos),n(f.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:te.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),p=d&&_i(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(c&&ni(o,"start",!0)&&ni(i,"end")){let _=i,m=[];for(;m.push(_),!_.isTextblock;)_=_.lastChild;let f=o,g=1;for(;!f.isTextblock;f=f.firstChild)g++;if(_.canReplace(_.childCount,_.childCount,f.content)){if(n){let S=w.empty;for(let b=m.length-1;b>=0;b--)S=w.from(m[b].copy(S));let E=t.tr.step(new ze(e.pos-m.length,e.pos+o.nodeSize,e.pos+g,e.pos+o.nodeSize-g,new H(S,m.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function Tf(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(Z.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}const b0=Tf(-1),T0=Tf(1);function C0(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&Tc(a,t,e);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function Hd(t,e=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a=2&&i.node(a.depth-1).type.compatibleContent(t)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);l=new ca(u,u,a.depth),a.endIndex=0;u--)o=w.from(n[u].type.create(n[u].attrs,o));t.step(new ze(e.start-(r?2:0),e.end,e.start,e.end,new H(o,0,0),n.length,!0));let a=0;for(let u=0;ua.childCount>0&&a.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?O0(e,n,t,o):N0(e,n,o):!0:!1}}function O0(t,e,n,r){let i=t.tr,o=r.end,a=r.$to.end(r.depth);of;m--)_-=i.child(m).nodeSize,r.delete(_-1,_+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?w.empty:w.from(i))))return!1;let d=o.pos,p=d+a.nodeSize;return r.step(new ze(d-(s?1:0),p+(l?1:0),d+1,p-1,new H((s?w.empty:w.from(i.copy(w.empty))).append(l?w.empty:w.from(i.copy(w.empty))),s?0:1,l?0:1),s?0:1)),e(r.scrollIntoView()),!0}function A0(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=w.from(c?t.create():null),d=new H(w.from(t.create(null,w.from(s.type.create(null,u)))),c?3:1,0),p=o.start,_=o.end;n(e.tr.step(new ze(p-(c?3:1),_,p,_,d,1,!0)).scrollIntoView())}return!0}}function ls(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class cs{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,a=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([s,l])=>[s,(...u)=>{const d=l(...u)(a);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s=[],l=!!e,c=e||o.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(c),s.every(p=>p===!0)),d={...Object.fromEntries(Object.entries(r).map(([p,_])=>[p,(...f)=>{const g=this.buildProps(c,n),S=_(...f)(g);return s.push(S),d}])),run:u};return d}createCan(e){const{rawCommands:n,state:r}=this,i=!1,o=e||r.tr,a=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...a,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s={tr:e,editor:i,view:a,state:ls({state:o,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(s)]))}};return s}}let I0=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(i=>i!==n):delete this.callbacks[e]),this}once(e,n){const r=(...i)=>{this.off(e,r),n.apply(this,i)};return this.on(e,r)}removeAllListeners(){this.callbacks={}}};function W(t,e,n){return t.config[e]===void 0&&t.parent?W(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?W(t.parent,e,n):null}):t.config[e]}function us(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Cf(t){const e=[],{nodeExtensions:n,markExtensions:r}=us(t),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage,extensions:i},l=W(a,"addGlobalAttributes",s);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([p,_])=>{e.push({type:d,name:p,attribute:{...o,..._}})})})})}),i.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},l=W(a,"addAttributes",s);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const p={...o,...d};typeof(p==null?void 0:p.default)=="function"&&(p.default=p.default()),p!=null&&p.isRequired&&(p==null?void 0:p.default)===void 0&&delete p.default,e.push({type:a.name,name:u,attribute:p})})}),e}function qe(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function pe(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const s=o?o.split(" "):[],l=r[i]?r[i].split(" "):[],c=s.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else if(i==="style"){const s=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],l=r[i]?r[i].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,p]=u.split(":").map(_=>_.trim());c.set(d,p)}),s.forEach(u=>{const[d,p]=u.split(":").map(_=>_.trim());c.set(d,p)}),r[i]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else r[i]=o}),r},{})}function zl(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>pe(n,r),{})}function yf(t){return typeof t=="function"}function le(t,e=void 0,...n){return yf(t)?e?t.bind(e)(...n):t(...n):t}function x0(t={}){return Object.keys(t).length===0&&t.constructor===Object}function D0(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Gd(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((o,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(n):D0(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function Vd(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&x0(n)?!1:n!=null))}function M0(t,e){var n;const r=Cf(t),{nodeExtensions:i,markExtensions:o}=us(t),a=(n=i.find(c=>W(c,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(c=>{const u=r.filter(S=>S.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((S,E)=>{const b=W(E,"extendNodeSchema",d);return{...S,...b?b(c):{}}},{}),_=Vd({...p,content:le(W(c,"content",d)),marks:le(W(c,"marks",d)),group:le(W(c,"group",d)),inline:le(W(c,"inline",d)),atom:le(W(c,"atom",d)),selectable:le(W(c,"selectable",d)),draggable:le(W(c,"draggable",d)),code:le(W(c,"code",d)),whitespace:le(W(c,"whitespace",d)),linebreakReplacement:le(W(c,"linebreakReplacement",d)),defining:le(W(c,"defining",d)),isolating:le(W(c,"isolating",d)),attrs:Object.fromEntries(u.map(S=>{var E;return[S.name,{default:(E=S==null?void 0:S.attribute)===null||E===void 0?void 0:E.default}]}))}),m=le(W(c,"parseHTML",d));m&&(_.parseDOM=m.map(S=>Gd(S,u)));const f=W(c,"renderHTML",d);f&&(_.toDOM=S=>f({node:S,HTMLAttributes:zl(S,u)}));const g=W(c,"renderText",d);return g&&(_.toText=g),[c.name,_]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(g=>g.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((g,S)=>{const E=W(S,"extendMarkSchema",d);return{...g,...E?E(c):{}}},{}),_=Vd({...p,inclusive:le(W(c,"inclusive",d)),excludes:le(W(c,"excludes",d)),group:le(W(c,"group",d)),spanning:le(W(c,"spanning",d)),code:le(W(c,"code",d)),attrs:Object.fromEntries(u.map(g=>{var S;return[g.name,{default:(S=g==null?void 0:g.attribute)===null||S===void 0?void 0:S.default}]}))}),m=le(W(c,"parseHTML",d));m&&(_.parseDOM=m.map(g=>Gd(g,u)));const f=W(c,"renderHTML",d);return f&&(_.toDOM=g=>f({mark:g,HTMLAttributes:zl(g,u)})),[c.name,_]}));return new gm({topNode:a,nodes:s,marks:l})}function Ws(t,e){return e.nodes[t]||e.marks[t]||null}function Yd(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function kc(t,e){const n=Cr.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}const w0=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,o,a,s)=>{var l,c;const u=((c=(l=i.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:i,pos:o,parent:a,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function Pc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class fo{constructor(e){this.find=e.find,this.handler=e.handler}}const L0=(t,e)=>{if(Pc(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Ao(t){var e;const{editor:n,from:r,to:i,text:o,rules:a,plugin:s}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(p=>p.type.spec.code))return!1;let u=!1;const d=w0(c)+o;return a.forEach(p=>{if(u)return;const _=L0(d,p.find);if(!_)return;const m=l.state.tr,f=ls({state:l.state,transaction:m}),g={from:r-(_[0].length-o.length),to:i},{commands:S,chain:E,can:b}=new cs({editor:n,state:f});p.handler({state:f,range:g,match:_,commands:S,chain:E,can:b})===null||!m.steps.length||(m.setMeta(s,{transform:m,from:r,to:i,text:o}),l.dispatch(m),u=!0)}),u}function k0(t){const{editor:e,rules:n}=t,r=new Se({state:{init(){return null},apply(i,o,a){const s=i.getMeta(r);if(s)return s;const l=i.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=kc(w.from(u),a.schema);const{from:d}=l,p=d+u.length;Ao({editor:e,from:d,to:p,text:u,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,a,s){return Ao({editor:e,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&Ao({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:a}=i.state.selection;return a?Ao({editor:e,from:a.pos,to:a.pos,text:` +`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function P0(t){return Object.prototype.toString.call(t).slice(8,-1)}function Io(t){return P0(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function ds(t,e){const n={...t};return Io(t)&&Io(e)&&Object.keys(e).forEach(r=>{Io(e[r])&&Io(t[r])?n[r]=ds(t[r],e[r]):n[r]=e[r]}),n}class ft{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ft(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ft(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const a=i.marks();if(!!!a.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=a.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}function F0(t){return typeof t=="number"}class B0{constructor(e){this.find=e.find,this.handler=e.handler}}const U0=(t,e,n)=>{if(Pc(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=t,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function H0(t){const{editor:e,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=t,{commands:l,chain:c,can:u}=new cs({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,i,(_,m)=>{if(!_.isTextblock||_.type.spec.code)return;const f=Math.max(r,m),g=Math.min(i,m+_.content.size),S=_.textBetween(f-m,g-m,void 0,"");U0(S,o.find,a).forEach(b=>{if(b.index===void 0)return;const h=f+b.index+1,C=h+b[0].length,T={from:n.tr.mapping.map(h),to:n.tr.mapping.map(C)},R=o.handler({state:n,range:T,match:b,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(R)})}),d.every(_=>_!==null)}const G0=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function V0(t){const{editor:e,rules:n}=t;let r=null,i=!1,o=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const l=({state:u,from:d,to:p,rule:_,pasteEvt:m})=>{const f=u.tr,g=ls({state:u,transaction:f});if(!(!H0({editor:e,state:g,from:Math.max(d-1,0),to:p.b-1,rule:_,pasteEvent:m,dropEvent:s})||!f.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,f}};return n.map(u=>new Se({view(d){const p=_=>{var m;r=!((m=d.dom.parentElement)===null||m===void 0)&&m.contains(_.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",p),{destroy(){window.removeEventListener("dragstart",p)}}},props:{handleDOMEvents:{drop:(d,p)=>(o=r===d.dom.parentElement,s=p,!1),paste:(d,p)=>{var _;const m=(_=p.clipboardData)===null||_===void 0?void 0:_.getData("text/html");return a=p,i=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(d,p,_)=>{const m=d[0],f=m.getMeta("uiEvent")==="paste"&&!i,g=m.getMeta("uiEvent")==="drop"&&!o,S=m.getMeta("applyPasteRules"),E=!!S;if(!f&&!g&&!E)return;if(E){let{text:C}=S;typeof C=="string"?C=C:C=kc(w.from(C),_.schema);const{from:T}=S,R=T+C.length,x=G0(C);return l({rule:u,state:_,from:T,to:{b:R},pasteEvt:x})}const b=p.doc.content.findDiffStart(_.doc.content),h=p.doc.content.findDiffEnd(_.doc.content);if(!(!F0(b)||!h||b===h.b))return l({rule:u,state:_,from:b,to:h,pasteEvt:a})}}))}function Y0(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}class Yr{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Yr.resolve(e),this.schema=M0(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Yr.sort(Yr.flatten(e)),r=Y0(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=W(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(e){return e.sort((r,i)=>{const o=W(r,"priority")||100,a=W(i,"priority")||100;return o>a?-1:o{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Ws(n.name,this.schema)},i=W(n,"addCommands",r);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this,n=Yr.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:e,type:Ws(a.name,this.schema)},l=[],c=W(a,"addKeyboardShortcuts",s);let u={};if(a.type==="mark"&&W(a,"exitable",s)&&(u.ArrowRight=()=>ft.handleExit({editor:e,mark:a})),c){const f=Object.fromEntries(Object.entries(c()).map(([g,S])=>[g,()=>S({editor:e})]));u={...u,...f}}const d=r0(u);l.push(d);const p=W(a,"addInputRules",s);Yd(a,e.options.enableInputRules)&&p&&r.push(...p());const _=W(a,"addPasteRules",s);Yd(a,e.options.enablePasteRules)&&_&&i.push(..._());const m=W(a,"addProseMirrorPlugins",s);if(m){const f=m();l.push(...f)}return l}).flat();return[k0({editor:e,rules:r}),...V0({editor:e,rules:i}),...o]}get attributes(){return Cf(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=us(this.extensions);return Object.fromEntries(n.filter(r=>!!W(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:e,type:qe(r.name,this.schema)},a=W(r,"addNodeView",o);if(!a)return[];const s=(l,c,u,d,p)=>{const _=zl(l,i);return a()({node:l,view:c,getPos:u,decorations:d,innerDecorations:p,editor:e,extension:r,HTMLAttributes:_})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Ws(e.name,this.schema)};e.type==="mark"&&(!((n=le(W(e,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const i=W(e,"onBeforeCreate",r),o=W(e,"onCreate",r),a=W(e,"onUpdate",r),s=W(e,"onSelectionUpdate",r),l=W(e,"onTransaction",r),c=W(e,"onFocus",r),u=W(e,"onBlur",r),d=W(e,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class ge{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ge(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ge({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}}function ps(t,e,n){const{from:r,to:i}=e,{blockSeparator:o=` + +`,textSerializers:a={}}=n||{};let s="";return t.nodesBetween(r,i,(l,c,u,d)=>{var p;l.isBlock&&c>r&&(s+=o);const _=a==null?void 0:a[l.type.name];if(_)return u&&(s+=_({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(s+=(p=l==null?void 0:l.text)===null||p===void 0?void 0:p.slice(Math.max(r,c)-c,i-c))}),s}function vf(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const z0=ge.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Se({key:new ve("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,{ranges:o}=i,a=Math.min(...o.map(u=>u.$from.pos)),s=Math.max(...o.map(u=>u.$to.pos)),l=vf(n);return ps(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),$0=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),q0=(t=!1)=>({commands:e})=>e.setContent("",t),W0=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:a})=>{t.doc.nodesBetween(o.pos,a.pos,(s,l)=>{if(s.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),p=c.resolve(u.map(l+s.nodeSize)),_=d.blockRange(p);if(!_)return;const m=_i(_);if(s.type.isTextblock){const{defaultType:f}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(_.start,f)}(m||m===0)&&e.lift(_,m)})}),!0},K0=t=>e=>t(e),Q0=()=>({state:t,dispatch:e})=>g0(t,e),Z0=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const a=r.mapping.map(e);return r.insert(a,o.content),r.setSelection(new Z(r.doc.resolve(a-1))),!0},X0=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(e){const s=i.before(o),l=i.after(o);t.delete(s,l).scrollIntoView()}return!0}return!1},j0=t=>({tr:e,state:n,dispatch:r})=>{const i=qe(t,n.schema),o=e.selection.$anchor;for(let a=o.depth;a>0;a-=1)if(o.node(a).type===i){if(r){const l=o.before(a),c=o.after(a);e.delete(l,c).scrollIntoView()}return!0}return!1},J0=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},eT=()=>({state:t,dispatch:e})=>i0(t,e),tT=()=>({commands:t})=>t.keyboardShortcut("Enter"),nT=()=>({state:t,dispatch:e})=>f0(t,e);function ri(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:Pc(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function Rf(t,e,n={}){return t.find(r=>r.type===e&&ri(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function zd(t,e,n={}){return!!Rf(t,e,n)}function Fc(t,e,n){var r;if(!t||!e)return;let i=t.parent.childAfter(t.parentOffset);if((!i.node||!i.node.marks.some(u=>u.type===e))&&(i=t.parent.childBefore(t.parentOffset)),!i.node||!i.node.marks.some(u=>u.type===e)||(n=n||((r=i.node.marks[0])===null||r===void 0?void 0:r.attrs),!Rf([...i.node.marks],e,n)))return;let a=i.index,s=t.start()+i.offset,l=a+1,c=s+i.node.nodeSize;for(;a>0&&zd([...t.parent.child(a-1).marks],e,n);)a-=1,s-=t.parent.child(a).nodeSize;for(;l({tr:n,state:r,dispatch:i})=>{const o=Sn(t,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(i){const d=Fc(l,o,e);if(d&&d.from<=c&&d.to>=u){const p=Z.create(a,d.from,d.to);n.setSelection(p)}}return!0},iT=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r({editor:n,view:r,tr:i,dispatch:o})=>{e={scrollIntoView:!0,...e};const a=()=>{Uc()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(o&&t===null&&!Bc(n.state.selection))return a(),!0;const s=Of(i.doc,t)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),a()),!0},aT=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),sT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Nf=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Nf(r)}return t};function xo(t){const e=`${t}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Nf(n)}function Sa(t,e,n){if(t instanceof Bn||t instanceof w)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return w.fromArray(t.map(s=>e.nodeFromJSON(s)));const a=e.nodeFromJSON(t);return n.errorOnInvalidContent&&a.check(),a}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Sa("",e,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new gm({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,s=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Wr.fromSchema(l).parseSlice(xo(t),n.parseOptions):Wr.fromSchema(l).parse(xo(t),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=Wr.fromSchema(e);return n.slice?o.parseSlice(xo(t),n.parseOptions).content:o.parse(xo(t),n.parseOptions)}return Sa("",e,n)}function lT(t,e,n){const r=t.steps.length-1;if(r{a===0&&(a=u)}),t.setSelection(te.near(t.doc.resolve(a),n))}const cT=t=>!("type"in t),uT=(t,e,n)=>({tr:r,dispatch:i,editor:o})=>{var a;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;try{s=Sa(e,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(m){return o.emit("contentError",{editor:o,error:m,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,d=!0;if((cT(s)?s:[s]).forEach(m=>{m.check(),u=u?m.isText&&m.marks.length===0:!1,d=d?m.isBlock:!1}),l===c&&d){const{parent:m}=r.doc.resolve(l);m.isTextblock&&!m.type.spec.code&&!m.childCount&&(l-=1,c+=1)}let _;if(u){if(Array.isArray(e))_=e.map(m=>m.text||"").join("");else if(e instanceof w){let m="";e.forEach(f=>{f.text&&(m+=f.text)}),_=m}else typeof e=="object"&&e&&e.text?_=e.text:_=e;r.insertText(_,l,c)}else _=s,r.replaceWith(l,c,_);n.updateSelection&&lT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:_}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:_})}return!0},dT=()=>({state:t,dispatch:e})=>d0(t,e),pT=()=>({state:t,dispatch:e})=>p0(t,e),_T=()=>({state:t,dispatch:e})=>o0(t,e),mT=()=>({state:t,dispatch:e})=>c0(t,e),fT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=ts(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},gT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=ts(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},hT=()=>({state:t,dispatch:e})=>a0(t,e),ET=()=>({state:t,dispatch:e})=>s0(t,e);function Af(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function ST(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,o,a;for(let s=0;s({editor:e,view:n,tr:r,dispatch:i})=>{const o=ST(t).split(/-(?!$)/),a=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,s))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function hr(t,e,n={}){const{from:r,to:i,empty:o}=t.selection,a=e?qe(e,t.schema):null,s=[];t.doc.nodesBetween(r,i,(d,p)=>{if(d.isText)return;const _=Math.max(r,p),m=Math.min(i,p+d.nodeSize);s.push({node:d,from:_,to:m})});const l=i-r,c=s.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>ri(d.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((d,p)=>d+p.to-p.from,0)>=l}const TT=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return hr(n,i,e)?_0(n,r):!1},CT=()=>({state:t,dispatch:e})=>h0(t,e),yT=t=>({state:e,dispatch:n})=>{const r=qe(t,e.schema);return R0(r)(e,n)},vT=()=>({state:t,dispatch:e})=>m0(t,e);function _s(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function $d(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}const RT=(t,e)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=_s(typeof t=="string"?t:t.name,r.schema);return s?(s==="node"&&(o=qe(t,r.schema)),s==="mark"&&(a=Sn(t,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&n.setNodeMarkup(u,void 0,$d(c.attrs,e)),a&&c.marks.length&&c.marks.forEach(d=>{a===d.type&&n.addMark(u,u+c.nodeSize,a.create($d(d.attrs,e)))})})}),!0):!1},OT=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),NT=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),AT=()=>({state:t,dispatch:e})=>l0(t,e),IT=()=>({state:t,dispatch:e})=>u0(t,e),xT=()=>({state:t,dispatch:e})=>E0(t,e),DT=()=>({state:t,dispatch:e})=>T0(t,e),MT=()=>({state:t,dispatch:e})=>b0(t,e);function $l(t,e,n={},r={}){return Sa(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const wT=(t,e=!1,n={},r={})=>({editor:i,tr:o,dispatch:a,commands:s})=>{var l,c;const{doc:u}=o;if(n.preserveWhitespace!=="full"){const d=$l(t,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return a&&o.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return a&&o.setMeta("preventUpdate",!e),s.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:i.options.enableContentCheck})};function Hc(t,e){const n=Sn(e,t.schema),{from:r,to:i,empty:o}=t.selection,a=[];o?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,l=>{a.push(...l.marks)});const s=a.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function LT(t,e){const n=new Cc(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function kT(t){for(let e=0;e{e(r)&&n.push({node:r,pos:i})}),n}function PT(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function If(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function ms(t){return e=>If(e.$from,t)}function FT(t,e){const n={from:0,to:t.content.size};return ps(t,n,e)}function BT(t,e){const n=qe(e,t.schema),{from:r,to:i}=t.selection,o=[];t.doc.nodesBetween(r,i,s=>{o.push(s)});const a=o.reverse().find(s=>s.type.name===n.name);return a?{...a.attrs}:{}}function xf(t,e){const n=_s(typeof e=="string"?e:e.name,t.schema);return n==="node"?BT(t,e):n==="mark"?Hc(t,e):{}}function UT(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function HT(t){const e=UT(t);return e.length===1?e:e.filter((n,r)=>!e.filter((o,a)=>a!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function GT(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,o)=>{const a=[];if(i.ranges.length)i.forEach((s,l)=>{a.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;a.push({from:s,to:l})}a.forEach(({from:s,to:l})=>{const c=e.slice(o).map(s,-1),u=e.slice(o).map(l),d=e.invert().map(c,-1),p=e.invert().map(u);r.push({oldRange:{from:d,to:p},newRange:{from:c,to:u}})})}),HT(r)}function Gc(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const o=n.resolve(t),a=Fc(o,i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(t,e,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(a=>({from:o,to:o+i.nodeSize,mark:a})))}),r}function Jo(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(o=>o.type===e&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function Wl(t,e,n={}){const{empty:r,ranges:i}=t.selection,o=e?Sn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>ri(d.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:d,$to:p})=>{const _=d.pos,m=p.pos;t.doc.nodesBetween(_,m,(f,g)=>{if(!f.isText&&!f.marks.length)return;const S=Math.max(_,g),E=Math.min(m,g+f.nodeSize),b=E-S;a+=b,s.push(...f.marks.map(h=>({mark:h,from:S,to:E})))})}),a===0)return!1;const l=s.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>ri(d.mark.attrs,n,{strict:!1})).reduce((d,p)=>d+p.to-p.from,0),c=s.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,p)=>d+p.to-p.from,0);return(l>0?l+c:l)>=a}function VT(t,e,n={}){if(!e)return hr(t,null,n)||Wl(t,null,n);const r=_s(e,t.schema);return r==="node"?hr(t,e,n):r==="mark"?Wl(t,e,n):!1}function qd(t,e){const{nodeExtensions:n}=us(e),r=n.find(a=>a.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=le(W(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function fs(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!==null&&r!==void 0?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(o=>{i!==!1&&(fs(o,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function Df(t){return t instanceof ee}function Ki(t,e,n){const i=t.state.doc.content.size,o=fn(e,0,i),a=fn(n,0,i),s=t.coordsAtPos(o),l=t.coordsAtPos(a,-1),c=Math.min(s.top,l.top),u=Math.max(s.bottom,l.bottom),d=Math.min(s.left,l.left),p=Math.max(s.right,l.right),_=p-d,m=u-c,S={top:c,bottom:u,left:d,right:p,width:_,height:m,x:d,y:c};return{...S,toJSON:()=>S}}function YT(t,e,n){var r;const{selection:i}=e;let o=null;if(Bc(i)&&(o=i.$cursor),o){const s=(r=t.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:a}=i;return a.some(({$from:s,$to:l})=>{let c=s.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(s.pos,l.pos,(u,d,p)=>{if(c)return!1;if(u.isInline){const _=!p||p.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(f=>f.type.excludes(n));c=_&&m}return!c}),c})}const zT=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Sn(t,r.schema);if(i)if(a){const c=Hc(r,l);n.addStoredMark(l.create({...c,...e}))}else s.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(p,_)=>{const m=Math.max(_,u),f=Math.min(_+p.nodeSize,d);p.marks.find(S=>S.type===l)?p.marks.forEach(S=>{l===S.type&&n.addMark(m,f,l.create({...S.attrs,...e}))}):n.addMark(m,f,l.create(e))})});return YT(r,n,l)},$T=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),qT=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const o=qe(t,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:s})=>Hd(o,{...a,...e})(n)?!0:s.clearNodes()).command(({state:s})=>Hd(o,{...a,...e})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},WT=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=fn(t,0,r.content.size),o=ee.create(r,i);e.setSelection(o)}return!0},KT=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:o}=typeof t=="number"?{from:t,to:t}:t,a=Z.atStart(r).from,s=Z.atEnd(r).to,l=fn(i,a,s),c=fn(o,a,s),u=Z.create(r,l,c);e.setSelection(u)}return!0},QT=t=>({state:e,dispatch:n})=>{const r=qe(t,e.schema);return A0(r)(e,n)};function Wd(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e==null?void 0:e.includes(i.type.name));t.tr.ensureMarks(r)}}const ZT=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:a}=e,{$from:s,$to:l}=o,c=i.extensionManager.attributes,u=Jo(c,s.node().type.name,s.node().attrs);if(o instanceof ee&&o.node.isBlock)return!s.parentOffset||!Qr(a,s.pos)?!1:(r&&(t&&Wd(n,i.extensionManager.splittableMarks),e.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,p=s.depth===0?void 0:kT(s.node(-1).contentMatchAt(s.indexAfter(-1)));let _=d&&p?[{type:p,attrs:u}]:void 0,m=Qr(e.doc,e.mapping.map(s.pos),1,_);if(!_&&!m&&Qr(e.doc,e.mapping.map(s.pos),1,p?[{type:p}]:void 0)&&(m=!0,_=p?[{type:p,attrs:u}]:void 0),r){if(m&&(o instanceof Z&&e.deleteSelection(),e.split(e.mapping.map(s.pos),1,_),p&&!d&&!s.parentOffset&&s.parent.type!==p)){const f=e.mapping.map(s.before()),g=e.doc.resolve(f);s.node(-1).canReplaceWith(g.index(),g.index()+1,p)&&e.setNodeMarkup(e.mapping.map(s.before()),p)}t&&Wd(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return m},XT=(t,e={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var a;const s=qe(t,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const p=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let S=w.empty;const E=l.index(-1)?1:l.index(-2)?2:3;for(let x=l.depth-E;x>=l.depth-3;x-=1)S=w.from(l.node(x).copy(S));const b=l.indexAfter(-1){if(R>-1)return!1;x.isTextblock&&x.content.size===0&&(R=O+1)}),R>-1&&n.setSelection(Z.near(n.doc.resolve(R))),n.scrollIntoView()}return!0}const _=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...Jo(p,d.type.name,d.attrs),...e},f={...Jo(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const g=_?[{type:s,attrs:m},{type:_,attrs:f}]:[{type:s,attrs:m}];if(!Qr(n.doc,l.pos,2))return!1;if(i){const{selection:S,storedMarks:E}=r,{splittableMarks:b}=o.extensionManager,h=E||S.$to.parentOffset&&S.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!h||!i)return!0;const C=h.filter(T=>b.includes(T.type.name));n.ensureMarks(C)}return!0},Ks=(t,e)=>{const n=ms(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&$n(t.doc,n.pos)&&t.join(n.pos),!0},Qs=(t,e)=>{const n=ms(a=>a.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&$n(t.doc,r)&&t.join(r),!0},jT=(t,e,n,r={})=>({editor:i,tr:o,state:a,dispatch:s,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=i.extensionManager,_=qe(t,a.schema),m=qe(e,a.schema),{selection:f,storedMarks:g}=a,{$from:S,$to:E}=f,b=S.blockRange(E),h=g||f.$to.parentOffset&&f.$from.marks();if(!b)return!1;const C=ms(T=>qd(T.type.name,d))(f);if(b.depth>=1&&C&&b.depth-C.depth<=1){if(C.node.type===_)return c.liftListItem(m);if(qd(C.node.type.name,d)&&_.validContent(C.node.content)&&s)return l().command(()=>(o.setNodeMarkup(C.pos,_),!0)).command(()=>Ks(o,_)).command(()=>Qs(o,_)).run()}return!n||!h||!s?l().command(()=>u().wrapInList(_,r)?!0:c.clearNodes()).wrapInList(_,r).command(()=>Ks(o,_)).command(()=>Qs(o,_)).run():l().command(()=>{const T=u().wrapInList(_,r),R=h.filter(x=>p.includes(x.type.name));return o.ensureMarks(R),T?!0:c.clearNodes()}).wrapInList(_,r).command(()=>Ks(o,_)).command(()=>Qs(o,_)).run()},JT=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Sn(t,r.schema);return Wl(r,a,e)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,e)},eC=(t,e,n={})=>({state:r,commands:i})=>{const o=qe(t,r.schema),a=qe(e,r.schema),s=hr(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(a,l):i.setNode(o,{...l,...n})},tC=(t,e={})=>({state:n,commands:r})=>{const i=qe(t,n.schema);return hr(n,i,e)?r.lift(i):r.wrapIn(i,e)},nC=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r=0;l-=1)a.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else a.delete(o.from,o.to)}return!0}}return!1},rC=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:i}=n;return r||e&&i.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},iC=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=e,{selection:s}=n,l=Sn(t,r.schema),{$from:c,empty:u,ranges:d}=s;if(!i)return!0;if(u&&a){let{from:p,to:_}=s;const m=(o=c.marks().find(g=>g.type===l))===null||o===void 0?void 0:o.attrs,f=Fc(c,l,m);f&&(p=f.from,_=f.to),n.removeMark(p,_,l)}else d.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},oC=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=_s(typeof t=="string"?t:t.name,r.schema);return s?(s==="node"&&(o=qe(t,r.schema)),s==="mark"&&(a=Sn(t,r.schema)),i&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,p,_,m;n.selection.empty?r.doc.nodesBetween(c,u,(f,g)=>{o&&o===f.type&&(_=Math.max(g,c),m=Math.min(g+f.nodeSize,u),d=g,p=f)}):r.doc.nodesBetween(c,u,(f,g)=>{g=c&&g<=u&&(o&&o===f.type&&n.setNodeMarkup(g,void 0,{...f.attrs,...e}),a&&f.marks.length&&f.marks.forEach(S=>{if(a===S.type){const E=Math.max(g,c),b=Math.min(g+f.nodeSize,u);n.addMark(E,b,a.create({...S.attrs,...e}))}}))}),p&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...p.attrs,...e}),a&&p.marks.length&&p.marks.forEach(f=>{a===f.type&&n.addMark(_,m,a.create({...f.attrs,...e}))}))}),!0):!1},aC=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return C0(i,e)(n,r)},sC=(t,e={})=>({state:n,dispatch:r})=>{const i=qe(t,n.schema);return y0(i,e)(n,r)};var lC=Object.freeze({__proto__:null,blur:$0,clearContent:q0,clearNodes:W0,command:K0,createParagraphNear:Q0,cut:Z0,deleteCurrentNode:X0,deleteNode:j0,deleteRange:J0,deleteSelection:eT,enter:tT,exitCode:nT,extendMarkRange:rT,first:iT,focus:oT,forEach:aT,insertContent:sT,insertContentAt:uT,joinBackward:_T,joinDown:pT,joinForward:mT,joinItemBackward:fT,joinItemForward:gT,joinTextblockBackward:hT,joinTextblockForward:ET,joinUp:dT,keyboardShortcut:bT,lift:TT,liftEmptyBlock:CT,liftListItem:yT,newlineInCode:vT,resetAttributes:RT,scrollIntoView:OT,selectAll:NT,selectNodeBackward:AT,selectNodeForward:IT,selectParentNode:xT,selectTextblockEnd:DT,selectTextblockStart:MT,setContent:wT,setMark:zT,setMeta:$T,setNode:qT,setNodeSelection:WT,setTextSelection:KT,sinkListItem:QT,splitBlock:ZT,splitListItem:XT,toggleList:jT,toggleMark:JT,toggleNode:eC,toggleWrap:tC,undoInputRule:nC,unsetAllMarks:rC,unsetMark:iC,updateAttributes:oC,wrapIn:aC,wrapInList:sC});const cC=ge.create({name:"commands",addCommands(){return{...lC}}}),uC=ge.create({name:"drop",addProseMirrorPlugins(){return[new Se({key:new ve("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),dC=ge.create({name:"editable",addProseMirrorPlugins(){return[new Se({key:new ve("editable"),props:{editable:()=>this.editor.options.editable}})]}}),pC=ge.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Se({key:new ve("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),_C=ge.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:s})=>{const{selection:l,doc:c}=s,{empty:u,$anchor:d}=l,{pos:p,parent:_}=d,m=d.parent.isTextblock&&p>0?s.doc.resolve(p-1):d,f=m.parent.type.spec.isolating,g=d.pos-d.parentOffset,S=f&&m.parent.childCount===1?g===d.pos:te.atStart(c).from===p;return!u||!_.type.isTextblock||_.textContent.length||!S||S&&d.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Uc()||Af()?o:i},addProseMirrorPlugins(){return[new Se({key:new ve("clearDocument"),appendTransaction:(t,e,n)=>{const r=t.some(f=>f.docChanged)&&!e.doc.eq(n.doc),i=t.some(f=>f.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=e.selection,l=te.atStart(e.doc).from,c=te.atEnd(e.doc).to;if(o||!(a===l&&s===c)||!fs(n.doc))return;const p=n.tr,_=ls({state:n,transaction:p}),{commands:m}=new cs({editor:this.editor,state:_});if(m.clearNodes(),!!p.steps.length)return p}})]}}),mC=ge.create({name:"paste",addProseMirrorPlugins(){return[new Se({key:new ve("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),fC=ge.create({name:"tabindex",addProseMirrorPlugins(){return[new Se({key:new ve("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class er{get name(){return this.node.type.name}constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new er(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new er(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new er(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,a=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new er(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),e.push(new er(s,this.editor,i,i?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const o=i.node.attrs,a=Object.keys(n);for(let s=0;s{r&&i.length>0||(a.node.type.name===e&&o.every(l=>n[l]===a.node.attrs[l])&&i.push(a),!(r&&i.length>0)&&(i=i.concat(a.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const gC=`.ProseMirror { position: relative; } @@ -84,37 +84,37 @@ img.ProseMirror-separator { .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 -}`;function pC(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class _C extends C0{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>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.on("contentError",this.options.onContentError),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),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},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=pC(dC,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=hf(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(o=>{const a=typeof o=="string"?`${o}$`:o.key;r=n.filter(s=>!s.key.startsWith(a))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var e,n;const i=[...this.options.enableCoreExtensions?[aC,F0.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),iC,sC,lC,uC,oC,cC].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new Yr(i,this)}createCommandManager(){this.commandManager=new ls({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=zl(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),e=zl(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=Sf(e,this.options.autofocus);this.view=new Gb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Vr.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),o=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return yf(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,i=typeof e=="string"?n:e;return FT(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return DT(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` +}`;function hC(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class EC extends I0{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>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.on("contentError",this.options.onContentError),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),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},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=hC(gC,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=yf(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(o=>{const a=typeof o=="string"?`${o}$`:o.key;r=n.filter(s=>!s.key.startsWith(a))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var e,n;const i=[...this.options.enableCoreExtensions?[dC,z0.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),cC,pC,_C,fC,uC,mC].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new Yr(i,this)}createCommandManager(){this.commandManager=new cs({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=$l(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(a){if(!(a instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(a.message))throw a;this.emit("contentError",{editor:this,error:a,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),n=$l(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=Of(n,this.options.autofocus);this.view=new Kb(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Vr.create({doc:n,selection:r||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),o=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return xf(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,i=typeof e=="string"?n:e;return VT(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return kc(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` -`,textSerializers:r={}}=e||{};return MT(this.state.doc,{blockSeparator:n,textSerializers:{...Ef(this.schema),...r}})}get isEmpty(){return ms(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(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Jn(n,this)}get $doc(){return this.$pos(0)}}function Er(t){return new mo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=le(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,a=r[r.length-1],s=r[0];if(a){const l=s.search(/\S/),c=n.from+s.indexOf(a),u=c+a.length;if(Fc(n.from,n.to,e.doc).filter(_=>_.mark.type.excluded.find(f=>f===t.type&&f!==_.mark.type)).filter(_=>_.to>c).length)return null;un.from&&o.delete(n.from+l,c);const p=n.from+l+a.length;o.addMark(n.from+l,p,t.type.create(i||{})),o.removeStoredMark(t.type)}}})}function Bc(t){return new mo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=le(t.getAttributes,void 0,r)||{},{tr:o}=e,a=n.from;let s=n.to;const l=t.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=a+c;u>s?u=s:s=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,a+r[0].length-1),o.replaceWith(u,s,l)}else if(r[0]){const c=t.type.isInline?a:a-1;o.insert(c,t.type.create(i)).delete(o.mapping.map(a),o.mapping.map(s))}o.scrollIntoView()}})}function Wl(t){return new mo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),o=le(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)}})}function Sr(t){return new mo({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const o=le(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&Ec(l,t.type,o);if(!c)return null;if(a.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:p}=e,{splittableMarks:_}=t.editor.extensionManager,m=p||d.$to.parentOffset&&d.$from.marks();if(m){const f=m.filter(g=>_.includes(g.type.name));a.ensureMarks(f)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const u=a.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&zn(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&a.join(n.from-1)}})}let Ne=class Kl{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Kl(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>us(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Kl(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}};function Vn(t){return new D0({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const o=le(t.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:a}=e,s=r[r.length-1],l=r[0];let c=n.to;if(s){const u=l.search(/\S/),d=n.from+l.indexOf(s),p=d+s.length;if(Fc(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>d).length)return null;pn.from&&a.delete(n.from+u,d),c=n.from+u+s.length,a.addMark(n.from+u,c,t.type.create(o||{})),a.removeStoredMark(t.type)}}})}function mC(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}class me extends HTMLElement{constructor(){super();w(this,"template","");w(this,"editor");w(this,"options")}registerClickListener(){this.addEventListener("click",()=>{var r;const n=(r=this.editor)==null?void 0:r.chain();this.onClick(n),n==null||n.run()})}connectedCallback(){this.innerHTML=this.template}onClick(n){}onCreate(n,r){this.editor=n.editor,this.options=r}onTransaction(n){const r=this.querySelector("div");r&&(this.onActive(n.editor)?r.classList.add("active"):r.classList.remove("active"))}onActive(n){return!1}onEditableChange(n){n?(this.style.pointerEvents="",this.style.opacity=""):(this.style.pointerEvents="none",this.style.opacity="0.5")}}class Rf extends me{constructor(){super(),this.template=` +`,textSerializers:r={}}=e||{};return FT(this.state.doc,{blockSeparator:n,textSerializers:{...vf(this.schema),...r}})}get isEmpty(){return fs(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(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new er(n,this)}get $doc(){return this.$pos(0)}}function Er(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=le(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,a=r[r.length-1],s=r[0];if(a){const l=s.search(/\S/),c=n.from+s.indexOf(a),u=c+a.length;if(Gc(n.from,n.to,e.doc).filter(_=>_.mark.type.excluded.find(f=>f===t.type&&f!==_.mark.type)).filter(_=>_.to>c).length)return null;un.from&&o.delete(n.from+l,c);const p=n.from+l+a.length;o.addMark(n.from+l,p,t.type.create(i||{})),o.removeStoredMark(t.type)}}})}function Vc(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=le(t.getAttributes,void 0,r)||{},{tr:o}=e,a=n.from;let s=n.to;const l=t.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=a+c;u>s?u=s:s=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,a+r[0].length-1),o.replaceWith(u,s,l)}else if(r[0]){const c=t.type.isInline?a:a-1;o.insert(c,t.type.create(i)).delete(o.mapping.map(a),o.mapping.map(s))}o.scrollIntoView()}})}function Kl(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),o=le(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)}})}function Sr(t){return new fo({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const o=le(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&Tc(l,t.type,o);if(!c)return null;if(a.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:p}=e,{splittableMarks:_}=t.editor.extensionManager,m=p||d.$to.parentOffset&&d.$from.marks();if(m){const f=m.filter(g=>_.includes(g.type.name));a.ensureMarks(f)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const u=a.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&$n(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&a.join(n.from-1)}})}let Ne=class Ql{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&&Object.keys(e.defaultOptions).length>0&&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=le(W(this,"addOptions",{name:this.name}))),this.storage=le(W(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ql(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Ql(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=le(W(n,"addOptions",{name:n.name})),n.storage=le(W(n,"addStorage",{name:n.name,options:n.options})),n}};function Yn(t){return new B0({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const o=le(t.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:a}=e,s=r[r.length-1],l=r[0];let c=n.to;if(s){const u=l.search(/\S/),d=n.from+l.indexOf(s),p=d+s.length;if(Gc(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>d).length)return null;pn.from&&a.delete(n.from+u,d),c=n.from+u+s.length,a.addMark(n.from+u,c,t.type.create(o||{})),a.removeStoredMark(t.type)}}})}function SC(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}class me extends HTMLElement{constructor(){super();L(this,"template","");L(this,"editor");L(this,"options")}registerClickListener(){this.addEventListener("click",()=>{var r;const n=(r=this.editor)==null?void 0:r.chain();this.onClick(n),n==null||n.run()})}connectedCallback(){this.innerHTML=this.template}onClick(n){}onCreate(n,r){this.editor=n.editor,this.options=r}onTransaction(n){const r=this.querySelector("div");r&&(this.onActive(n.editor)?r.classList.add("active"):r.classList.remove("active"))}onActive(n){return!1}onEditableChange(n){n?(this.style.pointerEvents="",this.style.opacity=""):(this.style.pointerEvents="none",this.style.opacity="0.5")}}class Mf extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.undo()}}class fC extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.undo()}}class bC extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.redo()}}var _t="top",Lt="bottom",kt="right",mt="left",Uc="auto",fo=[_t,Lt,kt,mt],ii="start",Ki="end",gC="clippingParents",Of="viewport",bi="popper",hC="reference",Yd=fo.reduce(function(t,e){return t.concat([e+"-"+ii,e+"-"+Ki])},[]),Nf=[].concat(fo,[Uc]).reduce(function(t,e){return t.concat([e,e+"-"+ii,e+"-"+Ki])},[]),EC="beforeRead",SC="read",bC="afterRead",TC="beforeMain",CC="main",yC="afterMain",vC="beforeWrite",RC="write",OC="afterWrite",NC=[EC,SC,bC,TC,CC,yC,vC,RC,OC];function rn(t){return t?(t.nodeName||"").toLowerCase():null}function vt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function br(t){var e=vt(t).Element;return t instanceof e||t instanceof Element}function wt(t){var e=vt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Hc(t){if(typeof ShadowRoot>"u")return!1;var e=vt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function AC(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!wt(o)||!rn(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function IC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!wt(i)||!rn(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Af={name:"applyStyles",enabled:!0,phase:"write",fn:AC,effect:IC,requires:["computeStyles"]};function en(t){return t.split("-")[0]}var ur=Math.max,Sa=Math.min,oi=Math.round;function Ql(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function If(){return!/^((?!chrome|android).)*safari/i.test(Ql())}function ai(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&wt(t)&&(i=t.offsetWidth>0&&oi(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&oi(r.height)/t.offsetHeight||1);var a=br(t)?vt(t):window,s=a.visualViewport,l=!If()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Gc(t){var e=ai(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function xf(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Hc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hn(t){return vt(t).getComputedStyle(t)}function xC(t){return["table","td","th"].indexOf(rn(t))>=0}function qn(t){return((br(t)?t.ownerDocument:t.document)||window.document).documentElement}function fs(t){return rn(t)==="html"?t:t.assignedSlot||t.parentNode||(Hc(t)?t.host:null)||qn(t)}function zd(t){return!wt(t)||hn(t).position==="fixed"?null:t.offsetParent}function DC(t){var e=/firefox/i.test(Ql()),n=/Trident/i.test(Ql());if(n&&wt(t)){var r=hn(t);if(r.position==="fixed")return null}var i=fs(t);for(Hc(i)&&(i=i.host);wt(i)&&["html","body"].indexOf(rn(i))<0;){var o=hn(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function go(t){for(var e=vt(t),n=zd(t);n&&xC(n)&&hn(n).position==="static";)n=zd(n);return n&&(rn(n)==="html"||rn(n)==="body"&&hn(n).position==="static")?e:n||DC(t)||e}function Vc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function wi(t,e,n){return ur(t,Sa(e,n))}function MC(t,e,n){var r=wi(t,e,n);return r>n?n:r}function Df(){return{top:0,right:0,bottom:0,left:0}}function Mf(t){return Object.assign({},Df(),t)}function wf(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var wC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Mf(typeof e!="number"?e:wf(e,fo))};function LC(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=en(n.placement),l=Vc(s),c=[mt,kt].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=wC(i.padding,n),p=Gc(o),_=l==="y"?_t:mt,m=l==="y"?Lt:kt,f=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],E=go(o),S=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,b=f/2-g/2,h=d[_],C=S-p[u]-d[m],T=S/2-p[u]/2+b,R=wi(h,T,C),x=l;n.modifiersData[r]=(e={},e[x]=R,e.centerOffset=R-T,e)}}function kC(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||xf(e.elements.popper,i)&&(e.elements.arrow=i))}const PC={name:"arrow",enabled:!0,phase:"main",fn:LC,effect:kC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function si(t){return t.split("-")[1]}var FC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function BC(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:oi(n*i)/i||0,y:oi(r*i)/i||0}}function $d(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,p=a.x,_=p===void 0?0:p,m=a.y,f=m===void 0?0:m,g=typeof u=="function"?u({x:_,y:f}):{x:_,y:f};_=g.x,f=g.y;var E=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),b=mt,h=_t,C=window;if(c){var T=go(n),R="clientHeight",x="clientWidth";if(T===vt(n)&&(T=qn(n),hn(T).position!=="static"&&s==="absolute"&&(R="scrollHeight",x="scrollWidth")),T=T,i===_t||(i===mt||i===kt)&&o===Ki){h=Lt;var O=d&&T===C&&C.visualViewport?C.visualViewport.height:T[R];f-=O-r.height,f*=l?1:-1}if(i===mt||(i===_t||i===Lt)&&o===Ki){b=kt;var M=d&&T===C&&C.visualViewport?C.visualViewport.width:T[x];_-=M-r.width,_*=l?1:-1}}var B=Object.assign({position:s},c&&FC),Y=u===!0?BC({x:_,y:f},vt(n)):{x:_,y:f};if(_=Y.x,f=Y.y,l){var $;return Object.assign({},B,($={},$[h]=S?"0":"",$[b]=E?"0":"",$.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+f+"px)":"translate3d("+_+"px, "+f+"px, 0)",$))}return Object.assign({},B,(e={},e[h]=S?f+"px":"",e[b]=E?_+"px":"",e.transform="",e))}function UC(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:en(e.placement),variation:si(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$d(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$d(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const HC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UC,data:{}};var xo={passive:!0};function GC(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=vt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,xo)}),s&&l.addEventListener("resize",n.update,xo),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,xo)}),s&&l.removeEventListener("resize",n.update,xo)}}const VC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var YC={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(t){return t.replace(/left|right|bottom|top/g,function(e){return YC[e]})}var zC={start:"end",end:"start"};function qd(t){return t.replace(/start|end/g,function(e){return zC[e]})}function Yc(t){var e=vt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zc(t){return ai(qn(t)).left+Yc(t).scrollLeft}function $C(t,e){var n=vt(t),r=qn(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=If();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+zc(t),y:l}}function qC(t){var e,n=qn(t),r=Yc(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=ur(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ur(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+zc(t),l=-r.scrollTop;return hn(i||n).direction==="rtl"&&(s+=ur(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function $c(t){var e=hn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lf(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:wt(t)&&$c(t)?t:Lf(fs(t))}function Li(t,e){var n;e===void 0&&(e=[]);var r=Lf(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=vt(r),a=i?[o].concat(o.visualViewport||[],$c(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(Li(fs(a)))}function Zl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function WC(t,e){var n=ai(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Wd(t,e,n){return e===Of?Zl($C(t,n)):br(e)?WC(e,n):Zl(qC(qn(t)))}function KC(t){var e=Li(fs(t)),n=["absolute","fixed"].indexOf(hn(t).position)>=0,r=n&&wt(t)?go(t):t;return br(r)?e.filter(function(i){return br(i)&&xf(i,r)&&rn(i)!=="body"}):[]}function QC(t,e,n,r){var i=e==="clippingParents"?KC(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=Wd(t,c,r);return l.top=ur(u.top,l.top),l.right=Sa(u.right,l.right),l.bottom=Sa(u.bottom,l.bottom),l.left=ur(u.left,l.left),l},Wd(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kf(t){var e=t.reference,n=t.element,r=t.placement,i=r?en(r):null,o=r?si(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case _t:l={x:a,y:e.y-n.height};break;case Lt:l={x:a,y:e.y+e.height};break;case kt:l={x:e.x+e.width,y:s};break;case mt:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?Vc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ii:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Ki:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Qi(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,a=o===void 0?t.strategy:o,s=n.boundary,l=s===void 0?gC:s,c=n.rootBoundary,u=c===void 0?Of:c,d=n.elementContext,p=d===void 0?bi:d,_=n.altBoundary,m=_===void 0?!1:_,f=n.padding,g=f===void 0?0:f,E=Mf(typeof g!="number"?g:wf(g,fo)),S=p===bi?hC:bi,b=t.rects.popper,h=t.elements[m?S:p],C=QC(br(h)?h:h.contextElement||qn(t.elements.popper),l,u,a),T=ai(t.elements.reference),R=kf({reference:T,element:b,strategy:"absolute",placement:i}),x=Zl(Object.assign({},b,R)),O=p===bi?x:T,M={top:C.top-O.top+E.top,bottom:O.bottom-C.bottom+E.bottom,left:C.left-O.left+E.left,right:O.right-C.right+E.right},B=t.modifiersData.offset;if(p===bi&&B){var Y=B[i];Object.keys(M).forEach(function($){var q=[kt,Lt].indexOf($)>=0?1:-1,V=[_t,Lt].indexOf($)>=0?"y":"x";M[$]+=Y[V]*q})}return M}function ZC(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nf:l,u=si(r),d=u?s?Yd:Yd.filter(function(m){return si(m)===u}):fo,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var _=p.reduce(function(m,f){return m[f]=Qi(t,{placement:f,boundary:i,rootBoundary:o,padding:a})[en(f)],m},{});return Object.keys(_).sort(function(m,f){return _[m]-_[f]})}function XC(t){if(en(t)===Uc)return[];var e=Jo(t);return[qd(t),e,qd(e)]}function jC(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,_=n.flipVariations,m=_===void 0?!0:_,f=n.allowedAutoPlacements,g=e.options.placement,E=en(g),S=E===g,b=l||(S||!m?[Jo(g)]:XC(g)),h=[g].concat(b).reduce(function(Ce,ie){return Ce.concat(en(ie)===Uc?ZC(e,{placement:ie,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):ie)},[]),C=e.rects.reference,T=e.rects.popper,R=new Map,x=!0,O=h[0],M=0;M=0,V=q?"width":"height",J=Qi(e,{placement:B,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),y=q?$?kt:mt:$?Lt:_t;C[V]>T[V]&&(y=Jo(y));var v=Jo(y),A=[];if(o&&A.push(J[Y]<=0),s&&A.push(J[y]<=0,J[v]<=0),A.every(function(Ce){return Ce})){O=B,x=!1;break}R.set(B,A)}if(x)for(var k=m?3:1,G=function(ie){var ue=h.find(function(Be){var Le=R.get(Be);if(Le)return Le.slice(0,ie).every(function(We){return We})});if(ue)return O=ue,"break"},z=k;z>0;z--){var ae=G(z);if(ae==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}const JC={name:"flip",enabled:!0,phase:"main",fn:jC,requiresIfExists:["offset"],data:{_skip:!1}};function Kd(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Qd(t){return[_t,kt,Lt,mt].some(function(e){return t[e]>=0})}function e1(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Qi(e,{elementContext:"reference"}),s=Qi(e,{altBoundary:!0}),l=Kd(a,r),c=Kd(s,i,o),u=Qd(l),d=Qd(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const t1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:e1};function n1(t,e,n){var r=en(t),i=[mt,_t].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[mt,kt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function r1(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=Nf.reduce(function(u,d){return u[d]=n1(d,e.rects,o),u},{}),s=a[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const i1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:r1};function o1(t){var e=t.state,n=t.name;e.modifiersData[n]=kf({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const a1={name:"popperOffsets",enabled:!0,phase:"read",fn:o1,data:{}};function s1(t){return t==="x"?"y":"x"}function l1(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,_=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,g=Qi(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),E=en(e.placement),S=si(e.placement),b=!S,h=Vc(E),C=s1(h),T=e.modifiersData.popperOffsets,R=e.rects.reference,x=e.rects.popper,O=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(T){if(o){var $,q=h==="y"?_t:mt,V=h==="y"?Lt:kt,J=h==="y"?"height":"width",y=T[h],v=y+g[q],A=y-g[V],k=_?-x[J]/2:0,G=S===ii?R[J]:x[J],z=S===ii?-x[J]:-R[J],ae=e.elements.arrow,Ce=_&&ae?Gc(ae):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Df(),ue=ie[q],Be=ie[V],Le=wi(0,R[J],Ce[J]),We=b?R[J]/2-k-Le-ue-M.mainAxis:G-Le-ue-M.mainAxis,Ke=b?-R[J]/2+k+Le+Be+M.mainAxis:z+Le+Be+M.mainAxis,ht=e.elements.arrow&&go(e.elements.arrow),Ft=ht?h==="y"?ht.clientTop||0:ht.clientLeft||0:0,de=($=B==null?void 0:B[h])!=null?$:0,ke=y+We-de-Ft,Qe=y+Ke-de,he=wi(_?Sa(v,ke):v,y,_?ur(A,Qe):A);T[h]=he,Y[h]=he-y}if(s){var zt,Et=h==="x"?_t:mt,P=h==="x"?Lt:kt,et=T[C],oe=C==="y"?"height":"width",X=et+g[Et],He=et-g[P],xe=[_t,mt].indexOf(E)!==-1,St=(zt=B==null?void 0:B[C])!=null?zt:0,bt=xe?X:et-R[oe]-x[oe]-St+M.altAxis,N=xe?et+R[oe]+x[oe]-St-M.altAxis:He,D=_&&xe?MC(bt,et,N):wi(_?bt:X,et,_?N:He);T[C]=D,Y[C]=D-et}e.modifiersData[r]=Y}}const c1={name:"preventOverflow",enabled:!0,phase:"main",fn:l1,requiresIfExists:["offset"]};function u1(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function d1(t){return t===vt(t)||!wt(t)?Yc(t):u1(t)}function p1(t){var e=t.getBoundingClientRect(),n=oi(e.width)/t.offsetWidth||1,r=oi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function _1(t,e,n){n===void 0&&(n=!1);var r=wt(e),i=wt(e)&&p1(e),o=qn(e),a=ai(t,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||$c(o))&&(s=d1(e)),wt(e)?(l=ai(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=zc(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function m1(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function f1(t){var e=m1(t);return NC.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function g1(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function h1(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Xd(){for(var t=arguments.length,e=new Array(t),n=0;n-1}function Hf(t,e){return typeof t=="function"?t.apply(void 0,e):t}function jd(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function v1(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function R1(t){return t.split(/\s+/).filter(Boolean)}function Br(t){return[].concat(t)}function Jd(t,e){t.indexOf(e)===-1&&t.push(e)}function O1(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function N1(t){return t.split("-")[0]}function ba(t){return[].slice.call(t)}function ep(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function ki(){return document.createElement("div")}function Zi(t){return["Element","Fragment"].some(function(e){return qc(t,e)})}function A1(t){return qc(t,"NodeList")}function I1(t){return qc(t,"MouseEvent")}function x1(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function D1(t){return Zi(t)?[t]:A1(t)?ba(t):Array.isArray(t)?t:ba(document.querySelectorAll(t))}function Qs(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function tp(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function M1(t){var e,n=Br(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function w1(t,e){var n=e.clientX,r=e.clientY;return t.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=N1(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,_=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,f=o.top-r+d>l,g=r-o.bottom-p>l,E=o.left-n+_>l,S=n-o.right-m>l;return f||g||E||S})}function Zs(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[r](i,n)})}function np(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Qt={isTouch:!1},rp=0;function L1(){Qt.isTouch||(Qt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Gf))}function Gf(){var t=performance.now();t-rp<20&&(Qt.isTouch=!1,document.removeEventListener("mousemove",Gf)),rp=t}function k1(){var t=document.activeElement;if(x1(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function P1(){document.addEventListener("touchstart",L1,Xn),window.addEventListener("blur",k1)}var F1=typeof window<"u"&&typeof document<"u",B1=F1?!!window.msCrypto:!1;function Ir(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function ip(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function U1(t){return ip(` + `,this.registerClickListener()}onClick(e){e.redo()}}var _t="top",Lt="bottom",kt="right",mt="left",Yc="auto",go=[_t,Lt,kt,mt],ii="start",Qi="end",TC="clippingParents",wf="viewport",bi="popper",CC="reference",Kd=go.reduce(function(t,e){return t.concat([e+"-"+ii,e+"-"+Qi])},[]),Lf=[].concat(go,[Yc]).reduce(function(t,e){return t.concat([e,e+"-"+ii,e+"-"+Qi])},[]),yC="beforeRead",vC="read",RC="afterRead",OC="beforeMain",NC="main",AC="afterMain",IC="beforeWrite",xC="write",DC="afterWrite",MC=[yC,vC,RC,OC,NC,AC,IC,xC,DC];function rn(t){return t?(t.nodeName||"").toLowerCase():null}function Rt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function br(t){var e=Rt(t).Element;return t instanceof e||t instanceof Element}function wt(t){var e=Rt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function zc(t){if(typeof ShadowRoot>"u")return!1;var e=Rt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function wC(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!wt(o)||!rn(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function LC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!wt(i)||!rn(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const kf={name:"applyStyles",enabled:!0,phase:"write",fn:wC,effect:LC,requires:["computeStyles"]};function en(t){return t.split("-")[0]}var ur=Math.max,ba=Math.min,oi=Math.round;function Zl(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pf(){return!/^((?!chrome|android).)*safari/i.test(Zl())}function ai(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&wt(t)&&(i=t.offsetWidth>0&&oi(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&oi(r.height)/t.offsetHeight||1);var a=br(t)?Rt(t):window,s=a.visualViewport,l=!Pf()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function $c(t){var e=ai(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Ff(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&zc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hn(t){return Rt(t).getComputedStyle(t)}function kC(t){return["table","td","th"].indexOf(rn(t))>=0}function Wn(t){return((br(t)?t.ownerDocument:t.document)||window.document).documentElement}function gs(t){return rn(t)==="html"?t:t.assignedSlot||t.parentNode||(zc(t)?t.host:null)||Wn(t)}function Qd(t){return!wt(t)||hn(t).position==="fixed"?null:t.offsetParent}function PC(t){var e=/firefox/i.test(Zl()),n=/Trident/i.test(Zl());if(n&&wt(t)){var r=hn(t);if(r.position==="fixed")return null}var i=gs(t);for(zc(i)&&(i=i.host);wt(i)&&["html","body"].indexOf(rn(i))<0;){var o=hn(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ho(t){for(var e=Rt(t),n=Qd(t);n&&kC(n)&&hn(n).position==="static";)n=Qd(n);return n&&(rn(n)==="html"||rn(n)==="body"&&hn(n).position==="static")?e:n||PC(t)||e}function qc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Li(t,e,n){return ur(t,ba(e,n))}function FC(t,e,n){var r=Li(t,e,n);return r>n?n:r}function Bf(){return{top:0,right:0,bottom:0,left:0}}function Uf(t){return Object.assign({},Bf(),t)}function Hf(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var BC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Uf(typeof e!="number"?e:Hf(e,go))};function UC(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=en(n.placement),l=qc(s),c=[mt,kt].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=BC(i.padding,n),p=$c(o),_=l==="y"?_t:mt,m=l==="y"?Lt:kt,f=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],S=ho(o),E=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,b=f/2-g/2,h=d[_],C=E-p[u]-d[m],T=E/2-p[u]/2+b,R=Li(h,T,C),x=l;n.modifiersData[r]=(e={},e[x]=R,e.centerOffset=R-T,e)}}function HC(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Ff(e.elements.popper,i)&&(e.elements.arrow=i))}const GC={name:"arrow",enabled:!0,phase:"main",fn:UC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function si(t){return t.split("-")[1]}var VC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YC(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:oi(n*i)/i||0,y:oi(r*i)/i||0}}function Zd(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,p=a.x,_=p===void 0?0:p,m=a.y,f=m===void 0?0:m,g=typeof u=="function"?u({x:_,y:f}):{x:_,y:f};_=g.x,f=g.y;var S=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),b=mt,h=_t,C=window;if(c){var T=ho(n),R="clientHeight",x="clientWidth";if(T===Rt(n)&&(T=Wn(n),hn(T).position!=="static"&&s==="absolute"&&(R="scrollHeight",x="scrollWidth")),T=T,i===_t||(i===mt||i===kt)&&o===Qi){h=Lt;var O=d&&T===C&&C.visualViewport?C.visualViewport.height:T[R];f-=O-r.height,f*=l?1:-1}if(i===mt||(i===_t||i===Lt)&&o===Qi){b=kt;var M=d&&T===C&&C.visualViewport?C.visualViewport.width:T[x];_-=M-r.width,_*=l?1:-1}}var B=Object.assign({position:s},c&&VC),Y=u===!0?YC({x:_,y:f},Rt(n)):{x:_,y:f};if(_=Y.x,f=Y.y,l){var $;return Object.assign({},B,($={},$[h]=E?"0":"",$[b]=S?"0":"",$.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+f+"px)":"translate3d("+_+"px, "+f+"px, 0)",$))}return Object.assign({},B,(e={},e[h]=E?f+"px":"",e[b]=S?_+"px":"",e.transform="",e))}function zC(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:en(e.placement),variation:si(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zd(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zd(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const $C={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zC,data:{}};var Do={passive:!0};function qC(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Rt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Do)}),s&&l.addEventListener("resize",n.update,Do),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Do)}),s&&l.removeEventListener("resize",n.update,Do)}}const WC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function ea(t){return t.replace(/left|right|bottom|top/g,function(e){return KC[e]})}var QC={start:"end",end:"start"};function Xd(t){return t.replace(/start|end/g,function(e){return QC[e]})}function Wc(t){var e=Rt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Kc(t){return ai(Wn(t)).left+Wc(t).scrollLeft}function ZC(t,e){var n=Rt(t),r=Wn(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Pf();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Kc(t),y:l}}function XC(t){var e,n=Wn(t),r=Wc(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=ur(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ur(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Kc(t),l=-r.scrollTop;return hn(i||n).direction==="rtl"&&(s+=ur(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Qc(t){var e=hn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Gf(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:wt(t)&&Qc(t)?t:Gf(gs(t))}function ki(t,e){var n;e===void 0&&(e=[]);var r=Gf(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Rt(r),a=i?[o].concat(o.visualViewport||[],Qc(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(ki(gs(a)))}function Xl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function jC(t,e){var n=ai(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function jd(t,e,n){return e===wf?Xl(ZC(t,n)):br(e)?jC(e,n):Xl(XC(Wn(t)))}function JC(t){var e=ki(gs(t)),n=["absolute","fixed"].indexOf(hn(t).position)>=0,r=n&&wt(t)?ho(t):t;return br(r)?e.filter(function(i){return br(i)&&Ff(i,r)&&rn(i)!=="body"}):[]}function e1(t,e,n,r){var i=e==="clippingParents"?JC(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=jd(t,c,r);return l.top=ur(u.top,l.top),l.right=ba(u.right,l.right),l.bottom=ba(u.bottom,l.bottom),l.left=ur(u.left,l.left),l},jd(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Vf(t){var e=t.reference,n=t.element,r=t.placement,i=r?en(r):null,o=r?si(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case _t:l={x:a,y:e.y-n.height};break;case Lt:l={x:a,y:e.y+e.height};break;case kt:l={x:e.x+e.width,y:s};break;case mt:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?qc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ii:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Qi:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Zi(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,a=o===void 0?t.strategy:o,s=n.boundary,l=s===void 0?TC:s,c=n.rootBoundary,u=c===void 0?wf:c,d=n.elementContext,p=d===void 0?bi:d,_=n.altBoundary,m=_===void 0?!1:_,f=n.padding,g=f===void 0?0:f,S=Uf(typeof g!="number"?g:Hf(g,go)),E=p===bi?CC:bi,b=t.rects.popper,h=t.elements[m?E:p],C=e1(br(h)?h:h.contextElement||Wn(t.elements.popper),l,u,a),T=ai(t.elements.reference),R=Vf({reference:T,element:b,strategy:"absolute",placement:i}),x=Xl(Object.assign({},b,R)),O=p===bi?x:T,M={top:C.top-O.top+S.top,bottom:O.bottom-C.bottom+S.bottom,left:C.left-O.left+S.left,right:O.right-C.right+S.right},B=t.modifiersData.offset;if(p===bi&&B){var Y=B[i];Object.keys(M).forEach(function($){var q=[kt,Lt].indexOf($)>=0?1:-1,V=[_t,Lt].indexOf($)>=0?"y":"x";M[$]+=Y[V]*q})}return M}function t1(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Lf:l,u=si(r),d=u?s?Kd:Kd.filter(function(m){return si(m)===u}):go,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var _=p.reduce(function(m,f){return m[f]=Zi(t,{placement:f,boundary:i,rootBoundary:o,padding:a})[en(f)],m},{});return Object.keys(_).sort(function(m,f){return _[m]-_[f]})}function n1(t){if(en(t)===Yc)return[];var e=ea(t);return[Xd(t),e,Xd(e)]}function r1(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,_=n.flipVariations,m=_===void 0?!0:_,f=n.allowedAutoPlacements,g=e.options.placement,S=en(g),E=S===g,b=l||(E||!m?[ea(g)]:n1(g)),h=[g].concat(b).reduce(function(Ce,ie){return Ce.concat(en(ie)===Yc?t1(e,{placement:ie,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):ie)},[]),C=e.rects.reference,T=e.rects.popper,R=new Map,x=!0,O=h[0],M=0;M=0,V=q?"width":"height",J=Zi(e,{placement:B,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),y=q?$?kt:mt:$?Lt:_t;C[V]>T[V]&&(y=ea(y));var v=ea(y),A=[];if(o&&A.push(J[Y]<=0),s&&A.push(J[y]<=0,J[v]<=0),A.every(function(Ce){return Ce})){O=B,x=!1;break}R.set(B,A)}if(x)for(var k=m?3:1,G=function(ie){var ue=h.find(function(Be){var Le=R.get(Be);if(Le)return Le.slice(0,ie).every(function(We){return We})});if(ue)return O=ue,"break"},z=k;z>0;z--){var ae=G(z);if(ae==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}const i1={name:"flip",enabled:!0,phase:"main",fn:r1,requiresIfExists:["offset"],data:{_skip:!1}};function Jd(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ep(t){return[_t,kt,Lt,mt].some(function(e){return t[e]>=0})}function o1(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Zi(e,{elementContext:"reference"}),s=Zi(e,{altBoundary:!0}),l=Jd(a,r),c=Jd(s,i,o),u=ep(l),d=ep(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const a1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:o1};function s1(t,e,n){var r=en(t),i=[mt,_t].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[mt,kt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function l1(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=Lf.reduce(function(u,d){return u[d]=s1(d,e.rects,o),u},{}),s=a[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const c1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l1};function u1(t){var e=t.state,n=t.name;e.modifiersData[n]=Vf({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const d1={name:"popperOffsets",enabled:!0,phase:"read",fn:u1,data:{}};function p1(t){return t==="x"?"y":"x"}function _1(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,_=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,g=Zi(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=en(e.placement),E=si(e.placement),b=!E,h=qc(S),C=p1(h),T=e.modifiersData.popperOffsets,R=e.rects.reference,x=e.rects.popper,O=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(T){if(o){var $,q=h==="y"?_t:mt,V=h==="y"?Lt:kt,J=h==="y"?"height":"width",y=T[h],v=y+g[q],A=y-g[V],k=_?-x[J]/2:0,G=E===ii?R[J]:x[J],z=E===ii?-x[J]:-R[J],ae=e.elements.arrow,Ce=_&&ae?$c(ae):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Bf(),ue=ie[q],Be=ie[V],Le=Li(0,R[J],Ce[J]),We=b?R[J]/2-k-Le-ue-M.mainAxis:G-Le-ue-M.mainAxis,Ke=b?-R[J]/2+k+Le+Be+M.mainAxis:z+Le+Be+M.mainAxis,ht=e.elements.arrow&&ho(e.elements.arrow),Ft=ht?h==="y"?ht.clientTop||0:ht.clientLeft||0:0,de=($=B==null?void 0:B[h])!=null?$:0,Pe=y+We-de-Ft,Qe=y+Ke-de,he=Li(_?ba(v,Pe):v,y,_?ur(A,Qe):A);T[h]=he,Y[h]=he-y}if(s){var zt,Et=h==="x"?_t:mt,P=h==="x"?Lt:kt,et=T[C],oe=C==="y"?"height":"width",X=et+g[Et],He=et-g[P],xe=[_t,mt].indexOf(S)!==-1,St=(zt=B==null?void 0:B[C])!=null?zt:0,bt=xe?X:et-R[oe]-x[oe]-St+M.altAxis,N=xe?et+R[oe]+x[oe]-St-M.altAxis:He,D=_&&xe?FC(bt,et,N):Li(_?bt:X,et,_?N:He);T[C]=D,Y[C]=D-et}e.modifiersData[r]=Y}}const m1={name:"preventOverflow",enabled:!0,phase:"main",fn:_1,requiresIfExists:["offset"]};function f1(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function g1(t){return t===Rt(t)||!wt(t)?Wc(t):f1(t)}function h1(t){var e=t.getBoundingClientRect(),n=oi(e.width)/t.offsetWidth||1,r=oi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function E1(t,e,n){n===void 0&&(n=!1);var r=wt(e),i=wt(e)&&h1(e),o=Wn(e),a=ai(t,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||Qc(o))&&(s=g1(e)),wt(e)?(l=ai(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Kc(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function S1(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function b1(t){var e=S1(t);return MC.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function T1(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function C1(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var tp={placement:"bottom",modifiers:[],strategy:"absolute"};function np(){for(var t=arguments.length,e=new Array(t),n=0;n-1}function Wf(t,e){return typeof t=="function"?t.apply(void 0,e):t}function rp(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function I1(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function x1(t){return t.split(/\s+/).filter(Boolean)}function Br(t){return[].concat(t)}function ip(t,e){t.indexOf(e)===-1&&t.push(e)}function D1(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function M1(t){return t.split("-")[0]}function Ta(t){return[].slice.call(t)}function op(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Pi(){return document.createElement("div")}function Xi(t){return["Element","Fragment"].some(function(e){return Zc(t,e)})}function w1(t){return Zc(t,"NodeList")}function L1(t){return Zc(t,"MouseEvent")}function k1(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function P1(t){return Xi(t)?[t]:w1(t)?Ta(t):Array.isArray(t)?t:Ta(document.querySelectorAll(t))}function Xs(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function ap(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function F1(t){var e,n=Br(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function B1(t,e){var n=e.clientX,r=e.clientY;return t.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=M1(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,_=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,f=o.top-r+d>l,g=r-o.bottom-p>l,S=o.left-n+_>l,E=n-o.right-m>l;return f||g||S||E})}function js(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[r](i,n)})}function sp(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Qt={isTouch:!1},lp=0;function U1(){Qt.isTouch||(Qt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Kf))}function Kf(){var t=performance.now();t-lp<20&&(Qt.isTouch=!1,document.removeEventListener("mousemove",Kf)),lp=t}function H1(){var t=document.activeElement;if(k1(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function G1(){document.addEventListener("touchstart",U1,jn),window.addEventListener("blur",H1)}var V1=typeof window<"u"&&typeof document<"u",Y1=V1?!!window.msCrypto:!1;function Ir(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function cp(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function z1(t){return cp(` %ctippy.js - %c`+ip(t)+` + %c`+cp(t)+` %c👷‍ This is a development-only message. It will be removed in production. - `)}function Vf(t){return[U1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Xi;Nt.NODE_ENV!=="production"&&H1();function H1(){Xi=new Set}function _n(t,e){if(t&&!Xi.has(e)){var n;Xi.add(e),(n=console).warn.apply(n,Vf(e))}}function Xl(t,e){if(t&&!Xi.has(e)){var n;Xi.add(e),(n=console).error.apply(n,Vf(e))}}function G1(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Xl(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Xl(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Yf={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},V1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},yt=Object.assign({appendTo:Uf,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},Yf,V1),Y1=Object.keys(yt),z1=function(e){Nt.NODE_ENV!=="production"&&$f(e,[]);var n=Object.keys(e);n.forEach(function(r){yt[r]=e[r]})};function zf(t){var e=t.plugins||[],n=e.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=t[o]!==void 0?t[o]:(s=yt[o])!=null?s:a}return r},{});return Object.assign({},t,n)}function $1(t,e){var n=e?Object.keys(zf(Object.assign({},yt,{plugins:e}))):Y1,r=n.reduce(function(i,o){var a=(t.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function op(t,e){var n=Object.assign({},e,{content:Hf(e.content,[t])},e.ignoreAttributes?{}:$1(t,e.plugins));return n.aria=Object.assign({},yt.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function $f(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var i=v1(yt,Object.keys(Yf)),o=!y1(i,r);o&&(o=e.filter(function(a){return a.name===r}).length===0),_n(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",` + `)}function Qf(t){return[z1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ji;At.NODE_ENV!=="production"&&$1();function $1(){ji=new Set}function _n(t,e){if(t&&!ji.has(e)){var n;ji.add(e),(n=console).warn.apply(n,Qf(e))}}function jl(t,e){if(t&&!ji.has(e)){var n;ji.add(e),(n=console).error.apply(n,Qf(e))}}function q1(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;jl(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),jl(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Zf={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},W1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},yt=Object.assign({appendTo:qf,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},Zf,W1),K1=Object.keys(yt),Q1=function(e){At.NODE_ENV!=="production"&&jf(e,[]);var n=Object.keys(e);n.forEach(function(r){yt[r]=e[r]})};function Xf(t){var e=t.plugins||[],n=e.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=t[o]!==void 0?t[o]:(s=yt[o])!=null?s:a}return r},{});return Object.assign({},t,n)}function Z1(t,e){var n=e?Object.keys(Xf(Object.assign({},yt,{plugins:e}))):K1,r=n.reduce(function(i,o){var a=(t.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function up(t,e){var n=Object.assign({},e,{content:Wf(e.content,[t])},e.ignoreAttributes?{}:Z1(t,e.plugins));return n.aria=Object.assign({},yt.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function jf(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var i=I1(yt,Object.keys(Zf)),o=!A1(i,r);o&&(o=e.filter(function(a){return a.name===r}).length===0),_n(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",` `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/ -`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var q1=function(){return"innerHTML"};function jl(t,e){t[q1()]=e}function ap(t){var e=ki();return t===!0?e.className=Ff:(e.className=Bf,Zi(t)?e.appendChild(t):jl(e,t)),e}function sp(t,e){Zi(e.content)?(jl(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?jl(t,e.content):t.textContent=e.content)}function Jl(t){var e=t.firstElementChild,n=ba(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Pf)}),arrow:n.find(function(r){return r.classList.contains(Ff)||r.classList.contains(Bf)}),backdrop:n.find(function(r){return r.classList.contains(C1)})}}function qf(t){var e=ki(),n=ki();n.className=T1,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ki();r.className=Pf,r.setAttribute("data-state","hidden"),sp(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props);function i(o,a){var s=Jl(e),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&sp(c,t.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(ap(a.arrow))):l.appendChild(ap(a.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:i}}qf.$$tippy=!0;var W1=1,Do=[],Xs=[];function K1(t,e){var n=op(t,Object.assign({},yt,zf(ep(e)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,p,_=[],m=jd(ke,n.interactiveDebounce),f,g=W1++,E=null,S=O1(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},h={id:g,reference:t,popper:ki(),popperInstance:E,props:n,state:b,plugins:S,clearDelayTimeouts:bt,setProps:N,setContent:D,show:U,hide:K,hideWithInteractivity:_e,enable:xe,disable:St,unmount:De,destroy:Rr};if(!n.render)return Nt.NODE_ENV!=="production"&&Xl(!0,"render() function has not been supplied."),h;var C=n.render(h),T=C.popper,R=C.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+h.id,h.popper=T,t._tippy=h,T._tippy=h;var x=S.map(function(I){return I.fn(h)}),O=t.hasAttribute("aria-expanded");return ht(),k(),y(),v("onCreate",[h]),n.showOnCreate&&X(),T.addEventListener("mouseenter",function(){h.props.interactive&&h.state.isVisible&&h.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){h.props.interactive&&h.props.trigger.indexOf("mouseenter")>=0&&q().addEventListener("mousemove",m)}),h;function M(){var I=h.props.touch;return Array.isArray(I)?I:[I,0]}function B(){return M()[0]==="hold"}function Y(){var I;return!!((I=h.props.render)!=null&&I.$$tippy)}function $(){return f||t}function q(){var I=$().parentNode;return I?M1(I):document}function V(){return Jl(T)}function J(I){return h.state.isMounted&&!h.state.isVisible||Qt.isTouch||u&&u.type==="focus"?0:Ks(h.props.delay,I?0:1,yt.delay)}function y(I){I===void 0&&(I=!1),T.style.pointerEvents=h.props.interactive&&!I?"":"none",T.style.zIndex=""+h.props.zIndex}function v(I,Q,ne){if(ne===void 0&&(ne=!0),x.forEach(function(fe){fe[I]&&fe[I].apply(fe,Q)}),ne){var Ee;(Ee=h.props)[I].apply(Ee,Q)}}function A(){var I=h.props.aria;if(I.content){var Q="aria-"+I.content,ne=T.id,Ee=Br(h.props.triggerTarget||t);Ee.forEach(function(fe){var tt=fe.getAttribute(Q);if(h.state.isVisible)fe.setAttribute(Q,tt?tt+" "+ne:ne);else{var Tt=tt&&tt.replace(ne,"").trim();Tt?fe.setAttribute(Q,Tt):fe.removeAttribute(Q)}})}}function k(){if(!(O||!h.props.aria.expanded)){var I=Br(h.props.triggerTarget||t);I.forEach(function(Q){h.props.interactive?Q.setAttribute("aria-expanded",h.state.isVisible&&Q===$()?"true":"false"):Q.removeAttribute("aria-expanded")})}}function G(){q().removeEventListener("mousemove",m),Do=Do.filter(function(I){return I!==m})}function z(I){if(!(Qt.isTouch&&(l||I.type==="mousedown"))){var Q=I.composedPath&&I.composedPath()[0]||I.target;if(!(h.props.interactive&&np(T,Q))){if(Br(h.props.triggerTarget||t).some(function(ne){return np(ne,Q)})){if(Qt.isTouch||h.state.isVisible&&h.props.trigger.indexOf("click")>=0)return}else v("onClickOutside",[h,I]);h.props.hideOnClick===!0&&(h.clearDelayTimeouts(),h.hide(),s=!0,setTimeout(function(){s=!1}),h.state.isMounted||ue())}}}function ae(){l=!0}function Ce(){l=!1}function ie(){var I=q();I.addEventListener("mousedown",z,!0),I.addEventListener("touchend",z,Xn),I.addEventListener("touchstart",Ce,Xn),I.addEventListener("touchmove",ae,Xn)}function ue(){var I=q();I.removeEventListener("mousedown",z,!0),I.removeEventListener("touchend",z,Xn),I.removeEventListener("touchstart",Ce,Xn),I.removeEventListener("touchmove",ae,Xn)}function Be(I,Q){We(I,function(){!h.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Q()})}function Le(I,Q){We(I,Q)}function We(I,Q){var ne=V().box;function Ee(fe){fe.target===ne&&(Zs(ne,"remove",Ee),Q())}if(I===0)return Q();Zs(ne,"remove",d),Zs(ne,"add",Ee),d=Ee}function Ke(I,Q,ne){ne===void 0&&(ne=!1);var Ee=Br(h.props.triggerTarget||t);Ee.forEach(function(fe){fe.addEventListener(I,Q,ne),_.push({node:fe,eventType:I,handler:Q,options:ne})})}function ht(){B()&&(Ke("touchstart",de,{passive:!0}),Ke("touchend",Qe,{passive:!0})),R1(h.props.trigger).forEach(function(I){if(I!=="manual")switch(Ke(I,de),I){case"mouseenter":Ke("mouseleave",Qe);break;case"focus":Ke(B1?"focusout":"blur",he);break;case"focusin":Ke("focusout",he);break}})}function Ft(){_.forEach(function(I){var Q=I.node,ne=I.eventType,Ee=I.handler,fe=I.options;Q.removeEventListener(ne,Ee,fe)}),_=[]}function de(I){var Q,ne=!1;if(!(!h.state.isEnabled||zt(I)||s)){var Ee=((Q=u)==null?void 0:Q.type)==="focus";u=I,f=I.currentTarget,k(),!h.state.isVisible&&I1(I)&&Do.forEach(function(fe){return fe(I)}),I.type==="click"&&(h.props.trigger.indexOf("mouseenter")<0||a)&&h.props.hideOnClick!==!1&&h.state.isVisible?ne=!0:X(I),I.type==="click"&&(a=!ne),ne&&!Ee&&He(I)}}function ke(I){var Q=I.target,ne=$().contains(Q)||T.contains(Q);if(!(I.type==="mousemove"&&ne)){var Ee=oe().concat(T).map(function(fe){var tt,Tt=fe._tippy,Wn=(tt=Tt.popperInstance)==null?void 0:tt.state;return Wn?{popperRect:fe.getBoundingClientRect(),popperState:Wn,props:n}:null}).filter(Boolean);w1(Ee,I)&&(G(),He(I))}}function Qe(I){var Q=zt(I)||h.props.trigger.indexOf("click")>=0&&a;if(!Q){if(h.props.interactive){h.hideWithInteractivity(I);return}He(I)}}function he(I){h.props.trigger.indexOf("focusin")<0&&I.target!==$()||h.props.interactive&&I.relatedTarget&&T.contains(I.relatedTarget)||He(I)}function zt(I){return Qt.isTouch?B()!==I.type.indexOf("touch")>=0:!1}function Et(){P();var I=h.props,Q=I.popperOptions,ne=I.placement,Ee=I.offset,fe=I.getReferenceClientRect,tt=I.moveTransition,Tt=Y()?Jl(T).arrow:null,Wn=fe?{getBoundingClientRect:fe,contextElement:fe.contextElement||$()}:t,Is={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(hi){var Kn=hi.state;if(Y()){var Ou=V(),Co=Ou.box;["placement","reference-hidden","escaped"].forEach(function(Ei){Ei==="placement"?Co.setAttribute("data-placement",Kn.placement):Kn.attributes.popper["data-popper-"+Ei]?Co.setAttribute("data-"+Ei,""):Co.removeAttribute("data-"+Ei)}),Kn.attributes.popper={}}}},bn=[{name:"offset",options:{offset:Ee}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tt}},Is];Y()&&Tt&&bn.push({name:"arrow",options:{element:Tt,padding:3}}),bn.push.apply(bn,(Q==null?void 0:Q.modifiers)||[]),h.popperInstance=b1(Wn,T,Object.assign({},Q,{placement:ne,onFirstUpdate:p,modifiers:bn}))}function P(){h.popperInstance&&(h.popperInstance.destroy(),h.popperInstance=null)}function et(){var I=h.props.appendTo,Q,ne=$();h.props.interactive&&I===Uf||I==="parent"?Q=ne.parentNode:Q=Hf(I,[ne]),Q.contains(T)||Q.appendChild(T),h.state.isMounted=!0,Et(),Nt.NODE_ENV!=="production"&&_n(h.props.interactive&&I===yt.appendTo&&ne.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",` +`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var X1=function(){return"innerHTML"};function Jl(t,e){t[X1()]=e}function dp(t){var e=Pi();return t===!0?e.className=zf:(e.className=$f,Xi(t)?e.appendChild(t):Jl(e,t)),e}function pp(t,e){Xi(e.content)?(Jl(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Jl(t,e.content):t.textContent=e.content)}function ec(t){var e=t.firstElementChild,n=Ta(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Yf)}),arrow:n.find(function(r){return r.classList.contains(zf)||r.classList.contains($f)}),backdrop:n.find(function(r){return r.classList.contains(N1)})}}function Jf(t){var e=Pi(),n=Pi();n.className=O1,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Pi();r.className=Yf,r.setAttribute("data-state","hidden"),pp(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props);function i(o,a){var s=ec(e),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&pp(c,t.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(dp(a.arrow))):l.appendChild(dp(a.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:i}}Jf.$$tippy=!0;var j1=1,Mo=[],Js=[];function J1(t,e){var n=up(t,Object.assign({},yt,Xf(op(e)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,p,_=[],m=rp(Pe,n.interactiveDebounce),f,g=j1++,S=null,E=D1(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},h={id:g,reference:t,popper:Pi(),popperInstance:S,props:n,state:b,plugins:E,clearDelayTimeouts:bt,setProps:N,setContent:D,show:U,hide:K,hideWithInteractivity:_e,enable:xe,disable:St,unmount:De,destroy:Rr};if(!n.render)return At.NODE_ENV!=="production"&&jl(!0,"render() function has not been supplied."),h;var C=n.render(h),T=C.popper,R=C.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+h.id,h.popper=T,t._tippy=h,T._tippy=h;var x=E.map(function(I){return I.fn(h)}),O=t.hasAttribute("aria-expanded");return ht(),k(),y(),v("onCreate",[h]),n.showOnCreate&&X(),T.addEventListener("mouseenter",function(){h.props.interactive&&h.state.isVisible&&h.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){h.props.interactive&&h.props.trigger.indexOf("mouseenter")>=0&&q().addEventListener("mousemove",m)}),h;function M(){var I=h.props.touch;return Array.isArray(I)?I:[I,0]}function B(){return M()[0]==="hold"}function Y(){var I;return!!((I=h.props.render)!=null&&I.$$tippy)}function $(){return f||t}function q(){var I=$().parentNode;return I?F1(I):document}function V(){return ec(T)}function J(I){return h.state.isMounted&&!h.state.isVisible||Qt.isTouch||u&&u.type==="focus"?0:Zs(h.props.delay,I?0:1,yt.delay)}function y(I){I===void 0&&(I=!1),T.style.pointerEvents=h.props.interactive&&!I?"":"none",T.style.zIndex=""+h.props.zIndex}function v(I,Q,ne){if(ne===void 0&&(ne=!0),x.forEach(function(fe){fe[I]&&fe[I].apply(fe,Q)}),ne){var Ee;(Ee=h.props)[I].apply(Ee,Q)}}function A(){var I=h.props.aria;if(I.content){var Q="aria-"+I.content,ne=T.id,Ee=Br(h.props.triggerTarget||t);Ee.forEach(function(fe){var tt=fe.getAttribute(Q);if(h.state.isVisible)fe.setAttribute(Q,tt?tt+" "+ne:ne);else{var Tt=tt&&tt.replace(ne,"").trim();Tt?fe.setAttribute(Q,Tt):fe.removeAttribute(Q)}})}}function k(){if(!(O||!h.props.aria.expanded)){var I=Br(h.props.triggerTarget||t);I.forEach(function(Q){h.props.interactive?Q.setAttribute("aria-expanded",h.state.isVisible&&Q===$()?"true":"false"):Q.removeAttribute("aria-expanded")})}}function G(){q().removeEventListener("mousemove",m),Mo=Mo.filter(function(I){return I!==m})}function z(I){if(!(Qt.isTouch&&(l||I.type==="mousedown"))){var Q=I.composedPath&&I.composedPath()[0]||I.target;if(!(h.props.interactive&&sp(T,Q))){if(Br(h.props.triggerTarget||t).some(function(ne){return sp(ne,Q)})){if(Qt.isTouch||h.state.isVisible&&h.props.trigger.indexOf("click")>=0)return}else v("onClickOutside",[h,I]);h.props.hideOnClick===!0&&(h.clearDelayTimeouts(),h.hide(),s=!0,setTimeout(function(){s=!1}),h.state.isMounted||ue())}}}function ae(){l=!0}function Ce(){l=!1}function ie(){var I=q();I.addEventListener("mousedown",z,!0),I.addEventListener("touchend",z,jn),I.addEventListener("touchstart",Ce,jn),I.addEventListener("touchmove",ae,jn)}function ue(){var I=q();I.removeEventListener("mousedown",z,!0),I.removeEventListener("touchend",z,jn),I.removeEventListener("touchstart",Ce,jn),I.removeEventListener("touchmove",ae,jn)}function Be(I,Q){We(I,function(){!h.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Q()})}function Le(I,Q){We(I,Q)}function We(I,Q){var ne=V().box;function Ee(fe){fe.target===ne&&(js(ne,"remove",Ee),Q())}if(I===0)return Q();js(ne,"remove",d),js(ne,"add",Ee),d=Ee}function Ke(I,Q,ne){ne===void 0&&(ne=!1);var Ee=Br(h.props.triggerTarget||t);Ee.forEach(function(fe){fe.addEventListener(I,Q,ne),_.push({node:fe,eventType:I,handler:Q,options:ne})})}function ht(){B()&&(Ke("touchstart",de,{passive:!0}),Ke("touchend",Qe,{passive:!0})),x1(h.props.trigger).forEach(function(I){if(I!=="manual")switch(Ke(I,de),I){case"mouseenter":Ke("mouseleave",Qe);break;case"focus":Ke(Y1?"focusout":"blur",he);break;case"focusin":Ke("focusout",he);break}})}function Ft(){_.forEach(function(I){var Q=I.node,ne=I.eventType,Ee=I.handler,fe=I.options;Q.removeEventListener(ne,Ee,fe)}),_=[]}function de(I){var Q,ne=!1;if(!(!h.state.isEnabled||zt(I)||s)){var Ee=((Q=u)==null?void 0:Q.type)==="focus";u=I,f=I.currentTarget,k(),!h.state.isVisible&&L1(I)&&Mo.forEach(function(fe){return fe(I)}),I.type==="click"&&(h.props.trigger.indexOf("mouseenter")<0||a)&&h.props.hideOnClick!==!1&&h.state.isVisible?ne=!0:X(I),I.type==="click"&&(a=!ne),ne&&!Ee&&He(I)}}function Pe(I){var Q=I.target,ne=$().contains(Q)||T.contains(Q);if(!(I.type==="mousemove"&&ne)){var Ee=oe().concat(T).map(function(fe){var tt,Tt=fe._tippy,Kn=(tt=Tt.popperInstance)==null?void 0:tt.state;return Kn?{popperRect:fe.getBoundingClientRect(),popperState:Kn,props:n}:null}).filter(Boolean);B1(Ee,I)&&(G(),He(I))}}function Qe(I){var Q=zt(I)||h.props.trigger.indexOf("click")>=0&&a;if(!Q){if(h.props.interactive){h.hideWithInteractivity(I);return}He(I)}}function he(I){h.props.trigger.indexOf("focusin")<0&&I.target!==$()||h.props.interactive&&I.relatedTarget&&T.contains(I.relatedTarget)||He(I)}function zt(I){return Qt.isTouch?B()!==I.type.indexOf("touch")>=0:!1}function Et(){P();var I=h.props,Q=I.popperOptions,ne=I.placement,Ee=I.offset,fe=I.getReferenceClientRect,tt=I.moveTransition,Tt=Y()?ec(T).arrow:null,Kn=fe?{getBoundingClientRect:fe,contextElement:fe.contextElement||$()}:t,xs={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(hi){var Qn=hi.state;if(Y()){var xu=V(),yo=xu.box;["placement","reference-hidden","escaped"].forEach(function(Ei){Ei==="placement"?yo.setAttribute("data-placement",Qn.placement):Qn.attributes.popper["data-popper-"+Ei]?yo.setAttribute("data-"+Ei,""):yo.removeAttribute("data-"+Ei)}),Qn.attributes.popper={}}}},bn=[{name:"offset",options:{offset:Ee}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tt}},xs];Y()&&Tt&&bn.push({name:"arrow",options:{element:Tt,padding:3}}),bn.push.apply(bn,(Q==null?void 0:Q.modifiers)||[]),h.popperInstance=R1(Kn,T,Object.assign({},Q,{placement:ne,onFirstUpdate:p,modifiers:bn}))}function P(){h.popperInstance&&(h.popperInstance.destroy(),h.popperInstance=null)}function et(){var I=h.props.appendTo,Q,ne=$();h.props.interactive&&I===qf||I==="parent"?Q=ne.parentNode:Q=Wf(I,[ne]),Q.contains(T)||Q.appendChild(T),h.state.isMounted=!0,Et(),At.NODE_ENV!=="production"&&_n(h.props.interactive&&I===yt.appendTo&&ne.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",` `,"Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.",` `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",` -`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function oe(){return ba(T.querySelectorAll("[data-tippy-root]"))}function X(I){h.clearDelayTimeouts(),I&&v("onTrigger",[h,I]),ie();var Q=J(!0),ne=M(),Ee=ne[0],fe=ne[1];Qt.isTouch&&Ee==="hold"&&fe&&(Q=fe),Q?r=setTimeout(function(){h.show()},Q):h.show()}function He(I){if(h.clearDelayTimeouts(),v("onUntrigger",[h,I]),!h.state.isVisible){ue();return}if(!(h.props.trigger.indexOf("mouseenter")>=0&&h.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(I.type)>=0&&a)){var Q=J(!1);Q?i=setTimeout(function(){h.state.isVisible&&h.hide()},Q):o=requestAnimationFrame(function(){h.hide()})}}function xe(){h.state.isEnabled=!0}function St(){h.hide(),h.state.isEnabled=!1}function bt(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function N(I){if(Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("setProps")),!h.state.isDestroyed){v("onBeforeUpdate",[h,I]),Ft();var Q=h.props,ne=op(t,Object.assign({},Q,ep(I),{ignoreAttributes:!0}));h.props=ne,ht(),Q.interactiveDebounce!==ne.interactiveDebounce&&(G(),m=jd(ke,ne.interactiveDebounce)),Q.triggerTarget&&!ne.triggerTarget?Br(Q.triggerTarget).forEach(function(Ee){Ee.removeAttribute("aria-expanded")}):ne.triggerTarget&&t.removeAttribute("aria-expanded"),k(),y(),R&&R(Q,ne),h.popperInstance&&(Et(),oe().forEach(function(Ee){requestAnimationFrame(Ee._tippy.popperInstance.forceUpdate)})),v("onAfterUpdate",[h,I])}}function D(I){h.setProps({content:I})}function U(){Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("show"));var I=h.state.isVisible,Q=h.state.isDestroyed,ne=!h.state.isEnabled,Ee=Qt.isTouch&&!h.props.touch,fe=Ks(h.props.duration,0,yt.duration);if(!(I||Q||ne||Ee)&&!$().hasAttribute("disabled")&&(v("onShow",[h],!1),h.props.onShow(h)!==!1)){if(h.state.isVisible=!0,Y()&&(T.style.visibility="visible"),y(),ie(),h.state.isMounted||(T.style.transition="none"),Y()){var tt=V(),Tt=tt.box,Wn=tt.content;Qs([Tt,Wn],0)}p=function(){var bn;if(!(!h.state.isVisible||c)){if(c=!0,T.offsetHeight,T.style.transition=h.props.moveTransition,Y()&&h.props.animation){var To=V(),hi=To.box,Kn=To.content;Qs([hi,Kn],fe),tp([hi,Kn],"visible")}A(),k(),Jd(Xs,h),(bn=h.popperInstance)==null||bn.forceUpdate(),v("onMount",[h]),h.props.animation&&Y()&&Le(fe,function(){h.state.isShown=!0,v("onShown",[h])})}},et()}}function K(){Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("hide"));var I=!h.state.isVisible,Q=h.state.isDestroyed,ne=!h.state.isEnabled,Ee=Ks(h.props.duration,1,yt.duration);if(!(I||Q||ne)&&(v("onHide",[h],!1),h.props.onHide(h)!==!1)){if(h.state.isVisible=!1,h.state.isShown=!1,c=!1,a=!1,Y()&&(T.style.visibility="hidden"),G(),ue(),y(!0),Y()){var fe=V(),tt=fe.box,Tt=fe.content;h.props.animation&&(Qs([tt,Tt],Ee),tp([tt,Tt],"hidden"))}A(),k(),h.props.animation?Y()&&Be(Ee,h.unmount):h.unmount()}}function _e(I){Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("hideWithInteractivity")),q().addEventListener("mousemove",m),Jd(Do,m),m(I)}function De(){Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("unmount")),h.state.isVisible&&h.hide(),h.state.isMounted&&(P(),oe().forEach(function(I){I._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Xs=Xs.filter(function(I){return I!==h}),h.state.isMounted=!1,v("onHidden",[h]))}function Rr(){Nt.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("destroy")),!h.state.isDestroyed&&(h.clearDelayTimeouts(),h.unmount(),Ft(),delete t._tippy,h.state.isDestroyed=!0,v("onDestroy",[h]))}}function we(t,e){e===void 0&&(e={});var n=yt.plugins.concat(e.plugins||[]);Nt.NODE_ENV!=="production"&&(G1(t),$f(e,n)),P1();var r=Object.assign({},e,{plugins:n}),i=D1(t);if(Nt.NODE_ENV!=="production"){var o=Zi(r.content),a=i.length>1;_n(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",` +`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function oe(){return Ta(T.querySelectorAll("[data-tippy-root]"))}function X(I){h.clearDelayTimeouts(),I&&v("onTrigger",[h,I]),ie();var Q=J(!0),ne=M(),Ee=ne[0],fe=ne[1];Qt.isTouch&&Ee==="hold"&&fe&&(Q=fe),Q?r=setTimeout(function(){h.show()},Q):h.show()}function He(I){if(h.clearDelayTimeouts(),v("onUntrigger",[h,I]),!h.state.isVisible){ue();return}if(!(h.props.trigger.indexOf("mouseenter")>=0&&h.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(I.type)>=0&&a)){var Q=J(!1);Q?i=setTimeout(function(){h.state.isVisible&&h.hide()},Q):o=requestAnimationFrame(function(){h.hide()})}}function xe(){h.state.isEnabled=!0}function St(){h.hide(),h.state.isEnabled=!1}function bt(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function N(I){if(At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("setProps")),!h.state.isDestroyed){v("onBeforeUpdate",[h,I]),Ft();var Q=h.props,ne=up(t,Object.assign({},Q,op(I),{ignoreAttributes:!0}));h.props=ne,ht(),Q.interactiveDebounce!==ne.interactiveDebounce&&(G(),m=rp(Pe,ne.interactiveDebounce)),Q.triggerTarget&&!ne.triggerTarget?Br(Q.triggerTarget).forEach(function(Ee){Ee.removeAttribute("aria-expanded")}):ne.triggerTarget&&t.removeAttribute("aria-expanded"),k(),y(),R&&R(Q,ne),h.popperInstance&&(Et(),oe().forEach(function(Ee){requestAnimationFrame(Ee._tippy.popperInstance.forceUpdate)})),v("onAfterUpdate",[h,I])}}function D(I){h.setProps({content:I})}function U(){At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("show"));var I=h.state.isVisible,Q=h.state.isDestroyed,ne=!h.state.isEnabled,Ee=Qt.isTouch&&!h.props.touch,fe=Zs(h.props.duration,0,yt.duration);if(!(I||Q||ne||Ee)&&!$().hasAttribute("disabled")&&(v("onShow",[h],!1),h.props.onShow(h)!==!1)){if(h.state.isVisible=!0,Y()&&(T.style.visibility="visible"),y(),ie(),h.state.isMounted||(T.style.transition="none"),Y()){var tt=V(),Tt=tt.box,Kn=tt.content;Xs([Tt,Kn],0)}p=function(){var bn;if(!(!h.state.isVisible||c)){if(c=!0,T.offsetHeight,T.style.transition=h.props.moveTransition,Y()&&h.props.animation){var Co=V(),hi=Co.box,Qn=Co.content;Xs([hi,Qn],fe),ap([hi,Qn],"visible")}A(),k(),ip(Js,h),(bn=h.popperInstance)==null||bn.forceUpdate(),v("onMount",[h]),h.props.animation&&Y()&&Le(fe,function(){h.state.isShown=!0,v("onShown",[h])})}},et()}}function K(){At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("hide"));var I=!h.state.isVisible,Q=h.state.isDestroyed,ne=!h.state.isEnabled,Ee=Zs(h.props.duration,1,yt.duration);if(!(I||Q||ne)&&(v("onHide",[h],!1),h.props.onHide(h)!==!1)){if(h.state.isVisible=!1,h.state.isShown=!1,c=!1,a=!1,Y()&&(T.style.visibility="hidden"),G(),ue(),y(!0),Y()){var fe=V(),tt=fe.box,Tt=fe.content;h.props.animation&&(Xs([tt,Tt],Ee),ap([tt,Tt],"hidden"))}A(),k(),h.props.animation?Y()&&Be(Ee,h.unmount):h.unmount()}}function _e(I){At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("hideWithInteractivity")),q().addEventListener("mousemove",m),ip(Mo,m),m(I)}function De(){At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("unmount")),h.state.isVisible&&h.hide(),h.state.isMounted&&(P(),oe().forEach(function(I){I._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Js=Js.filter(function(I){return I!==h}),h.state.isMounted=!1,v("onHidden",[h]))}function Rr(){At.NODE_ENV!=="production"&&_n(h.state.isDestroyed,Ir("destroy")),!h.state.isDestroyed&&(h.clearDelayTimeouts(),h.unmount(),Ft(),delete t._tippy,h.state.isDestroyed=!0,v("onDestroy",[h]))}}function we(t,e){e===void 0&&(e={});var n=yt.plugins.concat(e.plugins||[]);At.NODE_ENV!=="production"&&(q1(t),jf(e,n)),G1();var r=Object.assign({},e,{plugins:n}),i=P1(t);if(At.NODE_ENV!=="production"){var o=Xi(r.content),a=i.length>1;_n(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",` `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",` `,`1) content: element.innerHTML -`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=i.reduce(function(l,c){var u=c&&K1(c,r);return u&&l.push(u),l},[]);return Zi(t)?s[0]:s}we.defaultProps=yt;we.setDefaultProps=z1;we.currentInput=Qt;Object.assign({},Af,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});we.setDefaultProps({render:qf});class mi extends me{constructor(){super(...arguments);w(this,"tippyInstance");w(this,"tippyEl");w(this,"textEl");w(this,"menuData",[]);w(this,"menuTextWidth","fit-content");w(this,"defaultMenuIndex",0);w(this,"refreshMenuText",!0);w(this,"width","fit-content");w(this,"dropDivWith","fit-content");w(this,"dropDivHeight","fit-content");w(this,"showItemsTip",!1)}renderTemplate(){this.template=` +`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=i.reduce(function(l,c){var u=c&&J1(c,r);return u&&l.push(u),l},[]);return Xi(t)?s[0]:s}we.defaultProps=yt;we.setDefaultProps=Q1;we.currentInput=Qt;Object.assign({},kf,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});we.setDefaultProps({render:Jf});class mi extends me{constructor(){super(...arguments);L(this,"tippyInstance");L(this,"tippyEl");L(this,"textEl");L(this,"menuData",[]);L(this,"menuTextWidth","fit-content");L(this,"defaultMenuIndex",0);L(this,"refreshMenuText",!0);L(this,"width","fit-content");L(this,"dropDivWith","fit-content");L(this,"dropDivHeight","fit-content");L(this,"showItemsTip",!1)}renderTemplate(){this.template=`
@@ -132,31 +132,31 @@ img.ProseMirror-separator {
${this.onDropdownItemRender(r)}
- `,i.addEventListener("click",o=>{const a=this.menuData[r];a.onClick?a.onClick(o)&&this.tippyInstance.hide():(this.onDropdownItemClick(r),this.tippyInstance.hide())}),this.showItemsTip){const o=this.menuData[r];we(i,{appendTo:()=>this.closest(".aie-container"),content:o.tip||o.title,theme:"aietip",arrow:!0,placement:"right"})}n.appendChild(i)}return this.tippyEl=n,n}onTransaction(n){var o,a;const r=(o=this.tippyEl)==null?void 0:o.querySelector(".red-dot");r&&r.classList.remove("red-dot");let i=this.defaultMenuIndex;for(let s=0;stypeof t=="string",Ti=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},lp=t=>t==null?"":""+t,Q1=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},Z1=/###/g,cp=t=>t&&t.indexOf("###")>-1?t.replace(Z1,"."):t,up=t=>!t||se(t),Pi=(t,e,n)=>{const r=se(e)?e.split("."):e;let i=0;for(;i{const{obj:r,k:i}=Pi(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let o=e[e.length-1],a=e.slice(0,e.length-1),s=Pi(t,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Pi(t,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},X1=(t,e,n,r)=>{const{obj:i,k:o}=Pi(t,e,Object);i[o]=i[o]||[],i[o].push(n)},Ta=(t,e)=>{const{obj:n,k:r}=Pi(t,e);if(n)return n[r]},j1=(t,e,n)=>{const r=Ta(t,n);return r!==void 0?r:Ta(e,n)},Wf=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?se(t[r])||t[r]instanceof String||se(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):Wf(t[r],e[r],n):t[r]=e[r]);return t},xr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var J1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ey=t=>se(t)?t.replace(/[&<>"'\/]/g,e=>J1[e]):t;class ty{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const ny=[" ",",","?","!",";"],ry=new ty(20),iy=(t,e,n)=>{e=e||"",n=n||"";const r=ny.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=ry.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(t);if(!o){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o},ec=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let o=0;o-1&&lt&&t.replace("_","-"),oy={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class ya{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||oy,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,l]=a;for(let c=0;c{let[s,l]=a;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):se(r)&&o?s.push(...r.split(o)):s.push(r)));const l=Ta(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!se(r)?l:ec(this.data&&this.data[e]&&this.data[e][n],r,o)}addResource(e,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),i=n,n=s[1]),this.addNamespaces(n),dp(this.data,s,i),o.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(se(r[o])||Array.isArray(r[o]))&&this.addResource(e,n,o,r[o],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Ta(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Wf(l,r,o):l={...l,...r},dp(this.data,s,l),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Kf={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,n,r,i))}),e}};const _p={};class va extends gs{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Q1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Xt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!iy(e,r,i);if(a&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};const c=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(i)}return se(o)&&(o=[o]),{key:e,namespaces:o}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const h=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${h}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${h}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(e,n);let p=d&&d.res;const _=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,f=Object.prototype.toString.apply(p),g=["[object Number]","[object Function]","[object RegExp]"],E=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!se(p)&&typeof p!="boolean"&&typeof p!="number";if(S&&p&&b&&g.indexOf(f)<0&&!(se(E)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const h=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,p,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}if(o){const h=Array.isArray(p),C=h?[]:{},T=h?m:_;for(const R in p)if(Object.prototype.hasOwnProperty.call(p,R)){const x=`${T}${o}${R}`;C[R]=this.translate(x,{...n,joinArrays:!1,ns:s}),C[R]===x&&(C[R]=p[R])}p=C}}else if(S&&se(E)&&Array.isArray(p))p=p.join(E),p&&(p=this.extendTranslation(p,e,n,r));else{let h=!1,C=!1;const T=n.count!==void 0&&!se(n.count),R=va.hasDefaultValue(n),x=T?this.pluralResolver.getSuffix(c,n.count,n):"",O=n.ordinal&&T?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",M=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),B=M&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(p)&&R&&(h=!0,p=B),this.isValidLookup(p)||(C=!0,p=a);const $=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,q=R&&B!==p&&this.options.updateMissing;if(C||h||q){if(this.logger.log(q?"updateKey":"missingKey",c,l,a,q?B:p),o){const v=this.resolve(a,{...n,keySeparator:!1});v&&v.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let V=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let v=0;v{const G=R&&k!==p?k:$;this.options.missingKeyHandler?this.options.missingKeyHandler(v,l,A,G,q,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(v,l,A,G,q,n),this.emit("missingKey",v,l,A,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?V.forEach(v=>{const A=this.pluralResolver.getSuffixes(v,n);M&&n[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(k=>{y([v],a+k,n[`defaultValue${k}`]||B)})}):y(V,a,B))}p=this.extendTranslation(p,e,n,d,r),C&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${a}`),(C||h)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,h?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(d.res=p,d.usedParams=this.getUsedParamsDetails(n),d):p}extendTranslation(e,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=se(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const p=e.match(this.interpolator.nestingRegexp);u=p&&p.length}let d=r.replace&&!se(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,r.lng||this.language||i.usedLng,r),c){const p=e.match(this.interpolator.nestingRegexp),_=p&&p.length;u<_&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,_=new Array(p),m=0;m1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return se(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!se(n.count),_=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(se(n.context)||typeof n.context=="number")&&n.context!=="",f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(g=>{this.isValidLookup(r)||(s=g,!_p[`${f[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(_p[`${f[0]}-${g}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(E=>{if(this.isValidLookup(r))return;a=E;const S=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,u,E,g,n);else{let h;p&&(h=this.pluralResolver.getSuffix(E,n.count,n));const C=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(u+h),n.ordinal&&h.indexOf(T)===0&&S.push(u+h.replace(T,this.options.pluralSeparator)),_&&S.push(u+C)),m){const R=`${u}${this.options.contextSeparator}${n.context}`;S.push(R),p&&(S.push(R+h),n.ordinal&&h.indexOf(T)===0&&S.push(R+h.replace(T,this.options.pluralSeparator)),_&&S.push(R+C))}}let b;for(;b=S.pop();)this.isValidLookup(r)||(o=b,r=this.getResource(E,g,b,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!se(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const js=t=>t.charAt(0).toUpperCase()+t.slice(1);class mp{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xt.create("languageUtils")}getScriptPartFromCode(e){if(e=Ca(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Ca(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(se(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=js(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=js(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=js(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),se(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return se(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):se(e)&&o(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let ay=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],sy={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const ly=["v1","v2","v3"],cy=["v4"],fp={zero:0,one:1,two:2,few:3,many:4,other:5},uy=()=>{const t={};return ay.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:sy[e.fc]}})}),t};class dy{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Xt.create("pluralResolver"),(!this.options.compatibilityJSON||cy.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=uy(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Ca(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>fp[i]-fp[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!ly.includes(this.options.compatibilityJSON)}}const gp=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=j1(t,e,n);return!o&&i&&se(n)&&(o=ec(t,n,r),o===void 0&&(o=ec(e,n,r))),o},Js=t=>t.replace(/\$/g,"$$$$");class py{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:_,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:E,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:ey,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?xr(o):a||"{{",this.suffix=s?xr(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?xr(p):_||xr("$t("),this.nestingSuffix=m?xr(m):f||xr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=E||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=_=>{if(_.indexOf(this.formatSeparator)<0){const E=gp(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...i,...n,interpolationkey:_}):E}const m=_.split(this.formatSeparator),f=m.shift().trim(),g=m.join(this.formatSeparator).trim();return this.format(gp(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:f})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>Js(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?Js(this.escape(_)):Js(_)}].forEach(_=>{for(s=0;o=_.regex.exec(e);){const m=o[1].trim();if(a=c(m),a===void 0)if(typeof u=="function"){const g=u(e,o,i);a=se(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),a="";else!se(a)&&!this.useRawValueToEscape&&(a=lp(a));const f=_.safeValue(a);if(e=e.replace(o[0],f),d?(_.regex.lastIndex+=a.length,_.regex.lastIndex-=o[0].length):_.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let p=`{${d[1]}`;l=d[0],p=this.interpolate(p,a);const _=p.match(/'/g),m=p.match(/"/g);(_&&_.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!se(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=u.shift(),l=u,c=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===e&&!se(o))return o;se(o)||(o=lp(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const _y=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},Dr=t=>{const e={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=e[a];return s||(s=t(Ca(r),i),e[a]=s),s(n)}};class my{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xt.create("formatter"),this.options=e,this.formats={number:Dr((n,r)=>i=>new Intl.NumberFormat(n,{...r}).format(i)),currency:Dr((n,r)=>i=>new Intl.NumberFormat(n,{...r,style:"currency"}).format(i)),datetime:Dr((n,r)=>i=>new Intl.DateTimeFormat(n,{...r}).format(i)),relativetime:Dr((n,r)=>i=>new Intl.RelativeTimeFormat(n,{...r}).format(i,r.range||"day")),list:Dr((n,r)=>i=>new Intl.ListFormat(n,{...r}).format(i))},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Dr(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:c,formatOptions:u}=_y(l);if(this.formats[c]){let d=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},_=p.locale||p.lng||i.locale||i.lng||r;d=this.formats[c](s,_,{...u,...i,...p})}catch(p){this.logger.warn(p)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},e)}}const fy=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class gy extends gs{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Xt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,n,r,i){const o={},a={},s={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const i=e.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{X1(l.loaded,[o],a),fy(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&i{this.read.call(this,e,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(e,n,s)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();se(e)&&(e=this.languageUtils.toResolveHierarchy(e)),se(n)&&(n=[n]);const o=this.queueLoad(e,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(e,a,s)})}saveMissing(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,r,i,l):u=c(e,n,r,i),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(e,n,r,i,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const hp=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),se(t[1])&&(e.defaultValue=t[1]),se(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ep=t=>(se(t.ns)&&(t.ns=[t.ns]),se(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),se(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Mo=()=>{},hy=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class ji extends gs{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ep(e),this.services={},this.logger=Xt,this.modules={external:[]},hy(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(se(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=hp();this.options={...i,...this.options,...Ep(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Xt.init(o(this.modules.logger),this.options):Xt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=my);const d=new mp(this.options);this.store=new pp(this.options.resources,this.options);const p=this.services;p.logger=Xt,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new dy(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new py(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new gy(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(_){for(var m=arguments.length,f=new Array(m>1?m-1:0),g=1;g1?m-1:0),g=1;g{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Mo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=Ti(),c=()=>{const u=(d,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(d,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mo;const i=se(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const i=Ti();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Mo),this.services.backendConnector.reload(e,n,o=>{i.resolve(),r(o)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Kf.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const i=Ti();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=se(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d`${l.keyPrefix}${p}${m}`):_=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a,i.t(_,l)};return se(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}loadNamespaces(e,n){const r=Ti();return this.options.ns?(se(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Ti();se(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new mp(hp());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ji(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mo;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new ji(i);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new pp(this.store.data,i),o.services.resourceStore=o.store),o.translator=new va(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;uce(e)),this.dropDivHeight="265px",this.dropDivWith="fit-content"}onDropdownActive(e,n){return n==0?e.isActive("paragraph"):e.isActive("heading",{level:n})}onDropdownItemClick(e){e==0?this.editor.chain().setParagraph().run():this.editor.chain().setHeading({level:e}).run()}onDropdownItemRender(e){return e==0?this.menuData[e]:`${this.menuData[e]}`}onMenuTextRender(e){return this.menuData[e].replace(" ","")}};const by=[{name:"宋体",value:"SimSun"},{name:"仿宋",value:"FangSong"},{name:"黑体",value:"SimHei"},{name:"楷体",value:"KaiTi"},{name:"微软雅黑",value:"Microsoft YaHei"},{name:"方正仿宋简体_GBK",value:"FangSong_GB2312"},{name:"Arial",value:"Arial"}];let Ty=class extends mi{constructor(){super(),this.width="72px",this.menuTextWidth="60px",this.dropDivWith="150px"}onCreate(e,n){var r;super.onCreate(e,n),this.menuData=((r=n.fontFamily)==null?void 0:r.values)||by,this.menuData=[{name:ce("default-font-family"),value:""}].concat(this.menuData)}onDropdownActive(e,n){return e.isActive("textStyle",{fontFamily:this.menuData[n].value})}onDropdownItemClick(e){const n=this.menuData[e].value;n?this.editor.chain().setFontFamily(n).run():this.editor.chain().unsetFontFamily().run()}onDropdownItemRender(e){return this.menuData[e].name}onMenuTextRender(e){return this.menuData[e].name}};const Cy=[{name:"9",value:9},{name:"10",value:10},{name:"11",value:11},{name:"12",value:12},{name:"14",value:14},{name:"18",value:18},{name:"20",value:20},{name:"22",value:22},{name:"24",value:24},{name:"26",value:26},{name:"28",value:28},{name:"30",value:30},{name:"36",value:36},{name:"42",value:42},{name:"48",value:48},{name:"56",value:56},{name:"72",value:72}];class yy extends mi{constructor(){super();w(this,"defaultValue",14)}onCreate(n,r){var i,o;super.onCreate(n,r),this.menuData=((i=r.fontSize)==null?void 0:i.values)||Cy,this.defaultValue=((o=r.fontSize)==null?void 0:o.defaultValue)||this.defaultValue;for(let a=0;a{const a=this.menuData[r];a.onClick?a.onClick(o)&&this.tippyInstance.hide():(this.onDropdownItemClick(r),this.tippyInstance.hide())}),this.showItemsTip){const o=this.menuData[r];we(i,{appendTo:()=>this.closest(".aie-container"),content:o.tip||o.title,theme:"aietip",arrow:!0,placement:"right"})}n.appendChild(i)}return this.tippyEl=n,n}onTransaction(n){var o,a;const r=(o=this.tippyEl)==null?void 0:o.querySelector(".red-dot");r&&r.classList.remove("red-dot");let i=this.defaultMenuIndex;for(let s=0;stypeof t=="string",Ti=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},_p=t=>t==null?"":""+t,ey=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},ty=/###/g,mp=t=>t&&t.indexOf("###")>-1?t.replace(ty,"."):t,fp=t=>!t||se(t),Fi=(t,e,n)=>{const r=se(e)?e.split("."):e;let i=0;for(;i{const{obj:r,k:i}=Fi(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let o=e[e.length-1],a=e.slice(0,e.length-1),s=Fi(t,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Fi(t,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},ny=(t,e,n,r)=>{const{obj:i,k:o}=Fi(t,e,Object);i[o]=i[o]||[],i[o].push(n)},Ca=(t,e)=>{const{obj:n,k:r}=Fi(t,e);if(n)return n[r]},ry=(t,e,n)=>{const r=Ca(t,n);return r!==void 0?r:Ca(e,n)},eg=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?se(t[r])||t[r]instanceof String||se(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):eg(t[r],e[r],n):t[r]=e[r]);return t},xr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var iy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const oy=t=>se(t)?t.replace(/[&<>"'\/]/g,e=>iy[e]):t;class ay{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const sy=[" ",",","?","!",";"],ly=new ay(20),cy=(t,e,n)=>{e=e||"",n=n||"";const r=sy.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=ly.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(t);if(!o){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o},tc=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let o=0;o-1&&lt&&t.replace("_","-"),uy={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class va{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||uy,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,l]=a;for(let c=0;c{let[s,l]=a;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):se(r)&&o?s.push(...r.split(o)):s.push(r)));const l=Ca(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!se(r)?l:tc(this.data&&this.data[e]&&this.data[e][n],r,o)}addResource(e,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),i=n,n=s[1]),this.addNamespaces(n),gp(this.data,s,i),o.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(se(r[o])||Array.isArray(r[o]))&&this.addResource(e,n,o,r[o],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Ca(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?eg(l,r,o):l={...l,...r},gp(this.data,s,l),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var tg={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,n,r,i))}),e}};const Ep={};class Ra extends hs{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ey(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Xt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!cy(e,r,i);if(a&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};const c=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(i)}return se(o)&&(o=[o]),{key:e,namespaces:o}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const h=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${h}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${h}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(e,n);let p=d&&d.res;const _=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,f=Object.prototype.toString.apply(p),g=["[object Number]","[object Function]","[object RegExp]"],S=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!se(p)&&typeof p!="boolean"&&typeof p!="number";if(E&&p&&b&&g.indexOf(f)<0&&!(se(S)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const h=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,p,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}if(o){const h=Array.isArray(p),C=h?[]:{},T=h?m:_;for(const R in p)if(Object.prototype.hasOwnProperty.call(p,R)){const x=`${T}${o}${R}`;C[R]=this.translate(x,{...n,joinArrays:!1,ns:s}),C[R]===x&&(C[R]=p[R])}p=C}}else if(E&&se(S)&&Array.isArray(p))p=p.join(S),p&&(p=this.extendTranslation(p,e,n,r));else{let h=!1,C=!1;const T=n.count!==void 0&&!se(n.count),R=Ra.hasDefaultValue(n),x=T?this.pluralResolver.getSuffix(c,n.count,n):"",O=n.ordinal&&T?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",M=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),B=M&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(p)&&R&&(h=!0,p=B),this.isValidLookup(p)||(C=!0,p=a);const $=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,q=R&&B!==p&&this.options.updateMissing;if(C||h||q){if(this.logger.log(q?"updateKey":"missingKey",c,l,a,q?B:p),o){const v=this.resolve(a,{...n,keySeparator:!1});v&&v.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let V=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let v=0;v{const G=R&&k!==p?k:$;this.options.missingKeyHandler?this.options.missingKeyHandler(v,l,A,G,q,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(v,l,A,G,q,n),this.emit("missingKey",v,l,A,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?V.forEach(v=>{const A=this.pluralResolver.getSuffixes(v,n);M&&n[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(k=>{y([v],a+k,n[`defaultValue${k}`]||B)})}):y(V,a,B))}p=this.extendTranslation(p,e,n,d,r),C&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${a}`),(C||h)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,h?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(d.res=p,d.usedParams=this.getUsedParamsDetails(n),d):p}extendTranslation(e,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=se(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const p=e.match(this.interpolator.nestingRegexp);u=p&&p.length}let d=r.replace&&!se(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,r.lng||this.language||i.usedLng,r),c){const p=e.match(this.interpolator.nestingRegexp),_=p&&p.length;u<_&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,_=new Array(p),m=0;m1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return se(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!se(n.count),_=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(se(n.context)||typeof n.context=="number")&&n.context!=="",f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(g=>{this.isValidLookup(r)||(s=g,!Ep[`${f[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ep[`${f[0]}-${g}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(S=>{if(this.isValidLookup(r))return;a=S;const E=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,S,g,n);else{let h;p&&(h=this.pluralResolver.getSuffix(S,n.count,n));const C=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(E.push(u+h),n.ordinal&&h.indexOf(T)===0&&E.push(u+h.replace(T,this.options.pluralSeparator)),_&&E.push(u+C)),m){const R=`${u}${this.options.contextSeparator}${n.context}`;E.push(R),p&&(E.push(R+h),n.ordinal&&h.indexOf(T)===0&&E.push(R+h.replace(T,this.options.pluralSeparator)),_&&E.push(R+C))}}let b;for(;b=E.pop();)this.isValidLookup(r)||(o=b,r=this.getResource(S,g,b,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!se(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const el=t=>t.charAt(0).toUpperCase()+t.slice(1);class Sp{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xt.create("languageUtils")}getScriptPartFromCode(e){if(e=ya(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=ya(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(se(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=el(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=el(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=el(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),se(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return se(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):se(e)&&o(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let dy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],py={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const _y=["v1","v2","v3"],my=["v4"],bp={zero:0,one:1,two:2,few:3,many:4,other:5},fy=()=>{const t={};return dy.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:py[e.fc]}})}),t};class gy{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Xt.create("pluralResolver"),(!this.options.compatibilityJSON||my.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=fy(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=ya(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>bp[i]-bp[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!_y.includes(this.options.compatibilityJSON)}}const Tp=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=ry(t,e,n);return!o&&i&&se(n)&&(o=tc(t,n,r),o===void 0&&(o=tc(e,n,r))),o},tl=t=>t.replace(/\$/g,"$$$$");class hy{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:_,nestingSuffix:m,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:E}=e.interpolation;this.escape=n!==void 0?n:oy,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?xr(o):a||"{{",this.suffix=s?xr(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?xr(p):_||xr("$t("),this.nestingSuffix=m?xr(m):f||xr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=_=>{if(_.indexOf(this.formatSeparator)<0){const S=Tp(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...i,...n,interpolationkey:_}):S}const m=_.split(this.formatSeparator),f=m.shift().trim(),g=m.join(this.formatSeparator).trim();return this.format(Tp(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:f})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>tl(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?tl(this.escape(_)):tl(_)}].forEach(_=>{for(s=0;o=_.regex.exec(e);){const m=o[1].trim();if(a=c(m),a===void 0)if(typeof u=="function"){const g=u(e,o,i);a=se(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),a="";else!se(a)&&!this.useRawValueToEscape&&(a=_p(a));const f=_.safeValue(a);if(e=e.replace(o[0],f),d?(_.regex.lastIndex+=a.length,_.regex.lastIndex-=o[0].length):_.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let p=`{${d[1]}`;l=d[0],p=this.interpolate(p,a);const _=p.match(/'/g),m=p.match(/"/g);(_&&_.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!se(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=u.shift(),l=u,c=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===e&&!se(o))return o;se(o)||(o=_p(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const Ey=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},Dr=t=>{const e={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=e[a];return s||(s=t(ya(r),i),e[a]=s),s(n)}};class Sy{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xt.create("formatter"),this.options=e,this.formats={number:Dr((n,r)=>i=>new Intl.NumberFormat(n,{...r}).format(i)),currency:Dr((n,r)=>i=>new Intl.NumberFormat(n,{...r,style:"currency"}).format(i)),datetime:Dr((n,r)=>i=>new Intl.DateTimeFormat(n,{...r}).format(i)),relativetime:Dr((n,r)=>i=>new Intl.RelativeTimeFormat(n,{...r}).format(i,r.range||"day")),list:Dr((n,r)=>i=>new Intl.ListFormat(n,{...r}).format(i))},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Dr(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:c,formatOptions:u}=Ey(l);if(this.formats[c]){let d=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},_=p.locale||p.lng||i.locale||i.lng||r;d=this.formats[c](s,_,{...u,...i,...p})}catch(p){this.logger.warn(p)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},e)}}const by=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Ty extends hs{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Xt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,n,r,i){const o={},a={},s={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const i=e.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{ny(l.loaded,[o],a),by(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&i{this.read.call(this,e,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(e,n,s)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();se(e)&&(e=this.languageUtils.toResolveHierarchy(e)),se(n)&&(n=[n]);const o=this.queueLoad(e,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(e,a,s)})}saveMissing(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,r,i,l):u=c(e,n,r,i),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(e,n,r,i,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const Cp=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),se(t[1])&&(e.defaultValue=t[1]),se(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),yp=t=>(se(t.ns)&&(t.ns=[t.ns]),se(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),se(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),wo=()=>{},Cy=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ji extends hs{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yp(e),this.services={},this.logger=Xt,this.modules={external:[]},Cy(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(se(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Cp();this.options={...i,...this.options,...yp(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Xt.init(o(this.modules.logger),this.options):Xt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Sy);const d=new Sp(this.options);this.store=new hp(this.options.resources,this.options);const p=this.services;p.logger=Xt,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new gy(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new hy(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Ty(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(_){for(var m=arguments.length,f=new Array(m>1?m-1:0),g=1;g1?m-1:0),g=1;g{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,r||(r=wo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=Ti(),c=()=>{const u=(d,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(d,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo;const i=se(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const i=Ti();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=wo),this.services.backendConnector.reload(e,n,o=>{i.resolve(),r(o)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&tg.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const i=Ti();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=se(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d`${l.keyPrefix}${p}${m}`):_=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a,i.t(_,l)};return se(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}loadNamespaces(e,n){const r=Ti();return this.options.ns?(se(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Ti();se(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Sp(Cp());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ji(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new Ji(i);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new hp(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Ra(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;uce(e)),this.dropDivHeight="265px",this.dropDivWith="fit-content"}onDropdownActive(e,n){return n==0?e.isActive("paragraph"):e.isActive("heading",{level:n})}onDropdownItemClick(e){e==0?this.editor.chain().setParagraph().run():this.editor.chain().setHeading({level:e}).run()}onDropdownItemRender(e){return e==0?this.menuData[e]:`${this.menuData[e]}`}onMenuTextRender(e){return this.menuData[e].replace(" ","")}};const Ry=[{name:"宋体",value:"SimSun"},{name:"仿宋",value:"FangSong"},{name:"黑体",value:"SimHei"},{name:"楷体",value:"KaiTi"},{name:"微软雅黑",value:"Microsoft YaHei"},{name:"方正仿宋简体_GBK",value:"FangSong_GB2312"},{name:"Arial",value:"Arial"}];let Oy=class extends mi{constructor(){super(),this.width="72px",this.menuTextWidth="60px",this.dropDivWith="150px"}onCreate(e,n){var r;super.onCreate(e,n),this.menuData=((r=n.fontFamily)==null?void 0:r.values)||Ry,this.menuData=[{name:ce("default-font-family"),value:""}].concat(this.menuData)}onDropdownActive(e,n){return e.isActive("textStyle",{fontFamily:this.menuData[n].value})}onDropdownItemClick(e){const n=this.menuData[e].value;n?this.editor.chain().setFontFamily(n).run():this.editor.chain().unsetFontFamily().run()}onDropdownItemRender(e){return this.menuData[e].name}onMenuTextRender(e){return this.menuData[e].name}};const Ny=[{name:"9",value:9},{name:"10",value:10},{name:"11",value:11},{name:"12",value:12},{name:"14",value:14},{name:"18",value:18},{name:"20",value:20},{name:"22",value:22},{name:"24",value:24},{name:"26",value:26},{name:"28",value:28},{name:"30",value:30},{name:"36",value:36},{name:"42",value:42},{name:"48",value:48},{name:"56",value:56},{name:"72",value:72}];class Ay extends mi{constructor(){super();L(this,"defaultValue",14)}onCreate(n,r){var i,o;super.onCreate(n,r),this.menuData=((i=r.fontSize)==null?void 0:i.values)||Ny,this.defaultValue=((o=r.fontSize)==null?void 0:o.defaultValue)||this.defaultValue;for(let a=0;a
- `,this.registerClickListener()}onClick(e){e.toggleBold()}onActive(e){return e.isActive("bold")}},Ry=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleBold()}onActive(e){return e.isActive("bold")}},xy=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleItalic()}onActive(e){return e.isActive("italic")}},Oy=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleItalic()}onActive(e){return e.isActive("italic")}},Dy=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleUnderline()}onActive(e){return e.isActive("underline")}},Ny=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleUnderline()}onActive(e){return e.isActive("underline")}},My=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleStrike()}onActive(e){return e.isActive("strike")}},Ay=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleStrike()}onActive(e){return e.isActive("strike")}},wy=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleSubscript()}onActive(e){return e.isActive("subscript")}},Iy=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleSubscript()}onActive(e){return e.isActive("subscript")}},Ly=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleSuperscript()}onActive(e){return e.isActive("superscript")}};const xy=["ffffff","000000","e9d989","2972f4","609eec","de3c36","a1d533","7334c5","27b5d9","ff8926","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","92cddc","fac08f","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","31859b","e36c09","6e6e6e","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","205867","974806"],Dy=["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0"];class Qf extends me{constructor(){super();w(this,"historyColorsKey","historyColors");w(this,"historyColors",[]);w(this,"iconSvg");w(this,"menuColorEL");w(this,"onColorItemClick");w(this,"onDefaultColorClick")}connectedCallback(){this.template=` + `,this.registerClickListener()}onClick(e){e.toggleSuperscript()}onActive(e){return e.isActive("superscript")}};const ky=["ffffff","000000","e9d989","2972f4","609eec","de3c36","a1d533","7334c5","27b5d9","ff8926","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","92cddc","fac08f","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","31859b","e36c09","6e6e6e","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","205867","974806"],Py=["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0"];class ng extends me{constructor(){super();L(this,"historyColorsKey","historyColors");L(this,"historyColors",[]);L(this,"iconSvg");L(this,"menuColorEL");L(this,"onColorItemClick");L(this,"onDefaultColorClick")}connectedCallback(){this.template=`
${this.iconSvg}
@@ -170,11 +170,11 @@ img.ProseMirror-separator {
${ce("default")}
- ${xy.map((r,i)=>`
`).join(" ")} + ${ky.map((r,i)=>`
`).join(" ")}
${ce("standardColors")}
- ${Dy.map(r=>`
`).join(" ")} + ${Py.map(r=>`
`).join(" ")}
${ce("historyColors")}
@@ -183,23 +183,23 @@ img.ProseMirror-separator {
`,n.querySelector("#defaultColor").addEventListener("click",()=>{this.onDefaultColorClick()}),n.querySelectorAll(".color-item").forEach(r=>{r.addEventListener("click",()=>{this.invokeColorItemClick(n,r)}),r.addEventListener("mouseover",()=>{r.style.border="solid 1px #999"}),r.addEventListener("mouseout",()=>{let i=r.getAttribute("data-color");i==="#ffffff"&&(i="#efefef"),r.style.border=`solid 1px ${i}`})}),n.querySelector("#history-colors").addEventListener("click",r=>{const i=r.target.closest(".history-color-item");i&&this.invokeColorItemClick(n,i)}),n}invokeColorItemClick(n,r){const i=r.getAttribute("data-color");this.historyColors=this.historyColors.filter(o=>o!==i),this.historyColors.unshift(i),this.historyColors.length>7&&(this.historyColors=this.historyColors.slice(0,7)),n.querySelector("#history-colors").innerHTML=` ${this.historyColors.map(o=>`
`).join(" ")} - `,localStorage.setItem(this.historyColorsKey,JSON.stringify(this.historyColors)),this.menuColorEL.style.background=i,this.onColorItemClick(i)}}let My=class extends Qf{constructor(){super(),this.historyColorsKey="highlightHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetHighlight().run()},this.onColorItemClick=e=>{var n;(n=this.editor)==null||n.chain().focus().setHighlight({color:e}).run()}}onActive(e){return e.isActive("highlight")}};class wy extends Qf{constructor(){super(),this.historyColorsKey="fontHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetColor().run()},this.onColorItemClick=e=>{var n;(n=this.editor)==null||n.chain().focus().setColor(e).run()}}onActive(e){return e.isActive("textStyle")}}class Ly extends me{constructor(){super(),this.template='
'}}let ky=class extends me{constructor(){super(),this.template=` + `,localStorage.setItem(this.historyColorsKey,JSON.stringify(this.historyColors)),this.menuColorEL.style.background=i,this.onColorItemClick(i)}}let Fy=class extends ng{constructor(){super(),this.historyColorsKey="highlightHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetHighlight().run()},this.onColorItemClick=e=>{var n;(n=this.editor)==null||n.chain().focus().setHighlight({color:e}).run()}}onActive(e){return e.isActive("highlight")}};class By extends ng{constructor(){super(),this.historyColorsKey="fontHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetColor().run()},this.onColorItemClick=e=>{var n;(n=this.editor)==null||n.chain().focus().setColor(e).run()}}onActive(e){return e.isActive("textStyle")}}class Uy extends me{constructor(){super(),this.template='
'}}let Hy=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleBulletList()}onActive(e){return e.isActive("bulletList")}},Py=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleBulletList()}onActive(e){return e.isActive("bulletList")}},Gy=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleOrderedList()}onActive(e){return e.isActive("orderedList")}};class Fy extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleOrderedList()}onActive(e){return e.isActive("orderedList")}};class Vy extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.outdent()}}class By extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.outdent()}}class Yy extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.indent()}}const Uy=[{icon:'',title:"align-left",value:"left"},{icon:'',title:"align-center",value:"center"},{icon:'',title:"align-right",value:"right"},{icon:'',title:"align-justify",value:"justify"}];class Hy extends mi{constructor(){super(),this.menuData=Uy.map(e=>({...e,title:ce(e.title)})),this.showItemsTip=!0}onDropdownActive(e,n){return e.isActive({textAlign:this.menuData[n].value})}onDropdownItemClick(e){this.editor.chain().focus().setTextAlign(this.menuData[e].value).run()}onDropdownItemRender(e){return this.menuData[e].icon}onMenuTextRender(e){return this.menuData[e].icon}}class Wc{constructor(){w(this,"tippyInstance");w(this,"content");w(this,"onConfirmClickFunc");w(this,"onShowFunc")}setContent(e){this.content=e}onConfirmClick(e){this.onConfirmClickFunc=e}onShow(e){this.onShowFunc=e}setTrigger(e,n="bottom",r="click"){this.tippyInstance=we(e,{content:this.createContentElement(),appendTo:e.closest(".aie-container"),placement:n,trigger:r,interactive:!0,arrow:!1,onShow:i=>{this.onShowFunc&&this.onShowFunc(i)}})}show(){var e;(e=this.tippyInstance)==null||e.show()}hide(){var e;(e=this.tippyInstance)==null||e.hide()}createContentElement(){const e=` + `,this.registerClickListener()}onClick(e){e.indent()}}const zy=[{icon:'',title:"align-left",value:"left"},{icon:'',title:"align-center",value:"center"},{icon:'',title:"align-right",value:"right"},{icon:'',title:"align-justify",value:"justify"}];class $y extends mi{constructor(){super(),this.menuData=zy.map(e=>({...e,title:ce(e.title)})),this.showItemsTip=!0}onDropdownActive(e,n){return e.isActive({textAlign:this.menuData[n].value})}onDropdownItemClick(e){this.editor.chain().focus().setTextAlign(this.menuData[e].value).run()}onDropdownItemRender(e){return this.menuData[e].icon}onMenuTextRender(e){return this.menuData[e].icon}}class Xc{constructor(){L(this,"tippyInstance");L(this,"content");L(this,"onConfirmClickFunc");L(this,"onShowFunc")}setContent(e){this.content=e}onConfirmClick(e){this.onConfirmClickFunc=e}onShow(e){this.onShowFunc=e}setTrigger(e,n="bottom",r="click"){this.tippyInstance=we(e,{content:this.createContentElement(),appendTo:e.closest(".aie-container"),placement:n,trigger:r,interactive:!0,arrow:!1,onShow:i=>{this.onShowFunc&&this.onShowFunc(i)}})}show(){var e;(e=this.tippyInstance)==null||e.show()}hide(){var e;(e=this.tippyInstance)==null||e.hide()}createContentElement(){const e=`
@@ -209,11 +209,11 @@ img.ProseMirror-separator {
- `,n=document.createElement("div");return n.innerHTML=e,n.querySelector(".aie-popover-header-close").addEventListener("click",()=>{this.tippyInstance.hide()}),n.querySelector(".aie-popover-footer-confirm").addEventListener("click",()=>{this.onConfirmClickFunc&&this.onConfirmClickFunc(this.tippyInstance),this.tippyInstance.hide()}),n}}let Gy=class extends me{constructor(){super(),this.template=` + `,n=document.createElement("div");return n.innerHTML=e,n.querySelector(".aie-popover-header-close").addEventListener("click",()=>{this.tippyInstance.hide()}),n.querySelector(".aie-popover-footer-confirm").addEventListener("click",()=>{this.onConfirmClickFunc&&this.onConfirmClickFunc(this.tippyInstance),this.tippyInstance.hide()}),n}}let qy=class extends me{constructor(){super(),this.template=`
- `}connectedCallback(){super.connectedCallback();const e=new Wc;e.setContent(` + `}connectedCallback(){super.connectedCallback();const e=new Xc;e.setContent(`
${ce("link-address")}
@@ -226,53 +226,53 @@ img.ProseMirror-separator {
- `),e.onConfirmClick(n=>{var o,a;const r=n.popper.querySelector("#href").value;if(r.trim()===""){(o=this.editor)==null||o.chain().focus().extendMarkRange("link").unsetLink().run();return}let i=n.popper.querySelector("#target").value;i.trim()===""&&(i=null),(a=this.editor)==null||a.chain().focus().extendMarkRange("link").setLink({href:r,target:i,rel:null}).run()}),e.onShow(n=>{var i;const r=(i=this.editor)==null?void 0:i.getAttributes("link");r&&r.href?n.popper.querySelector("#href").value=r.href:n.popper.querySelector("#href").value="",r&&r.target?n.popper.querySelector("#target").value=r.target:n.popper.querySelector("#target").value=""}),e.setTrigger(this.querySelector("div"),"bottom")}onActive(e){return e.isActive("link")}};class Vy extends me{constructor(){super(),this.template=` + `),e.onConfirmClick(n=>{var o,a;const r=n.popper.querySelector("#href").value;if(r.trim()===""){(o=this.editor)==null||o.chain().focus().extendMarkRange("link").unsetLink().run();return}let i=n.popper.querySelector("#target").value;i.trim()===""&&(i=null),(a=this.editor)==null||a.chain().focus().extendMarkRange("link").setLink({href:r,target:i,rel:null}).run()}),e.onShow(n=>{var i;const r=(i=this.editor)==null?void 0:i.getAttributes("link");r&&r.href?n.popper.querySelector("#href").value=r.href:n.popper.querySelector("#href").value="",r&&r.target?n.popper.querySelector("#target").value=r.target:n.popper.querySelector("#target").value=""}),e.setTrigger(this.querySelector("div"),"bottom")}onActive(e){return e.isActive("link")}};class Wy extends me{constructor(){super(),this.template=`
- `}connectedCallback(){super.connectedCallback();const e=new Wc;e.setContent(` + `}connectedCallback(){super.connectedCallback();const e=new Xc;e.setContent(`
- `),e.onConfirmClick(n=>{var i;const r=n.popper.querySelector("#source-code");(i=this.editor)==null||i.commands.setContent(r.value)}),e.onShow(n=>{var r;n.popper.querySelector("#source-code").value=((r=this.editor)==null?void 0:r.getHTML())||""}),e.setTrigger(this.querySelector("div"),"bottom")}}class Yy extends me{constructor(){super(),this.template=` + `),e.onConfirmClick(n=>{var i;const r=n.popper.querySelector("#source-code");(i=this.editor)==null||i.commands.setContent(r.value)}),e.onShow(n=>{var r;n.popper.querySelector("#source-code").value=((r=this.editor)==null?void 0:r.getHTML())||""}),e.setTrigger(this.querySelector("div"),"bottom")}}class Ky extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleTaskList()}onActive(e){return e.isActive("taskList")}}const zy=["1.0","1.25","1.5","2.0","2.5","3.0"];class $y extends mi{constructor(){super(),this.refreshMenuText=!1,this.dropDivWith="70px",this.width="36px",this.menuTextWidth="20px"}onCreate(e,n){var r;super.onCreate(e,n),this.menuData=((r=n.lineHeight)==null?void 0:r.values)||zy}onDropdownActive(e,n){let r=null;return e.isActive("paragraph")?r=e.getAttributes("paragraph").lineHeight:e.isActive("heading")&&(r=e.getAttributes("heading").lineHeight),!!(r&&r===`${(Number(this.menuData[n])*100).toFixed(0)}%`)}onDropdownItemClick(e){const n=`${(Number(this.menuData[e])*100).toFixed(0)}%`;this.editor.chain().setLineHeight(n).run()}onDropdownItemRender(e){return this.menuData[e]}onMenuTextRender(e){return` + `,this.registerClickListener()}onClick(e){e.toggleTaskList()}onActive(e){return e.isActive("taskList")}}const Qy=["1.0","1.25","1.5","2.0","2.5","3.0"];class Zy extends mi{constructor(){super(),this.refreshMenuText=!1,this.dropDivWith="70px",this.width="36px",this.menuTextWidth="20px"}onCreate(e,n){var r;super.onCreate(e,n),this.menuData=((r=n.lineHeight)==null?void 0:r.values)||Qy}onDropdownActive(e,n){let r=null;return e.isActive("paragraph")?r=e.getAttributes("paragraph").lineHeight:e.isActive("heading")&&(r=e.getAttributes("heading").lineHeight),!!(r&&r===`${(Number(this.menuData[n])*100).toFixed(0)}%`)}onDropdownItemClick(e){const n=`${(Number(this.menuData[e])*100).toFixed(0)}%`;this.editor.chain().setLineHeight(n).run()}onDropdownItemRender(e){return this.menuData[e]}onMenuTextRender(e){return`
- `}}class qy extends me{constructor(){super(),this.template=` + `}}class Xy extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleBlockquote()}onActive(e){return e.isActive("blockquote")}}let Wy=class extends me{constructor(){super();w(this,"fileInput");this.template=` + `,this.registerClickListener()}onClick(e){e.toggleBlockquote()}onActive(e){return e.isActive("blockquote")}}let jy=class extends me{constructor(){super();L(this,"fileInput");this.template=`
- `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.image)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadImage(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.image)!=null&&i.customMenuInvoke?this.options.image.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}};class Ky extends me{constructor(){super();w(this,"fileInput");this.template=` + `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.image)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadImage(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.image)!=null&&i.customMenuInvoke?this.options.image.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}};class Jy extends me{constructor(){super();L(this,"fileInput");this.template=`
- `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.video)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadVideo(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.video)!=null&&i.customMenuInvoke?this.options.video.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}}let Qy=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.video)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadVideo(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.video)!=null&&i.customMenuInvoke?this.options.video.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}}let ev=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleCode()}onActive(e){return e.isActive("code")}},Zy=class extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleCode()}onActive(e){return e.isActive("code")}},tv=class extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.toggleCodeBlock()}onActive(e){return e.isActive("codeBlock")}};class Xy extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.toggleCodeBlock()}onActive(e){return e.isActive("codeBlock")}};class nv extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.unsetAllMarks()}}class jy extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(e){e.unsetAllMarks()}}class rv extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.setHorizontalRule()}}let Jy=class extends me{constructor(){super();w(this,"instance");this.template=` + `,this.registerClickListener()}onClick(e){e.setHorizontalRule()}}let iv=class extends me{constructor(){super();L(this,"instance");this.template=`
@@ -283,43 +283,43 @@ img.ProseMirror-separator { ${[...Array(8).keys()].map((i,o)=>[...Array(10).keys()].map((a,s)=>`
`).join("")).join("")}
- `;const r=n.querySelector("#table-cells");return r.addEventListener("click",i=>{var a,s;const o=i.target.closest(".table-cell");if(o){let l=o.getAttribute("data-i"),c=o.getAttribute("data-j");(a=this.editor)==null||a.commands.insertTable({rows:Number(l)+1,cols:Number(c)+1,withHeaderRow:!0}),(s=this.instance)==null||s.hide()}}),r.addEventListener("mouseover",i=>{const o=i.target.closest(".table-cell");if(o){let a=Number(o.getAttribute("data-i")),s=Number(o.getAttribute("data-j"));const l=r.querySelectorAll("div"),c=n.querySelector("#columnRows");c.textContent=`${a+1} ${ce("row")} x ${s+1} ${ce("column")}`,l.forEach(u=>{let d=Number(u.getAttribute("data-i")),p=Number(u.getAttribute("data-j"));d<=a&&p<=s?u.classList.add("active"):u.classList.remove("active")})}}),r.addEventListener("mouseleave",()=>{r.querySelectorAll("div").forEach(a=>{a.classList.remove("active")});const o=n.querySelector("#columnRows");o.textContent=""}),n}};class ev extends me{constructor(){super(),this.template=` + `;const r=n.querySelector("#table-cells");return r.addEventListener("click",i=>{var a,s;const o=i.target.closest(".table-cell");if(o){let l=o.getAttribute("data-i"),c=o.getAttribute("data-j");(a=this.editor)==null||a.commands.insertTable({rows:Number(l)+1,cols:Number(c)+1,withHeaderRow:!0}),(s=this.instance)==null||s.hide()}}),r.addEventListener("mouseover",i=>{const o=i.target.closest(".table-cell");if(o){let a=Number(o.getAttribute("data-i")),s=Number(o.getAttribute("data-j"));const l=r.querySelectorAll("div"),c=n.querySelector("#columnRows");c.textContent=`${a+1} ${ce("row")} x ${s+1} ${ce("column")}`,l.forEach(u=>{let d=Number(u.getAttribute("data-i")),p=Number(u.getAttribute("data-j"));d<=a&&p<=s?u.classList.add("active"):u.classList.remove("active")})}}),r.addEventListener("mouseleave",()=>{r.querySelectorAll("div").forEach(a=>{a.classList.remove("active")});const o=n.querySelector("#columnRows");o.textContent=""}),n}};class ov extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){e.setHardBreak()}}class tv extends me{constructor(){super();w(this,"fileInput");this.template=` + `,this.registerClickListener()}onClick(e){e.setHardBreak()}}class av extends me{constructor(){super();L(this,"fileInput");this.template=`
- `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.attachment)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadAttachment(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.attachment)!=null&&i.customMenuInvoke?this.options.attachment.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}}class nv extends me{constructor(){super();w(this,"fullscreenSvg",'');w(this,"fullscreenExitSvg",'');w(this,"isFullscreen",!1);this.template=` + `,this.registerClickListener()}connectedCallback(){var n,r;super.connectedCallback(),(r=(n=this.options)==null?void 0:n.attachment)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var o,a;const i=(o=this.fileInput)==null?void 0:o.files;if(i&&i.length>0)for(let s of i)(a=this.editor)==null||a.commands.uploadAttachment(s);this.fileInput.value=""}))}onClick(n){var r,i,o;(i=(r=this.options)==null?void 0:r.attachment)!=null&&i.customMenuInvoke?this.options.attachment.customMenuInvoke(this.editor.aiEditor):(o=this.fileInput)==null||o.click()}}class sv extends me{constructor(){super();L(this,"fullscreenSvg",'');L(this,"fullscreenExitSvg",'');L(this,"isFullscreen",!1);this.template=`
${this.fullscreenSvg}
- `,this.registerClickListener()}onClick(n){const r=this.closest(".aie-container");this.isFullscreen?(r.style.height="100%",r.style.width="",r.style.background="",r.style.position="",r.style.top="",r.style.left="",r.style.zIndex=""):(r.style.height="calc(100vh - 2px)",r.style.width="calc(100% - 2px)",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.zIndex="9999"),this.isFullscreen=!this.isFullscreen,this.querySelector("div").innerHTML=this.isFullscreen?this.fullscreenExitSvg:this.fullscreenSvg}}class rv extends me{constructor(){super(),this.template=` + `,this.registerClickListener()}onClick(n){const r=this.closest(".aie-container");this.isFullscreen?(r.style.height="100%",r.style.width="",r.style.background="",r.style.position="",r.style.top="",r.style.left="",r.style.zIndex=""):(r.style.height="calc(100vh - 2px)",r.style.width="calc(100% - 2px)",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.zIndex="9999"),this.isFullscreen=!this.isFullscreen,this.querySelector("div").innerHTML=this.isFullscreen?this.fullscreenExitSvg:this.fullscreenSvg}}class lv extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){let n=this.closest(".aie-container").querySelector(".aie-content").innerHTML;n=`
${n}
`;const i=Array.from(document.querySelectorAll("style, link")).map(l=>l.outerHTML).join("")+n,o=document.createElement("iframe");o.id="aie-print-iframe",o.setAttribute("style","position: absolute; width: 0; height: 0; top: -10px; left: -10px;"),document.body.appendChild(o);const a=o.contentWindow,s=o.contentDocument||o.contentWindow&&o.contentWindow.document;s&&(s.open(),s.write(i),s.close()),a&&(o.onload=function(){try{setTimeout(()=>{a.focus();try{a.document.execCommand("print",!1)||a.print()}catch{a.print()}a.close()},10)}catch(l){console.error(l)}setTimeout(function(){document.body.removeChild(o)},100)})}}const Sp=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","🥲","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😶‍🌫","😏","😒","🙄","😬","😮‍💨","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","😵‍💫","🤯","🤠","🥳","🥸","😎","🤓","🧐","😕","😟","🙁","😮","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","🥱","😤","😡","😠","🤬","😈","👿","💀","☠️","💩","🤡","👹","👺","👻","👽","👾","🤖","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👍","👎","🙏","🙈","🙉","🙊","💌","💘","💝","💖","💗","💓","💞","💕","💟","❣️","💔","💋","💯","💢","💥","💫","💦","💨","💤"];class iv extends me{constructor(){super();w(this,"emojis",Sp);w(this,"tippy");this.template=` + `,this.registerClickListener()}onClick(e){let n=this.closest(".aie-container").querySelector(".aie-content").innerHTML;n=`
${n}
`;const i=Array.from(document.querySelectorAll("style, link")).map(l=>l.outerHTML).join("")+n,o=document.createElement("iframe");o.id="aie-print-iframe",o.setAttribute("style","position: absolute; width: 0; height: 0; top: -10px; left: -10px;"),document.body.appendChild(o);const a=o.contentWindow,s=o.contentDocument||o.contentWindow&&o.contentWindow.document;s&&(s.open(),s.write(i),s.close()),a&&(o.onload=function(){try{setTimeout(()=>{a.focus();try{a.document.execCommand("print",!1)||a.print()}catch{a.print()}a.close()},10)}catch(l){console.error(l)}setTimeout(function(){document.body.removeChild(o)},100)})}}const vp=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","🙃","😉","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","🥲","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😶‍🌫","😏","😒","🙄","😬","😮‍💨","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","🤮","🤧","🥵","🥶","🥴","😵","😵‍💫","🤯","🤠","🥳","🥸","😎","🤓","🧐","😕","😟","🙁","😮","😲","😳","🥺","😦","😧","😨","😰","😥","😢","😭","😱","😖","😣","😞","😓","😩","😫","🥱","😤","😡","😠","🤬","😈","👿","💀","☠️","💩","🤡","👹","👺","👻","👽","👾","🤖","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👍","👎","🙏","🙈","🙉","🙊","💌","💘","💝","💖","💗","💓","💞","💕","💟","❣️","💔","💋","💯","💢","💥","💫","💦","💨","💤"];class cv extends me{constructor(){super();L(this,"emojis",vp);L(this,"tippy");this.template=`
- `}onCreate(n,r){var i;super.onCreate(n,r),this.emojis=((i=r.emoji)==null?void 0:i.values)||Sp}connectedCallback(){super.connectedCallback(),this.tippy=we(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const n=document.createElement("div");return n.style.maxWidth="450px",n.style.overflow="hidden",n.style.display="flex",n.style.justifyContent="center",n.classList.add("aie-dropdown-container"),n.innerHTML=` + `}onCreate(n,r){var i;super.onCreate(n,r),this.emojis=((i=r.emoji)==null?void 0:i.values)||vp}connectedCallback(){super.connectedCallback(),this.tippy=we(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const n=document.createElement("div");return n.style.maxWidth="450px",n.style.overflow="hidden",n.style.display="flex",n.style.justifyContent="center",n.classList.add("aie-dropdown-container"),n.innerHTML=`
${this.emojis.map(r=>`
${r}
`).join("")}
- `,n.querySelector(".emoji-cells").addEventListener("click",r=>{var o,a;const i=r.target.closest(".emoji-cell");i&&((o=this.editor)==null||o.commands.insertContent(i.querySelector("span").innerHTML),(a=this.tippy)==null||a.hide())}),n}}class ov extends me{constructor(){super(),this.template='
',this.registerClickListener()}onClick(e){var n;e.setPainter((n=this.editor)==null?void 0:n.state.selection.$head.marks())}}class ho{constructor(e,n,r){w(this,"editor");w(this,"globalConfig");w(this,"aiModelName");w(this,"aiModelConfig");this.editor=e,this.globalConfig=n,this.aiModelName=r,this.aiModelConfig=n.models[r]}chatWithPayload(e,n){const r=o=>{this.createAiClient(o,n).start(typeof e=="string"?e:JSON.stringify(e))},i=()=>{n==null||n.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,r,i):r(this.createAiClientUrl())}chat(e,n,r){const i=a=>{const s=this.createAiClient(a,r),l=n.includes("{content}")?n.split("{content}").join(e):`${e?e+` -`:""}${n}`,c=this.wrapPayload(l);s.start(typeof c=="string"?c:JSON.stringify(c))},o=()=>{r==null||r.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,i,o):i(this.createAiClientUrl())}}class Zf{constructor(e,n){w(this,"isStop",!1);w(this,"url");w(this,"webSocket");w(this,"isOpen",!1);w(this,"payload");w(this,"listener");this.url=e,this.listener=n}start(e){this.listener.onStart(this),this.payload=e,this.webSocket=new WebSocket(this.url),this.webSocket.onopen=n=>this.onOpen(n),this.webSocket.onmessage=n=>this.onMessage(n),this.webSocket.onclose=n=>this.onClose(n),this.webSocket.onerror=n=>this.onError(n)}stop(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}send(e){this.webSocket&&this.isOpen&&this.webSocket.send(e)}onOpen(e){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e.data)}onClose(e){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(e){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function av(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Xf={exports:{}};function sv(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var el={exports:{}};const lv={},cv=Object.freeze(Object.defineProperty({__proto__:null,default:lv},Symbol.toStringTag,{value:"Module"})),uv=av(cv);var bp;function hs(){return bp||(bp=1,function(t,e){(function(n,r){t.exports=r()})(Ln,function(){var n=n||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Ln<"u"&&Ln.crypto&&(o=Ln.crypto),!o&&typeof sv=="function")try{o=uv}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function S(){}return function(b){var h;return S.prototype=b,h=new S,S.prototype=null,h}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(S){var b=s(this);return S&&b.mixIn(S),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var b in S)S.hasOwnProperty(b)&&(this[b]=S[b]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(S,b){S=this.words=S||[],b!=i?this.sigBytes=b:this.sigBytes=S.length*4},toString:function(S){return(S||_).stringify(this)},concat:function(S){var b=this.words,h=S.words,C=this.sigBytes,T=S.sigBytes;if(this.clamp(),C%4)for(var R=0;R>>2]>>>24-R%4*8&255;b[C+R>>>2]|=x<<24-(C+R)%4*8}else for(var O=0;O>>2]=h[O>>>2];return this.sigBytes+=T,this},clamp:function(){var S=this.words,b=this.sigBytes;S[b>>>2]&=4294967295<<32-b%4*8,S.length=r.ceil(b/4)},clone:function(){var S=u.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var b=[],h=0;h>>2]>>>24-T%4*8&255;C.push((R>>>4).toString(16)),C.push((R&15).toString(16))}return C.join("")},parse:function(S){for(var b=S.length,h=[],C=0;C>>3]|=parseInt(S.substr(C,2),16)<<24-C%8*4;return new d.init(h,b/2)}},m=p.Latin1={stringify:function(S){for(var b=S.words,h=S.sigBytes,C=[],T=0;T>>2]>>>24-T%4*8&255;C.push(String.fromCharCode(R))}return C.join("")},parse:function(S){for(var b=S.length,h=[],C=0;C>>2]|=(S.charCodeAt(C)&255)<<24-C%4*8;return new d.init(h,b)}},f=p.Utf8={stringify:function(S){try{return decodeURIComponent(escape(m.stringify(S)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(S){return m.parse(unescape(encodeURIComponent(S)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=f.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var b,h=this._data,C=h.words,T=h.sigBytes,R=this.blockSize,x=R*4,O=T/x;S?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var M=O*R,B=r.min(M*4,T);if(M){for(var Y=0;Y>>7)^(O<<14|O>>>18)^O>>>3,B=d[x-2],Y=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;d[x]=M+d[x-7]+Y+d[x-16]}var $=h&C^~h&T,q=g&E^g&S^E&S,V=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),J=(h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25),y=R+J+$+u[x]+d[x],v=V+q;R=T,T=C,C=h,h=b+y|0,b=S,S=E,E=g,g=y+v|0}f[0]=f[0]+g|0,f[1]=f[1]+E|0,f[2]=f[2]+S|0,f[3]=f[3]+b|0,f[4]=f[4]+h|0,f[5]=f[5]+C|0,f[6]=f[6]+T|0,f[7]=f[7]+R|0},_doFinalize:function(){var _=this._data,m=_.words,f=this._nDataBytes*8,g=_.sigBytes*8;return m[g>>>5]|=128<<24-g%32,m[(g+64>>>9<<4)+14]=r.floor(f/4294967296),m[(g+64>>>9<<4)+15]=f,_.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var _=s.clone.call(this);return _._hash=this._hash.clone(),_}});i.SHA256=s._createHelper(p),i.HmacSHA256=s._createHmacHelper(p)}(Math),n.SHA256})}(tl)),tl.exports}var nl={exports:{}},Cp;function pv(){return Cp||(Cp=1,function(t,e){(function(n,r){t.exports=r(hs())})(Ln,function(n){(function(){var r=n,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var d=c.blockSize,p=d*4;u.sigBytes>p&&(u=c.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),m=this._iKey=u.clone(),f=_.words,g=m.words,E=0;E>>2]>>>24-_%4*8&255,f=c[_+1>>>2]>>>24-(_+1)%4*8&255,g=c[_+2>>>2]>>>24-(_+2)%4*8&255,E=m<<16|f<<8|g,S=0;S<4&&_+S*.75>>6*(3-S)&63));var b=d.charAt(64);if(b)for(;p.length%4;)p.push(b);return p.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var p=0;p>>6-_%4*2,g=m|f;d[p>>>2]|=g<<24-p%4*8,p++}return o.create(d,p)}}(),n.enc.Base64})})(jf);var fv=jf.exports;const gv=Kc(fv),Es=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16));class Jf extends ho{constructor(e,n){super(e,n,"spark"),this.aiModelConfig={version:"v3.5",protocol:"wss",...n.models.spark}}createAiClient(e,n){return new Zf(e,{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{var o,a,s,l,c;const i=JSON.parse(r);i.payload&&((a=(o=i.payload.usage)==null?void 0:o.text)!=null&&a.total_tokens&&this.globalConfig.onTokenConsume&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,(l=(s=i.payload.usage)==null?void 0:s.text)==null?void 0:l.total_tokens),(c=i.payload.choices)!=null&&c.text&&i.payload.choices.text[0]&&n.onMessage({...i.payload.choices.text[0],status:i.payload.choices.status}))}})}wrapPayload(e){const n=this.aiModelConfig,r={header:{app_id:n.appId,uid:Es().replace(/-/g,"")},parameter:{chat:{domain:this.getDomain(n),temperature:n.temperature||.5,max_tokens:n.maxTokens||2048}},payload:{message:{text:[{role:"user",content:e}]}}};return JSON.stringify(r)}getDomain(e){switch(e.version){case"v4.0":return"4.0Ultra";case"v3.5":return"generalv3.5";case"v3.1":return"generalv3";case"v2.1":return"generalv2";default:return"general"}}createAiClientUrl(){const e=this.aiModelConfig,n=new Date().toUTCString().replace("GMT","+0000");let r=`host: spark-api.xf-yun.com + `,n.querySelector(".emoji-cells").addEventListener("click",r=>{var o,a;const i=r.target.closest(".emoji-cell");i&&((o=this.editor)==null||o.commands.insertContent(i.querySelector("span").innerHTML),(a=this.tippy)==null||a.hide())}),n}}class uv extends me{constructor(){super(),this.template='
',this.registerClickListener()}onClick(e){var n;e.setPainter((n=this.editor)==null?void 0:n.state.selection.$head.marks())}}class Eo{constructor(e,n,r){L(this,"editor");L(this,"globalConfig");L(this,"aiModelName");L(this,"aiModelConfig");this.editor=e,this.globalConfig=n,this.aiModelName=r,this.aiModelConfig=n.models[r]}chatWithPayload(e,n){const r=o=>{this.createAiClient(o,n).start(typeof e=="string"?e:JSON.stringify(e))},i=()=>{n==null||n.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,r,i):r(this.createAiClientUrl())}chat(e,n,r){const i=a=>{const s=this.createAiClient(a,r),l=n.includes("{content}")?n.split("{content}").join(e):`${e?e+` +`:""}${n}`,c=this.wrapPayload(l);s.start(typeof c=="string"?c:JSON.stringify(c))},o=()=>{r==null||r.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,i,o):i(this.createAiClientUrl())}}class rg{constructor(e,n){L(this,"isStop",!1);L(this,"url");L(this,"webSocket");L(this,"isOpen",!1);L(this,"payload");L(this,"listener");this.url=e,this.listener=n}start(e){this.listener.onStart(this),this.payload=e,this.webSocket=new WebSocket(this.url),this.webSocket.onopen=n=>this.onOpen(n),this.webSocket.onmessage=n=>this.onMessage(n),this.webSocket.onclose=n=>this.onClose(n),this.webSocket.onerror=n=>this.onError(n)}stop(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}send(e){this.webSocket&&this.isOpen&&this.webSocket.send(e)}onOpen(e){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e.data)}onClose(e){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(e){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function dv(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var ig={exports:{}};function pv(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nl={exports:{}};const _v={},mv=Object.freeze(Object.defineProperty({__proto__:null,default:_v},Symbol.toStringTag,{value:"Module"})),fv=dv(mv);var Rp;function Es(){return Rp||(Rp=1,function(t,e){(function(n,r){t.exports=r()})(Ln,function(){var n=n||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Ln<"u"&&Ln.crypto&&(o=Ln.crypto),!o&&typeof pv=="function")try{o=fv}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(b){var h;return E.prototype=b,h=new E,E.prototype=null,h}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(E){var b=s(this);return E&&b.mixIn(E),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var b in E)E.hasOwnProperty(b)&&(this[b]=E[b]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(E,b){E=this.words=E||[],b!=i?this.sigBytes=b:this.sigBytes=E.length*4},toString:function(E){return(E||_).stringify(this)},concat:function(E){var b=this.words,h=E.words,C=this.sigBytes,T=E.sigBytes;if(this.clamp(),C%4)for(var R=0;R>>2]>>>24-R%4*8&255;b[C+R>>>2]|=x<<24-(C+R)%4*8}else for(var O=0;O>>2]=h[O>>>2];return this.sigBytes+=T,this},clamp:function(){var E=this.words,b=this.sigBytes;E[b>>>2]&=4294967295<<32-b%4*8,E.length=r.ceil(b/4)},clone:function(){var E=u.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var b=[],h=0;h>>2]>>>24-T%4*8&255;C.push((R>>>4).toString(16)),C.push((R&15).toString(16))}return C.join("")},parse:function(E){for(var b=E.length,h=[],C=0;C>>3]|=parseInt(E.substr(C,2),16)<<24-C%8*4;return new d.init(h,b/2)}},m=p.Latin1={stringify:function(E){for(var b=E.words,h=E.sigBytes,C=[],T=0;T>>2]>>>24-T%4*8&255;C.push(String.fromCharCode(R))}return C.join("")},parse:function(E){for(var b=E.length,h=[],C=0;C>>2]|=(E.charCodeAt(C)&255)<<24-C%4*8;return new d.init(h,b)}},f=p.Utf8={stringify:function(E){try{return decodeURIComponent(escape(m.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return m.parse(unescape(encodeURIComponent(E)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=f.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var b,h=this._data,C=h.words,T=h.sigBytes,R=this.blockSize,x=R*4,O=T/x;E?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var M=O*R,B=r.min(M*4,T);if(M){for(var Y=0;Y>>7)^(O<<14|O>>>18)^O>>>3,B=d[x-2],Y=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;d[x]=M+d[x-7]+Y+d[x-16]}var $=h&C^~h&T,q=g&S^g&E^S&E,V=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),J=(h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25),y=R+J+$+u[x]+d[x],v=V+q;R=T,T=C,C=h,h=b+y|0,b=E,E=S,S=g,g=y+v|0}f[0]=f[0]+g|0,f[1]=f[1]+S|0,f[2]=f[2]+E|0,f[3]=f[3]+b|0,f[4]=f[4]+h|0,f[5]=f[5]+C|0,f[6]=f[6]+T|0,f[7]=f[7]+R|0},_doFinalize:function(){var _=this._data,m=_.words,f=this._nDataBytes*8,g=_.sigBytes*8;return m[g>>>5]|=128<<24-g%32,m[(g+64>>>9<<4)+14]=r.floor(f/4294967296),m[(g+64>>>9<<4)+15]=f,_.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var _=s.clone.call(this);return _._hash=this._hash.clone(),_}});i.SHA256=s._createHelper(p),i.HmacSHA256=s._createHmacHelper(p)}(Math),n.SHA256})}(rl)),rl.exports}var il={exports:{}},Np;function hv(){return Np||(Np=1,function(t,e){(function(n,r){t.exports=r(Es())})(Ln,function(n){(function(){var r=n,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var d=c.blockSize,p=d*4;u.sigBytes>p&&(u=c.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),m=this._iKey=u.clone(),f=_.words,g=m.words,S=0;S>>2]>>>24-_%4*8&255,f=c[_+1>>>2]>>>24-(_+1)%4*8&255,g=c[_+2>>>2]>>>24-(_+2)%4*8&255,S=m<<16|f<<8|g,E=0;E<4&&_+E*.75>>6*(3-E)&63));var b=d.charAt(64);if(b)for(;p.length%4;)p.push(b);return p.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var p=0;p>>6-_%4*2,g=m|f;d[p>>>2]|=g<<24-p%4*8,p++}return o.create(d,p)}}(),n.enc.Base64})})(og);var bv=og.exports;const Tv=jc(bv),Ss=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16));class ag extends Eo{constructor(e,n){super(e,n,"spark"),this.aiModelConfig={version:"v3.5",protocol:"wss",...n.models.spark}}createAiClient(e,n){return new rg(e,{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{var o,a,s,l,c;const i=JSON.parse(r);i.payload&&((a=(o=i.payload.usage)==null?void 0:o.text)!=null&&a.total_tokens&&this.globalConfig.onTokenConsume&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,(l=(s=i.payload.usage)==null?void 0:s.text)==null?void 0:l.total_tokens),(c=i.payload.choices)!=null&&c.text&&i.payload.choices.text[0]&&n.onMessage({...i.payload.choices.text[0],status:i.payload.choices.status}))}})}wrapPayload(e){const n=this.aiModelConfig,r={header:{app_id:n.appId,uid:Ss().replace(/-/g,"")},parameter:{chat:{domain:this.getDomain(n),temperature:n.temperature||.5,max_tokens:n.maxTokens||2048}},payload:{message:{text:[{role:"user",content:e}]}}};return JSON.stringify(r)}getDomain(e){switch(e.version){case"v4.0":return"4.0Ultra";case"v3.5":return"generalv3.5";case"v3.1":return"generalv3";case"v2.1":return"generalv2";case"v1.1":return"lite";default:return"general"}}createAiClientUrl(){const e=this.aiModelConfig,n=new Date().toUTCString().replace("GMT","+0000");let r=`host: spark-api.xf-yun.com `;r+="date: "+n+` -`,r+=`GET /${e.version}/chat HTTP/1.1`;const i=mv(r,e.apiSecret),o=gv.stringify(i),a=`api_key="${e.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`,s=btoa(a);return`${e.protocol}://spark-api.xf-yun.com/${e.version}/chat?authorization=${s}&date=${encodeURIComponent(n)}&host=spark-api.xf-yun.com`}}class eg{constructor(e,n){w(this,"isStop",!1);w(this,"config");w(this,"fetch");w(this,"isOpen",!1);w(this,"payload");w(this,"listener");this.config=e,this.listener=n}start(e){this.payload=e,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.fetch=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(e){if(this.isOpen)try{this.fetch=await fetch(this.config.url,{method:this.config.method,headers:this.config.headers,body:e});const n=this.fetch;if(!n.body)throw new Error("response.body is none");const r=({done:a,value:s})=>{if(a){this.onClose();return}return this.onMessage(o.decode(s)),i.read().then(({done:l,value:c})=>r({done:l,value:c}))},i=n.body.getReader(),o=new TextDecoder("utf-8");i.read().then(({done:a,value:s})=>r({done:a,value:s}))}catch{this.onError()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class tg extends ho{constructor(e,n){super(e,n,"wenxin"),this.aiModelConfig={...n.models.wenxin}}createAiClient(e,n){return new eg({url:e,method:"POST"},{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{const i=r.match(/data:([\s\S]*)$/);if(!i)return;const o=JSON.parse(i[1]);n.onMessage({status:o.is_end?2:1,role:"assistant",content:o.result||"",index:o.sentence_id})}})}wrapPayload(e){const n={messages:[{role:"user",content:e}],stream:!0,max_tokens:this.aiModelConfig.maxTokens||null,temperature:this.aiModelConfig.temperature||null};return JSON.stringify(n)}createAiClientUrl(){return`https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro?access_token=${this.aiModelConfig.access_token}`}}var mn;class hv extends TransformStream{constructor(n={allowCR:!1}){super({transform:(r,i)=>{for(r=Or(this,mn)+r;;){const o=r.indexOf(` -`),a=n.allowCR?r.indexOf("\r"):-1;if(a!==-1&&a!==r.length-1&&(o===-1||o-1>a)){i.enqueue(r.slice(0,a)),r=r.slice(a+1);continue}if(o===-1)break;const s=r[o-1]==="\r"?o-1:o;i.enqueue(r.slice(0,s)),r=r.slice(o+1)}Fu(this,mn,r)},flush:r=>{if(Or(this,mn)==="")return;const i=n.allowCR&&Or(this,mn).endsWith("\r")?Or(this,mn).slice(0,-1):Or(this,mn);r.enqueue(i)}});Pu(this,mn,"")}}mn=new WeakMap;function Ev(t){let e=new TextDecoderStream,n=new hv({allowCR:!0});return t.pipeThrough(e).pipeThrough(n)}function Sv(t){let n=/[:]\s*/.exec(t),r=n&&n.index;if(r)return[t.substring(0,r),t.substring(r+n[0].length)]}async function*bv(t,e){if(!t.body)return;let n=Ev(t.body),r,i=n.getReader(),o;for(;;){if(e&&e.aborted)return i.cancel();if(r=await i.read(),r.done)return;if(!r.value){o&&(yield o),o=void 0;continue}let[a,s]=Sv(r.value)||[];a&&(a==="data"?(o||(o={}),o[a]=o[a]?o[a]+` -`+s:s):a==="event"?(o||(o={}),o[a]=s):a==="id"?(o||(o={}),o[a]=+s||s):a==="retry"&&(o||(o={}),o[a]=+s||void 0))}}class Qc{constructor(e,n){w(this,"isStop",!1);w(this,"config");w(this,"fetch");w(this,"isOpen",!1);w(this,"payload");w(this,"listener");w(this,"ctrl",new AbortController);this.config=e,this.listener=n}start(e){this.payload=e,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.ctrl.abort(),this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(e){let n=await fetch(this.config.url,{method:this.config.method,signal:this.ctrl.signal,headers:this.config.headers,body:e});if(!n.ok){this.onError();return}try{let r=bv(n,this.ctrl.signal);for await(let i of r)i.data&&i.data.trim()!=="[DONE]"&&this.onMessage(i.data)}catch(r){console.error("error",r),this.onError()}finally{this.onClose()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class ng extends ho{constructor(e,n){super(e,n,"custom"),this.aiModelConfig={protocol:"sse",...n.models.custom}}createAiClient(e,n){var a;const r=this.aiModelConfig,i={onStart:n.onStart,onStop:n.onStop,onMessage:s=>{var u;const l=this.aiModelConfig,c=(u=l.parseMessage)==null?void 0:u.call(l,s);c&&n.onMessage(c)}},o={url:e,method:r.method||"post",headers:(a=r.headers)==null?void 0:a.call(r)};return r.protocol==="sse"?new Qc(o,i):r.protocol==="http"?new eg(o,i):new Zf(e,i)}wrapPayload(e){var r;const n=this.aiModelConfig;return(r=n.wrapPayload)==null?void 0:r.call(n,e)}createAiClientUrl(){var n;const e=this.aiModelConfig;return typeof e.url=="string"?e.url:(n=e.url)==null?void 0:n.call(e)}}class rg extends ho{constructor(e,n){super(e,n,"openai"),this.aiModelConfig={endpoint:"https://api.openai.com",model:"gpt-3.5-turbo",...n.models.openai}}createAiClient(e,n){const r=this.aiModelConfig;return new Qc({url:e,method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.apiKey}`}},{onStart:n.onStart,onStop:n.onStop,onMessage:i=>{var a,s;let o=null;try{o=JSON.parse(i)}catch(l){console.error("error",l,i);return}n.onMessage({status:o.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((a=o.choices[0].delta)==null?void 0:a.content)||"",index:o.choices[0].index}),this.globalConfig.onTokenConsume&&((s=o.choices[0].usage)!=null&&s.total_tokens)&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,o.choices[0].usage.total_tokens)}})}wrapPayload(e){const n=this.aiModelConfig,r={model:n.model,messages:[{role:"user",content:e}],max_tokens:n.maxTokens||null,temperature:n.temperature||null,stream:!0};return JSON.stringify(r)}createAiClientUrl(){return`${this.aiModelConfig.endpoint}/v1/chat/completions`}}class Tv extends ho{constructor(e,n){super(e,n,"gitee"),this.aiModelConfig={top_p:.7,top_k:50,...n.models.gitee}}createAiClient(e,n){const r=this.aiModelConfig;return new Qc({url:e,method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.apiKey}`}},{onStart:n.onStart,onStop:n.onStop,onMessage:i=>{var a,s;let o=null;try{o=JSON.parse(i)}catch(l){console.error("error",l,i);return}n.onMessage({status:o.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((a=o.choices[0].delta)==null?void 0:a.content)||"",index:o.choices[0].index}),this.globalConfig.onTokenConsume&&((s=o.usage)!=null&&s.total_tokens)&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,o.usage.total_tokens)}})}wrapPayload(e){const n=this.aiModelConfig,r={messages:[{role:"user",content:e}],stream:!0,max_tokens:n.maxTokens||null,temperature:n.temperature||null,top_p:n.top_p,top_k:n.top_k};return JSON.stringify(r)}createAiClientUrl(){const{endpoint:e}=this.aiModelConfig;return e}}class En{static init(e,n){var r;if(n&&n.models)for(let i of Object.keys(n.models))switch(i){case"spark":this.set(i,new Jf(e,n));break;case"wenxin":this.set(i,new tg(e,n));break;case"openai":this.set(i,new rg(e,n));break;case"gitee":this.set(i,new Tv(e,n));break;case"custom":this.set(i,new ng(e,n));break;default:const o=(r=n.modelFactory)==null?void 0:r.create(i,e,n);o&&this.set(i,o)}}static get(e){return(!e||e==="auto")&&(e=Object.keys(this.models)[0]),this.models[e]}static set(e,n){this.models[e]=n}}w(En,"models",{});const Cv=t=>{let e="";return t.descendants(n=>{n.text&&(e+=n.text)}),e};class Ra{constructor(e,n){w(this,"editor");w(this,"from");w(this,"options");this.editor=e,this.from=e.view.state.selection.from,this.options=n||{markdownParseEnable:!0}}onStart(){}onStop(){}onMessage(e){const{state:{tr:n},view:r}=this.editor;if(r.dispatch(n.insertText(e.content)),e.status==2&&this.options.markdownParseEnable){const i=this.editor.state.selection.to,o=this.editor.state.doc.textBetween(this.from,i),{state:{tr:a},view:s}=this.editor,l=this.editor.parseMarkdown(o);if(this.options.useMarkdownTextOnly){const c=Cv(l),u=this.editor.schema.text(c);s.dispatch(a.replaceWith(this.from,i,u).scrollIntoView())}else s.dispatch(a.replaceWith(this.from,i,l).scrollIntoView())}this.editor.commands.scrollIntoView()}}const yv=[{icon:'',name:"ai-continuation",prompt:`{content} +`,r+=`GET /${e.version}/chat HTTP/1.1`;const i=Sv(r,e.apiSecret),o=Tv.stringify(i),a=`api_key="${e.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`,s=btoa(a);return`${e.protocol}://spark-api.xf-yun.com/${e.version}/chat?authorization=${s}&date=${encodeURIComponent(n)}&host=spark-api.xf-yun.com`}}class sg{constructor(e,n){L(this,"isStop",!1);L(this,"config");L(this,"fetch");L(this,"isOpen",!1);L(this,"payload");L(this,"listener");this.config=e,this.listener=n}start(e){this.payload=e,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.fetch=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(e){if(this.isOpen)try{this.fetch=await fetch(this.config.url,{method:this.config.method,headers:this.config.headers,body:e});const n=this.fetch;if(!n.body)throw new Error("response.body is none");const r=({done:a,value:s})=>{if(a){this.onClose();return}return this.onMessage(o.decode(s)),i.read().then(({done:l,value:c})=>r({done:l,value:c}))},i=n.body.getReader(),o=new TextDecoder("utf-8");i.read().then(({done:a,value:s})=>r({done:a,value:s}))}catch{this.onError()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class lg extends Eo{constructor(e,n){super(e,n,"wenxin"),this.aiModelConfig={...n.models.wenxin}}createAiClient(e,n){return new sg({url:e,method:"POST"},{onStart:n.onStart,onStop:n.onStop,onMessage:r=>{const i=r.match(/data:([\s\S]*)$/);if(!i)return;const o=JSON.parse(i[1]);n.onMessage({status:o.is_end?2:1,role:"assistant",content:o.result||"",index:o.sentence_id})}})}wrapPayload(e){const n={messages:[{role:"user",content:e}],stream:!0,max_tokens:this.aiModelConfig.maxTokens||null,temperature:this.aiModelConfig.temperature||null};return JSON.stringify(n)}createAiClientUrl(){return`https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro?access_token=${this.aiModelConfig.access_token}`}}var mn;class Cv extends TransformStream{constructor(n={allowCR:!1}){super({transform:(r,i)=>{for(r=Or(this,mn)+r;;){const o=r.indexOf(` +`),a=n.allowCR?r.indexOf("\r"):-1;if(a!==-1&&a!==r.length-1&&(o===-1||o-1>a)){i.enqueue(r.slice(0,a)),r=r.slice(a+1);continue}if(o===-1)break;const s=r[o-1]==="\r"?o-1:o;i.enqueue(r.slice(0,s)),r=r.slice(o+1)}Gu(this,mn,r)},flush:r=>{if(Or(this,mn)==="")return;const i=n.allowCR&&Or(this,mn).endsWith("\r")?Or(this,mn).slice(0,-1):Or(this,mn);r.enqueue(i)}});Hu(this,mn,"")}}mn=new WeakMap;function yv(t){let e=new TextDecoderStream,n=new Cv({allowCR:!0});return t.pipeThrough(e).pipeThrough(n)}function vv(t){let n=/[:]\s*/.exec(t),r=n&&n.index;if(r)return[t.substring(0,r),t.substring(r+n[0].length)]}async function*Rv(t,e){if(!t.body)return;let n=yv(t.body),r,i=n.getReader(),o;for(;;){if(e&&e.aborted)return i.cancel();if(r=await i.read(),r.done)return;if(!r.value){o&&(yield o),o=void 0;continue}let[a,s]=vv(r.value)||[];a&&(a==="data"?(o||(o={}),o[a]=o[a]?o[a]+` +`+s:s):a==="event"?(o||(o={}),o[a]=s):a==="id"?(o||(o={}),o[a]=+s||s):a==="retry"&&(o||(o={}),o[a]=+s||void 0))}}class Jc{constructor(e,n){L(this,"isStop",!1);L(this,"config");L(this,"fetch");L(this,"isOpen",!1);L(this,"payload");L(this,"listener");L(this,"ctrl",new AbortController);this.config=e,this.listener=n}start(e){this.payload=e,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.ctrl.abort(),this.isStop||(this.listener.onStop(),this.isStop=!0))}async send(e){let n=await fetch(this.config.url,{method:this.config.method,signal:this.ctrl.signal,headers:this.config.headers,body:e});if(!n.ok){this.onError();return}try{let r=Rv(n,this.ctrl.signal);for await(let i of r)i.data&&i.data.trim()!=="[DONE]"&&this.onMessage(i.data)}catch(r){console.error("error",r),this.onError()}finally{this.onClose()}}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(e){this.listener.onMessage(e)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class cg extends Eo{constructor(e,n){super(e,n,"custom"),this.aiModelConfig={protocol:"sse",...n.models.custom}}createAiClient(e,n){var a;const r=this.aiModelConfig,i={onStart:n.onStart,onStop:n.onStop,onMessage:s=>{var u;const l=this.aiModelConfig,c=(u=l.parseMessage)==null?void 0:u.call(l,s);c&&n.onMessage(c)}},o={url:e,method:r.method||"post",headers:(a=r.headers)==null?void 0:a.call(r)};return r.protocol==="sse"?new Jc(o,i):r.protocol==="http"?new sg(o,i):new rg(e,i)}wrapPayload(e){var r;const n=this.aiModelConfig;return(r=n.wrapPayload)==null?void 0:r.call(n,e)}createAiClientUrl(){var n;const e=this.aiModelConfig;return typeof e.url=="string"?e.url:(n=e.url)==null?void 0:n.call(e)}}class ug extends Eo{constructor(e,n){super(e,n,"openai"),this.aiModelConfig={endpoint:"https://api.openai.com",...n.models.openai}}createAiClient(e,n){const r=this.aiModelConfig,i={"Content-Type":"application/json"};return r.apiKey&&(i.Authorization=`Bearer ${r.apiKey}`),new Jc({url:e,method:"post",headers:i},{onStart:n.onStart,onStop:n.onStop,onMessage:o=>{var s,l;let a=null;try{a=JSON.parse(o)}catch(c){console.error("error",c,o);return}!a.choices||a.choices.length===0||(n.onMessage({status:a.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((s=a.choices[0].delta)==null?void 0:s.content)||"",index:a.choices[0].index}),this.globalConfig.onTokenConsume&&((l=a.choices[0].usage)!=null&&l.total_tokens)&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,a.choices[0].usage.total_tokens))}})}wrapPayload(e){const n=this.aiModelConfig,r={messages:[{role:"user",content:e}],max_tokens:n.maxTokens||null,temperature:n.temperature||null,stream:!0};return n.model&&(r.model=n.model),JSON.stringify(r)}createAiClientUrl(){const e=this.aiModelConfig;if(e.customUrl){if(typeof e.customUrl=="string")return e.customUrl;if(typeof e.customUrl=="function")return e.customUrl()}return`${e.endpoint}/v1/chat/completions`}}class Ov extends Eo{constructor(e,n){super(e,n,"gitee"),this.aiModelConfig={top_p:.7,top_k:50,...n.models.gitee}}createAiClient(e,n){const r=this.aiModelConfig;return new Jc({url:e,method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.apiKey}`}},{onStart:n.onStart,onStop:n.onStop,onMessage:i=>{var a,s;let o=null;try{o=JSON.parse(i)}catch(l){console.error("error",l,i);return}n.onMessage({status:o.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((a=o.choices[0].delta)==null?void 0:a.content)||"",index:o.choices[0].index}),this.globalConfig.onTokenConsume&&((s=o.usage)!=null&&s.total_tokens)&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,o.usage.total_tokens)}})}wrapPayload(e){const n=this.aiModelConfig,r={messages:[{role:"user",content:e}],stream:!0,max_tokens:n.maxTokens||null,temperature:n.temperature||null,top_p:n.top_p,top_k:n.top_k};return JSON.stringify(r)}createAiClientUrl(){const{endpoint:e}=this.aiModelConfig;return e}}class En{static init(e,n){var r;if(n&&n.models)for(let i of Object.keys(n.models))switch(i){case"spark":this.set(i,new ag(e,n));break;case"wenxin":this.set(i,new lg(e,n));break;case"openai":this.set(i,new ug(e,n));break;case"gitee":this.set(i,new Ov(e,n));break;case"custom":this.set(i,new cg(e,n));break;default:const o=(r=n.modelFactory)==null?void 0:r.create(i,e,n);o&&this.set(i,o)}}static get(e){return(!e||e==="auto")&&(e=Object.keys(this.models)[0]),this.models[e]}static set(e,n){this.models[e]=n}}L(En,"models",{});const Nv=t=>{let e="";return t.descendants(n=>{n.text&&(e+=n.text)}),e};class Oa{constructor(e,n){L(this,"editor");L(this,"from");L(this,"options");this.editor=e,this.from=e.view.state.selection.from,this.options=n||{markdownParseEnable:!0}}onStart(){}onStop(){}onMessage(e){const{state:{tr:n},view:r}=this.editor;if(r.dispatch(n.insertText(e.content)),e.status==2&&this.options.markdownParseEnable){const i=this.editor.state.selection.to,o=this.editor.state.doc.textBetween(this.from,i),{state:{tr:a},view:s}=this.editor,l=this.editor.parseMarkdown(o);if(this.options.useMarkdownTextOnly){const c=Nv(l),u=this.editor.schema.text(c);s.dispatch(a.replaceWith(this.from,i,u).scrollIntoView())}else s.dispatch(a.replaceWith(this.from,i,l).scrollIntoView())}this.editor.commands.scrollIntoView()}}const Av=[{icon:'',name:"ai-continuation",prompt:`{content} 请帮我继续扩展一些这段话的内容。 注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"focusBefore",model:"auto"},{icon:'',name:"ai-optimization",prompt:`{content} 请帮我优化一下这段文字的内容,并返回结果 注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"selected",model:"auto"},{icon:'',name:"ai-proofreading",prompt:`{content} 请帮我找出这段话的错别字,把错别字修改后,并返回结果,不要解释或其他多余的内容 -注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"selected",model:"auto"},{icon:'',name:"ai-translation",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",text:"selected",model:"auto"}];class vv extends mi{constructor(){super();w(this,"aiMenus",yv.map(n=>({...n,name:`${ce(n.name)}`})));this.dropDivHeight="auto",this.dropDivWith="fit-content",this.width="36px",this.menuTextWidth="20px"}onCreate(n,r){var i;super.onCreate(n,r),this.menuData=((i=r.ai)==null?void 0:i.menus)||this.aiMenus}renderTemplate(){this.template=` +注意:你应该先判断一下这句话是中文还是英文,如果是中文,请给我返回中文的内容,如果是英文,请给我返回英文内容,只需要返回内容即可,不需要告知我是中文还是英文。`,text:"selected",model:"auto"},{icon:'',name:"ai-translation",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",text:"selected",model:"auto"}];class Iv extends mi{constructor(){super();L(this,"aiMenus",Av.map(n=>({...n,name:`${ce(n.name)}`})));this.dropDivHeight="auto",this.dropDivWith="fit-content",this.width="36px",this.menuTextWidth="20px"}onCreate(n,r){var i;super.onCreate(n,r),this.menuData=((i=r.ai)==null?void 0:i.menus)||this.aiMenus}renderTemplate(){this.template=`
`}createMenuElement(){const n=document.createElement("div");n.style.height=this.dropDivHeight,n.style.width=this.dropDivWith,n.classList.add("aie-dropdown-container");for(let r=0;r${this.onDropdownItemRender(r)}
- `,i.addEventListener("click",o=>{const a=this.menuData[r];a.onClick?a.onClick(o)&&this.tippyInstance.hide():(this.onDropdownItemClick(r),this.tippyInstance.hide())}),n.appendChild(i)}return this.tippyEl=n,n}onTransaction(n){}onDropdownActive(n,r){return!1}getSelectedText(n){if(n==="selected"){const{selection:r,doc:i}=this.editor.state;return i.textBetween(r.from,r.to)}else return this.editor.state.selection.$head.parent.textContent}onDropdownItemClick(n){const r=this.menuData[n],i=this.getSelectedText(r.text);if(i){const o=En.get(r.model);o?o==null||o.chat(i,r.prompt,new Ra(this.editor)):console.error("Ai model config error.")}else console.error("Can not get selected text.")}onDropdownItemRender(n){return`
${this.menuData[n].icon}
${this.menuData[n].name}
`}onMenuTextRender(n){return this.menuData[n].icon}}class Rv extends me{constructor(){super(),this.template=` + `,i.addEventListener("click",o=>{const a=this.menuData[r];a.onClick?a.onClick(o)&&this.tippyInstance.hide():(this.onDropdownItemClick(r),this.tippyInstance.hide())}),n.appendChild(i)}return this.tippyEl=n,n}onTransaction(n){}onDropdownActive(n,r){return!1}getSelectedText(n){if(n==="selected"){const{selection:r,doc:i}=this.editor.state;return i.textBetween(r.from,r.to)}else return this.editor.state.selection.$head.parent.textContent}onDropdownItemClick(n){const r=this.menuData[n],i=this.getSelectedText(r.text);if(i){const o=En.get(r.model);o?o==null||o.chat(i,r.prompt,new Oa(this.editor)):console.error("Ai model config error.")}else console.error("Can not get selected text.")}onDropdownItemRender(n){return`
${this.menuData[n].icon}
${this.menuData[n].name}
`}onMenuTextRender(n){return this.menuData[n].icon}}class xv extends me{constructor(){super(),this.template=`
- `,this.registerClickListener()}onClick(e){var n;(n=this.editor)!=null&&n.isActive("container")?e.unsetContainer():e.setContainer("warning"),e.focus()}onActive(e){return e.isActive("container")}}class Ov extends me{constructor(){super();w(this,"config")}onConfig(n){this.config=n,n.html?this.template=n.html:n.icon&&(this.template=`
${n.icon}
`),this.addEventListener("click",r=>{this.config&&this.config.onClick&&this.config.onClick(r,this.editor.aiEditor)})}}const re=(t,e)=>{window.customElements.get(t)||window.customElements.define(t,e)},ig=(t,e,n,r)=>{for(let i of r)if(i)try{if(typeof i=="string"){i=i.trim(),i==="|"&&(i="divider");const o=document.createElement("aie-"+i);if(o.classList.add("aie-menu-item"),e.editable===!1&&(o.style.pointerEvents="none",o.style.opacity="0.5"),o.onCreate(t,e),i!=="divider"){const a=ce(i);o.setAttribute("data-title",a),o.setAttribute("data-size",e.toolbarSize),a&&we(o,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:a,theme:"aietip",arrow:!0})}n.push(o)}else if(i.toolbarKeys){const o=i,a=document.createElement("aie-group");a.classList.add("aie-menu-item"),e.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),a.onCreate(t,e),a.init(t,e,o);const s=ce(o.title||"menu-group");s&&we(a,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0}),n.push(a)}else{const o=i,a=document.createElement("aie-custom");if(a.classList.add("aie-menu-item"),e.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),o.id&&a.setAttribute("id",o.id),o.className&&a.classList.add(o.className),a.onCreate(t,e),a.onConfig(o),o.tip){const s=ce(o.tip);s&&we(a,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0})}o.onCreate&&o.onCreate(a,t.editor.aiEditor),n.push(a)}}catch(o){console.error(o,"Can not create toolbar by key: "+i)}};class Nv extends me{constructor(){super();w(this,"menuButtons",[]);w(this,"tippyInstance");w(this,"tippyEl");w(this,"iconSvg",'')}onCreate(n,r){super.onCreate(n,r)}init(n,r,i){ig(n,r,this.menuButtons,i.toolbarKeys),this.iconSvg=i.icon||this.iconSvg}renderTemplate(){this.template=`
${this.iconSvg}
`}onTransaction(n){for(let r of this.menuButtons)r.onTransaction(n)}connectedCallback(){this.renderTemplate(),super.connectedCallback(),this.tippyInstance=we(this.querySelector("#tippy"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const n=document.createElement("div");n.classList.add("aie-dropdown-container");for(let r=0;r{if(s.target.closest(".aie-menu-item"))return;const c=o.querySelector("#tippy");if(c){c.click();return}const u=o.querySelector("#dropdown");if(u){u.click();return}i.click()}),n.appendChild(o)}return this.tippyEl=n,n}}const Av=["undo","redo","brush","eraser","divider","heading","font-family","font-size","divider","bold","italic","underline","strike","link","code","subscript","superscript","hr","todo","emoji","divider","highlight","font-color","divider","align","line-height","divider","bullet-list","ordered-list","indent-decrease","indent-increase","break","divider","image","video","attachment","quote","container","code-block","table","divider","source-code","printer","fullscreen","ai"];re("aie-undo",Rf);re("aie-undo",Rf);re("aie-redo",fC);re("aie-brush",ov);re("aie-container",Rv);re("aie-custom",Ov);re("aie-eraser",Xy);re("aie-heading",Sy);re("aie-font-family",Ty);re("aie-font-size",yy);re("aie-bold",vy);re("aie-italic",Ry);re("aie-underline",Oy);re("aie-strike",Ny);re("aie-link",Gy);re("aie-source-code",Vy);re("aie-code",Qy);re("aie-subscript",Ay);re("aie-superscript",Iy);re("aie-highlight",My);re("aie-font-color",wy);re("aie-divider",Ly);re("aie-bullet-list",ky);re("aie-ordered-list",Py);re("aie-indent-decrease",Fy);re("aie-indent-increase",By);re("aie-align",Hy);re("aie-todo",Yy);re("aie-line-height",$y);re("aie-break",ev);re("aie-quote",qy);re("aie-image",Wy);re("aie-video",Ky);re("aie-code-block",Zy);re("aie-hr",jy);re("aie-table",Jy);re("aie-attachment",tv);re("aie-fullscreen",nv);re("aie-printer",rv);re("aie-emoji",iv);re("aie-ai",vv);re("aie-group",Nv);class og extends HTMLElement{constructor(){super();w(this,"menuButtons",[])}connectedCallback(){if(this.children&&this.children.length>0)return;const n=document.createElement("div");for(let r of this.menuButtons)n.appendChild(r);n.style.display="flex",n.style.flexWrap="wrap",this.appendChild(n)}onCreate(n,r){let i=r.toolbarKeys||Av;i=i.filter(o=>{var a;return typeof o=="string"?!((a=r.toolbarExcludeKeys)!=null&&a.includes(o)):!0}).filter((o,a,s)=>{const l=s[a-1];if(typeof o=="string"&&(typeof l=="string"||typeof l>"u")){const c=["divider","|",void 0];return c.includes(o)?!c.includes(l):!0}return!0}),ig(n,r,this.menuButtons,i)}onTransaction(n){for(let r of this.menuButtons)r.onTransaction(n)}onEditableChange(n){for(let r of this.menuButtons)r.onEditableChange(n)}}class ag extends HTMLElement{constructor(){super();w(this,"count",0);w(this,"draggable",!0)}initDraggable(n){if(this.draggable=!!n,!this.draggable)return;let r,i,o=300,a=300,s,l,c;const u=p=>{p.preventDefault(),document.removeEventListener("mouseup",u),document.removeEventListener("mousemove",d)},d=p=>{const _=p.clientX-r,m=p.clientY-i;if(_==0&&m==0)return;let f=s+_,g=l+m;f{var m;p.target.closest("svg")&&(p.preventDefault(),document.addEventListener("mouseup",u),document.addEventListener("mousemove",d),c=(m=p.target.closest(".aie-container"))==null?void 0:m.parentElement,s=c.clientWidth,l=c.clientHeight,r=p.clientX,i=p.clientY)}),this.addEventListener("mouseup",u)}updateCharacters(){this.draggable?this.innerHTML=`
+ `,this.registerClickListener()}onClick(e){var n;(n=this.editor)!=null&&n.isActive("container")?e.unsetContainer():e.setContainer("warning"),e.focus()}onActive(e){return e.isActive("container")}}class Dv extends me{constructor(){super();L(this,"config")}onConfig(n){this.config=n,n.html?this.template=n.html:n.icon&&(this.template=`
${n.icon}
`),this.addEventListener("click",r=>{this.config&&this.config.onClick&&this.config.onClick(r,this.editor.aiEditor)})}}const re=(t,e)=>{window.customElements.get(t)||window.customElements.define(t,e)},dg=(t,e,n,r)=>{for(let i of r)if(i)try{if(typeof i=="string"){i=i.trim(),i==="|"&&(i="divider");const o=document.createElement("aie-"+i);if(o.classList.add("aie-menu-item"),e.editable===!1&&(o.style.pointerEvents="none",o.style.opacity="0.5"),o.onCreate(t,e),i!=="divider"){const a=ce(i);o.setAttribute("data-title",a),o.setAttribute("data-size",e.toolbarSize),a&&we(o,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:a,theme:"aietip",arrow:!0})}n.push(o)}else if(i.toolbarKeys){const o=i,a=document.createElement("aie-group");if(a.classList.add("aie-menu-item"),e.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),a.onCreate(t,e),a.init(t,e,o),o.title){const s=ce(o.title);s&&we(a,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0})}n.push(a)}else{const o=i,a=document.createElement("aie-custom");if(a.classList.add("aie-menu-item"),e.editable===!1&&(a.style.pointerEvents="none",a.style.opacity="0.5"),o.id&&a.setAttribute("id",o.id),o.className&&a.classList.add(o.className),a.onCreate(t,e),a.onConfig(o),o.tip){const s=ce(o.tip);s&&we(a,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:s,theme:"aietip",arrow:!0})}o.onCreate&&o.onCreate(a,t.editor.aiEditor),n.push(a)}}catch(o){console.error(o,"Can not create toolbar by key: "+i)}};class Mv extends me{constructor(){super();L(this,"menuButtons",[]);L(this,"tippyInstance");L(this,"tippyEl");L(this,"iconSvg",'')}onCreate(n,r){super.onCreate(n,r)}init(n,r,i){dg(n,r,this.menuButtons,i.toolbarKeys),this.iconSvg=i.icon||this.iconSvg}renderTemplate(){this.template=`
${this.iconSvg}
`}onTransaction(n){for(let r of this.menuButtons)r.onTransaction(n)}connectedCallback(){this.renderTemplate(),super.connectedCallback(),this.tippyInstance=we(this.querySelector("#tippy"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const n=document.createElement("div");n.classList.add("aie-dropdown-container");for(let r=0;r{if(s.target.closest(".aie-menu-item"))return;const c=o.querySelector("#tippy");if(c){c.click();return}const u=o.querySelector("#dropdown");if(u){u.click();return}i.click()}),n.appendChild(o)}return this.tippyEl=n,n}}const wv=["undo","redo","brush","eraser","divider","heading","font-family","font-size","divider","bold","italic","underline","strike","link","code","subscript","superscript","hr","todo","emoji","divider","highlight","font-color","divider","align","line-height","divider","bullet-list","ordered-list","indent-decrease","indent-increase","break","divider","image","video","attachment","quote","container","code-block","table","divider","source-code","printer","fullscreen","ai"];re("aie-undo",Mf);re("aie-undo",Mf);re("aie-redo",bC);re("aie-brush",uv);re("aie-container",xv);re("aie-custom",Dv);re("aie-eraser",nv);re("aie-heading",vy);re("aie-font-family",Oy);re("aie-font-size",Ay);re("aie-bold",Iy);re("aie-italic",xy);re("aie-underline",Dy);re("aie-strike",My);re("aie-link",qy);re("aie-source-code",Wy);re("aie-code",ev);re("aie-subscript",wy);re("aie-superscript",Ly);re("aie-highlight",Fy);re("aie-font-color",By);re("aie-divider",Uy);re("aie-bullet-list",Hy);re("aie-ordered-list",Gy);re("aie-indent-decrease",Vy);re("aie-indent-increase",Yy);re("aie-align",$y);re("aie-todo",Ky);re("aie-line-height",Zy);re("aie-break",ov);re("aie-quote",Xy);re("aie-image",jy);re("aie-video",Jy);re("aie-code-block",tv);re("aie-hr",rv);re("aie-table",iv);re("aie-attachment",av);re("aie-fullscreen",sv);re("aie-printer",lv);re("aie-emoji",cv);re("aie-ai",Iv);re("aie-group",Mv);class pg extends HTMLElement{constructor(){super();L(this,"menuButtons",[])}connectedCallback(){if(this.children&&this.children.length>0)return;const n=document.createElement("div");for(let r of this.menuButtons)n.appendChild(r);n.style.display="flex",n.style.flexWrap="wrap",this.appendChild(n)}onCreate(n,r){let i=r.toolbarKeys||wv;i=i.filter(o=>{var a;return typeof o=="string"?!((a=r.toolbarExcludeKeys)!=null&&a.includes(o)):!0}).filter((o,a,s)=>{const l=s[a-1];if(typeof o=="string"&&(typeof l=="string"||typeof l>"u")){const c=["divider","|",void 0];return c.includes(o)?!c.includes(l):!0}return!0}),dg(n,r,this.menuButtons,i)}onTransaction(n){for(let r of this.menuButtons)r.onTransaction(n)}onEditableChange(n){for(let r of this.menuButtons)r.onEditableChange(n)}}class _g extends HTMLElement{constructor(){super();L(this,"count",0);L(this,"draggable",!0)}initDraggable(n){if(this.draggable=!!n,!this.draggable)return;let r,i,o=300,a=300,s,l,c;const u=p=>{p.preventDefault(),document.removeEventListener("mouseup",u),document.removeEventListener("mousemove",d)},d=p=>{const _=p.clientX-r,m=p.clientY-i;if(_==0&&m==0)return;let f=s+_,g=l+m;f{var m;p.target.closest("svg")&&(p.preventDefault(),document.addEventListener("mouseup",u),document.addEventListener("mousemove",d),c=(m=p.target.closest(".aie-container"))==null?void 0:m.parentElement,s=c.clientWidth,l=c.clientHeight,r=p.clientX,i=p.clientY)}),this.addEventListener("mouseup",u)}updateCharacters(){this.draggable?this.innerHTML=`
Powered by AiEditor, Characters: ${this.count}
@@ -343,16 +343,16 @@ img.ProseMirror-separator { `:this.innerHTML=`
Powered by AiEditor, Characters: ${this.count}
- `}onCreate(n,r){this.count=n.editor.storage.characterCount.characters(),this.updateCharacters()}onTransaction(n){const r=n.editor.storage.characterCount.characters();r!=this.count&&(this.count=r,this.updateCharacters())}onEditableChange(n){}}const Iv=/^\s*>\s$/,xv=Ne.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Sr({find:Iv,type:this.type})]}}),Dv=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Mv=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,wv=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Lv=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,kv=ft.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Er({find:Dv,type:this.type}),Er({find:wv,type:this.type})]},addPasteRules(){return[Vn({find:Mv,type:this.type}),Vn({find:Lv,type:this.type})]}}),Pv="listItem",yp="textStyle",vp=/^\s*([-+*])\s$/,Fv=Ne.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Pv,this.editor.getAttributes(yp)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Sr({find:vp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Sr({find:vp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(yp),editor:this.editor})),[t]}}),Bv=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,Uv=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,Hv=ft.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Er({find:Bv,type:this.type})]},addPasteRules(){return[Vn({find:Uv,type:this.type})]}}),Gv=/^```([a-z]+)?[\s\n]$/,Vv=/^~~~([a-z]+)?[\s\n]$/,sg=Ne.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,o=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",pe(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(` + `}onCreate(n,r){this.count=n.editor.storage.characterCount.characters(),this.updateCharacters()}onTransaction(n){const r=n.editor.storage.characterCount.characters();r!=this.count&&(this.count=r,this.updateCharacters())}onEditableChange(n){}}const Lv=/^\s*>\s$/,kv=Ne.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Sr({find:Lv,type:this.type})]}}),Pv=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Fv=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Bv=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Uv=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Hv=ft.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Er({find:Pv,type:this.type}),Er({find:Bv,type:this.type})]},addPasteRules(){return[Yn({find:Fv,type:this.type}),Yn({find:Uv,type:this.type})]}}),Gv="listItem",Ap="textStyle",Ip=/^\s*([-+*])\s$/,Vv=Ne.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Gv,this.editor.getAttributes(Ap)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Sr({find:Ip,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Sr({find:Ip,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Ap),editor:this.editor})),[t]}}),Yv=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,zv=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,$v=ft.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Er({find:Yv,type:this.type})]},addPasteRules(){return[Yn({find:zv,type:this.type})]}}),qv=/^```([a-z]+)?[\s\n]$/,Wv=/^~~~([a-z]+)?[\s\n]$/,mg=Ne.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,o=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",pe(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(` -`);return!o||!a?!1:t.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?t.commands.command(({tr:c})=>(c.setSelection(te.near(r.resolve(s))),!0)):t.commands.exitCode()}}},addInputRules(){return[Wl({find:Gv,type:this.type,getAttributes:t=>({language:t[1]})}),Wl({find:Vv,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new be({key:new ve("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:a,schema:s}=t.state,l=s.text(n.replace(/\r\n?/g,` -`));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(Z.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}}),Yv=Ne.create({name:"doc",topNode:!0,content:"block+"});function zv(t={}){return new be({view(e){return new $v(e,t)}})}class $v{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return e.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let s=e.nodeBefore,l=e.nodeAfter;if(s||l){let c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=s?u.bottom:u.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Tm(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const qv=ge.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[zv(this.options)]}});class Me extends te{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Me.valid(r)?new Me(r):te.near(r)}content(){return H.empty}eq(e){return e instanceof Me&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Me(e.resolve(n.pos))}getBookmark(){return new Zc(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!Wv(e)||!Kv(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Me.valid(e))return e;let i=e.pos,o=null;for(let a=e.depth;;a--){let s=e.node(a);if(n>0?e.indexAfter(a)0){o=s.child(n>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;i+=n;let l=e.doc.resolve(i);if(Me.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!ee.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=e.doc.resolve(i);if(Me.valid(s))return s}return null}}}Me.prototype.visible=!1;Me.findFrom=Me.findGapCursorFrom;te.jsonID("gapcursor",Me);class Zc{constructor(e){this.pos=e}map(e){return new Zc(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Me.valid(n)?new Me(n):te.near(n)}}function Wv(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Kv(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Qv(){return new be({props:{decorations:Jv,createSelectionBetween(t,e,n){return e.pos==n.pos&&Me.valid(n)?new Me(n):null},handleClick:Xv,handleKeyDown:Zv,handleDOMEvents:{beforeinput:jv}}})}const Zv=Ic({ArrowLeft:wo("horiz",-1),ArrowRight:wo("horiz",1),ArrowUp:wo("vert",-1),ArrowDown:wo("vert",1)});function wo(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,o){let a=r.selection,s=e>0?a.$to:a.$from,l=a.empty;if(a instanceof Z){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(e>0?s.after():s.before())}let c=Me.findGapCursorFrom(s,e,l);return c?(i&&i(r.tr.setSelection(new Me(c))),!0):!1}}function Xv(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Me.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&ee.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Me(r))),!0)}function jv(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Me))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=L.empty;for(let a=r.length-1;a>=0;a--)i=L.from(r[a].createAndFill(null,i));let o=t.state.tr.replace(n.pos,n.pos,new H(i,0,0));return o.setSelection(Z.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function Jv(t){if(!(t.selection instanceof Me))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Se.create(t.doc,[Fe.widget(t.selection.head,e,{key:"gapcursor"})])}const eR=ge.create({name:"gapCursor",addProseMirrorPlugins(){return[Qv()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=le(W(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),tR=Ne.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",pe(this.options.HTMLAttributes,t)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&a){const d=l.filter(p=>s.includes(p.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lg=Ne.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,pe(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Wl({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Oa=200,$e=function(){};$e.prototype.append=function(e){return e.length?(e=$e.from(e),!this.length&&e||e.length=n?$e.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};$e.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};$e.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};$e.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(e(o,a))},n,r),i};$e.from=function(e){return e instanceof $e?e:e&&e.length?new cg(e):$e.empty};var cg=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Oa)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Oa)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}($e);$e.empty=new cg([]);var nR=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}($e);const rR=500;class Ht{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=e.tr,s,l,c=[],u=[];return this.items.forEach((d,p)=>{if(!d.step){i||(i=this.remapping(r,p+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new $t(d.map));let _=d.step.map(i.slice(o)),m;_&&a.maybeStep(_).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],c.push(new $t(m,void 0,void 0,c.length+u.length))),o--,m&&i.appendMap(m,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new Ht(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(e,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;uoR&&(s=iR(s,c),a-=c),new Ht(s.append(o),a)}remapping(e,n){let r=new Kr;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},e,n),r}addMaps(e){return this.eventCount==0?this:new Ht(this.items.append(e.map(n=>new $t(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(p=>{p.selection&&s--},i);let l=n;this.items.forEach(p=>{let _=o.getMirror(--l);if(_==null)return;a=Math.min(a,_);let m=o.maps[_];if(p.step){let f=e.steps[_].invert(e.docs[_]),g=p.selection&&p.selection.map(o.slice(l+1,_));g&&s++,r.push(new $t(m,f,g))}else r.push(new $t(m))},i);let c=[];for(let p=n;prR&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=e)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=a.selection&&a.selection.map(n.slice(r));u&&o++;let d=new $t(c.invert(),l,u),p,_=i.length-1;(p=i.length&&i[_].merge(d))?i[_]=p:i.push(d)}}else a.map&&r--},this.items.length,0),new Ht($e.from(i.reverse()),o)}}Ht.empty=new Ht($e.empty,0);function iR(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class $t{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new $t(n.getMap().invert(),n,this.selection)}}}class vn{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const oR=20;function aR(t,e,n,r){let i=n.getMeta(dr),o;if(i)return i.historyState;n.getMeta(cR)&&(t=new vn(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(dr))return a.getMeta(dr).redo?new vn(t.done.addTransform(n,void 0,r,ea(e)),t.undone,Rp(n.mapping.maps),t.prevTime,t.prevComposition):new vn(t.done,t.undone.addTransform(n,void 0,r,ea(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=t.prevTime==0||!a&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!sR(n,t.prevRanges)),c=a?rl(t.prevRanges,n.mapping):Rp(n.mapping.maps);return new vn(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,ea(e)),Ht.empty,c,n.time,s??t.prevComposition)}else return(o=n.getMeta("rebased"))?new vn(t.done.rebased(n,o),t.undone.rebased(n,o),rl(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new vn(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),rl(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function sR(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=e[o]&&(n=!0)}),n}function Rp(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,o,a)=>e.push(o,a));return e}function rl(t,e){if(!t)return null;let n=[];for(let r=0;r{let i=dr.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let o=lR(i,n,t);o&&r(e?o.scrollIntoView():o)}return!0}}const dg=ug(!1,!0),pg=ug(!0,!0),dR=ge.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>dg(t,e),redo:()=>({state:t,dispatch:e})=>pg(t,e)}},addProseMirrorPlugins(){return[uR(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),pR=Ne.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:i}=n,o=t();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):vf(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:a,dispatch:s})=>{var l;if(s){const{$to:c}=a.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?a.setSelection(Z.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(ee.create(a.doc,c.pos)):a.setSelection(Z.create(a.doc,c.pos));else{const d=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(a.insert(u,d),a.setSelection(Z.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Bc({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),_R=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,mR=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,fR=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,gR=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,hR=ft.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Er({find:_R,type:this.type}),Er({find:fR,type:this.type})]},addPasteRules(){return[Vn({find:mR,type:this.type}),Vn({find:gR,type:this.type})]}}),ER=Ne.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),SR="listItem",Np="textStyle",Ap=/^(\d+)\.\s$/,bR=Ne.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",pe(this.options.HTMLAttributes,n),0]:["ol",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(SR,this.editor.getAttributes(Np)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Sr({find:Ap,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Sr({find:Ap,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Np)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),TR=Ne.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),CR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,yR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,vR=ft.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Er({find:CR,type:this.type})]},addPasteRules(){return[Vn({find:yR,type:this.type})]}}),RR=Ne.create({name:"text",group:"inline"}),OR=ge.create({name:"starterKit",addExtensions(){var t,e,n,r,i,o,a,s,l,c,u,d,p,_,m,f,g,E;const S=[];return this.options.bold!==!1&&S.push(kv.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&S.push(xv.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&S.push(Fv.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&S.push(Hv.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&S.push(sg.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&S.push(Yv.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&S.push(qv.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&S.push(eR.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&S.push(tR.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&S.push(lg.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&S.push(dR.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&S.push(pR.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&S.push(hR.configure((p=this.options)===null||p===void 0?void 0:p.italic)),this.options.listItem!==!1&&S.push(ER.configure((_=this.options)===null||_===void 0?void 0:_.listItem)),this.options.orderedList!==!1&&S.push(bR.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&S.push(TR.configure((f=this.options)===null||f===void 0?void 0:f.paragraph)),this.options.strike!==!1&&S.push(vR.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&S.push(RR.configure((E=this.options)===null||E===void 0?void 0:E.text)),S}}),NR=ft.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),AR=ft.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Pc(t,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:e.unsetMark(this.name)}}}}),IR=ge.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{var e;return(e=t.style.fontFamily)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),_g=t=>{const e=document.createElement("div");return e.classList.add("aie-loader-placeholder"),e.innerHTML=` +`);return!o||!a?!1:t.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?t.commands.command(({tr:c})=>(c.setSelection(te.near(r.resolve(s))),!0)):t.commands.exitCode()}}},addInputRules(){return[Kl({find:qv,type:this.type,getAttributes:t=>({language:t[1]})}),Kl({find:Wv,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Se({key:new ve("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:a,schema:s}=t.state,l=s.text(n.replace(/\r\n?/g,` +`));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(Z.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}}),Kv=Ne.create({name:"doc",topNode:!0,content:"block+"});function Qv(t={}){return new Se({view(e){return new Zv(e,t)}})}class Zv{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return e.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let s=e.nodeBefore,l=e.nodeAfter;if(s||l){let c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=s?u.bottom:u.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Nm(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const Xv=ge.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Qv(this.options)]}});class Me extends te{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Me.valid(r)?new Me(r):te.near(r)}content(){return H.empty}eq(e){return e instanceof Me&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Me(e.resolve(n.pos))}getBookmark(){return new eu(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!jv(e)||!Jv(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Me.valid(e))return e;let i=e.pos,o=null;for(let a=e.depth;;a--){let s=e.node(a);if(n>0?e.indexAfter(a)0){o=s.child(n>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;i+=n;let l=e.doc.resolve(i);if(Me.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!ee.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=e.doc.resolve(i);if(Me.valid(s))return s}return null}}}Me.prototype.visible=!1;Me.findFrom=Me.findGapCursorFrom;te.jsonID("gapcursor",Me);class eu{constructor(e){this.pos=e}map(e){return new eu(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Me.valid(n)?new Me(n):te.near(n)}}function jv(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Jv(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function eR(){return new Se({props:{decorations:iR,createSelectionBetween(t,e,n){return e.pos==n.pos&&Me.valid(n)?new Me(n):null},handleClick:nR,handleKeyDown:tR,handleDOMEvents:{beforeinput:rR}}})}const tR=Mc({ArrowLeft:Lo("horiz",-1),ArrowRight:Lo("horiz",1),ArrowUp:Lo("vert",-1),ArrowDown:Lo("vert",1)});function Lo(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,o){let a=r.selection,s=e>0?a.$to:a.$from,l=a.empty;if(a instanceof Z){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(e>0?s.after():s.before())}let c=Me.findGapCursorFrom(s,e,l);return c?(i&&i(r.tr.setSelection(new Me(c))),!0):!1}}function nR(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Me.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&ee.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Me(r))),!0)}function rR(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Me))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=w.empty;for(let a=r.length-1;a>=0;a--)i=w.from(r[a].createAndFill(null,i));let o=t.state.tr.replace(n.pos,n.pos,new H(i,0,0));return o.setSelection(Z.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function iR(t){if(!(t.selection instanceof Me))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",be.create(t.doc,[ke.widget(t.selection.head,e,{key:"gapcursor"})])}const oR=ge.create({name:"gapCursor",addProseMirrorPlugins(){return[eR()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=le(W(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),aR=Ne.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",pe(this.options.HTMLAttributes,t)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&a){const d=l.filter(p=>s.includes(p.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),fg=Ne.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,pe(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Kl({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Na=200,$e=function(){};$e.prototype.append=function(e){return e.length?(e=$e.from(e),!this.length&&e||e.length=n?$e.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};$e.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};$e.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};$e.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(e(o,a))},n,r),i};$e.from=function(e){return e instanceof $e?e:e&&e.length?new gg(e):$e.empty};var gg=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Na)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Na)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}($e);$e.empty=new gg([]);var sR=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}($e);const lR=500;class Ht{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=e.tr,s,l,c=[],u=[];return this.items.forEach((d,p)=>{if(!d.step){i||(i=this.remapping(r,p+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new $t(d.map));let _=d.step.map(i.slice(o)),m;_&&a.maybeStep(_).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],c.push(new $t(m,void 0,void 0,c.length+u.length))),o--,m&&i.appendMap(m,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new Ht(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(e,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;uuR&&(s=cR(s,c),a-=c),new Ht(s.append(o),a)}remapping(e,n){let r=new Kr;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},e,n),r}addMaps(e){return this.eventCount==0?this:new Ht(this.items.append(e.map(n=>new $t(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(p=>{p.selection&&s--},i);let l=n;this.items.forEach(p=>{let _=o.getMirror(--l);if(_==null)return;a=Math.min(a,_);let m=o.maps[_];if(p.step){let f=e.steps[_].invert(e.docs[_]),g=p.selection&&p.selection.map(o.slice(l+1,_));g&&s++,r.push(new $t(m,f,g))}else r.push(new $t(m))},i);let c=[];for(let p=n;plR&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=e)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=a.selection&&a.selection.map(n.slice(r));u&&o++;let d=new $t(c.invert(),l,u),p,_=i.length-1;(p=i.length&&i[_].merge(d))?i[_]=p:i.push(d)}}else a.map&&r--},this.items.length,0),new Ht($e.from(i.reverse()),o)}}Ht.empty=new Ht($e.empty,0);function cR(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class $t{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new $t(n.getMap().invert(),n,this.selection)}}}class vn{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const uR=20;function dR(t,e,n,r){let i=n.getMeta(dr),o;if(i)return i.historyState;n.getMeta(mR)&&(t=new vn(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(dr))return a.getMeta(dr).redo?new vn(t.done.addTransform(n,void 0,r,ta(e)),t.undone,xp(n.mapping.maps),t.prevTime,t.prevComposition):new vn(t.done,t.undone.addTransform(n,void 0,r,ta(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=t.prevTime==0||!a&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!pR(n,t.prevRanges)),c=a?ol(t.prevRanges,n.mapping):xp(n.mapping.maps);return new vn(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,ta(e)),Ht.empty,c,n.time,s??t.prevComposition)}else return(o=n.getMeta("rebased"))?new vn(t.done.rebased(n,o),t.undone.rebased(n,o),ol(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new vn(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),ol(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function pR(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=e[o]&&(n=!0)}),n}function xp(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,o,a)=>e.push(o,a));return e}function ol(t,e){if(!t)return null;let n=[];for(let r=0;r{let i=dr.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let o=_R(i,n,t);o&&r(e?o.scrollIntoView():o)}return!0}}const Eg=hg(!1,!0),Sg=hg(!0,!0),gR=ge.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Eg(t,e),redo:()=>({state:t,dispatch:e})=>Sg(t,e)}},addProseMirrorPlugins(){return[fR(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),hR=Ne.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:i}=n,o=t();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):Df(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:a,dispatch:s})=>{var l;if(s){const{$to:c}=a.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?a.setSelection(Z.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(ee.create(a.doc,c.pos)):a.setSelection(Z.create(a.doc,c.pos));else{const d=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(a.insert(u,d),a.setSelection(Z.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Vc({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),ER=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,SR=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,bR=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,TR=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,CR=ft.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Er({find:ER,type:this.type}),Er({find:bR,type:this.type})]},addPasteRules(){return[Yn({find:SR,type:this.type}),Yn({find:TR,type:this.type})]}}),yR=Ne.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),vR="listItem",Mp="textStyle",wp=/^(\d+)\.\s$/,RR=Ne.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",pe(this.options.HTMLAttributes,n),0]:["ol",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(vR,this.editor.getAttributes(Mp)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Sr({find:wp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Sr({find:wp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Mp)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),OR=Ne.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),NR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,AR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,IR=ft.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Er({find:NR,type:this.type})]},addPasteRules(){return[Yn({find:AR,type:this.type})]}}),xR=Ne.create({name:"text",group:"inline"}),DR=ge.create({name:"starterKit",addExtensions(){var t,e,n,r,i,o,a,s,l,c,u,d,p,_,m,f,g,S;const E=[];return this.options.bold!==!1&&E.push(Hv.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&E.push(kv.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&E.push(Vv.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&E.push($v.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&E.push(mg.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&E.push(Kv.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&E.push(Xv.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&E.push(oR.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&E.push(aR.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&E.push(fg.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&E.push(gR.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&E.push(hR.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&E.push(CR.configure((p=this.options)===null||p===void 0?void 0:p.italic)),this.options.listItem!==!1&&E.push(yR.configure((_=this.options)===null||_===void 0?void 0:_.listItem)),this.options.orderedList!==!1&&E.push(RR.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&E.push(OR.configure((f=this.options)===null||f===void 0?void 0:f.paragraph)),this.options.strike!==!1&&E.push(IR.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&E.push(xR.configure((S=this.options)===null||S===void 0?void 0:S.text)),E}}),MR=ft.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),wR=ft.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Hc(t,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:e.unsetMark(this.name)}}}}),LR=ge.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),bg=t=>{const e=document.createElement("div");return e.classList.add("aie-loader-placeholder"),e.innerHTML=` - `,Fe.widget(t.pos,e,{id:t.id})},xR=t=>{const e=document.createElement("div");return e.classList.add("aie-loader-placeholder"),e.style.height="20px",e.style.display="inline-block",e.innerHTML=` + `,ke.widget(t.pos,e,{id:t.id})},kR=t=>{const e=document.createElement("div");return e.classList.add("aie-loader-placeholder"),e.style.height="20px",e.style.display="inline-block",e.innerHTML=` ${t.text} - `,Fe.widget(t.pos,e,{id:t.id})},DR=(t,e,n,r)=>{const i=new FormData;return i.append(r,t),new Promise((o,a)=>{fetch(e,{method:"post",headers:{Accept:"application/json",...n},body:i}).then(s=>s.json()).then(s=>{o(s)}).catch(s=>{a(s)})})},MR=(t,e,n,r)=>{let i=new FileReader;return new Promise((o,a)=>{i.onload=()=>o({errorCode:0,data:{src:i.result,href:t.name}}),i.onerror=()=>a(i.error),setTimeout(()=>i.readAsDataURL(t),5e3*Math.random())})},Xc=t=>t?DR:MR,Ip=new ve("aie-attachment-plugin"),Ci="attachment_action",wR=ge.create({name:"attachment",addOptions(){return{uploadUrl:"",uploadHeaders:{},HTMLAttributes:{}}},addCommands(){return{uploadAttachment:t=>()=>{const e=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(t,this.options.uploadUrl,e)===!1)return!1;const n=Es(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(Ci,{type:"add",id:n,pos:r.selection.from,text:t.name}));const a=this.options.uploader||Xc(this.options.uploadUrl),s=this.options.uploadFormName||"attachment";return a(t,this.options.uploadUrl,e,s).then(l=>{var c;if((c=this.options.uploaderEvent)!=null&&c.onSuccess){const u=this.options.uploaderEvent.onSuccess(t,l);if(typeof u=="boolean"&&!u)return;typeof u=="object"&&(l=u)}if(l.errorCode===0&&l.data&&l.data.href){let d=Ip.getState(this.editor.state).find(void 0,void 0,_=>_.id==n);const p=l.data.fileName||t.name;i.dispatch(i.state.tr.insertText(` ${p} `,d[0].from).addMark(d[0].from+1,p.length+d[0].from+1,o.marks.link.create({href:l.data.href,target:"_blank"})).setMeta(Ci,{type:"remove",id:n}))}else i.dispatch(r.setMeta(Ci,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(t,l)}).catch(l=>{const{state:{tr:c},view:u}=this.editor;u.dispatch(c.setMeta(Ci,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(t,l)}),!0}}},addProseMirrorPlugins(){const t=this.editor;return[new be({key:Ip,state:{init:()=>Se.empty,apply:(e,n)=>{const r=e.getMeta(Ci);return n=n.map(e.mapping,e.doc),r&&r.type==="add"?n=n.add(e.doc,[xR(r)]):r&&r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,i=>i.id==r.id))),n}},props:{decorations(e){return this.getState(e)},handleDOMEvents:{drop(e,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const i=Array.from(n.dataTransfer.files).filter(o=>!/video/i.test(o.type)&&!/image/i.test(o.type));return n.preventDefault(),i.forEach(o=>{t.commands.uploadAttachment(o)}),!0}}}})]}}),LR=ge.create({name:"painter",addCommands(){return{setPainter:t=>({view:{dispatch:e,state:{tr:n},dom:r}})=>(r.style.cursor="context-menu",e(n.setMeta("painterAction",{type:"start",marks:t})),!0)}},addProseMirrorPlugins(){return[new be({key:new ve("aie-painter"),state:{init:()=>[],apply:(t,e)=>{const n=t.getMeta("painterAction");return n&&n.type==="start"?e=n.marks:n&&n.type==="end"&&(e=[]),e}},props:{handleDOMEvents:{mousedown(t,e){const n=this.getState(t.state);if(!n||n.length==0)return!1;const r=()=>{document.removeEventListener("mouseup",r);let{dispatch:i,state:{tr:o,selection:a},dom:s}=t;s.style.cursor="",o=o.removeMark(a.from,a.to);for(let l of n)l.type.name!="link"&&(o=o.addMark(a.from,a.to,l));i(o.setMeta("painterAction",{type:"end"}))};return document.addEventListener("mouseup",r),!0}}}})]}}),kR=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,PR=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,FR=ft.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Er({find:kR,type:this.type})]},addPasteRules(){return[Vn({find:PR,type:this.type})]}}),BR=ge.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),UR=ge.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>{var e;return(e=t.style.fontSize)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),HR=ge.create({name:"lineHeight",addOptions(){return{types:["heading","paragraph"],defaultHeight:"100%"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:this.options.defaultHeight,parseHTML:t=>t.style.lineHeight||this.options.defaultHeight,renderHTML:t=>t.lineHeight===this.options.defaultHeight?{}:{style:`line-height: ${t.lineHeight}`}}}}]},addCommands(){return{setLineHeight:t=>({commands:e})=>this.options.types.every(n=>e.updateAttributes(n,{lineHeight:t})),unsetLineHeight:()=>({commands:t})=>this.options.types.every(e=>t.resetAttributes(e,"lineHeight"))}}}),GR=ge.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),VR=ge.create({name:"indent",addOptions(){return{types:["listItem","paragraph"],minLevel:0,maxLevel:8}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:t=>{const e=Number(t.getAttribute("data-indent"));return e&&e>this.options.minLevel?e:null},renderHTML:t=>t.indent?{style:`text-indent: ${(t==null?void 0:t.indent)*2}em`,"data-indent":t==null?void 0:t.indent}:{}}}}]},addCommands(){const t=(r,i,o)=>{var s;const a=(s=r==null?void 0:r.doc)==null?void 0:s.nodeAt(i);if(a){const l=(a.attrs.indent||0)+o,{minLevel:c,maxLevel:u}=this.options,d=lu?u:l;if(d!==a.attrs.indent){const{indent:p,..._}=a.attrs,m=d>c?{..._,indent:d}:_;return r.setNodeMarkup(i,a.type,m,a.marks)}}return r},e=(r,i)=>{const{doc:o,selection:a}=r;if(o&&a&&(a instanceof Z||a instanceof Dt)){const{from:s,to:l}=a;o.nodesBetween(s,l,(c,u)=>this.options.types.includes(c.type.name)?(r=t(r,u,i),!1):!0)}return r},n=r=>()=>({tr:i,state:o,dispatch:a})=>{const{selection:s}=o;return i=i.setSelection(s),i=e(i,r),i.docChanged?(a==null||a(i),!0):!1};return{indent:n(1),outdent:n(-1)}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}}),YR=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,zR=Ne.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[Bc({find:YR,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),mg=(t,e,n)=>{const r=t.querySelector(".resize-obj"),i=10;let o,a,s,l;const c=p=>{p.preventDefault(),e.addEventListener("mousemove",u),e.addEventListener("mouseup",d),e.addEventListener("mouseleave",d),o=p.clientX,a=Number(r.getAttribute("data-with"))||r.clientWidth,s=p.target.getAttribute("data-position"),l=e.clientWidth-100},u=p=>{const _=p.clientX-o;if(_==0)return;const m=s==="right"?_>0:_<0;let f=a+Math.abs(_)*(m?1:-1);f>=l&&(f=l),f{e.removeEventListener("mousemove",u),e.removeEventListener("mouseup",d),e.removeEventListener("mouseleave",d);const p={width:Number(r.getAttribute("data-width"))};n(p)};for(let p of t.querySelector(".aie-resize").children)p.addEventListener("mousedown",c)},$R=t=>typeof t=="number"||!isNaN(+t)?`${t}px`:t,xp=new ve("aie-image-plugin"),yi="image_action",qR=zR.extend({name:"image",draggable:!0,selectable:!0,addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),uploadUrl:"",uploadHeaders:{},uploader:void 0,defaultSize:350}},allowGapCursor(){return!this.options.inline},addAttributes(){return{src:{default:"",parseHTML:t=>`${t.getAttribute("src")??""}`},alt:{default:"",parseHTML:t=>`${t.getAttribute("alt")??""}`,renderHTML:({alt:t})=>t?{alt:t}:{}},title:{default:"",parseHTML:t=>`${t.getAttribute("title")??""}`,renderHTML:({title:t})=>t?{title:t}:{}},width:{default:this.options.defaultSize,parseHTML:t=>`${t.getAttribute("width")??""}`,renderHTML:({width:t})=>t?{width:t}:{}},height:{default:"auto",parseHTML:t=>`${t.getAttribute("height")??""}`,renderHTML:({height:t})=>t?{height:t}:{}},align:{default:"left",parseHTML:t=>t.getAttribute("data-align")||t.getAttribute("align"),renderHTML:({align:t})=>t?{"data-align":t}:{}},"data-src":{default:null,parseHTML:t=>`${t.getAttribute("data-src")??""}`,renderHTML:t=>t["data-src"]?{"data-src":t["data-src"]}:{}},loading:{default:null,parseHTML:t=>`${t.getAttribute("loading")??""}`,renderHTML:({loading:t})=>t?{loading:t}:{}}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){const e=pe(this.options.HTMLAttributes,t);return["div",{style:`text-align:${e["data-align"]||"left"}`},["img",e]]},addCommands(){var t;return{...(t=this.parent)==null?void 0:t.call(this),uploadImage:e=>()=>{const n=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(e,this.options.uploadUrl,n)===!1)return!1;const r=Es(),{state:{tr:i},view:o,schema:a}=this.editor;i.selection.empty||i.deleteSelection(),o.dispatch(i.setMeta(yi,{type:"add",id:r,pos:i.selection.from}));const s=this.options.uploader||Xc(this.options.uploadUrl),l=this.options.uploadFormName||"image";return s(e,this.options.uploadUrl,n,l).then(c=>{var u;if((u=this.options.uploaderEvent)!=null&&u.onSuccess){const d=this.options.uploaderEvent.onSuccess(e,c);if(typeof d=="boolean"&&!d)return;typeof d=="object"&&(c=d)}if(c.errorCode===0&&c.data&&c.data.src){let p=xp.getState(this.editor.state).find(void 0,void 0,_=>_.id==r);o.dispatch(o.state.tr.insert(p[0].from,a.nodes.image.create({src:c.data.src,alt:c.data.alt,align:c.data.align||"left",width:c.data.width||this.options.defaultSize,height:c.data.height||"auto","data-src":c.data["data-src"],loading:c.data.loading,class:c.data.class})).setMeta(yi,{type:"remove",id:r}))}else o.dispatch(i.setMeta(yi,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(e,c)}).catch(c=>{const{state:{tr:u},view:d}=this.editor;d.dispatch(u.setMeta(yi,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,c)}),!0}}},addNodeView(){return t=>{const e=document.createElement("div"),{src:n,width:r,height:i,align:o,alt:a}=t.node.attrs,s=$R(r||350),l=s.indexOf("%")>0?`style="width: ${s};"`:"",c=s.indexOf("%")>0?"calc(100% - 2px)":s;return e.classList.add(`align-${o}`),this.editor.isEditable?(e.innerHTML=` + `,ke.widget(t.pos,e,{id:t.id})},PR=(t,e,n,r)=>{const i=new FormData;return i.append(r,t),new Promise((o,a)=>{fetch(e,{method:"post",headers:{Accept:"application/json",...n},body:i}).then(s=>s.json()).then(s=>{o(s)}).catch(s=>{a(s)})})},FR=(t,e,n,r)=>{let i=new FileReader;return new Promise((o,a)=>{i.onload=()=>o({errorCode:0,data:{src:i.result,href:t.name}}),i.onerror=()=>a(i.error),setTimeout(()=>i.readAsDataURL(t),5e3*Math.random())})},tu=t=>t?PR:FR,Lp=new ve("aie-attachment-plugin"),Ci="attachment_action",BR=ge.create({name:"attachment",addOptions(){return{uploadUrl:"",uploadHeaders:{},HTMLAttributes:{}}},addCommands(){return{uploadAttachment:t=>()=>{const e=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(t,this.options.uploadUrl,e)===!1)return!1;const n=Ss(),{state:{tr:r},view:i,schema:o}=this.editor;r.selection.empty||r.deleteSelection(),i.dispatch(r.setMeta(Ci,{type:"add",id:n,pos:r.selection.from,text:t.name}));const a=this.options.uploader||tu(this.options.uploadUrl),s=this.options.uploadFormName||"attachment";return a(t,this.options.uploadUrl,e,s).then(l=>{var c;if((c=this.options.uploaderEvent)!=null&&c.onSuccess){const u=this.options.uploaderEvent.onSuccess(t,l);if(typeof u=="boolean"&&!u)return;typeof u=="object"&&(l=u)}if(l.errorCode===0&&l.data&&l.data.href){let d=Lp.getState(this.editor.state).find(void 0,void 0,_=>_.id==n);const p=l.data.fileName||t.name;i.dispatch(i.state.tr.insertText(` ${p} `,d[0].from).addMark(d[0].from+1,p.length+d[0].from+1,o.marks.link.create({href:l.data.href,target:"_blank"})).setMeta(Ci,{type:"remove",id:n}))}else i.dispatch(r.setMeta(Ci,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(t,l)}).catch(l=>{const{state:{tr:c},view:u}=this.editor;u.dispatch(c.setMeta(Ci,{type:"remove",id:n})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(t,l)}),!0}}},addProseMirrorPlugins(){const t=this.editor;return[new Se({key:Lp,state:{init:()=>be.empty,apply:(e,n)=>{const r=e.getMeta(Ci);return n=n.map(e.mapping,e.doc),r&&r.type==="add"?n=n.add(e.doc,[kR(r)]):r&&r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,i=>i.id==r.id))),n}},props:{decorations(e){return this.getState(e)},handleDOMEvents:{drop(e,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const i=Array.from(n.dataTransfer.files).filter(o=>!/video/i.test(o.type)&&!/image/i.test(o.type));return n.preventDefault(),i.forEach(o=>{t.commands.uploadAttachment(o)}),!0}}}})]}}),UR=ge.create({name:"painter",addCommands(){return{setPainter:t=>({view:{dispatch:e,state:{tr:n},dom:r}})=>(r.style.cursor="context-menu",e(n.setMeta("painterAction",{type:"start",marks:t})),!0)}},addProseMirrorPlugins(){return[new Se({key:new ve("aie-painter"),state:{init:()=>[],apply:(t,e)=>{const n=t.getMeta("painterAction");return n&&n.type==="start"?e=n.marks:n&&n.type==="end"&&(e=[]),e}},props:{handleDOMEvents:{mousedown(t,e){const n=this.getState(t.state);if(!n||n.length==0)return!1;const r=()=>{document.removeEventListener("mouseup",r);let{dispatch:i,state:{tr:o,selection:a},dom:s}=t;s.style.cursor="",o=o.removeMark(a.from,a.to);for(let l of n)l.type.name!="link"&&(o=o.addMark(a.from,a.to,l));i(o.setMeta("painterAction",{type:"end"}))};return document.addEventListener("mouseup",r),!0}}}})]}}),HR=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,GR=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,VR=ft.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Er({find:HR,type:this.type})]},addPasteRules(){return[Yn({find:GR,type:this.type})]}}),YR=ge.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),zR=ge.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>{var e;return(e=t.style.fontSize)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),$R=ge.create({name:"lineHeight",addOptions(){return{types:["heading","paragraph"],defaultHeight:"100%"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:this.options.defaultHeight,parseHTML:t=>t.style.lineHeight||this.options.defaultHeight,renderHTML:t=>t.lineHeight===this.options.defaultHeight?{}:{style:`line-height: ${t.lineHeight}`}}}}]},addCommands(){return{setLineHeight:t=>({commands:e})=>this.options.types.every(n=>e.updateAttributes(n,{lineHeight:t})),unsetLineHeight:()=>({commands:t})=>this.options.types.every(e=>t.resetAttributes(e,"lineHeight"))}}}),qR=ge.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),WR=ge.create({name:"indent",priority:99,addOptions(){return{types:["listItem","paragraph"],minLevel:0,maxLevel:8}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:t=>{const e=Number(t.getAttribute("data-indent"));return e&&e>this.options.minLevel?e:null},renderHTML:t=>t.indent?{style:`text-indent: ${(t==null?void 0:t.indent)*2}em`,"data-indent":t==null?void 0:t.indent}:{}}}}]},addCommands(){const t=(r,i,o)=>{var s;const a=(s=r==null?void 0:r.doc)==null?void 0:s.nodeAt(i);if(a){const l=(a.attrs.indent||0)+o,{minLevel:c,maxLevel:u}=this.options,d=lu?u:l;if(d!==a.attrs.indent){const{indent:p,..._}=a.attrs,m=d>c?{..._,indent:d}:_;return r.setNodeMarkup(i,a.type,m,a.marks)}}return r},e=(r,i)=>{const{doc:o,selection:a}=r;if(o&&a&&(a instanceof Z||a instanceof Dt)){const{from:s,to:l}=a;o.nodesBetween(s,l,(c,u)=>this.options.types.includes(c.type.name)?(r=t(r,u,i),!1):!0)}return r},n=r=>()=>({tr:i,state:o,dispatch:a})=>{const{selection:s}=o;return i=i.setSelection(s),i=e(i,r),i.docChanged?(a==null||a(i),!0):!1};return{indent:n(1),outdent:n(-1)}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}}),KR=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,QR=Ne.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[Vc({find:KR,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),Tg=(t,e,n)=>{const r=t.querySelector(".resize-obj"),i=10;let o,a,s,l;const c=p=>{p.preventDefault(),e.addEventListener("mousemove",u),e.addEventListener("mouseup",d),e.addEventListener("mouseleave",d),o=p.clientX,a=Number(r.getAttribute("data-with"))||r.clientWidth,s=p.target.getAttribute("data-position"),l=e.clientWidth-100},u=p=>{const _=p.clientX-o;if(_==0)return;const m=s==="right"?_>0:_<0;let f=a+Math.abs(_)*(m?1:-1);f>=l&&(f=l),f{e.removeEventListener("mousemove",u),e.removeEventListener("mouseup",d),e.removeEventListener("mouseleave",d);const p={width:Number(r.getAttribute("data-width"))};n(p)};for(let p of t.querySelector(".aie-resize").children)p.addEventListener("mousedown",c)},ZR=t=>typeof t=="number"||!isNaN(+t)?`${t}px`:t,kp=new ve("aie-image-plugin"),yi="image_action",XR=QR.extend({name:"image",draggable:!0,selectable:!0,addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),uploadUrl:"",uploadHeaders:{},uploader:void 0,defaultSize:350}},allowGapCursor(){return!this.options.inline},addAttributes(){return{src:{default:"",parseHTML:t=>`${t.getAttribute("src")??""}`},alt:{default:"",parseHTML:t=>`${t.getAttribute("alt")??""}`,renderHTML:({alt:t})=>t?{alt:t}:{}},title:{default:"",parseHTML:t=>`${t.getAttribute("title")??""}`,renderHTML:({title:t})=>t?{title:t}:{}},width:{default:this.options.defaultSize,parseHTML:t=>`${t.getAttribute("width")??""}`,renderHTML:({width:t})=>t?{width:t}:{}},height:{default:"auto",parseHTML:t=>`${t.getAttribute("height")??""}`,renderHTML:({height:t})=>t?{height:t}:{}},align:{default:"left",parseHTML:t=>t.getAttribute("data-align")||t.getAttribute("align"),renderHTML:({align:t})=>t?{"data-align":t}:{}},"data-src":{default:null,parseHTML:t=>`${t.getAttribute("data-src")??""}`,renderHTML:t=>t["data-src"]?{"data-src":t["data-src"]}:{}},loading:{default:null,parseHTML:t=>`${t.getAttribute("loading")??""}`,renderHTML:({loading:t})=>t?{loading:t}:{}}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){const e=pe(this.options.HTMLAttributes,t);return["div",{style:`text-align:${e["data-align"]||"left"}`},["img",e]]},addCommands(){var t;return{...(t=this.parent)==null?void 0:t.call(this),uploadImage:e=>()=>{const n=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(e,this.options.uploadUrl,n)===!1)return!1;const r=Ss(),{state:{tr:i},view:o,schema:a}=this.editor;i.selection.empty||i.deleteSelection(),o.dispatch(i.setMeta(yi,{type:"add",id:r,pos:i.selection.from}));const s=this.options.uploader||tu(this.options.uploadUrl),l=this.options.uploadFormName||"image";return s(e,this.options.uploadUrl,n,l).then(c=>{var u;if((u=this.options.uploaderEvent)!=null&&u.onSuccess){const d=this.options.uploaderEvent.onSuccess(e,c);if(typeof d=="boolean"&&!d)return;typeof d=="object"&&(c=d)}if(c.errorCode===0&&c.data&&c.data.src){let p=kp.getState(this.editor.state).find(void 0,void 0,_=>_.id==r);o.dispatch(o.state.tr.insert(p[0].from,a.nodes.image.create({src:c.data.src,alt:c.data.alt,align:c.data.align||"left",width:c.data.width||this.options.defaultSize,height:c.data.height||"auto","data-src":c.data["data-src"],loading:c.data.loading,class:c.data.class})).setMeta(yi,{type:"remove",id:r}))}else o.dispatch(i.setMeta(yi,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(e,c)}).catch(c=>{const{state:{tr:u},view:d}=this.editor;d.dispatch(u.setMeta(yi,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,c)}),!0}}},addNodeView(){return t=>{const e=document.createElement("div"),{src:n,width:r,height:i,align:o,alt:a}=t.node.attrs,s=ZR(r||350),l=s.indexOf("%")>0?`style="width: ${s};"`:"",c=s.indexOf("%")>0?"calc(100% - 2px)":s;return e.classList.add(`align-${o}`),this.editor.isEditable?(e.innerHTML=`
@@ -362,18 +362,18 @@ img.ProseMirror-separator {
${a}
- `,mg(e,this.editor.view.dom,u=>this.editor.commands.updateAttributes("image",u)),{dom:e}):(e.innerHTML=`
+ `,Tg(e,this.editor.view.dom,u=>this.editor.commands.updateAttributes("image",u)),{dom:e}):(e.innerHTML=`
${a} -
`,{dom:e})}},addProseMirrorPlugins(){const t=this.editor;return[new be({key:xp,state:{init:()=>Se.empty,apply:(e,n)=>{const r=e.getMeta(yi);if(r){let i=!1;const o=n.map(e.mapping,e.doc,{onRemove:a=>{i=!0}});i||(n=o),r.type==="add"?n=n.add(e.doc,[_g(r)]):r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,a=>a.id==r.id)))}return n}},props:{decorations(e){return this.getState(e)},handlePaste:(e,n)=>{var o;const r=Array.from(((o=n.clipboardData)==null?void 0:o.items)||[]);let i=!1;for(const a of r)if(a.type.indexOf("image")===0){const s=a.getAsFile();s&&(n.preventDefault(),i=!0,this.editor.commands.uploadImage(s))}return i},handleDOMEvents:{drop(e,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const i=Array.from(n.dataTransfer.files).filter(c=>/image/i.test(c.type));if(i.length===0)return!1;n.preventDefault();const{state:{tr:o,doc:a},dispatch:s}=e,l=e.posAtCoords({left:n.clientX,top:n.clientY});return s(o.setSelection(Z.create(a,l.pos)).scrollIntoView()),i.forEach(c=>{t.commands.uploadImage(c)}),!0}},transformPastedHTML(e){const r=new DOMParser().parseFromString(e,"text/html"),i=r.documentElement.querySelector("body");if(i!=null&&i.children){const o=r.documentElement.querySelectorAll("p > img");for(const a of o){const s=a.parentNode,l=Array.prototype.indexOf.call(i.children,s);a.parentElement.prepend(a),i.insertBefore(a,i.children[l])}return i.innerHTML}return e}}})]}});var tc,nc;if(typeof WeakMap<"u"){let t=new WeakMap;tc=e=>t.get(e),nc=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;tc=r=>{for(let i=0;i(n==10&&(n=0),t[n++]=r,t[n++]=i)}var Ie=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:E-b});break}const h=i+b*e;for(let C=0;Cr&&(o+=c.attrs.colspan)}}for(let a=0;a1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function QR(t,e,n){t.problems||(t.problems=[]);const r={};for(let i=0;i0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function XR(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function Vt(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function Ss(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=fi(e.$head)||jR(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function jR(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function rc(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function JR(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function jc(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function fg(t,e,n){const r=t.node(-1),i=Ie.get(r),o=t.start(-1),a=i.nextCell(t.pos-o,e,n);return a==null?null:t.node(0).resolve(o+a)}function Tr(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function gg(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;iu!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const p=o+u+1;return new Om(s.resolve(p),s.resolve(p+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(rc(r)&&rc(i)&&jc(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?cn.rowSelection(r,i):o&&this.isColSelection()?cn.colSelection(r,i):new cn(r,i)}return Z.between(r,i)}content(){const e=this.$anchorCell.node(-1),n=Ie.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},a=[];for(let l=i.top;l0||g>0){let E=m.attrs;if(f>0&&(E=Tr(E,0,f)),g>0&&(E=Tr(E,E.colspan-g,g)),_.lefti.bottom){const E={...m.attrs,rowspan:Math.min(_.bottom,i.bottom)-Math.max(_.top,i.top)};_.top0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),i=Ie.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+i.map[a.left])),s.bottom0&&(n=l.resolve(o+i.map[s.left])),a.bottom0)return!1;const a=i+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(e){return e instanceof cn&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),i=Ie.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+i.map[a.top*i.width])),s.right0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right{e.push(Fe.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Se.create(t.doc,e)}function rO({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function iO({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function oO(t,e,n){const r=(e||t).selection,i=(e||t).doc;let o,a;if(r instanceof ee&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=Te.create(i,r.from);else if(a=="row"){const s=i.resolve(r.from+1);o=Te.rowSelection(s,s)}else if(!n){const s=Ie.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];o=Te.create(i,l+1,c)}}else r instanceof Z&&rO(r)?o=Z.create(i,r.from):r instanceof Z&&iO(r)&&(o=Z.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var aO=new ve("fix-tables");function Eg(t,e,n,r){const i=t.childCount,o=e.childCount;e:for(let a=0,s=0;a{i.type.spec.tableRole=="table"&&(n=sO(t,i,o,n))};return e?e.doc!=t.doc&&Eg(e.doc,t.doc,0,r):t.doc.descendants(r),n}function sO(t,e,n,r){const i=Ie.get(e);if(!i.problems)return r;r||(r=t.tr);const o=[];for(let l=0;l0){let _="cell";u.firstChild&&(_=u.firstChild.type.spec.tableRole);const m=[];for(let g=0;g0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if(o=="row")for(let l=0;l=0;a--){const{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=i;c=e.length&&e.push(L.empty),n[i]r&&(p=p.type.createChecked(Tr(p.attrs,p.attrs.colspan,u+p.attrs.colspan-r),p.content)),c.push(p),u+=p.attrs.colspan;for(let _=1;_i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(L.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function dO(t,e,n,r,i,o,a){const s=t.doc.type.schema,l=it(s);let c,u;if(i>e.width)for(let d=0,p=0;de.height){const d=[];for(let m=0,f=(e.height-1)*e.width;m=e.width?!1:n.nodeAt(e.map[f+m]).type==l.header_cell;d.push(g?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const p=l.row.create(null,L.from(d)),_=[];for(let m=e.height;m{if(!i)return!1;const o=n.selection;if(o instanceof Te)return ta(n,r,te.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;const a=bg(i,t,e);if(a==null)return!1;if(t=="horiz")return ta(n,r,te.near(n.doc.resolve(o.head+e),e));{const s=n.doc.resolve(a),l=fg(s,t,e);let c;return l?c=te.near(l,1):e<0?c=te.near(n.doc.resolve(s.before(-1)),-1):c=te.near(n.doc.resolve(s.after(-1)),1),ta(n,r,c)}}}function ko(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let a;if(o instanceof Te)a=o;else{const l=bg(i,t,e);if(l==null)return!1;a=new Te(n.doc.resolve(l))}const s=fg(a.$headCell,t,e);return s?ta(n,r,new Te(a.$anchorCell,s)):!1}}function Po(t,e){const n=t.selection;if(!(n instanceof Te))return!1;if(e){const r=t.tr,i=it(t.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(i)||r.replace(r.mapping.map(a+1),r.mapping.map(a+o.nodeSize-1),new H(i,0,0))}),r.docChanged&&e(r)}return!0}function _O(t,e){const n=t.state.doc,r=fi(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Te(r))),!0):!1}function mO(t,e,n){if(!Vt(t.state))return!1;let r=lO(n);const i=t.state.selection;if(i instanceof Te){r||(r={width:1,height:1,rows:[L.from(ic(it(t.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=Ie.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=uO(r,s.right-s.left,s.bottom-s.top),wp(t.state,t.dispatch,a,s,r),!0}else if(r){const o=Ss(t.state),a=o.start(-1);return wp(t.state,t.dispatch,a,Ie.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function fO(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=Lp(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof Te)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=fi(t.state.selection.$anchor))!=null&&((n=ol(t,e))==null?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=ol(t,c);const d=An.getState(t.state)==null;if(!u||!jc(l,u))if(d)u=l;else return;const p=new Te(l,u);if(d||!t.state.selection.eq(p)){const _=t.state.tr.setSelection(p);d&&_.setMeta(An,l.pos),t.dispatch(_)}}function a(){t.root.removeEventListener("mouseup",a),t.root.removeEventListener("dragstart",a),t.root.removeEventListener("mousemove",s),An.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(An,-1))}function s(l){const c=l,u=An.getState(t.state);let d;if(u!=null)d=t.state.doc.resolve(u);else if(Lp(t,c.target)!=r&&(d=ol(t,e),!d))return a();d&&o(d,c)}t.root.addEventListener("mouseup",a),t.root.addEventListener("dragstart",a),t.root.addEventListener("mousemove",s)}function bg(t,e,n){if(!(t.state.selection instanceof Z))return null;const{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const s=r.before(i),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(l)?s:null}}return null}function Lp(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function ol(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?fi(t.state.doc.resolve(n.pos)):null}var gO=class{constructor(e,n){this.node=e,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),oc(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,oc(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function oc(t,e,n,r,i,o){var a;let s=0,l=!0,c=e.firstChild;const u=t.firstChild;if(u){for(let d=0,p=0;dnew n(d,e,p)),new EO(-1,!1)},apply(o,a){return a.apply(o)}},props:{attributes:o=>{const a=xt.getState(o);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(o,a)=>{SO(o,a,t,e,r)},mouseleave:o=>{bO(o)},mousedown:(o,a)=>{TO(o,a,e)}},decorations:o=>{const a=xt.getState(o);if(a&&a.activeHandle>-1)return NO(o,a.activeHandle)},nodeViews:{}}});return i}var EO=class na{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(xt);if(r&&r.setHandle!=null)return new na(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new na(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return rc(e.doc.resolve(i))||(i=-1),new na(i,n.dragging)}return n}};function SO(t,e,n,r,i){const o=xt.getState(t.state);if(o&&!o.dragging){const a=yO(e.target);let s=-1;if(a){const{left:l,right:c}=a.getBoundingClientRect();e.clientX-l<=n?s=kp(t,e,"left",n):c-e.clientX<=n&&(s=kp(t,e,"right",n))}if(s!=o.activeHandle){if(!i&&s!==-1){const l=t.state.doc.resolve(s),c=l.node(-1),u=Ie.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}Tg(t,s)}}}function bO(t){const e=xt.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&Tg(t,-1)}function TO(t,e,n){var r;const i=(r=t.dom.ownerDocument.defaultView)!=null?r:window,o=xt.getState(t.state);if(!o||o.activeHandle==-1||o.dragging)return!1;const a=t.state.doc.nodeAt(o.activeHandle),s=CO(t,o.activeHandle,a.attrs);t.dispatch(t.state.tr.setMeta(xt,{setDragging:{startX:e.clientX,startWidth:s}}));function l(u){i.removeEventListener("mouseup",l),i.removeEventListener("mousemove",c);const d=xt.getState(t.state);d!=null&&d.dragging&&(vO(t,d.activeHandle,Pp(d.dragging,u,n)),t.dispatch(t.state.tr.setMeta(xt,{setDragging:null})))}function c(u){if(!u.which)return l(u);const d=xt.getState(t.state);if(d&&d.dragging){const p=Pp(d.dragging,u,n);RO(t,d.activeHandle,p,n)}}return i.addEventListener("mouseup",l),i.addEventListener("mousemove",c),e.preventDefault(),!0}function CO(t,e,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=t.domAtPos(e);let s=o.node.childNodes[o.offset].offsetWidth,l=n;if(r)for(let c=0;c0?-1:0;eO(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let a=0;a0&&i0&&e.map[s-1]==l||i0?-1:0;MO(e,r,i+l)&&(l=i==0||i==e.height?null:0);for(let c=0,u=e.width*i;c0&&i0&&d==e.map[u-e.width]){const p=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p,rowspan:p.rowspan-1}),c+=p.colspan-1}else if(i0&&n[o]==n[o-1]||r.right0&&n[i]==n[i-t]||r.bottomn[r.type.spec.tableRole])(t,e)}function BO(t){return(e,n)=>{var r;const i=e.selection;let o,a;if(i instanceof Te){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,a=i.$anchorCell.pos}else{if(o=XR(i.$from),!o)return!1;a=(r=fi(i.$from))==null?void 0:r.pos}if(o==null||a==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let s=o.attrs;const l=[],c=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});const u=on(e),d=e.tr;for(let _=0;_{a.attrs[t]!==e&&o.setNodeMarkup(s,null,{...a.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function HO(t){return function(e,n){if(!Vt(e))return!1;if(n){const r=it(e.schema),i=on(e),o=e.tr,a=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(l=>i.table.nodeAt(l));for(let l=0;l{const m=_+o.tableStart,f=a.doc.nodeAt(m);f&&a.setNodeMarkup(m,p,f.attrs)}),r(a)}return!0}}Ji("row",{useDeprecatedLogic:!0});Ji("column",{useDeprecatedLogic:!0});var GO=Ji("cell",{useDeprecatedLogic:!0});function VO(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){const o=t.node(-1).child(r),a=o.lastChild;if(a)return i-1-a.nodeSize;i-=o.nodeSize}}else{if(t.index()0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function zO({allowTableNodeSelection:t=!1}={}){return new be({key:An,state:{init(){return null},apply(e,n){const r=e.getMeta(An);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:nO,handleDOMEvents:{mousedown:fO},createSelectionBetween(e){return An.getState(e.state)!=null?e.state.selection:null},handleTripleClick:_O,handleKeyDown:pO,handlePaste:mO},appendTransaction(e,n,r){return oO(r,Sg(r,n),t)}})}function Vp(t,e,n,r,i,o){let a=0,s=!0,l=e.firstChild;const c=t.firstChild;for(let u=0,d=0;u{const r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function KO(t,e,n,r,i){const o=WO(t),a=[],s=[];for(let c=0;c{const{selection:e}=t.state;if(!QO(e))return!1;let n=0;const r=Cf(e.ranges[0].$from,o=>o.type.name==="table");return r==null||r.node.descendants(o=>{if(o.type.name==="table")return!1;["tableCell","tableHeader"].includes(o.type.name)&&(n+=1)}),n===e.ranges.length?(t.commands.deleteTable(),!0):!1},ZO=Ne.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:$O,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:n,tableWidth:r,tableMinWidth:i}=qO(t,this.options.cellMinWidth);return["table",pe(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const a=KO(o.schema,t,e,n);if(i){const s=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(Z.near(r.doc.resolve(s)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>AO(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>IO(t,e),deleteColumn:()=>({state:t,dispatch:e})=>DO(t,e),addRowBefore:()=>({state:t,dispatch:e})=>wO(t,e),addRowAfter:()=>({state:t,dispatch:e})=>LO(t,e),deleteRow:()=>({state:t,dispatch:e})=>PO(t,e),deleteTable:()=>({state:t,dispatch:e})=>YO(t,e),mergeCells:()=>({state:t,dispatch:e})=>Bp(t,e),splitCell:()=>({state:t,dispatch:e})=>Up(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>Ji("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>Ji("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>GO(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Bp(t,e)?!0:Up(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>UO(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>Gp(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Gp(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Sg(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const r=Te.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Fo,"Mod-Backspace":Fo,Delete:Fo,"Mod-Delete":Fo}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[hO({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],zO({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:le(W(t,"tableRole",e))}}}),XO=Ne.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",pe(this.options.HTMLAttributes,t),0]}}),jO=Ne.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",pe(this.options.HTMLAttributes,t),0]}}),JO=Ne.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",pe(this.options.HTMLAttributes,t),0]}}),zp=ge.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;if(((t==null?void 0:t.mode)||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){return[new be({key:new ve("characterCount"),filterTransaction:(t,e)=>{const n=this.options.limit;if(!t.docChanged||n===0||n===null||n===void 0)return!0;const r=this.storage.characters({node:e.doc}),i=this.storage.characters({node:t.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!t.getMeta("paste"))return!1;const a=t.selection.$head.pos,s=i-n,l=a-s,c=a;return t.deleteRange(l,c),!(this.storage.characters({node:t.doc})>n)}})]}}),eN="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",tN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",li=(t,e)=>{for(const n in e)t[n]=e[n];return t},ac="numeric",sc="ascii",lc="alpha",ra="asciinumeric",Bo="alphanumeric",cc="domain",vg="emoji",nN="scheme",rN="slashscheme",$p="whitespace";function iN(t,e){return t in e||(e[t]=[]),e[t]}function ir(t,e,n){e[ac]&&(e[ra]=!0,e[Bo]=!0),e[sc]&&(e[ra]=!0,e[lc]=!0),e[ra]&&(e[Bo]=!0),e[lc]&&(e[Bo]=!0),e[Bo]&&(e[cc]=!0),e[vg]&&(e[cc]=!0);for(const r in e){const i=iN(r,n);i.indexOf(t)<0&&i.push(t)}}function oN(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function dt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}dt.groups={};dt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;rt.ta(e,n,r,i),Ot=(t,e,n,r,i)=>t.tr(e,n,r,i),qp=(t,e,n,r,i)=>t.ts(e,n,r,i),F=(t,e,n,r,i)=>t.tt(e,n,r,i),un="WORD",uc="UWORD",eo="LOCALHOST",dc="TLD",pc="UTLD",ia="SCHEME",Ur="SLASH_SCHEME",Jc="NUM",Rg="WS",eu="NL",zr="OPENBRACE",Fi="OPENBRACKET",Bi="OPENANGLEBRACKET",Ui="OPENPAREN",er="CLOSEBRACE",$r="CLOSEBRACKET",qr="CLOSEANGLEBRACKET",tr="CLOSEPAREN",Na="AMPERSAND",Aa="APOSTROPHE",Ia="ASTERISK",Rn="AT",xa="BACKSLASH",Da="BACKTICK",Ma="CARET",In="COLON",tu="COMMA",wa="DOLLAR",qt="DOT",La="EQUALS",nu="EXCLAMATION",Wt="HYPHEN",ka="PERCENT",Pa="PIPE",Fa="PLUS",Ba="POUND",Ua="QUERY",ru="QUOTE",iu="SEMI",Kt="SLASH",Hi="TILDE",Ha="UNDERSCORE",Og="EMOJI",Ga="SYM";var Ng=Object.freeze({__proto__:null,WORD:un,UWORD:uc,LOCALHOST:eo,TLD:dc,UTLD:pc,SCHEME:ia,SLASH_SCHEME:Ur,NUM:Jc,WS:Rg,NL:eu,OPENBRACE:zr,OPENBRACKET:Fi,OPENANGLEBRACKET:Bi,OPENPAREN:Ui,CLOSEBRACE:er,CLOSEBRACKET:$r,CLOSEANGLEBRACKET:qr,CLOSEPAREN:tr,AMPERSAND:Na,APOSTROPHE:Aa,ASTERISK:Ia,AT:Rn,BACKSLASH:xa,BACKTICK:Da,CARET:Ma,COLON:In,COMMA:tu,DOLLAR:wa,DOT:qt,EQUALS:La,EXCLAMATION:nu,HYPHEN:Wt,PERCENT:ka,PIPE:Pa,PLUS:Fa,POUND:Ba,QUERY:Ua,QUOTE:ru,SEMI:iu,SLASH:Kt,TILDE:Hi,UNDERSCORE:Ha,EMOJI:Og,SYM:Ga});const Mr=/[a-z]/,al=new RegExp("\\p{L}","u"),sl=new RegExp("\\p{Emoji}","u"),ll=/\d/,Wp=/\s/,Kp=` -`,aN="️",sN="‍";let Uo=null,Ho=null;function lN(t){t===void 0&&(t=[]);const e={};dt.groups=e;const n=new dt;Uo==null&&(Uo=Qp(eN)),Ho==null&&(Ho=Qp(tN)),F(n,"'",Aa),F(n,"{",zr),F(n,"[",Fi),F(n,"<",Bi),F(n,"(",Ui),F(n,"}",er),F(n,"]",$r),F(n,">",qr),F(n,")",tr),F(n,"&",Na),F(n,"*",Ia),F(n,"@",Rn),F(n,"`",Da),F(n,"^",Ma),F(n,":",In),F(n,",",tu),F(n,"$",wa),F(n,".",qt),F(n,"=",La),F(n,"!",nu),F(n,"-",Wt),F(n,"%",ka),F(n,"|",Pa),F(n,"+",Fa),F(n,"#",Ba),F(n,"?",Ua),F(n,'"',ru),F(n,"/",Kt),F(n,";",iu),F(n,"~",Hi),F(n,"_",Ha),F(n,"\\",xa);const r=Ot(n,ll,Jc,{[ac]:!0});Ot(r,ll,r);const i=Ot(n,Mr,un,{[sc]:!0});Ot(i,Mr,i);const o=Ot(n,al,uc,{[lc]:!0});Ot(o,Mr),Ot(o,al,o);const a=Ot(n,Wp,Rg,{[$p]:!0});F(n,Kp,eu,{[$p]:!0}),F(a,Kp),Ot(a,Wp,a);const s=Ot(n,sl,Og,{[vg]:!0});Ot(s,sl,s),F(s,aN,s);const l=F(s,sN);Ot(l,sl,s);const c=[[Mr,i]],u=[[Mr,null],[al,o]];for(let d=0;dd[0]>p[0]?1:-1);for(let d=0;d=0?m[cc]=!0:Mr.test(p)?ll.test(p)?m[ra]=!0:m[sc]=!0:m[ac]=!0,qp(n,p,p,m)}return qp(n,"localhost",eo,{ascii:!0}),n.jd=new dt(Ga),{start:n,tokens:li({groups:e},Ng)}}function cN(t,e){const n=uN(e.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,p++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=p,c-=d,i.push({t:u.t,v:e.slice(o-c,o),s:o-c,e:o})}return i}function uN(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?t[r]:t.slice(r,r+2);e.push(a),r+=a.length}return e}function Tn(t,e,n,r,i){let o;const a=e.length;for(let s=0;s=0;)o++;if(o>0){e.push(n.join(""));for(let a=parseInt(t.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(t[r]),r++}return e}const to={defaultProtocol:"http",events:null,format:Zp,formatHref:Zp,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ou(t,e){e===void 0&&(e=null);let n=li({},to);t&&(n=li(n,t instanceof ou?t.o:t));const r=n.ignoreTags,i=[];for(let o=0;on?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=to.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),o=this.toFormattedString(t),a={},s=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return a.href=r,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&li(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};function bs(t,e){class n extends Ag{constructor(i,o){super(i,o),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Xp=bs("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),jp=bs("text"),dN=bs("nl"),Qn=bs("url",{isLink:!0,toHref(t){return t===void 0&&(t=to.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==eo&&t[1].t===In}}),Ge=t=>new dt(t);function pN(t){let{groups:e}=t;const n=e.domain.concat([Na,Ia,Rn,xa,Da,Ma,wa,La,Wt,Jc,ka,Pa,Fa,Ba,Kt,Ga,Hi,Ha]),r=[Aa,qr,er,$r,tr,In,tu,qt,nu,Bi,zr,Fi,Ui,Ua,ru,iu],i=[Na,Aa,Ia,xa,Da,Ma,er,wa,La,Wt,zr,ka,Pa,Fa,Ba,Ua,Kt,Ga,Hi,Ha],o=Ge(),a=F(o,Hi);j(a,i,a),j(a,e.domain,a);const s=Ge(),l=Ge(),c=Ge();j(o,e.domain,s),j(o,e.scheme,l),j(o,e.slashscheme,c),j(s,i,a),j(s,e.domain,s);const u=F(s,Rn);F(a,Rn,u),F(l,Rn,u),F(c,Rn,u);const d=F(a,qt);j(d,i,a),j(d,e.domain,a);const p=Ge();j(u,e.domain,p),j(p,e.domain,p);const _=F(p,qt);j(_,e.domain,p);const m=Ge(Xp);j(_,e.tld,m),j(_,e.utld,m),F(u,eo,m);const f=F(p,Wt);j(f,e.domain,p),j(m,e.domain,p),F(m,qt,_),F(m,Wt,f);const g=F(m,In);j(g,e.numeric,Xp);const E=F(s,Wt),S=F(s,qt);j(E,e.domain,s),j(S,i,a),j(S,e.domain,s);const b=Ge(Qn);j(S,e.tld,b),j(S,e.utld,b),j(b,e.domain,s),j(b,i,a),F(b,qt,S),F(b,Wt,E),F(b,Rn,u);const h=F(b,In),C=Ge(Qn);j(h,e.numeric,C);const T=Ge(Qn),R=Ge();j(T,n,T),j(T,r,R),j(R,n,T),j(R,r,R),F(b,Kt,T),F(C,Kt,T);const x=F(l,In),O=F(c,In),M=F(O,Kt),B=F(M,Kt);j(l,e.domain,s),F(l,qt,S),F(l,Wt,E),j(c,e.domain,s),F(c,qt,S),F(c,Wt,E),j(x,e.domain,T),F(x,Kt,T),j(B,e.domain,T),j(B,n,T),F(B,Kt,T);const Y=F(T,zr),$=F(T,Fi),q=F(T,Bi),V=F(T,Ui);F(R,zr,Y),F(R,Fi,$),F(R,Bi,q),F(R,Ui,V),F(Y,er,T),F($,$r,T),F(q,qr,T),F(V,tr,T),F(Y,er,T);const J=Ge(Qn),y=Ge(Qn),v=Ge(Qn),A=Ge(Qn);j(Y,n,J),j($,n,y),j(q,n,v),j(V,n,A);const k=Ge(),G=Ge(),z=Ge(),ae=Ge();return j(Y,r),j($,r),j(q,r),j(V,r),j(J,n,J),j(y,n,y),j(v,n,v),j(A,n,A),j(J,r,J),j(y,r,y),j(v,r,v),j(A,r,A),j(k,n,k),j(G,n,y),j(z,n,v),j(ae,n,A),j(k,r,k),j(G,r,G),j(z,r,z),j(ae,r,ae),F(y,$r,T),F(v,qr,T),F(A,tr,T),F(J,er,T),F(G,$r,T),F(z,qr,T),F(ae,tr,T),F(k,tr,T),F(o,eo,b),F(o,eu,dN),{start:o,tokens:Ng}}function _N(t,e,n){let r=n.length,i=0,o=[],a=[];for(;i=0&&p++,i++,u++;if(p<0)i-=u,i0&&(o.push(cl(jp,e,a)),a=[]),i-=p,u-=p;const _=d.t,m=n.slice(i-u,i);o.push(cl(_,e,m))}}return a.length>0&&o.push(cl(jp,e,a)),o}function cl(t,e,n){const r=n[0].s,i=n[n.length-1].e,o=e.slice(r,i);return new t(o,n)}const mN=typeof console<"u"&&console&&console.warn||(()=>{}),fN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ae={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function gN(){dt.groups={},Ae.scanner=null,Ae.parser=null,Ae.tokenQueue=[],Ae.pluginQueue=[],Ae.customSchemes=[],Ae.initialized=!1}function Jp(t,e){if(e===void 0&&(e=!1),Ae.initialized&&mN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${fN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. +
`,{dom:e})}},addProseMirrorPlugins(){const t=this.editor;return[new Se({key:kp,state:{init:()=>be.empty,apply:(e,n)=>{const r=e.getMeta(yi);if(r){let i=!1;const o=n.map(e.mapping,e.doc,{onRemove:a=>{i=!0}});i||(n=o),r.type==="add"?n=n.add(e.doc,[bg(r)]):r.type==="remove"&&(n=n.remove(n.find(void 0,void 0,a=>a.id==r.id)))}return n}},props:{decorations(e){return this.getState(e)},handlePaste:(e,n)=>{var o;const r=Array.from(((o=n.clipboardData)==null?void 0:o.items)||[]);let i=!1;for(const a of r)if(a.type.indexOf("image")===0){const s=a.getAsFile();s&&(n.preventDefault(),i=!0,this.editor.commands.uploadImage(s))}return i},handleDOMEvents:{drop(e,n){if(!(n.dataTransfer&&n.dataTransfer.files&&n.dataTransfer.files.length))return!1;const i=Array.from(n.dataTransfer.files).filter(c=>/image/i.test(c.type));if(i.length===0)return!1;n.preventDefault();const{state:{tr:o,doc:a},dispatch:s}=e,l=e.posAtCoords({left:n.clientX,top:n.clientY});return s(o.setSelection(Z.create(a,l.pos)).scrollIntoView()),i.forEach(c=>{t.commands.uploadImage(c)}),!0}},transformPastedHTML(e){const r=new DOMParser().parseFromString(e,"text/html"),i=r.documentElement.querySelector("body");if(i!=null&&i.children){const o=r.documentElement.querySelectorAll("p > img");for(const a of o){const s=a.parentNode,l=Array.prototype.indexOf.call(i.children,s);a.parentElement.prepend(a),i.insertBefore(a,i.children[l])}return i.innerHTML}return e}}})]}});var nc,rc;if(typeof WeakMap<"u"){let t=new WeakMap;nc=e=>t.get(e),rc=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;nc=r=>{for(let i=0;i(n==10&&(n=0),t[n++]=r,t[n++]=i)}var Ie=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:S-b});break}const h=i+b*e;for(let C=0;Cr&&(o+=c.attrs.colspan)}}for(let a=0;a1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function eO(t,e,n){t.problems||(t.problems=[]);const r={};for(let i=0;i0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function nO(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function Vt(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function bs(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=fi(e.$head)||rO(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function rO(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function ic(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function iO(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function nu(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function Cg(t,e,n){const r=t.node(-1),i=Ie.get(r),o=t.start(-1),a=i.nextCell(t.pos-o,e,n);return a==null?null:t.node(0).resolve(o+a)}function Tr(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function yg(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;iu!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const p=o+u+1;return new Mm(s.resolve(p),s.resolve(p+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(ic(r)&&ic(i)&&nu(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?cn.rowSelection(r,i):o&&this.isColSelection()?cn.colSelection(r,i):new cn(r,i)}return Z.between(r,i)}content(){const e=this.$anchorCell.node(-1),n=Ie.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},a=[];for(let l=i.top;l0||g>0){let S=m.attrs;if(f>0&&(S=Tr(S,0,f)),g>0&&(S=Tr(S,S.colspan-g,g)),_.lefti.bottom){const S={...m.attrs,rowspan:Math.min(_.bottom,i.bottom)-Math.max(_.top,i.top)};_.top0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),i=Ie.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+i.map[a.left])),s.bottom0&&(n=l.resolve(o+i.map[s.left])),a.bottom0)return!1;const a=i+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(e){return e instanceof cn&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),i=Ie.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+i.map[a.top*i.width])),s.right0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right{e.push(ke.node(r,r+n.nodeSize,{class:"selectedCell"}))}),be.create(t.doc,e)}function lO({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function cO({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function uO(t,e,n){const r=(e||t).selection,i=(e||t).doc;let o,a;if(r instanceof ee&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=Te.create(i,r.from);else if(a=="row"){const s=i.resolve(r.from+1);o=Te.rowSelection(s,s)}else if(!n){const s=Ie.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];o=Te.create(i,l+1,c)}}else r instanceof Z&&lO(r)?o=Z.create(i,r.from):r instanceof Z&&cO(r)&&(o=Z.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var dO=new ve("fix-tables");function Rg(t,e,n,r){const i=t.childCount,o=e.childCount;e:for(let a=0,s=0;a{i.type.spec.tableRole=="table"&&(n=pO(t,i,o,n))};return e?e.doc!=t.doc&&Rg(e.doc,t.doc,0,r):t.doc.descendants(r),n}function pO(t,e,n,r){const i=Ie.get(e);if(!i.problems)return r;r||(r=t.tr);const o=[];for(let l=0;l0){let _="cell";u.firstChild&&(_=u.firstChild.type.spec.tableRole);const m=[];for(let g=0;g0?-1:0;oO(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let a=0;a0&&i0&&e.map[s-1]==l||i0?-1:0;hO(e,r,i+l)&&(l=i==0||i==e.height?null:0);for(let c=0,u=e.width*i;c0&&i0&&d==e.map[u-e.width]){const p=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p,rowspan:p.rowspan-1}),c+=p.colspan-1}else if(i0&&n[o]==n[o-1]||r.right0&&n[i]==n[i-t]||r.bottomn[r.type.spec.tableRole])(t,e)}function yO(t){return(e,n)=>{var r;const i=e.selection;let o,a;if(i instanceof Te){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,a=i.$anchorCell.pos}else{if(o=nO(i.$from),!o)return!1;a=(r=fi(i.$from))==null?void 0:r.pos}if(o==null||a==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let s=o.attrs;const l=[],c=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});const u=on(e),d=e.tr;for(let _=0;_{a.attrs[t]!==e&&o.setNodeMarkup(s,null,{...a.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function RO(t){return function(e,n){if(!Vt(e))return!1;if(n){const r=it(e.schema),i=on(e),o=e.tr,a=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(l=>i.table.nodeAt(l));for(let l=0;l{const m=_+o.tableStart,f=a.doc.nodeAt(m);f&&a.setNodeMarkup(m,p,f.attrs)}),r(a)}return!0}}eo("row",{useDeprecatedLogic:!0});eo("column",{useDeprecatedLogic:!0});var OO=eo("cell",{useDeprecatedLogic:!0});function NO(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){const o=t.node(-1).child(r),a=o.lastChild;if(a)return i-1-a.nodeSize;i-=o.nodeSize}}else{if(t.index()0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function ko(t,e){const n=t.selection;if(!(n instanceof Te))return!1;if(e){const r=t.tr,i=it(t.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(i)||r.replace(r.mapping.map(a+1),r.mapping.map(a+o.nodeSize-1),new H(i,0,0))}),r.docChanged&&e(r)}return!0}function IO(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if(o=="row")for(let l=0;l=0;a--){const{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=i;c=e.length&&e.push(w.empty),n[i]r&&(p=p.type.createChecked(Tr(p.attrs,p.attrs.colspan,u+p.attrs.colspan-r),p.content)),c.push(p),u+=p.attrs.colspan;for(let _=1;_i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(w.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function MO(t,e,n,r,i,o,a){const s=t.doc.type.schema,l=it(s);let c,u;if(i>e.width)for(let d=0,p=0;de.height){const d=[];for(let m=0,f=(e.height-1)*e.width;m=e.width?!1:n.nodeAt(e.map[f+m]).type==l.header_cell;d.push(g?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const p=l.row.create(null,w.from(d)),_=[];for(let m=e.height;m{if(!i)return!1;const o=n.selection;if(o instanceof Te)return na(n,r,te.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;const a=Ig(i,t,e);if(a==null)return!1;if(t=="horiz")return na(n,r,te.near(n.doc.resolve(o.head+e),e));{const s=n.doc.resolve(a),l=Cg(s,t,e);let c;return l?c=te.near(l,1):e<0?c=te.near(n.doc.resolve(s.before(-1)),-1):c=te.near(n.doc.resolve(s.after(-1)),1),na(n,r,c)}}}function Fo(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let a;if(o instanceof Te)a=o;else{const l=Ig(i,t,e);if(l==null)return!1;a=new Te(n.doc.resolve(l))}const s=Cg(a.$headCell,t,e);return s?na(n,r,new Te(a.$anchorCell,s)):!1}}function LO(t,e){const n=t.state.doc,r=fi(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Te(r))),!0):!1}function kO(t,e,n){if(!Vt(t.state))return!1;let r=IO(n);const i=t.state.selection;if(i instanceof Te){r||(r={width:1,height:1,rows:[w.from(oc(it(t.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=Ie.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=DO(r,s.right-s.left,s.bottom-s.top),Yp(t.state,t.dispatch,a,s,r),!0}else if(r){const o=bs(t.state),a=o.start(-1);return Yp(t.state,t.dispatch,a,Ie.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function PO(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=zp(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof Te)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=fi(t.state.selection.$anchor))!=null&&((n=sl(t,e))==null?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=sl(t,c);const d=An.getState(t.state)==null;if(!u||!nu(l,u))if(d)u=l;else return;const p=new Te(l,u);if(d||!t.state.selection.eq(p)){const _=t.state.tr.setSelection(p);d&&_.setMeta(An,l.pos),t.dispatch(_)}}function a(){t.root.removeEventListener("mouseup",a),t.root.removeEventListener("dragstart",a),t.root.removeEventListener("mousemove",s),An.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(An,-1))}function s(l){const c=l,u=An.getState(t.state);let d;if(u!=null)d=t.state.doc.resolve(u);else if(zp(t,c.target)!=r&&(d=sl(t,e),!d))return a();d&&o(d,c)}t.root.addEventListener("mouseup",a),t.root.addEventListener("dragstart",a),t.root.addEventListener("mousemove",s)}function Ig(t,e,n){if(!(t.state.selection instanceof Z))return null;const{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const s=r.before(i),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(l)?s:null}}return null}function zp(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function sl(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?fi(t.state.doc.resolve(n.pos)):null}var FO=class{constructor(e,n){this.node=e,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ac(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,ac(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function ac(t,e,n,r,i,o){var a;let s=0,l=!0,c=e.firstChild;const u=t.firstChild;if(u){for(let d=0,p=0;dnew r(p,n,_)),new UO(-1,!1)},apply(a,s){return s.apply(a)}},props:{attributes:a=>{const s=vt.getState(a);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,s)=>{HO(a,s,t,i)},mouseleave:a=>{GO(a)},mousedown:(a,s)=>{VO(a,s,e,n)}},decorations:a=>{const s=vt.getState(a);if(s&&s.activeHandle>-1)return WO(a,s.activeHandle)},nodeViews:{}}});return o}var UO=class ra{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(vt);if(r&&r.setHandle!=null)return new ra(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new ra(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return ic(e.doc.resolve(i))||(i=-1),new ra(i,n.dragging)}return n}};function HO(t,e,n,r){const i=vt.getState(t.state);if(i&&!i.dragging){const o=zO(e.target);let a=-1;if(o){const{left:s,right:l}=o.getBoundingClientRect();e.clientX-s<=n?a=$p(t,e,"left",n):l-e.clientX<=n&&(a=$p(t,e,"right",n))}if(a!=i.activeHandle){if(!r&&a!==-1){const s=t.state.doc.resolve(a),l=s.node(-1),c=Ie.get(l),u=s.start(-1);if(c.colCount(s.pos-u)+s.nodeAfter.attrs.colspan-1==c.width-1)return}xg(t,a)}}}function GO(t){const e=vt.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&xg(t,-1)}function VO(t,e,n,r){var i;const o=(i=t.dom.ownerDocument.defaultView)!=null?i:window,a=vt.getState(t.state);if(!a||a.activeHandle==-1||a.dragging)return!1;const s=t.state.doc.nodeAt(a.activeHandle),l=YO(t,a.activeHandle,s.attrs);t.dispatch(t.state.tr.setMeta(vt,{setDragging:{startX:e.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const p=vt.getState(t.state);p!=null&&p.dragging&&($O(t,p.activeHandle,qp(p.dragging,d,n)),t.dispatch(t.state.tr.setMeta(vt,{setDragging:null})))}function u(d){if(!d.which)return c(d);const p=vt.getState(t.state);if(p&&p.dragging){const _=qp(p.dragging,d,n);Wp(t,p.activeHandle,_,r)}}return Wp(t,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),e.preventDefault(),!0}function YO(t,e,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=t.domAtPos(e);let s=o.node.childNodes[o.offset].offsetWidth,l=n;if(r)for(let c=0;c{const r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function jO(t,e,n,r,i){const o=XO(t),a=[],s=[];for(let c=0;c{const{selection:e}=t.state;if(!JO(e))return!1;let n=0;const r=If(e.ranges[0].$from,o=>o.type.name==="table");return r==null||r.node.descendants(o=>{if(o.type.name==="table")return!1;["tableCell","tableHeader"].includes(o.type.name)&&(n+=1)}),n===e.ranges.length?(t.commands.deleteTable(),!0):!1},eN=Ne.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:QO,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:n,tableWidth:r,tableMinWidth:i}=ZO(t,this.options.cellMinWidth);return["table",pe(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const a=jO(o.schema,t,e,n);if(i){const s=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(Z.near(r.doc.resolve(s)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>_O(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>mO(t,e),deleteColumn:()=>({state:t,dispatch:e})=>gO(t,e),addRowBefore:()=>({state:t,dispatch:e})=>EO(t,e),addRowAfter:()=>({state:t,dispatch:e})=>SO(t,e),deleteRow:()=>({state:t,dispatch:e})=>TO(t,e),deleteTable:()=>({state:t,dispatch:e})=>AO(t,e),mergeCells:()=>({state:t,dispatch:e})=>Fp(t,e),splitCell:()=>({state:t,dispatch:e})=>Bp(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>eo("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>eo("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>OO(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Fp(t,e)?!0:Bp(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>vO(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>Hp(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Hp(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Og(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const r=Te.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Bo,"Mod-Backspace":Bo,Delete:Bo,"Mod-Delete":Bo}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[BO({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],KO({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:le(W(t,"tableRole",e))}}}),tN=Ne.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",pe(this.options.HTMLAttributes,t),0]}}),nN=Ne.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",pe(this.options.HTMLAttributes,t),0]}}),rN=Ne.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",pe(this.options.HTMLAttributes,t),0]}}),Zp=ge.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;if(((t==null?void 0:t.mode)||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){return[new Se({key:new ve("characterCount"),filterTransaction:(t,e)=>{const n=this.options.limit;if(!t.docChanged||n===0||n===null||n===void 0)return!0;const r=this.storage.characters({node:e.doc}),i=this.storage.characters({node:t.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!t.getMeta("paste"))return!1;const a=t.selection.$head.pos,s=i-n,l=a-s,c=a;return t.deleteRange(l,c),!(this.storage.characters({node:t.doc})>n)}})]}}),iN="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",oN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",li=(t,e)=>{for(const n in e)t[n]=e[n];return t},lc="numeric",cc="ascii",uc="alpha",ia="asciinumeric",Uo="alphanumeric",dc="domain",Dg="emoji",aN="scheme",sN="slashscheme",Xp="whitespace";function lN(t,e){return t in e||(e[t]=[]),e[t]}function or(t,e,n){e[lc]&&(e[ia]=!0,e[Uo]=!0),e[cc]&&(e[ia]=!0,e[uc]=!0),e[ia]&&(e[Uo]=!0),e[uc]&&(e[Uo]=!0),e[Uo]&&(e[dc]=!0),e[Dg]&&(e[dc]=!0);for(const r in e){const i=lN(r,n);i.indexOf(t)<0&&i.push(t)}}function cN(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function dt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}dt.groups={};dt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;rt.ta(e,n,r,i),Nt=(t,e,n,r,i)=>t.tr(e,n,r,i),jp=(t,e,n,r,i)=>t.ts(e,n,r,i),F=(t,e,n,r,i)=>t.tt(e,n,r,i),un="WORD",pc="UWORD",to="LOCALHOST",_c="TLD",mc="UTLD",oa="SCHEME",Ur="SLASH_SCHEME",ru="NUM",Mg="WS",iu="NL",zr="OPENBRACE",Bi="OPENBRACKET",Ui="OPENANGLEBRACKET",Hi="OPENPAREN",tr="CLOSEBRACE",$r="CLOSEBRACKET",qr="CLOSEANGLEBRACKET",nr="CLOSEPAREN",Aa="AMPERSAND",Ia="APOSTROPHE",xa="ASTERISK",Rn="AT",Da="BACKSLASH",Ma="BACKTICK",wa="CARET",In="COLON",ou="COMMA",La="DOLLAR",qt="DOT",ka="EQUALS",au="EXCLAMATION",Wt="HYPHEN",Pa="PERCENT",Fa="PIPE",Ba="PLUS",Ua="POUND",Ha="QUERY",su="QUOTE",lu="SEMI",Kt="SLASH",Gi="TILDE",Ga="UNDERSCORE",wg="EMOJI",Va="SYM";var Lg=Object.freeze({__proto__:null,WORD:un,UWORD:pc,LOCALHOST:to,TLD:_c,UTLD:mc,SCHEME:oa,SLASH_SCHEME:Ur,NUM:ru,WS:Mg,NL:iu,OPENBRACE:zr,OPENBRACKET:Bi,OPENANGLEBRACKET:Ui,OPENPAREN:Hi,CLOSEBRACE:tr,CLOSEBRACKET:$r,CLOSEANGLEBRACKET:qr,CLOSEPAREN:nr,AMPERSAND:Aa,APOSTROPHE:Ia,ASTERISK:xa,AT:Rn,BACKSLASH:Da,BACKTICK:Ma,CARET:wa,COLON:In,COMMA:ou,DOLLAR:La,DOT:qt,EQUALS:ka,EXCLAMATION:au,HYPHEN:Wt,PERCENT:Pa,PIPE:Fa,PLUS:Ba,POUND:Ua,QUERY:Ha,QUOTE:su,SEMI:lu,SLASH:Kt,TILDE:Gi,UNDERSCORE:Ga,EMOJI:wg,SYM:Va});const Mr=/[a-z]/,ll=new RegExp("\\p{L}","u"),cl=new RegExp("\\p{Emoji}","u"),ul=/\d/,Jp=/\s/,e_=` +`,uN="️",dN="‍";let Ho=null,Go=null;function pN(t){t===void 0&&(t=[]);const e={};dt.groups=e;const n=new dt;Ho==null&&(Ho=t_(iN)),Go==null&&(Go=t_(oN)),F(n,"'",Ia),F(n,"{",zr),F(n,"[",Bi),F(n,"<",Ui),F(n,"(",Hi),F(n,"}",tr),F(n,"]",$r),F(n,">",qr),F(n,")",nr),F(n,"&",Aa),F(n,"*",xa),F(n,"@",Rn),F(n,"`",Ma),F(n,"^",wa),F(n,":",In),F(n,",",ou),F(n,"$",La),F(n,".",qt),F(n,"=",ka),F(n,"!",au),F(n,"-",Wt),F(n,"%",Pa),F(n,"|",Fa),F(n,"+",Ba),F(n,"#",Ua),F(n,"?",Ha),F(n,'"',su),F(n,"/",Kt),F(n,";",lu),F(n,"~",Gi),F(n,"_",Ga),F(n,"\\",Da);const r=Nt(n,ul,ru,{[lc]:!0});Nt(r,ul,r);const i=Nt(n,Mr,un,{[cc]:!0});Nt(i,Mr,i);const o=Nt(n,ll,pc,{[uc]:!0});Nt(o,Mr),Nt(o,ll,o);const a=Nt(n,Jp,Mg,{[Xp]:!0});F(n,e_,iu,{[Xp]:!0}),F(a,e_),Nt(a,Jp,a);const s=Nt(n,cl,wg,{[Dg]:!0});Nt(s,cl,s),F(s,uN,s);const l=F(s,dN);Nt(l,cl,s);const c=[[Mr,i]],u=[[Mr,null],[ll,o]];for(let d=0;dd[0]>p[0]?1:-1);for(let d=0;d=0?m[dc]=!0:Mr.test(p)?ul.test(p)?m[ia]=!0:m[cc]=!0:m[lc]=!0,jp(n,p,p,m)}return jp(n,"localhost",to,{ascii:!0}),n.jd=new dt(Va),{start:n,tokens:li({groups:e},Lg)}}function _N(t,e){const n=mN(e.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,p++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=p,c-=d,i.push({t:u.t,v:e.slice(o-c,o),s:o-c,e:o})}return i}function mN(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?t[r]:t.slice(r,r+2);e.push(a),r+=a.length}return e}function Tn(t,e,n,r,i){let o;const a=e.length;for(let s=0;s=0;)o++;if(o>0){e.push(n.join(""));for(let a=parseInt(t.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(t[r]),r++}return e}const no={defaultProtocol:"http",events:null,format:n_,formatHref:n_,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function cu(t,e){e===void 0&&(e=null);let n=li({},no);t&&(n=li(n,t instanceof cu?t.o:t));const r=n.ignoreTags,i=[];for(let o=0;on?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=no.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),o=this.toFormattedString(t),a={},s=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return a.href=r,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&li(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};function Ts(t,e){class n extends kg{constructor(i,o){super(i,o),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const r_=Ts("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),i_=Ts("text"),fN=Ts("nl"),Zn=Ts("url",{isLink:!0,toHref(t){return t===void 0&&(t=no.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==to&&t[1].t===In}}),Ge=t=>new dt(t);function gN(t){let{groups:e}=t;const n=e.domain.concat([Aa,xa,Rn,Da,Ma,wa,La,ka,Wt,ru,Pa,Fa,Ba,Ua,Kt,Va,Gi,Ga]),r=[Ia,qr,tr,$r,nr,In,ou,qt,au,Ui,zr,Bi,Hi,Ha,su,lu],i=[Aa,Ia,xa,Da,Ma,wa,tr,La,ka,Wt,zr,Pa,Fa,Ba,Ua,Ha,Kt,Va,Gi,Ga],o=Ge(),a=F(o,Gi);j(a,i,a),j(a,e.domain,a);const s=Ge(),l=Ge(),c=Ge();j(o,e.domain,s),j(o,e.scheme,l),j(o,e.slashscheme,c),j(s,i,a),j(s,e.domain,s);const u=F(s,Rn);F(a,Rn,u),F(l,Rn,u),F(c,Rn,u);const d=F(a,qt);j(d,i,a),j(d,e.domain,a);const p=Ge();j(u,e.domain,p),j(p,e.domain,p);const _=F(p,qt);j(_,e.domain,p);const m=Ge(r_);j(_,e.tld,m),j(_,e.utld,m),F(u,to,m);const f=F(p,Wt);j(f,e.domain,p),j(m,e.domain,p),F(m,qt,_),F(m,Wt,f);const g=F(m,In);j(g,e.numeric,r_);const S=F(s,Wt),E=F(s,qt);j(S,e.domain,s),j(E,i,a),j(E,e.domain,s);const b=Ge(Zn);j(E,e.tld,b),j(E,e.utld,b),j(b,e.domain,s),j(b,i,a),F(b,qt,E),F(b,Wt,S),F(b,Rn,u);const h=F(b,In),C=Ge(Zn);j(h,e.numeric,C);const T=Ge(Zn),R=Ge();j(T,n,T),j(T,r,R),j(R,n,T),j(R,r,R),F(b,Kt,T),F(C,Kt,T);const x=F(l,In),O=F(c,In),M=F(O,Kt),B=F(M,Kt);j(l,e.domain,s),F(l,qt,E),F(l,Wt,S),j(c,e.domain,s),F(c,qt,E),F(c,Wt,S),j(x,e.domain,T),F(x,Kt,T),j(B,e.domain,T),j(B,n,T),F(B,Kt,T);const Y=F(T,zr),$=F(T,Bi),q=F(T,Ui),V=F(T,Hi);F(R,zr,Y),F(R,Bi,$),F(R,Ui,q),F(R,Hi,V),F(Y,tr,T),F($,$r,T),F(q,qr,T),F(V,nr,T),F(Y,tr,T);const J=Ge(Zn),y=Ge(Zn),v=Ge(Zn),A=Ge(Zn);j(Y,n,J),j($,n,y),j(q,n,v),j(V,n,A);const k=Ge(),G=Ge(),z=Ge(),ae=Ge();return j(Y,r),j($,r),j(q,r),j(V,r),j(J,n,J),j(y,n,y),j(v,n,v),j(A,n,A),j(J,r,J),j(y,r,y),j(v,r,v),j(A,r,A),j(k,n,k),j(G,n,y),j(z,n,v),j(ae,n,A),j(k,r,k),j(G,r,G),j(z,r,z),j(ae,r,ae),F(y,$r,T),F(v,qr,T),F(A,nr,T),F(J,tr,T),F(G,$r,T),F(z,qr,T),F(ae,nr,T),F(k,nr,T),F(o,to,b),F(o,iu,fN),{start:o,tokens:Lg}}function hN(t,e,n){let r=n.length,i=0,o=[],a=[];for(;i=0&&p++,i++,u++;if(p<0)i-=u,i0&&(o.push(dl(i_,e,a)),a=[]),i-=p,u-=p;const _=d.t,m=n.slice(i-u,i);o.push(dl(_,e,m))}}return a.length>0&&o.push(dl(i_,e,a)),o}function dl(t,e,n){const r=n[0].s,i=n[n.length-1].e,o=e.slice(r,i);return new t(o,n)}const EN=typeof console<"u"&&console&&console.warn||(()=>{}),SN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ae={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function bN(){dt.groups={},Ae.scanner=null,Ae.parser=null,Ae.tokenQueue=[],Ae.pluginQueue=[],Ae.customSchemes=[],Ae.initialized=!1}function o_(t,e){if(e===void 0&&(e=!1),Ae.initialized&&EN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${SN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" -3. "-" cannot repeat`);Ae.customSchemes.push([t,e])}function hN(){Ae.scanner=lN(Ae.customSchemes);for(let t=0;t{const i=e.some(c=>c.docChanged)&&!n.doc.eq(r.doc),o=e.some(c=>c.getMeta("preventAutolink"));if(!i||o)return;const{tr:a}=r,s=AT(n.doc,[...e]);if(PT(s).forEach(({newRange:c})=>{const u=xT(r.doc,c,_=>_.isTextblock);let d,p;if(u.length>1?(d=u[0],p=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],p=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&p){const _=p.split(" ").filter(E=>E!=="");if(_.length<=0)return!1;const m=_[_.length-1],f=d.pos+p.lastIndexOf(m);if(!m)return!1;const g=Ig(m).map(E=>E.toObject(t.defaultProtocol));if(!EN(g))return!1;g.filter(E=>E.isLink).map(E=>({...E,from:f+E.start+1,to:f+E.end+1})).filter(E=>r.schema.marks.code?!r.doc.rangeHasMark(E.from,E.to,r.schema.marks.code):!0).filter(E=>t.validate(E.value)).forEach(E=>{Fc(E.from,E.to,r.doc).some(S=>S.mark.type===t.type)||a.addMark(E.from,E.to,t.type.create({href:E.href}))})}}),!!a.steps.length)return a}})}function bN(t){return new be({key:new ve("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,o;if(r.button!==0||!e.editable)return!1;let a=r.target;const s=[];for(;a.nodeName!=="DIV";)s.push(a),a=a.parentNode;if(!s.find(p=>p.nodeName==="A"))return!1;const l=yf(e.state,t.type.name),c=r.target,u=(i=c==null?void 0:c.href)!==null&&i!==void 0?i:l.href,d=(o=c==null?void 0:c.target)!==null&&o!==void 0?o:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function TN(t){return new be({key:new ve("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:i}=e,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(c=>{s+=c.textContent});const l=xg(s,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const CN=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function e_(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!t||t.replace(CN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const yN=ft.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Jp(t);return}Jp(t.scheme,t.optionalSlashes)})},onDestroy(){gN()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!e_(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return e_(t.href,this.options.protocols)?["a",pe(this.options.HTMLAttributes,t),0]:["a",pe(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Vn({find:t=>{const e=[];if(t){const{validate:n}=this.options,r=xg(t).filter(i=>i.isLink&&n(i.value));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(SN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(bN({type:this.type})),this.options.linkOnPaste&&t.push(TN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),vN=ft.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),RN=ft.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),ON=Ne.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",pe(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),NN=/^\s*(\[([( |x])?\])\s$/,AN=Ne.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",pe(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const i=document.createElement("li"),o=document.createElement("label"),a=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div");return o.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",c=>c.preventDefault()),s.addEventListener("change",c=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:u}=c.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:d})=>{const p=n();if(typeof p!="number")return!1;const _=d.doc.nodeAt(p);return d.setNodeMarkup(p,void 0,{..._==null?void 0:_.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,u)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,u])=>{i.setAttribute(c,u)}),i.dataset.checked=t.attrs.checked,t.attrs.checked&&s.setAttribute("checked","checked"),o.append(s,a),i.append(o,l),Object.entries(e).forEach(([c,u])=>{i.setAttribute(c,u)}),{dom:i,contentDOM:l,update:c=>c.type!==this.type?!1:(i.dataset.checked=c.attrs.checked,c.attrs.checked?s.setAttribute("checked","checked"):s.removeAttribute("checked"),!0)}}},addInputRules(){return[Sr({find:NN,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}});function IN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dg(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Dg(n)}),t}let t_=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Mg(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kn(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const xN="",n_=t=>!!t.scope,DN=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};let MN=class{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Mg(e)}openNode(e){if(!n_(e))return;const n=DN(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){n_(e)&&(this.buffer+=xN)}value(){return this.buffer}span(e){this.buffer+=``}};const r_=(t={})=>{const e={children:[]};return Object.assign(e,t),e};let wN=class wg{constructor(){this.rootNode=r_(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=r_({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{wg._collapse(n)}))}},LN=class extends wN{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new MN(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function no(t){return t?typeof t=="string"?t:t.source:null}function Lg(t){return yr("(?=",t,")")}function kN(t){return yr("(?:",t,")*")}function PN(t){return yr("(?:",t,")?")}function yr(...t){return t.map(n=>no(n)).join("")}function FN(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function au(...t){return"("+(FN(t).capture?"":"?:")+t.map(r=>no(r)).join("|")+")"}function kg(t){return new RegExp(t.toString()+"|").exec("").length-1}function BN(t,e){const n=t&&t.exec(e);return n&&n.index===0}const UN=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function su(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let o=no(r),a="";for(;o.length>0;){const s=UN.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const HN=/\b\B/,Pg="[a-zA-Z]\\w*",lu="[a-zA-Z_]\\w*",Fg="\\b\\d+(\\.\\d+)?",Bg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ug="\\b(0b[01]+)",GN="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",VN=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=yr(e,/.*\b/,t.binary,/\b.*/)),kn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ro={begin:"\\\\[\\s\\S]",relevance:0},YN={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ro]},zN={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ro]},$N={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/},Ts=function(t,e,n={}){const r=kn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=au("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:yr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},qN=Ts("//","$"),WN=Ts("/\\*","\\*/"),KN=Ts("#","$"),QN={scope:"number",begin:Fg,relevance:0},ZN={scope:"number",begin:Bg,relevance:0},XN={scope:"number",begin:Ug,relevance:0},jN={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ro,{begin:/\[/,end:/\]/,relevance:0,contains:[ro]}]},JN={scope:"title",begin:Pg,relevance:0},eA={scope:"title",begin:lu,relevance:0},tA={begin:"\\.\\s*"+lu,relevance:0},nA=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Go=Object.freeze({__proto__:null,APOS_STRING_MODE:YN,BACKSLASH_ESCAPE:ro,BINARY_NUMBER_MODE:XN,BINARY_NUMBER_RE:Ug,COMMENT:Ts,C_BLOCK_COMMENT_MODE:WN,C_LINE_COMMENT_MODE:qN,C_NUMBER_MODE:ZN,C_NUMBER_RE:Bg,END_SAME_AS_BEGIN:nA,HASH_COMMENT_MODE:KN,IDENT_RE:Pg,MATCH_NOTHING_RE:HN,METHOD_GUARD:tA,NUMBER_MODE:QN,NUMBER_RE:Fg,PHRASAL_WORDS_MODE:$N,QUOTE_STRING_MODE:zN,REGEXP_MODE:jN,RE_STARTERS_RE:GN,SHEBANG:VN,TITLE_MODE:JN,UNDERSCORE_IDENT_RE:lu,UNDERSCORE_TITLE_MODE:eA});function rA(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function iA(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function oA(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=rA,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function aA(t,e){Array.isArray(t.illegal)&&(t.illegal=au(...t.illegal))}function sA(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function lA(t,e){t.relevance===void 0&&(t.relevance=1)}const cA=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=yr(n.beforeMatch,Lg(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},uA=["of","and","for","in","not","or","if","then","parent","list","value"],dA="keyword";function Hg(t,e,n=dA){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(o){Object.assign(r,Hg(t[o],e,o))}),r;function i(o,a){e&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,pA(l[0],l[1])]})}}function pA(t,e){return e?Number(e):_A(t)?0:1}function _A(t){return uA.includes(t.toLowerCase())}const i_={},pr=t=>{console.error(t)},o_=(t,...e)=>{console.log(`WARN: ${t}`,...e)},wr=(t,e)=>{i_[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),i_[`${t}/${e}`]=!0)},Va=new Error;function Gg(t,e,{key:n}){let r=0;const i=t[n],o={},a={};for(let s=1;s<=e.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=kg(e[s-1]);t[n]=a,t[n]._emit=o,t[n]._multi=!0}function mA(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw pr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Va;if(typeof t.beginScope!="object"||t.beginScope===null)throw pr("beginScope must be object"),Va;Gg(t,t.begin,{key:"beginScope"}),t.begin=su(t.begin,{joinWith:""})}}function fA(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw pr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Va;if(typeof t.endScope!="object"||t.endScope===null)throw pr("endScope must be object"),Va;Gg(t,t.end,{key:"endScope"}),t.end=su(t.end,{joinWith:""})}}function gA(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function hA(t){gA(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),mA(t),fA(t)}function EA(t){function e(a,s){return new RegExp(no(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=kg(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(su(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[iA,sA,hA,cA].forEach(u=>u(a,s)),t.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[oA,aA,lA].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Hg(a.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=e(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=e(l.end)),l.terminatorEnd=no(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return SA(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=kn(t.classNameAliases||{}),o(t)}function Vg(t){return t?t.endsWithParent||Vg(t.starts):!1}function SA(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return kn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Vg(t)?kn(t,{starts:t.starts?kn(t.starts):null}):Object.isFrozen(t)?kn(t):t}var bA="11.10.0";let TA=class extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}};const ul=Mg,a_=kn,s_=Symbol("nomatch"),CA=7,Yg=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:LN};function l(y){return s.noHighlightRe.test(y)}function c(y){let v=y.className+" ";v+=y.parentNode?y.parentNode.className:"";const A=s.languageDetectRe.exec(v);if(A){const k=O(A[1]);return k||(o_(o.replace("{}",A[1])),o_("Falling back to no-highlight mode for this block.",y)),k?A[1]:"no-highlight"}return v.split(/\s+/).find(k=>l(k)||O(k))}function u(y,v,A){let k="",G="";typeof v=="object"?(k=y,A=v.ignoreIllegals,G=v.language):(wr("10.7.0","highlight(lang, code, ...args) has been deprecated."),wr("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(A=!0);const z={code:k,language:G};V("before:highlight",z);const ae=z.result?z.result:d(z.language,z.code,A);return ae.code=z.code,V("after:highlight",ae),ae}function d(y,v,A,k){const G=Object.create(null);function z(N,D){return N.keywords[D]}function ae(){if(!P.keywords){oe.addText(X);return}let N=0;P.keywordPatternRe.lastIndex=0;let D=P.keywordPatternRe.exec(X),U="";for(;D;){U+=X.substring(N,D.index);const K=he.case_insensitive?D[0].toLowerCase():D[0],_e=z(P,K);if(_e){const[De,Rr]=_e;if(oe.addText(U),U="",G[K]=(G[K]||0)+1,G[K]<=CA&&(He+=Rr),De.startsWith("_"))U+=D[0];else{const I=he.classNameAliases[De]||De;ue(D[0],I)}}else U+=D[0];N=P.keywordPatternRe.lastIndex,D=P.keywordPatternRe.exec(X)}U+=X.substring(N),oe.addText(U)}function Ce(){if(X==="")return;let N=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){oe.addText(X);return}N=d(P.subLanguage,X,!0,et[P.subLanguage]),et[P.subLanguage]=N._top}else N=_(X,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(He+=N.relevance),oe.__addSublanguage(N._emitter,N.language)}function ie(){P.subLanguage!=null?Ce():ae(),X=""}function ue(N,D){N!==""&&(oe.startScope(D),oe.addText(N),oe.endScope())}function Be(N,D){let U=1;const K=D.length-1;for(;U<=K;){if(!N._emit[U]){U++;continue}const _e=he.classNameAliases[N[U]]||N[U],De=D[U];_e?ue(De,_e):(X=De,ae(),X=""),U++}}function Le(N,D){return N.scope&&typeof N.scope=="string"&&oe.openNode(he.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(ue(X,he.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),X=""):N.beginScope._multi&&(Be(N.beginScope,D),X="")),P=Object.create(N,{parent:{value:P}}),P}function We(N,D,U){let K=BN(N.endRe,U);if(K){if(N["on:end"]){const _e=new t_(N);N["on:end"](D,_e),_e.isMatchIgnored&&(K=!1)}if(K){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return We(N.parent,D,U)}function Ke(N){return P.matcher.regexIndex===0?(X+=N[0],1):(bt=!0,0)}function ht(N){const D=N[0],U=N.rule,K=new t_(U),_e=[U.__beforeBegin,U["on:begin"]];for(const De of _e)if(De&&(De(N,K),K.isMatchIgnored))return Ke(D);return U.skip?X+=D:(U.excludeBegin&&(X+=D),ie(),!U.returnBegin&&!U.excludeBegin&&(X=D)),Le(U,N),U.returnBegin?0:D.length}function Ft(N){const D=N[0],U=v.substring(N.index),K=We(P,N,U);if(!K)return s_;const _e=P;P.endScope&&P.endScope._wrap?(ie(),ue(D,P.endScope._wrap)):P.endScope&&P.endScope._multi?(ie(),Be(P.endScope,N)):_e.skip?X+=D:(_e.returnEnd||_e.excludeEnd||(X+=D),ie(),_e.excludeEnd&&(X=D));do P.scope&&oe.closeNode(),!P.skip&&!P.subLanguage&&(He+=P.relevance),P=P.parent;while(P!==K.parent);return K.starts&&Le(K.starts,N),_e.returnEnd?0:D.length}function de(){const N=[];for(let D=P;D!==he;D=D.parent)D.scope&&N.unshift(D.scope);N.forEach(D=>oe.openNode(D))}let ke={};function Qe(N,D){const U=D&&D[0];if(X+=N,U==null)return ie(),0;if(ke.type==="begin"&&D.type==="end"&&ke.index===D.index&&U===""){if(X+=v.slice(D.index,D.index+1),!i){const K=new Error(`0 width match regex (${y})`);throw K.languageName=y,K.badRule=ke.rule,K}return 1}if(ke=D,D.type==="begin")return ht(D);if(D.type==="illegal"&&!A){const K=new Error('Illegal lexeme "'+U+'" for mode "'+(P.scope||"")+'"');throw K.mode=P,K}else if(D.type==="end"){const K=Ft(D);if(K!==s_)return K}if(D.type==="illegal"&&U==="")return 1;if(St>1e5&&St>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=U,U.length}const he=O(y);if(!he)throw pr(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');const zt=EA(he);let Et="",P=k||zt;const et={},oe=new s.__emitter(s);de();let X="",He=0,xe=0,St=0,bt=!1;try{if(he.__emitTokens)he.__emitTokens(v,oe);else{for(P.matcher.considerAll();;){St++,bt?bt=!1:P.matcher.considerAll(),P.matcher.lastIndex=xe;const N=P.matcher.exec(v);if(!N)break;const D=v.substring(xe,N.index),U=Qe(D,N);xe=N.index+U}Qe(v.substring(xe))}return oe.finalize(),Et=oe.toHTML(),{language:y,value:Et,relevance:He,illegal:!1,_emitter:oe,_top:P}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:y,value:ul(v),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:xe,context:v.slice(xe-100,xe+100),mode:N.mode,resultSoFar:Et},_emitter:oe};if(i)return{language:y,value:ul(v),illegal:!1,relevance:0,errorRaised:N,_emitter:oe,_top:P};throw N}}function p(y){const v={value:ul(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return v._emitter.addText(y),v}function _(y,v){v=v||s.languages||Object.keys(e);const A=p(y),k=v.filter(O).filter(B).map(ie=>d(ie,y,!1));k.unshift(A);const G=k.sort((ie,ue)=>{if(ie.relevance!==ue.relevance)return ue.relevance-ie.relevance;if(ie.language&&ue.language){if(O(ie.language).supersetOf===ue.language)return 1;if(O(ue.language).supersetOf===ie.language)return-1}return 0}),[z,ae]=G,Ce=z;return Ce.secondBest=ae,Ce}function m(y,v,A){const k=v&&n[v]||A;y.classList.add("hljs"),y.classList.add(`language-${k}`)}function f(y){let v=null;const A=c(y);if(l(A))return;if(V("before:highlightElement",{el:y,language:A}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.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(y)),s.throwUnescapedHTML))throw new TA("One of your code blocks includes unescaped HTML.",y.innerHTML);v=y;const k=v.textContent,G=A?u(k,{language:A,ignoreIllegals:!0}):_(k);y.innerHTML=G.value,y.dataset.highlighted="yes",m(y,A,G.language),y.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(y.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),V("after:highlightElement",{el:y,result:G,text:k})}function g(y){s=a_(s,y)}const E=()=>{h(),wr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){h(),wr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function h(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(f)}function C(){b&&h()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function T(y,v){let A=null;try{A=v(t)}catch(k){if(pr("Language definition for '{}' could not be registered.".replace("{}",y)),i)pr(k);else throw k;A=a}A.name||(A.name=y),e[y]=A,A.rawDefinition=v.bind(null,t),A.aliases&&M(A.aliases,{languageName:y})}function R(y){delete e[y];for(const v of Object.keys(n))n[v]===y&&delete n[v]}function x(){return Object.keys(e)}function O(y){return y=(y||"").toLowerCase(),e[y]||e[n[y]]}function M(y,{languageName:v}){typeof y=="string"&&(y=[y]),y.forEach(A=>{n[A.toLowerCase()]=v})}function B(y){const v=O(y);return v&&!v.disableAutodetect}function Y(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=v=>{y["before:highlightBlock"](Object.assign({block:v.el},v))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=v=>{y["after:highlightBlock"](Object.assign({block:v.el},v))})}function $(y){Y(y),r.push(y)}function q(y){const v=r.indexOf(y);v!==-1&&r.splice(v,1)}function V(y,v){const A=y;r.forEach(function(k){k[A]&&k[A](v)})}function J(y){return wr("10.7.0","highlightBlock will be removed entirely in v12.0"),wr("10.7.0","Please use highlightElement now."),f(y)}Object.assign(t,{highlight:u,highlightAuto:_,highlightAll:h,highlightElement:f,highlightBlock:J,configure:g,initHighlighting:E,initHighlightingOnLoad:S,registerLanguage:T,unregisterLanguage:R,listLanguages:x,getLanguage:O,registerAliases:M,autoDetection:B,inherit:a_,addPlugin:$,removePlugin:q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=bA,t.regex={concat:yr,lookahead:Lg,either:au,optional:PN,anyNumberOfTimes:kN};for(const y in Go)typeof Go[y]=="object"&&Dg(Go[y]);return Object.assign(t,Go),t},ci=Yg({});ci.newInstance=()=>Yg({});var yA=ci;ci.HighlightJS=ci;ci.default=ci;var vA=IN(yA);function zg(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?zg(n.children,r):{text:n.value,classes:r}}).flat()}function l_(t){return t.value||t.children||[]}function RA(t){return!!vA.getLanguage(t)}function c_({doc:t,name:e,lowlight:n,defaultLanguage:r}){const i=[];return $l(t,o=>o.type.name===e).forEach(o=>{var a;let s=o.pos+1;const l=o.node.attrs.language||r,c=n.listLanguages(),u=l&&(c.includes(l)||RA(l)||!((a=n.registered)===null||a===void 0)&&a.call(n,l))?l_(n.highlight(l,o.node.textContent)):l_(n.highlightAuto(o.node.textContent));zg(u).forEach(d=>{const p=s+d.text.length;if(d.classes.length){const _=Fe.inline(s,p,{class:d.classes.join(" ")});i.push(_)}s=p})}),Se.create(t,i)}function OA(t){return typeof t=="function"}function NA({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>OA(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new be({key:new ve("lowlight"),state:{init:(i,{doc:o})=>c_({doc:o,name:t,lowlight:e,defaultLanguage:n}),apply:(i,o,a,s)=>{const l=a.selection.$head.parent.type.name,c=s.selection.$head.parent.type.name,u=$l(a.doc,p=>p.type.name===t),d=$l(s.doc,p=>p.type.name===t);return i.docChanged&&([l,c].includes(t)||d.length!==u.length||i.steps.some(p=>p.from!==void 0&&p.to!==void 0&&u.some(_=>_.pos>=p.from&&_.pos+_.node.nodeSize<=p.to)))?c_({doc:i.doc,name:t,lowlight:e,defaultLanguage:n}):o.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const AA=sg.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],NA({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function u_(t,e,n={}){const{empty:r,ranges:i,from:o,to:a}=t.selection,s=e?Sn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>s?s.name===f.type.name:!0).find(f=>ri(f.attrs,n,{strict:!1}));let l=o,c=a;const u=[];i.forEach(({$from:f,$to:g})=>{const E=f.pos,S=g.pos;l=Math.min(l,E),c=Math.max(l,S),t.doc.nodesBetween(E,S,(b,h)=>{if(!b.isText&&!b.marks.length)return;const C=Math.max(E,h),T=Math.min(S,h+b.nodeSize);u.push(...b.marks.map(R=>({mark:R,from:C,to:T})))})});const d=c-l;if(d===0)return!1;const p=u.filter(f=>s?s.name===f.mark.type.name:!0).filter(f=>ri(f.mark.attrs,n,{strict:!1})).reduce((f,g)=>f+g.to-g.from,0),_=u.filter(f=>s?f.mark.type!==s&&f.mark.type.excludes(s):!0).reduce((f,g)=>f+g.to-g.from,0);return(p>0?p+_:p)>=d}function d_(t){var e;return!!((e=t.spec.group)!=null&&e.split(" ").includes("list"))}function p_(t,e,n={}){if(!e)return hr(t,null,n)||u_(t,null,n);const r=t.schema.nodes[e];if(r){if(d_(r)){const o=_s(a=>d_(a.type))(t.selection);return!!(o&&o.node.type.name===e)}return hr(t,e,n)}return t.schema.marks[e]?u_(t,e,n):!1}function __(t){return new mo({find:t.find,handler:({state:e,range:n,match:r,commands:i})=>{const o=e.doc.resolve(n.from),a=le(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,a),setTimeout(()=>i.focus(!0),0)}})}const $g=[{name:"Auto",value:"auto"},{name:"Plain Text",value:"plaintext",alias:["text","txt"]},{name:"Bash",value:"bash",alias:["sh"]},{name:"BASIC",value:"basic",alias:[]},{name:"C",value:"c",alias:["h"]},{name:"Clojure",value:"clojure",alias:["clj","edn"]},{name:"CMake",value:"cmake",alias:["cmake.in"]},{name:"CoffeeScript",value:"coffeescript",alias:["coffee","cson","iced"]},{name:"C++",value:"cpp",alias:["cc","c++","h++","hpp","hh","hxx","cxx"]},{name:"C#",value:"csharp",alias:["cs","c#"]},{name:"CSS",value:"css",alias:[]},{name:"Dart",value:"dart",alias:[]},{name:"Delphi",value:"delphi",alias:["dpr","dfm","pas","pascal"]},{name:"Dockerfile",value:"dockerfile",alias:["docker"]},{name:"Erlang",value:"erlang",alias:["erl"]},{name:"Go",value:"go",alias:["golang"]},{name:"GraphQL",value:"graphql",alias:["gql"]},{name:"Groovy",value:"groovy",alias:[]},{name:"Java",value:"java",alias:["jsp"]},{name:"JavaScript",value:"javascript",alias:["js","jsx","mjs","cjs"]},{name:"JSON",value:"json",alias:[]},{name:"Kotlin",value:"kotlin",alias:["kt","kts"]},{name:"Lua",value:"lua",alias:[]},{name:"Makefile",value:"makefile",alias:["mk","mak","make"]},{name:"Markdown",value:"markdown",alias:["md","mkdown","mkd"]},{name:"Matlab",value:"matlab",alias:[]},{name:"Objective-C",value:"objectivec",alias:["mm","objc","obj-c","obj-c++","objective-c++"]},{name:"PHP",value:"php",alias:[]},{name:"Properties",value:"properties",alias:[]},{name:"Python",value:"python",alias:["py","gyp","ipython"]},{name:"Ruby",value:"ruby",alias:["rb","gemspec","podspec","thor","irb"]},{name:"Rust",value:"rust",alias:["rs"]},{name:"Scala",value:"scala",alias:[]},{name:"SCSS",value:"scss",alias:[]},{name:"Shell",value:"shell",alias:["console","shellsession"]},{name:"SQL",value:"sql",alias:[]},{name:"Swift",value:"swift",alias:[]},{name:"TypeScript",value:"typescript",alias:["ts","tsx"]},{name:"WebAssembly",value:"wasm",alias:[]},{name:"HTML, XML",value:"xml",alias:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"]},{name:"YAML",value:"yaml",alias:["yml"]}],m_=t=>{if(!t)return null;const e=t.toLocaleLowerCase();return $g.find(r=>r.value===e||r.alias&&r.alias.includes(e))};function IA(t,e){const{$from:n,from:r,to:i}=t,s=(e.textContent||"").split(` -`).reduce((_,m,f)=>(_[f]=(_[f-1]||0)+m.length+(f===0?0:1),_),{}),l=n.parentOffset,c=n.parentOffset+i-r,u=Object.keys(s),d=u.find(_=>s[_]>=l),p=u.find(_=>s[_]>=c);return{start:d,end:p}}const xA=/^[`·]{3}([a-z]+)?[\s\n]$/,DA=/^[~~]{3}([a-z]+)?[\s\n]$/,MA=AA.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),lowlight:{},defaultLanguage:null,languages:[]}},addCommands(){var t;return{...(t=this.parent)==null?void 0:t.call(this),addCodeComments:(e,n)=>({editor:r})=>{const{storage:i,view:{dispatch:o},state:{tr:a}}=r;o(a.setSelection(ee.create(r.state.doc,n)).deleteSelection());const s=i.markdown.serializer.serialize(e);return En.get(this.options.codeCommentsAi.model).chat(s,this.options.codeCommentsAi.prompt,new Ra(r,{markdownParseEnable:!0,useMarkdownTextOnly:!0})),!0},addCodeExplain:(e,n)=>({editor:r})=>{const{storage:i,view:{dispatch:o},state:{tr:a}}=r,s=r.state.doc.nodeSize;s<=n+e.nodeSize+2?(r.commands.insertContentAt(n+e.nodeSize+1,"

"),o(a.setSelection(Z.create(r.state.doc,s-2)))):o(a.setSelection(Z.create(r.state.doc,n+e.nodeSize+1)));const l=i.markdown.serializer.serialize(e),c=En.get(this.options.codeExplainAi.model);return c==null||c.chat(l,this.options.codeExplainAi.prompt,new Ra(r)),!0},toggleCodeBlock:e=>({commands:n,editor:r,chain:i})=>{const{state:o}=r,{from:a,to:s}=o.selection;if(!p_(o,this.name)&&!o.selection.empty){let l=!0;const c=[];if(o.doc.nodesBetween(a,s,(u,d)=>{if(u.isInline)return!1;if(u.type.name!=="paragraph")return d+1<=a&&d+u.nodeSize-1>=s?void 0:(l=!1,!1);{const p=(u.textContent||"").slice(d+1>a?0:a-d-1,d+u.nodeSize-11)return i().command(({state:u,tr:d})=>(d.replaceRangeWith(a,s,this.type.create(e,u.schema.text(c.join(` -`)))),!0)).setTextSelection({from:a+2,to:a+2}).run()}return n.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){var t;return{...(t=this.parent)==null?void 0:t.call(this),Tab:({editor:e})=>{const{state:n,view:r}=e;if(!p_(n,this.name))return!1;const{selection:i,tr:o}=n,a=" ";if(i.empty)r.dispatch(o.insertText(a));else{const{$from:s,from:l,to:c}=i,u=s.node();if(u.type!==this.type)return!1;const{start:d,end:p}=IA(i,u);if(d===void 0||p===void 0)return r.dispatch(o.replaceSelectionWith(n.schema.text(a))),!0;const f=(u.textContent||"").split(` -`).map((S,b)=>b>=d&&b<=p&&S?a+S:S),g=s.node(1),E=s.start(1);o.replaceWith(E,E+g.nodeSize-2,n.schema.text(f.join(` -`))),o.setSelection(Z.between(o.doc.resolve(l+a.length),o.doc.resolve(c+(p-d+1)*a.length))),r.dispatch(o)}return!0}}},addInputRules(){return[__({find:xA,type:this.type,getAttributes:t=>{var e;return{language:((e=m_(t[1]))==null?void 0:e.value)||this.options.defaultLanguage}}}),__({find:DA,type:this.type,getAttributes:t=>{var e;return{language:((e=m_(t[1]))==null?void 0:e.value)||this.options.defaultLanguage}}})]},addNodeView(){return t=>{var o,a;const e=document.createElement("div");e.classList.add("aie-codeblock-wrapper");const{language:n}=t.node.attrs;if(!this.editor.isEditable)return e.innerHTML=` +3. "-" cannot repeat`);Ae.customSchemes.push([t,e])}function TN(){Ae.scanner=pN(Ae.customSchemes);for(let t=0;t{const i=e.some(c=>c.docChanged)&&!n.doc.eq(r.doc),o=e.some(c=>c.getMeta("preventAutolink"));if(!i||o)return;const{tr:a}=r,s=LT(n.doc,[...e]);if(GT(s).forEach(({newRange:c})=>{const u=PT(r.doc,c,_=>_.isTextblock);let d,p;if(u.length>1?(d=u[0],p=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],p=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&p){const _=p.split(" ").filter(S=>S!=="");if(_.length<=0)return!1;const m=_[_.length-1],f=d.pos+p.lastIndexOf(m);if(!m)return!1;const g=Pg(m).map(S=>S.toObject(t.defaultProtocol));if(!CN(g))return!1;g.filter(S=>S.isLink).map(S=>({...S,from:f+S.start+1,to:f+S.end+1})).filter(S=>r.schema.marks.code?!r.doc.rangeHasMark(S.from,S.to,r.schema.marks.code):!0).filter(S=>t.validate(S.value)).filter(S=>t.shouldAutoLink(S.value)).forEach(S=>{Gc(S.from,S.to,r.doc).some(E=>E.mark.type===t.type)||a.addMark(S.from,S.to,t.type.create({href:S.href}))})}}),!!a.steps.length)return a}})}function vN(t){return new Se({key:new ve("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,o;if(r.button!==0||!e.editable)return!1;let a=r.target;const s=[];for(;a.nodeName!=="DIV";)s.push(a),a=a.parentNode;if(!s.find(p=>p.nodeName==="A"))return!1;const l=xf(e.state,t.type.name),c=r.target,u=(i=c==null?void 0:c.href)!==null&&i!==void 0?i:l.href,d=(o=c==null?void 0:c.target)!==null&&o!==void 0?o:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function RN(t){return new Se({key:new ve("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:i}=e,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(c=>{s+=c.textContent});const l=Fg(s,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const ON=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function vi(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!t||t.replace(ON,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const NN=ft.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){o_(t);return}o_(t.scheme,t.optionalSlashes)})},onDestroy(){bN()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!vi(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!vi(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!vi(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",pe(this.options.HTMLAttributes,t),0]:["a",pe(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Yn({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,i=Fg(t).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:a=>!!vi(a,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(o=>e.push({text:o.value,data:{href:o.href},index:o.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(yN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!vi(i,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(vN({type:this.type})),this.options.linkOnPaste&&t.push(RN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),AN=ft.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),IN=ft.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),xN=Ne.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",pe(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),DN=/^\s*(\[([( |x])?\])\s$/,MN=Ne.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",pe(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const i=document.createElement("li"),o=document.createElement("label"),a=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div");return o.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",c=>c.preventDefault()),s.addEventListener("change",c=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:u}=c.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:d})=>{const p=n();if(typeof p!="number")return!1;const _=d.doc.nodeAt(p);return d.setNodeMarkup(p,void 0,{..._==null?void 0:_.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,u)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([c,u])=>{i.setAttribute(c,u)}),i.dataset.checked=t.attrs.checked,t.attrs.checked&&s.setAttribute("checked","checked"),o.append(s,a),i.append(o,l),Object.entries(e).forEach(([c,u])=>{i.setAttribute(c,u)}),{dom:i,contentDOM:l,update:c=>c.type!==this.type?!1:(i.dataset.checked=c.attrs.checked,c.attrs.checked?s.setAttribute("checked","checked"):s.removeAttribute("checked"),!0)}}},addInputRules(){return[Sr({find:DN,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}});function wN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Bg(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Bg(n)}),t}let a_=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Ug(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kn(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const LN="
",s_=t=>!!t.scope,kN=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};let PN=class{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Ug(e)}openNode(e){if(!s_(e))return;const n=kN(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){s_(e)&&(this.buffer+=LN)}value(){return this.buffer}span(e){this.buffer+=``}};const l_=(t={})=>{const e={children:[]};return Object.assign(e,t),e};let FN=class Hg{constructor(){this.rootNode=l_(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=l_({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{Hg._collapse(n)}))}},BN=class extends FN{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new PN(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function ro(t){return t?typeof t=="string"?t:t.source:null}function Gg(t){return yr("(?=",t,")")}function UN(t){return yr("(?:",t,")*")}function HN(t){return yr("(?:",t,")?")}function yr(...t){return t.map(n=>ro(n)).join("")}function GN(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function uu(...t){return"("+(GN(t).capture?"":"?:")+t.map(r=>ro(r)).join("|")+")"}function Vg(t){return new RegExp(t.toString()+"|").exec("").length-1}function VN(t,e){const n=t&&t.exec(e);return n&&n.index===0}const YN=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function du(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let o=ro(r),a="";for(;o.length>0;){const s=YN.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const zN=/\b\B/,Yg="[a-zA-Z]\\w*",pu="[a-zA-Z_]\\w*",zg="\\b\\d+(\\.\\d+)?",$g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",qg="\\b(0b[01]+)",$N="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",qN=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=yr(e,/.*\b/,t.binary,/\b.*/)),kn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},io={begin:"\\\\[\\s\\S]",relevance:0},WN={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[io]},KN={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[io]},QN={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/},Cs=function(t,e,n={}){const r=kn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=uu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:yr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ZN=Cs("//","$"),XN=Cs("/\\*","\\*/"),jN=Cs("#","$"),JN={scope:"number",begin:zg,relevance:0},eA={scope:"number",begin:$g,relevance:0},tA={scope:"number",begin:qg,relevance:0},nA={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[io,{begin:/\[/,end:/\]/,relevance:0,contains:[io]}]},rA={scope:"title",begin:Yg,relevance:0},iA={scope:"title",begin:pu,relevance:0},oA={begin:"\\.\\s*"+pu,relevance:0},aA=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Vo=Object.freeze({__proto__:null,APOS_STRING_MODE:WN,BACKSLASH_ESCAPE:io,BINARY_NUMBER_MODE:tA,BINARY_NUMBER_RE:qg,COMMENT:Cs,C_BLOCK_COMMENT_MODE:XN,C_LINE_COMMENT_MODE:ZN,C_NUMBER_MODE:eA,C_NUMBER_RE:$g,END_SAME_AS_BEGIN:aA,HASH_COMMENT_MODE:jN,IDENT_RE:Yg,MATCH_NOTHING_RE:zN,METHOD_GUARD:oA,NUMBER_MODE:JN,NUMBER_RE:zg,PHRASAL_WORDS_MODE:QN,QUOTE_STRING_MODE:KN,REGEXP_MODE:nA,RE_STARTERS_RE:$N,SHEBANG:qN,TITLE_MODE:rA,UNDERSCORE_IDENT_RE:pu,UNDERSCORE_TITLE_MODE:iA});function sA(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function lA(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function cA(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=sA,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function uA(t,e){Array.isArray(t.illegal)&&(t.illegal=uu(...t.illegal))}function dA(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function pA(t,e){t.relevance===void 0&&(t.relevance=1)}const _A=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=yr(n.beforeMatch,Gg(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},mA=["of","and","for","in","not","or","if","then","parent","list","value"],fA="keyword";function Wg(t,e,n=fA){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(o){Object.assign(r,Wg(t[o],e,o))}),r;function i(o,a){e&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,gA(l[0],l[1])]})}}function gA(t,e){return e?Number(e):hA(t)?0:1}function hA(t){return mA.includes(t.toLowerCase())}const c_={},pr=t=>{console.error(t)},u_=(t,...e)=>{console.log(`WARN: ${t}`,...e)},wr=(t,e)=>{c_[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),c_[`${t}/${e}`]=!0)},Ya=new Error;function Kg(t,e,{key:n}){let r=0;const i=t[n],o={},a={};for(let s=1;s<=e.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=Vg(e[s-1]);t[n]=a,t[n]._emit=o,t[n]._multi=!0}function EA(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw pr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ya;if(typeof t.beginScope!="object"||t.beginScope===null)throw pr("beginScope must be object"),Ya;Kg(t,t.begin,{key:"beginScope"}),t.begin=du(t.begin,{joinWith:""})}}function SA(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw pr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ya;if(typeof t.endScope!="object"||t.endScope===null)throw pr("endScope must be object"),Ya;Kg(t,t.end,{key:"endScope"}),t.end=du(t.end,{joinWith:""})}}function bA(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function TA(t){bA(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),EA(t),SA(t)}function CA(t){function e(a,s){return new RegExp(ro(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Vg(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(du(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[lA,dA,TA,_A].forEach(u=>u(a,s)),t.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[cA,uA,pA].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Wg(a.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=e(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=e(l.end)),l.terminatorEnd=ro(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return yA(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=kn(t.classNameAliases||{}),o(t)}function Qg(t){return t?t.endsWithParent||Qg(t.starts):!1}function yA(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return kn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Qg(t)?kn(t,{starts:t.starts?kn(t.starts):null}):Object.isFrozen(t)?kn(t):t}var vA="11.10.0";let RA=class extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}};const pl=Ug,d_=kn,p_=Symbol("nomatch"),OA=7,Zg=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:BN};function l(y){return s.noHighlightRe.test(y)}function c(y){let v=y.className+" ";v+=y.parentNode?y.parentNode.className:"";const A=s.languageDetectRe.exec(v);if(A){const k=O(A[1]);return k||(u_(o.replace("{}",A[1])),u_("Falling back to no-highlight mode for this block.",y)),k?A[1]:"no-highlight"}return v.split(/\s+/).find(k=>l(k)||O(k))}function u(y,v,A){let k="",G="";typeof v=="object"?(k=y,A=v.ignoreIllegals,G=v.language):(wr("10.7.0","highlight(lang, code, ...args) has been deprecated."),wr("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(A=!0);const z={code:k,language:G};V("before:highlight",z);const ae=z.result?z.result:d(z.language,z.code,A);return ae.code=z.code,V("after:highlight",ae),ae}function d(y,v,A,k){const G=Object.create(null);function z(N,D){return N.keywords[D]}function ae(){if(!P.keywords){oe.addText(X);return}let N=0;P.keywordPatternRe.lastIndex=0;let D=P.keywordPatternRe.exec(X),U="";for(;D;){U+=X.substring(N,D.index);const K=he.case_insensitive?D[0].toLowerCase():D[0],_e=z(P,K);if(_e){const[De,Rr]=_e;if(oe.addText(U),U="",G[K]=(G[K]||0)+1,G[K]<=OA&&(He+=Rr),De.startsWith("_"))U+=D[0];else{const I=he.classNameAliases[De]||De;ue(D[0],I)}}else U+=D[0];N=P.keywordPatternRe.lastIndex,D=P.keywordPatternRe.exec(X)}U+=X.substring(N),oe.addText(U)}function Ce(){if(X==="")return;let N=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){oe.addText(X);return}N=d(P.subLanguage,X,!0,et[P.subLanguage]),et[P.subLanguage]=N._top}else N=_(X,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(He+=N.relevance),oe.__addSublanguage(N._emitter,N.language)}function ie(){P.subLanguage!=null?Ce():ae(),X=""}function ue(N,D){N!==""&&(oe.startScope(D),oe.addText(N),oe.endScope())}function Be(N,D){let U=1;const K=D.length-1;for(;U<=K;){if(!N._emit[U]){U++;continue}const _e=he.classNameAliases[N[U]]||N[U],De=D[U];_e?ue(De,_e):(X=De,ae(),X=""),U++}}function Le(N,D){return N.scope&&typeof N.scope=="string"&&oe.openNode(he.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(ue(X,he.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),X=""):N.beginScope._multi&&(Be(N.beginScope,D),X="")),P=Object.create(N,{parent:{value:P}}),P}function We(N,D,U){let K=VN(N.endRe,U);if(K){if(N["on:end"]){const _e=new a_(N);N["on:end"](D,_e),_e.isMatchIgnored&&(K=!1)}if(K){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return We(N.parent,D,U)}function Ke(N){return P.matcher.regexIndex===0?(X+=N[0],1):(bt=!0,0)}function ht(N){const D=N[0],U=N.rule,K=new a_(U),_e=[U.__beforeBegin,U["on:begin"]];for(const De of _e)if(De&&(De(N,K),K.isMatchIgnored))return Ke(D);return U.skip?X+=D:(U.excludeBegin&&(X+=D),ie(),!U.returnBegin&&!U.excludeBegin&&(X=D)),Le(U,N),U.returnBegin?0:D.length}function Ft(N){const D=N[0],U=v.substring(N.index),K=We(P,N,U);if(!K)return p_;const _e=P;P.endScope&&P.endScope._wrap?(ie(),ue(D,P.endScope._wrap)):P.endScope&&P.endScope._multi?(ie(),Be(P.endScope,N)):_e.skip?X+=D:(_e.returnEnd||_e.excludeEnd||(X+=D),ie(),_e.excludeEnd&&(X=D));do P.scope&&oe.closeNode(),!P.skip&&!P.subLanguage&&(He+=P.relevance),P=P.parent;while(P!==K.parent);return K.starts&&Le(K.starts,N),_e.returnEnd?0:D.length}function de(){const N=[];for(let D=P;D!==he;D=D.parent)D.scope&&N.unshift(D.scope);N.forEach(D=>oe.openNode(D))}let Pe={};function Qe(N,D){const U=D&&D[0];if(X+=N,U==null)return ie(),0;if(Pe.type==="begin"&&D.type==="end"&&Pe.index===D.index&&U===""){if(X+=v.slice(D.index,D.index+1),!i){const K=new Error(`0 width match regex (${y})`);throw K.languageName=y,K.badRule=Pe.rule,K}return 1}if(Pe=D,D.type==="begin")return ht(D);if(D.type==="illegal"&&!A){const K=new Error('Illegal lexeme "'+U+'" for mode "'+(P.scope||"")+'"');throw K.mode=P,K}else if(D.type==="end"){const K=Ft(D);if(K!==p_)return K}if(D.type==="illegal"&&U==="")return 1;if(St>1e5&&St>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=U,U.length}const he=O(y);if(!he)throw pr(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');const zt=CA(he);let Et="",P=k||zt;const et={},oe=new s.__emitter(s);de();let X="",He=0,xe=0,St=0,bt=!1;try{if(he.__emitTokens)he.__emitTokens(v,oe);else{for(P.matcher.considerAll();;){St++,bt?bt=!1:P.matcher.considerAll(),P.matcher.lastIndex=xe;const N=P.matcher.exec(v);if(!N)break;const D=v.substring(xe,N.index),U=Qe(D,N);xe=N.index+U}Qe(v.substring(xe))}return oe.finalize(),Et=oe.toHTML(),{language:y,value:Et,relevance:He,illegal:!1,_emitter:oe,_top:P}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:y,value:pl(v),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:xe,context:v.slice(xe-100,xe+100),mode:N.mode,resultSoFar:Et},_emitter:oe};if(i)return{language:y,value:pl(v),illegal:!1,relevance:0,errorRaised:N,_emitter:oe,_top:P};throw N}}function p(y){const v={value:pl(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return v._emitter.addText(y),v}function _(y,v){v=v||s.languages||Object.keys(e);const A=p(y),k=v.filter(O).filter(B).map(ie=>d(ie,y,!1));k.unshift(A);const G=k.sort((ie,ue)=>{if(ie.relevance!==ue.relevance)return ue.relevance-ie.relevance;if(ie.language&&ue.language){if(O(ie.language).supersetOf===ue.language)return 1;if(O(ue.language).supersetOf===ie.language)return-1}return 0}),[z,ae]=G,Ce=z;return Ce.secondBest=ae,Ce}function m(y,v,A){const k=v&&n[v]||A;y.classList.add("hljs"),y.classList.add(`language-${k}`)}function f(y){let v=null;const A=c(y);if(l(A))return;if(V("before:highlightElement",{el:y,language:A}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.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(y)),s.throwUnescapedHTML))throw new RA("One of your code blocks includes unescaped HTML.",y.innerHTML);v=y;const k=v.textContent,G=A?u(k,{language:A,ignoreIllegals:!0}):_(k);y.innerHTML=G.value,y.dataset.highlighted="yes",m(y,A,G.language),y.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(y.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),V("after:highlightElement",{el:y,result:G,text:k})}function g(y){s=d_(s,y)}const S=()=>{h(),wr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function E(){h(),wr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function h(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(f)}function C(){b&&h()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function T(y,v){let A=null;try{A=v(t)}catch(k){if(pr("Language definition for '{}' could not be registered.".replace("{}",y)),i)pr(k);else throw k;A=a}A.name||(A.name=y),e[y]=A,A.rawDefinition=v.bind(null,t),A.aliases&&M(A.aliases,{languageName:y})}function R(y){delete e[y];for(const v of Object.keys(n))n[v]===y&&delete n[v]}function x(){return Object.keys(e)}function O(y){return y=(y||"").toLowerCase(),e[y]||e[n[y]]}function M(y,{languageName:v}){typeof y=="string"&&(y=[y]),y.forEach(A=>{n[A.toLowerCase()]=v})}function B(y){const v=O(y);return v&&!v.disableAutodetect}function Y(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=v=>{y["before:highlightBlock"](Object.assign({block:v.el},v))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=v=>{y["after:highlightBlock"](Object.assign({block:v.el},v))})}function $(y){Y(y),r.push(y)}function q(y){const v=r.indexOf(y);v!==-1&&r.splice(v,1)}function V(y,v){const A=y;r.forEach(function(k){k[A]&&k[A](v)})}function J(y){return wr("10.7.0","highlightBlock will be removed entirely in v12.0"),wr("10.7.0","Please use highlightElement now."),f(y)}Object.assign(t,{highlight:u,highlightAuto:_,highlightAll:h,highlightElement:f,highlightBlock:J,configure:g,initHighlighting:S,initHighlightingOnLoad:E,registerLanguage:T,unregisterLanguage:R,listLanguages:x,getLanguage:O,registerAliases:M,autoDetection:B,inherit:d_,addPlugin:$,removePlugin:q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=vA,t.regex={concat:yr,lookahead:Gg,either:uu,optional:HN,anyNumberOfTimes:UN};for(const y in Vo)typeof Vo[y]=="object"&&Bg(Vo[y]);return Object.assign(t,Vo),t},ci=Zg({});ci.newInstance=()=>Zg({});var NA=ci;ci.HighlightJS=ci;ci.default=ci;var AA=wN(NA);function Xg(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?Xg(n.children,r):{text:n.value,classes:r}}).flat()}function __(t){return t.value||t.children||[]}function IA(t){return!!AA.getLanguage(t)}function m_({doc:t,name:e,lowlight:n,defaultLanguage:r}){const i=[];return ql(t,o=>o.type.name===e).forEach(o=>{var a;let s=o.pos+1;const l=o.node.attrs.language||r,c=n.listLanguages(),u=l&&(c.includes(l)||IA(l)||!((a=n.registered)===null||a===void 0)&&a.call(n,l))?__(n.highlight(l,o.node.textContent)):__(n.highlightAuto(o.node.textContent));Xg(u).forEach(d=>{const p=s+d.text.length;if(d.classes.length){const _=ke.inline(s,p,{class:d.classes.join(" ")});i.push(_)}s=p})}),be.create(t,i)}function xA(t){return typeof t=="function"}function DA({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>xA(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new Se({key:new ve("lowlight"),state:{init:(i,{doc:o})=>m_({doc:o,name:t,lowlight:e,defaultLanguage:n}),apply:(i,o,a,s)=>{const l=a.selection.$head.parent.type.name,c=s.selection.$head.parent.type.name,u=ql(a.doc,p=>p.type.name===t),d=ql(s.doc,p=>p.type.name===t);return i.docChanged&&([l,c].includes(t)||d.length!==u.length||i.steps.some(p=>p.from!==void 0&&p.to!==void 0&&u.some(_=>_.pos>=p.from&&_.pos+_.node.nodeSize<=p.to)))?m_({doc:i.doc,name:t,lowlight:e,defaultLanguage:n}):o.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const MA=mg.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],DA({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function f_(t,e,n={}){const{empty:r,ranges:i,from:o,to:a}=t.selection,s=e?Sn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>s?s.name===f.type.name:!0).find(f=>ri(f.attrs,n,{strict:!1}));let l=o,c=a;const u=[];i.forEach(({$from:f,$to:g})=>{const S=f.pos,E=g.pos;l=Math.min(l,S),c=Math.max(l,E),t.doc.nodesBetween(S,E,(b,h)=>{if(!b.isText&&!b.marks.length)return;const C=Math.max(S,h),T=Math.min(E,h+b.nodeSize);u.push(...b.marks.map(R=>({mark:R,from:C,to:T})))})});const d=c-l;if(d===0)return!1;const p=u.filter(f=>s?s.name===f.mark.type.name:!0).filter(f=>ri(f.mark.attrs,n,{strict:!1})).reduce((f,g)=>f+g.to-g.from,0),_=u.filter(f=>s?f.mark.type!==s&&f.mark.type.excludes(s):!0).reduce((f,g)=>f+g.to-g.from,0);return(p>0?p+_:p)>=d}function g_(t){var e;return!!((e=t.spec.group)!=null&&e.split(" ").includes("list"))}function h_(t,e,n={}){if(!e)return hr(t,null,n)||f_(t,null,n);const r=t.schema.nodes[e];if(r){if(g_(r)){const o=ms(a=>g_(a.type))(t.selection);return!!(o&&o.node.type.name===e)}return hr(t,e,n)}return t.schema.marks[e]?f_(t,e,n):!1}function E_(t){return new fo({find:t.find,handler:({state:e,range:n,match:r,commands:i})=>{const o=e.doc.resolve(n.from),a=le(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,a),setTimeout(()=>i.focus(!0),0)}})}const jg=[{name:"Auto",value:"auto"},{name:"Plain Text",value:"plaintext",alias:["text","txt"]},{name:"Bash",value:"bash",alias:["sh"]},{name:"BASIC",value:"basic",alias:[]},{name:"C",value:"c",alias:["h"]},{name:"Clojure",value:"clojure",alias:["clj","edn"]},{name:"CMake",value:"cmake",alias:["cmake.in"]},{name:"CoffeeScript",value:"coffeescript",alias:["coffee","cson","iced"]},{name:"C++",value:"cpp",alias:["cc","c++","h++","hpp","hh","hxx","cxx"]},{name:"C#",value:"csharp",alias:["cs","c#"]},{name:"CSS",value:"css",alias:[]},{name:"Dart",value:"dart",alias:[]},{name:"Delphi",value:"delphi",alias:["dpr","dfm","pas","pascal"]},{name:"Dockerfile",value:"dockerfile",alias:["docker"]},{name:"Erlang",value:"erlang",alias:["erl"]},{name:"Go",value:"go",alias:["golang"]},{name:"GraphQL",value:"graphql",alias:["gql"]},{name:"Groovy",value:"groovy",alias:[]},{name:"Java",value:"java",alias:["jsp"]},{name:"JavaScript",value:"javascript",alias:["js","jsx","mjs","cjs"]},{name:"JSON",value:"json",alias:[]},{name:"Kotlin",value:"kotlin",alias:["kt","kts"]},{name:"Lua",value:"lua",alias:[]},{name:"Makefile",value:"makefile",alias:["mk","mak","make"]},{name:"Markdown",value:"markdown",alias:["md","mkdown","mkd"]},{name:"Matlab",value:"matlab",alias:[]},{name:"Objective-C",value:"objectivec",alias:["mm","objc","obj-c","obj-c++","objective-c++"]},{name:"PHP",value:"php",alias:[]},{name:"Properties",value:"properties",alias:[]},{name:"Python",value:"python",alias:["py","gyp","ipython"]},{name:"Ruby",value:"ruby",alias:["rb","gemspec","podspec","thor","irb"]},{name:"Rust",value:"rust",alias:["rs"]},{name:"Scala",value:"scala",alias:[]},{name:"SCSS",value:"scss",alias:[]},{name:"Shell",value:"shell",alias:["console","shellsession"]},{name:"SQL",value:"sql",alias:[]},{name:"Swift",value:"swift",alias:[]},{name:"TypeScript",value:"typescript",alias:["ts","tsx"]},{name:"WebAssembly",value:"wasm",alias:[]},{name:"HTML, XML",value:"xml",alias:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"]},{name:"YAML",value:"yaml",alias:["yml"]}],S_=t=>{if(!t)return null;const e=t.toLocaleLowerCase();return jg.find(r=>r.value===e||r.alias&&r.alias.includes(e))};function wA(t,e){const{$from:n,from:r,to:i}=t,s=(e.textContent||"").split(` +`).reduce((_,m,f)=>(_[f]=(_[f-1]||0)+m.length+(f===0?0:1),_),{}),l=n.parentOffset,c=n.parentOffset+i-r,u=Object.keys(s),d=u.find(_=>s[_]>=l),p=u.find(_=>s[_]>=c);return{start:d,end:p}}const LA=/^[`·]{3}([a-z]+)?[\s\n]$/,kA=/^[~~]{3}([a-z]+)?[\s\n]$/,PA=MA.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),lowlight:{},defaultLanguage:null,languages:[]}},addCommands(){var t;return{...(t=this.parent)==null?void 0:t.call(this),addCodeComments:(e,n)=>({editor:r})=>{const{view:{dispatch:i},state:{tr:o}}=r;return i(o.setSelection(ee.create(r.state.doc,n)).deleteSelection()),En.get(this.options.codeCommentsAi.model).chat(e.textContent,this.options.codeCommentsAi.prompt,new Oa(r,{markdownParseEnable:!0,useMarkdownTextOnly:!0})),!0},addCodeExplain:(e,n)=>({editor:r})=>{const{view:{dispatch:i},state:{tr:o}}=r,a=r.state.doc.nodeSize;a<=n+e.nodeSize+2?(r.commands.insertContentAt(n+e.nodeSize+1,"

"),i(o.setSelection(Z.create(r.state.doc,a-2)))):i(o.setSelection(Z.create(r.state.doc,n+e.nodeSize+1)));const s=En.get(this.options.codeExplainAi.model);return s==null||s.chat(e.textContent,this.options.codeExplainAi.prompt,new Oa(r)),!0},toggleCodeBlock:e=>({commands:n,editor:r,chain:i})=>{const{state:o}=r,{from:a,to:s}=o.selection;if(!h_(o,this.name)&&!o.selection.empty){let l=!0;const c=[];if(o.doc.nodesBetween(a,s,(u,d)=>{if(u.isInline)return!1;if(u.type.name!=="paragraph")return d+1<=a&&d+u.nodeSize-1>=s?void 0:(l=!1,!1);{const p=(u.textContent||"").slice(d+1>a?0:a-d-1,d+u.nodeSize-11)return i().command(({state:u,tr:d})=>(d.replaceRangeWith(a,s,this.type.create(e,u.schema.text(c.join(` +`)))),!0)).setTextSelection({from:a+2,to:a+2}).run()}return n.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){var t;return{...(t=this.parent)==null?void 0:t.call(this),Tab:({editor:e})=>{const{state:n,view:r}=e;if(!h_(n,this.name))return!1;const{selection:i,tr:o}=n,a=" ";if(i.empty)r.dispatch(o.insertText(a));else{const{$from:s,from:l,to:c}=i,u=s.node();if(u.type!==this.type)return!1;const{start:d,end:p}=wA(i,u);if(d===void 0||p===void 0)return r.dispatch(o.replaceSelectionWith(n.schema.text(a))),!0;const f=(u.textContent||"").split(` +`).map((E,b)=>b>=d&&b<=p&&E?a+E:E),g=s.node(1),S=s.start(1);o.replaceWith(S,S+g.nodeSize-2,n.schema.text(f.join(` +`))),o.setSelection(Z.between(o.doc.resolve(l+a.length),o.doc.resolve(c+(p-d+1)*a.length))),r.dispatch(o)}return!0}}},addInputRules(){return[E_({find:LA,type:this.type,getAttributes:t=>{var e;return{language:((e=S_(t[1]))==null?void 0:e.value)||this.options.defaultLanguage}}}),E_({find:kA,type:this.type,getAttributes:t=>{var e;return{language:((e=S_(t[1]))==null?void 0:e.value)||this.options.defaultLanguage}}})]},addNodeView(){return t=>{var o,a;const e=document.createElement("div");e.classList.add("aie-codeblock-wrapper");const{language:n}=t.node.attrs;if(!this.editor.isEditable)return e.innerHTML=`
${n||this.options.defaultLanguage}
@@ -386,15 +386,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(
`;const r=()=>{const s=document.createElement("div");return s.classList.add("aie-codeblock-langs"),s.innerHTML=` - ${this.options.languages.map(l=>`
${l.name}
`).join("")}`,s.addEventListener("click",l=>{const c=l.target.closest(".aie-codeblock-langs-item");if(c){const u=c.getAttribute("data-item");t.editor.chain().setCodeBlock({language:u}).run()}}),s},i=we(e.querySelector(".aie-codeblock-tools-lang"),{content:r(),appendTo:t.editor.options.element,placement:"bottom-end",trigger:"click",interactive:!0,arrow:!1,aria:{content:null,expanded:!1}});return(o=e.querySelector(".aie-codeblock-tools-comments"))==null||o.addEventListener("click",s=>{const l=t.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=t.editor.state.doc.resolve(l.pos).parent;t.editor.chain().addCodeComments(c,l.pos)}),(a=e.querySelector(".aie-codeblock-tools-explain"))==null||a.addEventListener("click",s=>{const l=t.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=t.editor.state.doc.resolve(l.pos).parent;t.editor.chain().addCodeExplain(c,l.pos)}),{dom:e,contentDOM:e.querySelector("code"),destroy:()=>{i.destroy()}}}}});function wA(t){const e="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",s="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",p="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",A="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",z="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ae="null истина ложь неопределено",Ce=t.inherit(t.NUMBER_MODE),ie={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ue={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Be=t.inherit(t.C_LINE_COMMENT_MODE),Le={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:e,keyword:i+s},contains:[Be]},We={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},Ke={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:e,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:e,keyword:"знач",literal:ae},contains:[Ce,ie,ue]},Be]},t.inherit(t.TITLE_MODE,{begin:e})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:e,keyword:i,built_in:p,class:A,type:z,literal:ae},contains:[Le,Ke,Be,We,Ce,ie,ue]}}function LA(t){const e=t.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=t.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},s={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},l={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:e.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,o,a,s,l,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}function kA(t){const e=t.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:e.concat(/"/,e.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}function PA(t){const e=t.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=e.concat(n,e.concat("(\\.",n,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[t.inherit(t.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o]},{begin:e.concat(/:\s*/,i)}]},t.METHOD_GUARD],illegal:/#/}}function FA(t){const e="\\d(_|\\d)*",n="[eE][-+]?"+e,r=e+"(\\."+e+")?("+n+")?",i="\\w+",a="\\b("+(e+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+r+")",s="[A-Za-z](_?[A-Za-z0-9.])*",l=`[]\\{\\}%#'"`,c=t.COMMENT("--","$"),u={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},u,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},u]}}function BA(t){const e={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[e,n]};return e.contains=[r],n.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},e,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}function UA(t){const e={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",e]},r,n,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}function HA(t){const e=t.regex,n=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",t.C_NUMBER_MODE,n]},i=t.COMMENT(/--/,/$/),o=t.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),a=[i,o,t.HASH_COMMENT_MODE],s=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],l=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,t.C_NUMBER_MODE,{className:"built_in",begin:e.concat(/\b/,e.either(...l),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:e.concat(/\b/,e.either(...s),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[t.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}function GA(t){const e="[A-Za-z_][0-9A-Za-z_]*",n={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},r={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]};o.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,a,i,t.REGEXP_MODE];const s=o.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:e+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:e,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{className:"title.function",begin:e}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}function VA(t){const e={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},e,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}function YA(t){const e=t.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:e.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:e.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},s={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[t.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),t.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},s,a,...r,...i,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}function zA(t){const e=t.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[t.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},t.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[t.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},t.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}function $A(t){const e={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[e,t.inherit(t.QUOTE_STRING_MODE,{contains:[e]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}function qA(t){const e="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},s={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[s,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},s,o]},u={className:"symbol",begin:"@[A-z0-9_]+"},d={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,s,l]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:e,built_in:i,literal:r},contains:[o,a,s,l,c,u,d]}}function WA(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}function KA(t){const e={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[e,r,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}function QA(t){const e=t.UNDERSCORE_IDENT_RE,o={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,e,/\s+(extends|implements)\s+/,e]},{match:[/class\s+/,e]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}function ZA(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[t.QUOTE_STRING_MODE,t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}function XA(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}function jA(t){const e={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[e]},e]}}function JA(t){const e=t.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,a,t.NUMBER_MODE]},...i]},u=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],d={match:[/OBJECT/,/\s+/,e.either(...u),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,s,l,t.NUMBER_MODE,d,c]}}function eI(t){const e=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:e,type:n,literal:r},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}function tI(t){const e=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:e,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=o,{name:"Ceylon",keywords:{keyword:e.concat(n),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}function nI(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}function rI(t){const e="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+e+"]["+e+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=t.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},_={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},f={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},E={keywords:i,className:"name",begin:n,relevance:0,starts:g},S=[u,f,s,l,c,d,m,_,a,p,o],b={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(S)};return f.contains=[b,E,g],g.contains=S,_.contains=S,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,f,s,l,c,d,m,_,a,p]}}function iI(t){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}function oI(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.COMMENT(/#\[\[/,/]]/),t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}const aI=["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"],sI=["true","false","null","undefined","NaN","Infinity"],lI=["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"],cI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],uI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],dI=[].concat(uI,lI,cI);function pI(t){const e=["npm","print"],n=["yes","no","on","off"],r=["then","unless","until","loop","by","when","and","or","is","isnt","not"],i=["var","const","let","function","static"],o=m=>f=>!m.includes(f),a={keyword:aI.concat(r).filter(o(i)),literal:sI.concat(n),built_in:dI.concat(e)},s="[A-Za-z$_][0-9A-Za-z$_]*",l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},c=[t.BINARY_NUMBER_MODE,t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[l,t.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];l.contains=c;const u=t.inherit(t.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",p={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(c)}]},_={variants:[{match:[/class\s+/,s,/\s+extends\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:a,illegal:/\/\*/,contains:[...c,t.COMMENT("###","###"),t.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[u,p]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,end:"[-=]>",returnBegin:!0,contains:[p]}]},_,{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}function _I(t){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}function mI(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}function fI(t){const e="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:e,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}function gI(t){const e="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function u(E,S){const b=[{begin:E,end:S}];return b[0].contains=b,b}const d={className:"string",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},_={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},f={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"})]},g=[c,d,p,m,_,f,l,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+e},{begin:"\\b0o([0-7_]+)"+e},{begin:"\\b0x([A-Fa-f0-9_]+)"+e},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+e}],relevance:0}];return s.contains=g,c.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}function hI(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}function EI(t){const e={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,s="([eE][+-]?"+r+")",l="("+r+"(\\.\\d*|"+s+")|\\d+\\."+r+"|\\."+n+s+"?)",c="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+r+")",u="("+n+"|"+i+"|"+a+")",d="("+c+"|"+l+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,_={className:"number",begin:"\\b"+u+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+d+"([fF]|L|i|[fF]i|Li)?|"+u+"(i|[fF]i|Li))",relevance:0},f={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},E={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},S={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},b={className:"string",begin:"`",end:"`[cwd]?"},h={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},T={className:"meta",begin:"^#!",end:"$",relevance:5},R={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:e,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,O,h,E,S,b,C,m,_,f,T,R,x]}}function SI(t){const e={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]}]};n.contains=[t.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map(l=>`${l}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[r,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function bI(t){const e=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},s={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:e,contains:[i,a,r].concat(n)},r].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:e,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,t.NUMBER_MODE,o,s,l,r].concat(n)}}function TI(t){const e={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[e],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[e]}]}}function CI(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}function yI(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",relevance:0,begin:"<",end:">",contains:[n,i]},l={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},u={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},d={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},p={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,o,a,l,d,u,s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,e,r,p,{begin:t.IDENT_RE+"::",keywords:""}]}}function NI(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}function AI(t){const e=t.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[e,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[e,n,i]}}function II(t){const e=t.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},u={match:/\\[\s\S]/,scope:"char.escape",relevance:0},d=`[/|([{<"']`,p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],_=C=>({scope:"char.escape",begin:e.concat(/\\/,C),relevance:0}),m={className:"string",begin:"~[a-z](?="+d+")",contains:p.map(C=>t.inherit(C,{contains:[_(C.end),u,s]}))},f={className:"string",begin:"~[A-Z](?="+d+")",contains:p.map(C=>t.inherit(C,{contains:[_(C.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+d+")",contains:p.map(C=>t.inherit(C,{end:e.concat(C.end,/[uismxfU]{0,7}/),contains:[_(C.end),u,s]}))},{begin:"~R(?="+d+")",contains:p.map(C=>t.inherit(C,{end:e.concat(C.end,/[uismxfU]{0,7}/),contains:[_(C.end)]}))}]},E={className:"string",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},S={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:n,endsParent:!0})]},b=t.inherit(S,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),h=[E,g,f,m,t.HASH_COMMENT_MODE,b,S,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[E,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=h,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:h}}function xI(t){const e={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,e],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,e],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,e]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,e]},{begin:"port",end:"$",keywords:"port",contains:[e]},o,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,n,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),e,{begin:"->|<-"}],illegal:/;/}}function DI(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function MI(t){const e="[a-z'][a-zA-Z0-9_']*",n="("+e+":"+e+"|"+e+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=t.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+e+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={beginKeywords:"fun receive if try case",end:"end",keywords:r};p.contains=[i,a,t.inherit(t.APOS_STRING_MODE,{className:""}),p,s,t.QUOTE_STRING_MODE,o,l,c,u,d];const _=[i,a,p,s,t.QUOTE_STRING_MODE,o,l,c,u,d];s.contains[1].contains=_,l.contains=_,d.contains[1].contains=_;const m=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],f={className:"params",begin:"\\(",end:"\\)",contains:_};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,t.inherit(t.TITLE_MODE,{begin:e})],starts:{end:";|\\.",keywords:r,contains:_}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:m.map(g=>`${g}|1.5`).join(" ")},contains:[f]},o,t.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}function wI(t){const e=t.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},t.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:e.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}function LI(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}function kI(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}function PI(t){const e={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e,n,i,t.C_NUMBER_MODE]}}function FI(t){const e=t.regex,n={className:"params",begin:"\\(",end:"\\)"},r={variants:[t.COMMENT("!","$",{relevance:0}),t.COMMENT("^C[ ]","$",{relevance:0}),t.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:e.concat(/\b\d+/,o,i)},{begin:e.concat(/\.\d+/,o,i)}],relevance:0},s={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,n]},l={className:"string",relevance:0,variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[l,s,{begin:/^C\s*=(?!=)/,relevance:0},r,a]}}function BI(t){return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function qg(t){return t?typeof t=="string"?t:t.source:null}function vi(t){return Bt("(?=",t,")")}function Bt(...t){return t.map(n=>qg(n)).join("")}function UI(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Zn(...t){return"("+(UI(t).capture?"":"?:")+t.map(r=>qg(r)).join("|")+")"}function HI(t){const e=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},r=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],i=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],o=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],a=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],l={keyword:e,literal:i,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":o},u={variants:[t.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),t.C_LINE_COMMENT_MODE]},d=/[a-zA-Z_](\w|')*/,p={scope:"variable",begin:/``/,end:/``/},_=/\B('|\^)/,m={scope:"symbol",variants:[{match:Bt(_,/``.*?``/)},{match:Bt(_,t.UNDERSCORE_IDENT_RE)}],relevance:0},f=function({includeEqual:v}){let A;v?A="!%&*+-/<=>@^|~?":A="!%&*+-/<>@^|~?";const k=Array.from(A),G=Bt("[",...k.map(BI),"]"),z=Zn(G,/\./),ae=Bt(z,vi(z)),Ce=Zn(Bt(ae,z,"*"),Bt(G,"+"));return{scope:"operator",match:Zn(Ce,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},g=f({includeEqual:!0}),E=f({includeEqual:!1}),S=function(v,A){return{begin:Bt(v,vi(Bt(/\s*/,Zn(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:A,end:vi(Zn(/\n/,/=/)),relevance:0,keywords:t.inherit(l,{type:a}),contains:[u,m,t.inherit(p,{scope:null}),E]}},b=S(/:/,"operator"),h=S(/\bof\b/,"keyword"),C={begin:[/(^|\s+)/,/type/,/\s+/,d],beginScope:{2:"keyword",4:"title.class"},end:vi(/\(|=|$/),keywords:l,contains:[u,t.inherit(p,{scope:null}),m,{scope:"operator",match:/<|>/},b]},T={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},R={begin:[/^\s*/,Bt(/#/,Zn(...r)),/\b/],beginScope:{2:"meta"},end:vi(/\s|$/)},x={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},O={scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},M={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},t.BACKSLASH_ESCAPE]},B={scope:"string",begin:/"""/,end:/"""/,relevance:2},Y={scope:"subst",begin:/\{/,end:/\}/,keywords:l},$={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},t.BACKSLASH_ESCAPE,Y]},q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},t.BACKSLASH_ESCAPE,Y]},V={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},Y],relevance:2},J={scope:"string",match:Bt(/'/,Zn(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return Y.contains=[q,$,M,O,J,n,u,p,b,T,R,x,m,g],{name:"F#",aliases:["fs","f#"],keywords:l,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[V,q,$,B,M,O,J]},u,p,C,{scope:"meta",begin:/\[\]/,relevance:2,contains:[p,B,M,O,J,x]},h,b,T,R,x,m,g]}}function GI(t){const e=t.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:n,contains:[o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:e.concat(s,e.anyNumberOfTimes(e.concat(/[ ]+/,s))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[t.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},t.C_NUMBER_MODE,i]}}function VI(t){const e={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=t.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,i]}],a={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},s=function(p,_,m){const f=t.inherit({className:"function",beginKeywords:p,end:_,excludeEnd:!0,contains:[].concat(o)},{});return f.contains.push(a),f.contains.push(t.C_NUMBER_MODE),f.contains.push(t.C_BLOCK_COMMENT_MODE),f.contains.push(n),f},l={className:"built_in",begin:"\\b("+e.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},u={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:e,relevance:0,contains:[{beginKeywords:e.keyword},l,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:e.built_in,literal:e.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:e,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,i]}}function YI(t){const e="[A-Z_][A-Z0-9_.]*",n="%",r={$pattern:e,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},i={className:"meta",begin:"([O])([0-9]+)"},o=t.inherit(t.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+t.C_NUMBER_RE}),a=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\(/,/\)/),o,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:n},i].concat(a)}}function zI(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}function $I(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}function qI(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function WI(t){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}function KI(t){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}function dl(t,e={}){return e.variants=t,e}function QI(t){const e=t.regex,n="[A-Za-z0-9_$]+",r=dl([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),i={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},o=dl([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),a=dl([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),s={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,a,i,o,s,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:n+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,a,i,o,"self"]},{className:"symbol",begin:"^[ ]*"+e.lookahead(n+":"),excludeBegin:!0,end:n+":",relevance:0}],illegal:/#|<\//}}function ZI(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function XI(t){const e=t.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=e.either(i,o,a,s),u=e.concat(e.optional(/\.|\.\/|\//),c,e.anyNumberOfTimes(e.concat(l,c))),d=e.concat("(",a,"|",s,")(?==)"),p={begin:u},_=t.inherit(p,{keywords:r}),m={begin:/\(/,end:/\)/},f={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,_,m]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},E={contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,g,f,_,m],returnEnd:!0},S=t.inherit(p,{className:"name",keywords:n,starts:t.inherit(E,{end:/\)/})});m.contains=[S];const b=t.inherit(p,{keywords:n,className:"name",starts:t.inherit(E,{end:/\}\}/})}),h=t.inherit(p,{keywords:n,className:"name"}),C=t.inherit(p,{className:"name",keywords:n,starts:t.inherit(E,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},t.COMMENT(/\{\{!--/,/--\}\}/),t.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[h]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[h]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}function jI(t){const e="([0-9]_*)+",n="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",l="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[t.COMMENT("--+","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},u={className:"meta",begin:/\{-#/,end:/#-\}/},d={className:"meta",begin:"^#",end:"$"},p={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},_={begin:"\\(",end:"\\)",illegal:'"',contains:[u,d,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},m={begin:/\{/,end:/\}/,contains:_.contains},f={className:"number",relevance:0,variants:[{match:`\\b(${e})(\\.(${e}))?([eE][+-]?(${e}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${e}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[_,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[_,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[p,_,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[u,p,_,m,c]},{beginKeywords:"default",end:"$",contains:[p,_,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[p,t.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},u,d,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},t.QUOTE_STRING_MODE,f,p,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${l}--+|--+(?!-)${l}`},c,{begin:"->|<-"}]}}function JI(t){const e="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+e},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[t.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+t.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[t.TITLE_MODE]}],illegal:/<\//}}function ex(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}function tx(t){const e=t.regex,n="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:e.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},t.inherit(i,{relevance:0})]}}function nx(t){const e="a-zA-Z_\\-!.?+*=<>&#'",n="["+e+"]["+e+"0-9/;:]*",r={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",o={begin:n,relevance:0},a={className:"number",begin:i,relevance:0},s=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),l=t.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+n},p=t.COMMENT("\\^\\{","\\}"),_={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},f={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:r,begin:n,starts:f},E=[m,s,d,p,l,_,u,a,c,o];return m.contains=[t.COMMENT("comment",""),g,f],f.contains=E,u.contains=E,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),m,s,d,p,l,_,u,a,c]}}function rx(t){const e="\\[",n="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:e,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:e,end:n,contains:["self"]}]}}function ix(t){const e=t.regex,n={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:e.concat(/\b\d+/,i,r)},{begin:e.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,n]},t.COMMENT("!","$",{relevance:0}),t.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}function ox(t){const e="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Ce="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",iE="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",oE="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",aE="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",sE="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",lE=Ce+iE,cE=aE,uE="null true false nil ",Nu={className:"number",begin:t.NUMBER_RE,relevance:0},Au={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Iu={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},dE={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Iu]},pE={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Iu]},xu={variants:[dE,pE]},yo={$pattern:e,keyword:r,built_in:lE,class:cE,literal:uE},xs={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:yo,relevance:0},Du={className:"type",begin:":[ \\t]*("+sE.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Mu={className:"variable",keywords:yo,begin:e,relevance:0,contains:[Du,xs]},wu=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:yo,illegal:"\\$|\\?|%|,|;$|~|#|@|/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}function cx(t){const e="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:e+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=t.COMMENT("",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+e+"'"},c=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+e},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:e,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+e,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:e+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[o]}},a,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[o]}},a,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}function ux(t){const n=t.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:r},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:i}]},s={className:"params",relevance:0,begin:/#+\d?/},l={variants:o},c={className:"built_in",relevance:0,begin:/[$&^_]/},u={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},d=t.COMMENT("%","$",{relevance:0}),p=[a,s,l,c,u,d],_={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},m=t.inherit(_,{relevance:0,endsParent:!0,contains:[_,...p]}),f={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[_,...p]},g={begin:/\s+/,relevance:0},E=[m],S=[f],b=function(M,B){return{contains:[g],starts:{relevance:0,contains:M,starts:B}}},h=function(M,B){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[g],starts:B}},C=function(M,B){return t.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(E,B))},T=(M="string")=>t.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),R=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},x=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),O=[...["verb","lstinline"].map(M=>h(M,{contains:[T()]})),h("mint",b(E,{contains:[T()]})),h("mintinline",b(E,{contains:[x(),T()]})),h("url",{contains:[x("link"),x("link")]}),h("hyperref",{contains:[x("link")]}),h("href",b(S,{contains:[x("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,R("verbatim"+M)),C("filecontents"+M,b(E,R("filecontents"+M))),...["","B","L"].map(B=>C(B+"Verbatim"+M,b(S,R(B+"Verbatim"+M))))])),C("minted",b(S,b(E,R("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}function dx(t){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},t.HASH_COMMENT_MODE]}}function px(t){const e=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[e,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,e,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,e,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}function _x(t){const e="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),s=t.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+e},u={begin:e,relevance:0},d={begin:n},_={contains:[o,a,l,c,{begin:"\\(",end:"\\)",contains:["self",i,a,o,u]},u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+e},{begin:"#'"+e+"(::"+e+")*"}]},f={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return f.contains=[{className:"name",variants:[{begin:e,relevance:0},{begin:n}]},g],g.contains=[_,m,f,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,t.SHEBANG(),i,a,s,_,m,f,u]}}function mx(t){const e={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],r=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[e,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r].concat(n),illegal:";$|^\\[|^=|&|\\{"}}const fx=["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"],gx=["true","false","null","undefined","NaN","Infinity"],hx=["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"],Ex=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Sx=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],bx=[].concat(Sx,hx,Ex);function Tx(t){const e=["npm","print"],n=["yes","no","on","off","it","that","void"],r=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],i={keyword:fx.concat(r),literal:gx.concat(n),built_in:bx.concat(e)},o="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=t.inherit(t.TITLE_MODE,{begin:o}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:i},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:i},c=[t.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,t.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+o},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=c;const u={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(c)}]},d={begin:"(#=>|=>|\\|>>|-?->|!->)"},p={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i};return{name:"LiveScript",aliases:["ls"],keywords:i,illegal:/\/\*/,contains:c.concat([t.COMMENT("\\/\\*","\\*\\/"),t.HASH_COMMENT_MODE,d,{className:"function",contains:[a,u],returnBegin:!0,variants:[{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},p,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function Cx(t){const e=t.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:e.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:e.concat(/@/,n)},{begin:/@\d+/},{begin:e.concat(/!/,n)},{begin:e.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[r,t.COMMENT(/;\s*$/,null,{relevance:0}),t.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,o,i,l,s,a]}}function yx(t){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:t.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}const vx=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function Rx(t){const e=t.regex,n=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,i=/(\d*\.\d+|\d+\.\d*|\d+)/,o=e.either(e.concat(n,r),i),a=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,s=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,l=e.either(a,s),c=/\*\^[+-]?\d+/,d={className:"number",relevance:0,begin:e.concat(o,e.optional(l),e.optional(c))},p=/[a-zA-Z$][a-zA-Z0-9$]*/,_=new Set(vx),m={variants:[{className:"builtin-symbol",begin:p,"on:begin":(C,T)=>{_.has(C[0])||T.ignoreMatch()}},{className:"symbol",relevance:0,begin:p}]},f={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},g={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},E={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},S={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},b={className:"brace",relevance:0,begin:/[[\](){}]/},h={className:"message-name",relevance:0,begin:e.concat("::",p)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),E,S,h,m,f,t.QUOTE_STRING_MODE,d,g,b]}}function Ox(t){const e="('|\\.')+",n={relevance:0,contains:[{begin:e}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+e,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}function Nx(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}function Ax(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,t.C_BLOCK_COMMENT_MODE,r,t.NUMBER_MODE,i,o,{begin:/:-/},{begin:/\.$/}]}}function xx(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}function Dx(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}function Mx(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}function wx(t){const e={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),n,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,e]}}function Lx(t){const e={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION 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 coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:e},i=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];r.contains=i;const o=t.inherit(t.TITLE_MODE,{begin:n}),a="(\\(.*\\)\\s*)?\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:e,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:e,illegal:/\/\*/,contains:i.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function kx(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}function Px(t){const e={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,e,n]}}function Fx(t){const e=t.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:e.concat(/[$@]/,t.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:e.concat(t.UNDERSCORE_IDENT_RE+e.lookahead(/\s+\{/)),relevance:0},{begin:e.lookahead(t.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function Bx(t){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}function Ux(t){const e={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:e},r={className:"char.escape",begin:/''\$/},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[r,n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[t.NUMBER_MODE,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o,i];return n.contains=a,{name:"Nix",aliases:["nixos"],keywords:e,contains:a}}function Hx(t){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Gx(t){const e=t.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:e.concat(/\$/,e.either(...n))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},s={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:e.either(...r)},u={className:"keyword",begin:e.concat(/!/,e.either(...i))},d={className:"char.escape",begin:/\$(\\[nrt]|\$)/},p={className:"title.function",begin:/\w+::\w+/},_={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[d,o,a,s,l]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],f=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],g={match:[/Function/,/\s+/,e.concat(/(\.)?/,t.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},S={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:f},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),S,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},_,u,a,s,l,c,p,t.NUMBER_MODE]}}function Vx(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}function Yx(t){const e={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,e,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,o,i,e,s,l]}}function zx(t){const e={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=t.COMMENT(/\{/,/\}/,{relevance:0}),r=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.inherit(t.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:e,contains:[i,o]},n,r]},s={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:e,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,r,t.C_LINE_COMMENT_MODE,i,o,t.NUMBER_MODE,a,s]}}function $x(t){const e=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[e]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}function qx(t){const e={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,e,n]}}function Wx(t){const e=t.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map(function(f){return f.split("|")[0]}).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",m="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(f){return f.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+s+a,built_in:u+d+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+m+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}function Kx(t){const e={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:e,contains:[o,n,r,i,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function Qx(t){const e=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),_={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},f={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},E={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},S={className:"selector-tag",begin:/@\B/,relevance:0},b={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},h=[b,p,a,t.NUMBER_MODE,c,u,_,s,l,S],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",h,{begin:"("+e.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return b.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:h.concat(m,f,g,E,C)}}function Zx(t){const e=t.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],r=t.IDENT_RE,i={variants:[{match:e.concat(e.either(...n),e.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:e.concat(/\b(?!for|if|while)/,r,e.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,r],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,r],className:{2:"property"}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},l=["boolean","byte","char","color","double","float","int","long","short"],c=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...c],type:l},contains:[s,o,i,a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function Xx(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}function jx(t){const e={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},s={className:"string",begin:/0'(\\'|.)/},l={className:"string",begin:/0'\\s/},u=[e,n,r,{begin:/:-/},i,o,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a,s,l,t.C_NUMBER_MODE];return r.contains=u,i.contains=u,{name:"Prolog",contains:u.concat([{begin:/\.$/}])}}function Jx(t){const e="[ \\t\\f]*",n="[ \\t\\f]+",r=e+"[:=]"+e,i=n,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:s},{className:"attr",begin:a+e+"$"}]}}function eD(t){const e=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,t.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:e,type:n,literal:["true","false"]},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function tD(t){const e={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=t.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",i=t.inherit(t.TITLE_MODE,{begin:r}),o={className:"variable",begin:"\\$"+r},a={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:e,relevance:0,contains:[a,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}function nD(t){const e={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},e,n]}}function rD(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function iD(t){const e=t.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},r="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:r,returnEnd:!1}},s={begin:r+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:r,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:e.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[t.inherit(t.TITLE_MODE,{begin:r})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+t.IDENT_RE,relevance:0},a,s,l],illegal:/#/}}function oD(t){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},t.inherit(t.APOS_STRING_MODE,{scope:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}function aD(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},t.COMMENT("^#","$"),s,l,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[s,l,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}function cD(t){const e=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],r=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,t.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:r,built_in:e,type:n},illegal:"",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,o,l,s,t.C_NUMBER_MODE,c,u,...d,p,n]}}function _D(t){const e="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",r=n+"[+\\-]"+n+"i",i={$pattern:e,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+e+"|#\\\\.)"},a={className:"number",variants:[{begin:n,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=t.QUOTE_STRING_MODE,l=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],c={begin:e,relevance:0},u={className:"symbol",begin:"'"+e},d={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,s,a,c,u]}]},_={className:"name",relevance:0,begin:e,keywords:i},f={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[_,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},_,d]};return d.contains=[o,a,s,c,u,p,f].concat(l),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[t.SHEBANG(),a,s,u,p,f].concat(l)}}function mD(t){const e=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:e},t.COMMENT("//","$")].concat(e)}}function fD(t){const e=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+e.join("|")+")\\s"},{begin:"\\s("+e.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: -]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function gD(t){const e="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:e+":",relevance:0},t.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+e+"([ ]+"+e+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+e}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,n,t.C_NUMBER_MODE,r]}]}}function hD(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function ED(t){const e={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},t.inherit(r,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:a,literal:o},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,e,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}function SD(t){const e=t.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],s=t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),l={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},t.C_LINE_COMMENT_MODE]},c=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:n,type:i,keyword:r,built_in:o},contains:[t.C_LINE_COMMENT_MODE,l,t.HASH_COMMENT_MODE,s,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:e.concat(/[<,]\s*/,e.either(...c),/\s*=/),keywords:c},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,e.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:e.concat(/\w*/,e.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,e.concat(e.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+e.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:e.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}function bD(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r + ${this.options.languages.map(l=>`
${l.name}
`).join("")}`,s.addEventListener("click",l=>{const c=l.target.closest(".aie-codeblock-langs-item");if(c){const u=c.getAttribute("data-item");t.editor.chain().setCodeBlock({language:u}).run()}}),s},i=we(e.querySelector(".aie-codeblock-tools-lang"),{content:r(),appendTo:t.editor.options.element,placement:"bottom-end",trigger:"click",interactive:!0,arrow:!1,aria:{content:null,expanded:!1}});return(o=e.querySelector(".aie-codeblock-tools-comments"))==null||o.addEventListener("click",s=>{const l=t.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=t.editor.state.doc.resolve(l.pos).parent;t.editor.chain().addCodeComments(c,l.pos)}),(a=e.querySelector(".aie-codeblock-tools-explain"))==null||a.addEventListener("click",s=>{const l=t.editor.view.posAtCoords({left:s.clientX,top:s.clientY}),c=t.editor.state.doc.resolve(l.pos).parent;t.editor.chain().addCodeExplain(c,l.pos)}),{dom:e,contentDOM:e.querySelector("code"),destroy:()=>{i.destroy()}}}}});function FA(t){const e="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",s="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",p="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",A="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",z="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ae="null истина ложь неопределено",Ce=t.inherit(t.NUMBER_MODE),ie={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ue={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Be=t.inherit(t.C_LINE_COMMENT_MODE),Le={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:e,keyword:i+s},contains:[Be]},We={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},Ke={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:e,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:e,keyword:"знач",literal:ae},contains:[Ce,ie,ue]},Be]},t.inherit(t.TITLE_MODE,{begin:e})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:e,keyword:i,built_in:p,class:A,type:z,literal:ae},contains:[Le,Ke,Be,We,Ce,ie,ue]}}function BA(t){const e=t.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=t.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},s={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},l={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:e.concat(n,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,o,a,s,l,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}function UA(t){const e=t.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:e.concat(/"/,e.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}function HA(t){const e=t.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=e.concat(n,e.concat("(\\.",n,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[t.inherit(t.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o]},{begin:e.concat(/:\s*/,i)}]},t.METHOD_GUARD],illegal:/#/}}function GA(t){const e="\\d(_|\\d)*",n="[eE][-+]?"+e,r=e+"(\\."+e+")?("+n+")?",i="\\w+",a="\\b("+(e+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+r+")",s="[A-Za-z](_?[A-Za-z0-9.])*",l=`[]\\{\\}%#'"`,c=t.COMMENT("--","$"),u={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},u,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},u]}}function VA(t){const e={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[e,n]};return e.contains=[r],n.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},e,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}function YA(t){const e={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",e]},r,n,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}function zA(t){const e=t.regex,n=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",t.C_NUMBER_MODE,n]},i=t.COMMENT(/--/,/$/),o=t.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),a=[i,o,t.HASH_COMMENT_MODE],s=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],l=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,t.C_NUMBER_MODE,{className:"built_in",begin:e.concat(/\b/,e.either(...l),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:e.concat(/\b/,e.either(...s),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[t.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}function $A(t){const e="[A-Za-z_][0-9A-Za-z_]*",n={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},r={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]};o.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,a,i,t.REGEXP_MODE];const s=o.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:e+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:e,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{className:"title.function",begin:e}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}function qA(t){const e={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},e,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}function WA(t){const e=t.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:e.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:e.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},s={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[t.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),t.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},s,a,...r,...i,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}function KA(t){const e=t.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[t.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},t.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[t.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},t.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:e.concat(t.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}function QA(t){const e={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[e,t.inherit(t.QUOTE_STRING_MODE,{contains:[e]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}function ZA(t){const e="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},s={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[s,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},s,o]},u={className:"symbol",begin:"@[A-z0-9_]+"},d={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,s,l]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:e,built_in:i,literal:r},contains:[o,a,s,l,c,u,d]}}function XA(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}function jA(t){const e={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[e,r,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}function JA(t){const e=t.UNDERSCORE_IDENT_RE,o={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,e,/\s+(extends|implements)\s+/,e]},{match:[/class\s+/,e]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}function eI(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[t.QUOTE_STRING_MODE,t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}function tI(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}function nI(t){const e={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[e]},e]}}function rI(t){const e=t.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,a,t.NUMBER_MODE]},...i]},u=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],d={match:[/OBJECT/,/\s+/,e.either(...u),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,s,l,t.NUMBER_MODE,d,c]}}function iI(t){const e=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:e,type:n,literal:r},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}function oI(t){const e=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:e,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=o,{name:"Ceylon",keywords:{keyword:e.concat(n),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}function aI(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}function sI(t){const e="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+e+"]["+e+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=t.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},_={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},m={className:"symbol",begin:"[:]{1,2}"+n},f={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},S={keywords:i,className:"name",begin:n,relevance:0,starts:g},E=[u,f,s,l,c,d,m,_,a,p,o],b={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(E)};return f.contains=[b,S,g],g.contains=E,_.contains=E,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,f,s,l,c,d,m,_,a,p]}}function lI(t){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}function cI(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.COMMENT(/#\[\[/,/]]/),t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}const uI=["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"],dI=["true","false","null","undefined","NaN","Infinity"],pI=["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"],_I=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],fI=[].concat(mI,pI,_I);function gI(t){const e=["npm","print"],n=["yes","no","on","off"],r=["then","unless","until","loop","by","when","and","or","is","isnt","not"],i=["var","const","let","function","static"],o=m=>f=>!m.includes(f),a={keyword:uI.concat(r).filter(o(i)),literal:dI.concat(n),built_in:fI.concat(e)},s="[A-Za-z$_][0-9A-Za-z$_]*",l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},c=[t.BINARY_NUMBER_MODE,t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[l,t.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];l.contains=c;const u=t.inherit(t.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",p={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(c)}]},_={variants:[{match:[/class\s+/,s,/\s+extends\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:a,illegal:/\/\*/,contains:[...c,t.COMMENT("###","###"),t.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[u,p]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,end:"[-=]>",returnBegin:!0,contains:[p]}]},_,{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}function hI(t){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}function EI(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}function SI(t){const e="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:e,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}function bI(t){const e="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function u(S,E){const b=[{begin:S,end:E}];return b[0].contains=b,b}const d={className:"string",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},_={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},m={className:"regexp",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},f={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"})]},g=[c,d,p,m,_,f,l,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+e},{begin:"\\b0o([0-7_]+)"+e},{begin:"\\b0x([A-Fa-f0-9_]+)"+e},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+e}],relevance:0}];return s.contains=g,c.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}function TI(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}function CI(t){const e={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,s="([eE][+-]?"+r+")",l="("+r+"(\\.\\d*|"+s+")|\\d+\\."+r+"|\\."+n+s+"?)",c="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+r+")",u="("+n+"|"+i+"|"+a+")",d="("+c+"|"+l+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,_={className:"number",begin:"\\b"+u+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},m={className:"number",begin:"\\b("+d+"([fF]|L|i|[fF]i|Li)?|"+u+"(i|[fF]i|Li))",relevance:0},f={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},S={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},E={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},b={className:"string",begin:"`",end:"`[cwd]?"},h={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},T={className:"meta",begin:"^#!",end:"$",relevance:5},R={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:e,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,O,h,S,E,b,C,m,_,f,T,R,x]}}function yI(t){const e={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,e,n]}]};n.contains=[t.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map(l=>`${l}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[r,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function vI(t){const e=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},s={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:e,contains:[i,a,r].concat(n)},r].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:e,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,t.NUMBER_MODE,o,s,l,r].concat(n)}}function RI(t){const e={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[e],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[e]}]}}function OI(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}function NI(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",relevance:0,begin:"<",end:">",contains:[n,i]},l={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},u={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},d={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},p={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,o,a,l,d,u,s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,e,r,p,{begin:t.IDENT_RE+"::",keywords:""}]}}function DI(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}function MI(t){const e=t.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[e,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[e,n,i]}}function wI(t){const e=t.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:n,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},u={match:/\\[\s\S]/,scope:"char.escape",relevance:0},d=`[/|([{<"']`,p=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],_=C=>({scope:"char.escape",begin:e.concat(/\\/,C),relevance:0}),m={className:"string",begin:"~[a-z](?="+d+")",contains:p.map(C=>t.inherit(C,{contains:[_(C.end),u,s]}))},f={className:"string",begin:"~[A-Z](?="+d+")",contains:p.map(C=>t.inherit(C,{contains:[_(C.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+d+")",contains:p.map(C=>t.inherit(C,{end:e.concat(C.end,/[uismxfU]{0,7}/),contains:[_(C.end),u,s]}))},{begin:"~R(?="+d+")",contains:p.map(C=>t.inherit(C,{end:e.concat(C.end,/[uismxfU]{0,7}/),contains:[_(C.end)]}))}]},S={className:"string",contains:[t.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},E={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:n,endsParent:!0})]},b=t.inherit(E,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),h=[S,g,f,m,t.HASH_COMMENT_MODE,b,E,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[S,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=h,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:h}}function LI(t){const e={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,e],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,e],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,e]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,e]},{begin:"port",end:"$",keywords:"port",contains:[e]},o,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,n,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),e,{begin:"->|<-"}],illegal:/;/}}function kI(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function PI(t){const e="[a-z'][a-zA-Z0-9_']*",n="("+e+":"+e+"|"+e+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=t.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+e+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={beginKeywords:"fun receive if try case",end:"end",keywords:r};p.contains=[i,a,t.inherit(t.APOS_STRING_MODE,{className:""}),p,s,t.QUOTE_STRING_MODE,o,l,c,u,d];const _=[i,a,p,s,t.QUOTE_STRING_MODE,o,l,c,u,d];s.contains[1].contains=_,l.contains=_,d.contains[1].contains=_;const m=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],f={className:"params",begin:"\\(",end:"\\)",contains:_};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,t.inherit(t.TITLE_MODE,{begin:e})],starts:{end:";|\\.",keywords:r,contains:_}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:m.map(g=>`${g}|1.5`).join(" ")},contains:[f]},o,t.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}function FI(t){const e=t.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},t.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:e.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}function BI(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}function UI(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}function HI(t){const e={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e,n,i,t.C_NUMBER_MODE]}}function GI(t){const e=t.regex,n={className:"params",begin:"\\(",end:"\\)"},r={variants:[t.COMMENT("!","$",{relevance:0}),t.COMMENT("^C[ ]","$",{relevance:0}),t.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:e.concat(/\b\d+/,o,i)},{begin:e.concat(/\.\d+/,o,i)}],relevance:0},s={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,n]},l={className:"string",relevance:0,variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[l,s,{begin:/^C\s*=(?!=)/,relevance:0},r,a]}}function VI(t){return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function Jg(t){return t?typeof t=="string"?t:t.source:null}function Ri(t){return Bt("(?=",t,")")}function Bt(...t){return t.map(n=>Jg(n)).join("")}function YI(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Xn(...t){return"("+(YI(t).capture?"":"?:")+t.map(r=>Jg(r)).join("|")+")"}function zI(t){const e=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},r=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],i=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],o=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],a=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],l={keyword:e,literal:i,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":o},u={variants:[t.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),t.C_LINE_COMMENT_MODE]},d=/[a-zA-Z_](\w|')*/,p={scope:"variable",begin:/``/,end:/``/},_=/\B('|\^)/,m={scope:"symbol",variants:[{match:Bt(_,/``.*?``/)},{match:Bt(_,t.UNDERSCORE_IDENT_RE)}],relevance:0},f=function({includeEqual:v}){let A;v?A="!%&*+-/<=>@^|~?":A="!%&*+-/<>@^|~?";const k=Array.from(A),G=Bt("[",...k.map(VI),"]"),z=Xn(G,/\./),ae=Bt(z,Ri(z)),Ce=Xn(Bt(ae,z,"*"),Bt(G,"+"));return{scope:"operator",match:Xn(Ce,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},g=f({includeEqual:!0}),S=f({includeEqual:!1}),E=function(v,A){return{begin:Bt(v,Ri(Bt(/\s*/,Xn(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:A,end:Ri(Xn(/\n/,/=/)),relevance:0,keywords:t.inherit(l,{type:a}),contains:[u,m,t.inherit(p,{scope:null}),S]}},b=E(/:/,"operator"),h=E(/\bof\b/,"keyword"),C={begin:[/(^|\s+)/,/type/,/\s+/,d],beginScope:{2:"keyword",4:"title.class"},end:Ri(/\(|=|$/),keywords:l,contains:[u,t.inherit(p,{scope:null}),m,{scope:"operator",match:/<|>/},b]},T={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},R={begin:[/^\s*/,Bt(/#/,Xn(...r)),/\b/],beginScope:{2:"meta"},end:Ri(/\s|$/)},x={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},O={scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},M={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},t.BACKSLASH_ESCAPE]},B={scope:"string",begin:/"""/,end:/"""/,relevance:2},Y={scope:"subst",begin:/\{/,end:/\}/,keywords:l},$={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},t.BACKSLASH_ESCAPE,Y]},q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},t.BACKSLASH_ESCAPE,Y]},V={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},Y],relevance:2},J={scope:"string",match:Bt(/'/,Xn(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return Y.contains=[q,$,M,O,J,n,u,p,b,T,R,x,m,g],{name:"F#",aliases:["fs","f#"],keywords:l,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[V,q,$,B,M,O,J]},u,p,C,{scope:"meta",begin:/\[\]/,relevance:2,contains:[p,B,M,O,J,x]},h,b,T,R,x,m,g]}}function $I(t){const e=t.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:n,contains:[o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:e.concat(s,e.anyNumberOfTimes(e.concat(/[ ]+/,s))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[t.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},t.COMMENT("^\\*","$"),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},t.C_NUMBER_MODE,i]}}function qI(t){const e={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=t.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,i]}],a={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},s=function(p,_,m){const f=t.inherit({className:"function",beginKeywords:p,end:_,excludeEnd:!0,contains:[].concat(o)},{});return f.contains.push(a),f.contains.push(t.C_NUMBER_MODE),f.contains.push(t.C_BLOCK_COMMENT_MODE),f.contains.push(n),f},l={className:"built_in",begin:"\\b("+e.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},u={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:e,relevance:0,contains:[{beginKeywords:e.keyword},l,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:e.built_in,literal:e.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:e,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,i]}}function WI(t){const e="[A-Z_][A-Z0-9_.]*",n="%",r={$pattern:e,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},i={className:"meta",begin:"([O])([0-9]+)"},o=t.inherit(t.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+t.C_NUMBER_RE}),a=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\(/,/\)/),o,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:n},i].concat(a)}}function KI(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}function QI(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}function ZI(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function XI(t){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}function jI(t){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}function _l(t,e={}){return e.variants=t,e}function JI(t){const e=t.regex,n="[A-Za-z0-9_$]+",r=_l([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),i={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},o=_l([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),a=_l([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),s={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,a,i,o,s,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:n+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,a,i,o,"self"]},{className:"symbol",begin:"^[ ]*"+e.lookahead(n+":"),excludeBegin:!0,end:n+":",relevance:0}],illegal:/#|<\//}}function ex(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}function tx(t){const e=t.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=e.either(i,o,a,s),u=e.concat(e.optional(/\.|\.\/|\//),c,e.anyNumberOfTimes(e.concat(l,c))),d=e.concat("(",a,"|",s,")(?==)"),p={begin:u},_=t.inherit(p,{keywords:r}),m={begin:/\(/,end:/\)/},f={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,_,m]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},S={contains:[t.NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,g,f,_,m],returnEnd:!0},E=t.inherit(p,{className:"name",keywords:n,starts:t.inherit(S,{end:/\)/})});m.contains=[E];const b=t.inherit(p,{keywords:n,className:"name",starts:t.inherit(S,{end:/\}\}/})}),h=t.inherit(p,{keywords:n,className:"name"}),C=t.inherit(p,{className:"name",keywords:n,starts:t.inherit(S,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},t.COMMENT(/\{\{!--/,/--\}\}/),t.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[h]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[h]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}function nx(t){const e="([0-9]_*)+",n="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",l="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[t.COMMENT("--+","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},u={className:"meta",begin:/\{-#/,end:/#-\}/},d={className:"meta",begin:"^#",end:"$"},p={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},_={begin:"\\(",end:"\\)",illegal:'"',contains:[u,d,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},m={begin:/\{/,end:/\}/,contains:_.contains},f={className:"number",relevance:0,variants:[{match:`\\b(${e})(\\.(${e}))?([eE][+-]?(${e}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${e}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[_,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[_,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[p,_,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[u,p,_,m,c]},{beginKeywords:"default",end:"$",contains:[p,_,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[p,t.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},u,d,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},t.QUOTE_STRING_MODE,f,p,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${l}--+|--+(?!-)${l}`},c,{begin:"->|<-"}]}}function rx(t){const e="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+e},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[t.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+t.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[t.TITLE_MODE]}],illegal:/<\//}}function ix(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}function ox(t){const e=t.regex,n="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:e.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},t.inherit(i,{relevance:0})]}}function ax(t){const e="a-zA-Z_\\-!.?+*=<>&#'",n="["+e+"]["+e+"0-9/;:]*",r={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",o={begin:n,relevance:0},a={className:"number",begin:i,relevance:0},s=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),l=t.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+n},p=t.COMMENT("\\^\\{","\\}"),_={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},f={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:r,begin:n,starts:f},S=[m,s,d,p,l,_,u,a,c,o];return m.contains=[t.COMMENT("comment",""),g,f],f.contains=S,u.contains=S,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),m,s,d,p,l,_,u,a,c]}}function sx(t){const e="\\[",n="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:e,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:e,end:n,contains:["self"]}]}}function lx(t){const e=t.regex,n={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:e.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:e.concat(/\b\d+/,i,r)},{begin:e.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[t.UNDERSCORE_TITLE_MODE,n]},t.COMMENT("!","$",{relevance:0}),t.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}function cx(t){const e="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Ce="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",pE="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",_E="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",mE="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",fE="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",gE=Ce+pE,hE=mE,EE="null true false nil ",Du={className:"number",begin:t.NUMBER_RE,relevance:0},Mu={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},wu={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},SE={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,wu]},bE={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,wu]},Lu={variants:[SE,bE]},vo={$pattern:e,keyword:r,built_in:gE,class:hE,literal:EE},Ds={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:vo,relevance:0},ku={className:"type",begin:":[ \\t]*("+fE.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Pu={className:"variable",keywords:vo,begin:e,relevance:0,contains:[ku,Ds]},Fu=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:vo,illegal:"\\$|\\?|%|,|;$|~|#|@|/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}function _x(t){const e="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:e+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=t.COMMENT("",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+e+"'"},c=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+e},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:e,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+e,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:e+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[o]}},a,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[o]}},a,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}function mx(t){const n=t.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:r},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:i}]},s={className:"params",relevance:0,begin:/#+\d?/},l={variants:o},c={className:"built_in",relevance:0,begin:/[$&^_]/},u={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},d=t.COMMENT("%","$",{relevance:0}),p=[a,s,l,c,u,d],_={begin:/\{/,end:/\}/,relevance:0,contains:["self",...p]},m=t.inherit(_,{relevance:0,endsParent:!0,contains:[_,...p]}),f={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[_,...p]},g={begin:/\s+/,relevance:0},S=[m],E=[f],b=function(M,B){return{contains:[g],starts:{relevance:0,contains:M,starts:B}}},h=function(M,B){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[g],starts:B}},C=function(M,B){return t.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(S,B))},T=(M="string")=>t.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),R=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},x=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),O=[...["verb","lstinline"].map(M=>h(M,{contains:[T()]})),h("mint",b(S,{contains:[T()]})),h("mintinline",b(S,{contains:[x(),T()]})),h("url",{contains:[x("link"),x("link")]}),h("hyperref",{contains:[x("link")]}),h("href",b(E,{contains:[x("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,R("verbatim"+M)),C("filecontents"+M,b(S,R("filecontents"+M))),...["","B","L"].map(B=>C(B+"Verbatim"+M,b(E,R(B+"Verbatim"+M))))])),C("minted",b(E,b(S,R("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}function fx(t){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},t.HASH_COMMENT_MODE]}}function gx(t){const e=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[e,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,e,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,e,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}function hx(t){const e="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),s=t.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+e},u={begin:e,relevance:0},d={begin:n},_={contains:[o,a,l,c,{begin:"\\(",end:"\\)",contains:["self",i,a,o,u]},u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+e},{begin:"#'"+e+"(::"+e+")*"}]},f={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return f.contains=[{className:"name",variants:[{begin:e,relevance:0},{begin:n}]},g],g.contains=[_,m,f,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,t.SHEBANG(),i,a,s,_,m,f,u]}}function Ex(t){const e={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],r=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[e,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[e,i,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,r].concat(n),illegal:";$|^\\[|^=|&|\\{"}}const Sx=["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"],bx=["true","false","null","undefined","NaN","Infinity"],Tx=["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"],Cx=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],yx=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vx=[].concat(yx,Tx,Cx);function Rx(t){const e=["npm","print"],n=["yes","no","on","off","it","that","void"],r=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],i={keyword:Sx.concat(r),literal:bx.concat(n),built_in:vx.concat(e)},o="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=t.inherit(t.TITLE_MODE,{begin:o}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:i},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:i},c=[t.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,t.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+o},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=c;const u={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(c)}]},d={begin:"(#=>|=>|\\|>>|-?->|!->)"},p={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i};return{name:"LiveScript",aliases:["ls"],keywords:i,illegal:/\/\*/,contains:c.concat([t.COMMENT("\\/\\*","\\*\\/"),t.HASH_COMMENT_MODE,d,{className:"function",contains:[a,u],returnBegin:!0,variants:[{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+o+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},p,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function Ox(t){const e=t.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:e.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:e.concat(/@/,n)},{begin:/@\d+/},{begin:e.concat(/!/,n)},{begin:e.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[r,t.COMMENT(/;\s*$/,null,{relevance:0}),t.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,o,i,l,s,a]}}function Nx(t){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:t.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}const Ax=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function Ix(t){const e=t.regex,n=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,i=/(\d*\.\d+|\d+\.\d*|\d+)/,o=e.either(e.concat(n,r),i),a=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,s=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,l=e.either(a,s),c=/\*\^[+-]?\d+/,d={className:"number",relevance:0,begin:e.concat(o,e.optional(l),e.optional(c))},p=/[a-zA-Z$][a-zA-Z0-9$]*/,_=new Set(Ax),m={variants:[{className:"builtin-symbol",begin:p,"on:begin":(C,T)=>{_.has(C[0])||T.ignoreMatch()}},{className:"symbol",relevance:0,begin:p}]},f={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},g={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},S={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},E={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},b={className:"brace",relevance:0,begin:/[[\](){}]/},h={className:"message-name",relevance:0,begin:e.concat("::",p)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),S,E,h,m,f,t.QUOTE_STRING_MODE,d,g,b]}}function xx(t){const e="('|\\.')+",n={relevance:0,contains:[{begin:e}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+e,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}function Dx(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}function Mx(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},n,t.C_BLOCK_COMMENT_MODE,r,t.NUMBER_MODE,i,o,{begin:/:-/},{begin:/\.$/}]}}function Lx(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}function kx(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}function Px(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}function Fx(t){const e={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),n,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,e]}}function Bx(t){const e={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION 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 coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:e},i=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];r.contains=i;const o=t.inherit(t.TITLE_MODE,{begin:n}),a="(\\(.*\\)\\s*)?\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:e,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:e,illegal:/\/\*/,contains:i.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}function Ux(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}function Hx(t){const e={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[t.inherit(t.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,e,n]}}function Gx(t){const e=t.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:e.concat(/[$@]/,t.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:e.concat(t.UNDERSCORE_IDENT_RE+e.lookahead(/\s+\{/)),relevance:0},{begin:e.lookahead(t.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function Vx(t){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}function Yx(t){const e={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:e},r={className:"char.escape",begin:/''\$/},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[r,n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[t.NUMBER_MODE,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o,i];return n.contains=a,{name:"Nix",aliases:["nixos"],keywords:e,contains:a}}function zx(t){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function $x(t){const e=t.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:e.concat(/\$/,e.either(...n))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},s={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:e.either(...r)},u={className:"keyword",begin:e.concat(/!/,e.either(...i))},d={className:"char.escape",begin:/\$(\\[nrt]|\$)/},p={className:"title.function",begin:/\w+::\w+/},_={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[d,o,a,s,l]},m=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],f=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],g={match:[/Function/,/\s+/,e.concat(/(\.)?/,t.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},E={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:m,literal:f},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),E,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},_,u,a,s,l,c,p,t.NUMBER_MODE]}}function qx(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}function Wx(t){const e={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,e,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,o,i,e,s,l]}}function Kx(t){const e={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=t.COMMENT(/\{/,/\}/,{relevance:0}),r=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.inherit(t.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:e,contains:[i,o]},n,r]},s={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:e,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,r,t.C_LINE_COMMENT_MODE,i,o,t.NUMBER_MODE,a,s]}}function Qx(t){const e=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[e]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}function Zx(t){const e={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,e,n]}}function Xx(t){const e=t.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map(function(f){return f.split("|")[0]}).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",m="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(f){return f.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+s+a,built_in:u+d+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+m+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}function jx(t){const e={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:e,contains:[o,n,r,i,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function Jx(t){const e=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),_={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},m={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},f={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},S={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},E={className:"selector-tag",begin:/@\B/,relevance:0},b={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},h=[b,p,a,t.NUMBER_MODE,c,u,_,s,l,E],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",h,{begin:"("+e.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return b.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:h.concat(m,f,g,S,C)}}function eD(t){const e=t.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],r=t.IDENT_RE,i={variants:[{match:e.concat(e.either(...n),e.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:e.concat(/\b(?!for|if|while)/,r,e.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,r],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,r],className:{2:"property"}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},l=["boolean","byte","char","color","double","float","int","long","short"],c=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...c],type:l},contains:[s,o,i,a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function tD(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}function nD(t){const e={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},s={className:"string",begin:/0'(\\'|.)/},l={className:"string",begin:/0'\\s/},u=[e,n,r,{begin:/:-/},i,o,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a,s,l,t.C_NUMBER_MODE];return r.contains=u,i.contains=u,{name:"Prolog",contains:u.concat([{begin:/\.$/}])}}function rD(t){const e="[ \\t\\f]*",n="[ \\t\\f]+",r=e+"[:=]"+e,i=n,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:s},{className:"attr",begin:a+e+"$"}]}}function iD(t){const e=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,t.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:e,type:n,literal:["true","false"]},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function oD(t){const e={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=t.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",i=t.inherit(t.TITLE_MODE,{begin:r}),o={className:"variable",begin:"\\$"+r},a={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:e,relevance:0,contains:[a,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}function aD(t){const e={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},e,n]}}function sD(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}function lD(t){const e=t.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},r="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:r,returnEnd:!1}},s={begin:r+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:r,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:e.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[t.inherit(t.TITLE_MODE,{begin:r})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+t.IDENT_RE,relevance:0},a,s,l],illegal:/#/}}function cD(t){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},t.inherit(t.APOS_STRING_MODE,{scope:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}function uD(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},t.COMMENT("^#","$"),s,l,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[s,l,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}function _D(t){const e=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],r=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,t.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:r,built_in:e,type:n},illegal:"",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,o,l,s,t.C_NUMBER_MODE,c,u,...d,p,n]}}function hD(t){const e="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",r=n+"[+\\-]"+n+"i",i={$pattern:e,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+e+"|#\\\\.)"},a={className:"number",variants:[{begin:n,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=t.QUOTE_STRING_MODE,l=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],c={begin:e,relevance:0},u={className:"symbol",begin:"'"+e},d={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,s,a,c,u]}]},_={className:"name",relevance:0,begin:e,keywords:i},f={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[_,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},_,d]};return d.contains=[o,a,s,c,u,p,f].concat(l),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[t.SHEBANG(),a,s,u,p,f].concat(l)}}function ED(t){const e=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:e},t.COMMENT("//","$")].concat(e)}}function SD(t){const e=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+e.join("|")+")\\s"},{begin:"\\s("+e.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: +]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function bD(t){const e="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:e+":",relevance:0},t.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+e+"([ ]+"+e+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+e}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,n,t.C_NUMBER_MODE,r]}]}}function TD(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function CD(t){const e={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},t.inherit(r,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:a,literal:o},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,e,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}function yD(t){const e=t.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],s=t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),l={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},t.C_LINE_COMMENT_MODE]},c=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:n,type:i,keyword:r,built_in:o},contains:[t.C_LINE_COMMENT_MODE,l,t.HASH_COMMENT_MODE,s,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:e.concat(/[<,]\s*/,e.either(...c),/\s*=/),keywords:c},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,e.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:e.concat(/\w*/,e.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,e.concat(e.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+e.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:e.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}function vD(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r ]*?"'`},{begin:`"[^\r -"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function TD(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const CD=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),yD=["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"],vD=["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"],RD=["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"],OD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ND=["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 AD(t){const e=CD(t),n="and or not only",r={className:"variable",begin:"\\$"+t.IDENT_RE},i=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],o="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-id"},{begin:"\\b("+yD.join("|")+")"+o,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+RD.join("|")+")"+o},{className:"selector-pseudo",begin:"&?:(:)?("+OD.join("|")+")"+o},e.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:vD.join(" ")},contains:[e.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+i.join("|")+"))\\b"},r,e.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[e.HEXCOLOR,r,t.APOS_STRING_MODE,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE]}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ND.join("|")+")\\b",starts:{end:/;|$/,contains:[e.HEXCOLOR,r,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},e.FUNCTION_DISPATCH]}}function ID(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ +"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function RD(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const OD=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),ND=["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"],AD=["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"],ID=["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"],xD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],DD=["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 MD(t){const e=OD(t),n="and or not only",r={className:"variable",begin:"\\$"+t.IDENT_RE},i=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],o="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-id"},{begin:"\\b("+ND.join("|")+")"+o,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+ID.join("|")+")"+o},{className:"selector-pseudo",begin:"&?:(:)?("+xD.join("|")+")"+o},e.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:AD.join(" ")},contains:[e.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+i.join("|")+"))\\b"},r,e.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[e.HEXCOLOR,r,t.APOS_STRING_MODE,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE]}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+DD.join("|")+")\\b",starts:{end:/;|$/,contains:[e.HEXCOLOR,r,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},e.FUNCTION_DISPATCH]}}function wD(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ (multipart)?`,end:`\\] -`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function xD(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function DD(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function MD(t){const e=t.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[t.COMMENT(";[ \\t]*#","$"),t.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:e.concat(/\$/,e.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},r]}}function wD(t){const e=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:e,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...e,"set","list","map"]},end:">",contains:["self"]}]}}function LD(t){const e={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",e,n]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",e,t.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.COMMENT("//","[;$]"),t.COMMENT("!","[;$]"),t.COMMENT("--eg:","$"),t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},t.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}function kD(t){const e=t.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],r=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(m=>`end${m}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},l={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[s]},c={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},u=(m,{relevance:f})=>({beginScope:{1:"template-tag",3:"name"},relevance:f||2,endScope:"template-tag",begin:[/\{%/,/\s*/,e.either(...m)],end:/%\}/,keywords:"in",contains:[c,l,o,a]}),d=/[a-z_]+/,p=u(i,{relevance:2}),_=u([d],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{#/,/#\}/),p,_,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",c,l,o,a]}]}}function PD(t){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[t.UNDERSCORE_TITLE_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}function FD(t){const e=t.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],r=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:e.concat(e.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:r,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,t.inherit(t.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),t.COMMENT(/'/,/$/,{relevance:0}),t.C_NUMBER_MODE]}}function BD(t){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}function UD(t){const e=t.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},r=["__FILE__","__LINE__"],i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,{scope:"number",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:e.concat(/`/,e.either(...r))},{scope:"meta",begin:e.concat(/`/,e.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}function HD(t){const e="\\d(_|\\d)*",n="[eE][-+]?"+e,r=e+"(\\."+e+")?("+n+")?",i="\\w+",a="\\b("+(e+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+r+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT("--","$"),t.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[t.BACKSLASH_ESCAPE]}]}}function GD(t){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[t.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},t.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,t.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}function VD(t){const e=t.regex,n=/[a-zA-Z]\w*/,r=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],s=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],l={relevance:0,match:e.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},c={match:e.concat(e.either(e.concat(/\b(?!(if|while|for|else|super)\b)/,n),e.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},u={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:r},d={relevance:0,match:e.either(...s),className:"operator"},p={className:"string",begin:/"""/,end:/"""/},_={className:"property",begin:e.concat(/\./,e.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:e.concat(/\b_/,n),scope:"variable"},f={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},g=t.C_NUMBER_MODE,E={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},S=t.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),b={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,f,l,m,d]},h={scope:"string",begin:/"/,end:/"/,contains:[b,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};b.contains.push(h);const C=[...r,...o,...i],T={relevance:0,match:e.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:r,"variable.language":o,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,h,p,S,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,f,u,E,c,l,d,m,_,T]}}function YD(t){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+t.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},t.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}function zD(t){const e=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],r=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:e,literal:["true","false","nil"],built_in:n.concat(r)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},s={className:"string",begin:"'",end:"'",illegal:"\\n"},l={className:"string",begin:"<<",end:">>"},c={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},u={beginKeywords:"import",end:"$",keywords:o,contains:[a]},d={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,s,l,d,u,c,t.NUMBER_MODE]}}function $D(t){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}function qD(t){const e={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},n=t.UNDERSCORE_TITLE_MODE,r={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:i,contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[t.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:["self",t.C_BLOCK_COMMENT_MODE,e,r]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},e,r]}}function WD(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.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:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={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},d={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},t.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},_=e.optional(i)+t.IDENT_RE+"\\s*\\(",m=["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"],f=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["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"],E=["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"],h={type:f,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},C={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},T=[C,d,s,n,t.C_BLOCK_COMMENT_MODE,u,c],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:T.concat([{begin:/\(/,end:/\)/,keywords:h,contains:T.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:_,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:h,illegal:"",keywords:h,contains:["self",s]},{begin:t.IDENT_RE+"::",keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function KD(t){const e={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=WD(t),r=n.keywords;return r.type=[...r.type,...e.type],r.literal=[...r.literal,...e.literal],r.built_in=[...r.built_in,...e.built_in],r._hints=e._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function QD(t){const e=t.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},c={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),_={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],f=["true","false"],g={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],b=["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"],h=["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"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:f,built_in:[...E,...S,"set","shopt",...b,...h]},contains:[p,t.SHEBANG(),_,u,t.HASH_COMMENT_MODE,o,g,a,s,l,c,n]}}function ZD(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.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:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={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},d={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},t.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},_=e.optional(i)+t.IDENT_RE+"\\s*\\(",g={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"},E=[d,s,n,t.C_BLOCK_COMMENT_MODE,u,c],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:E.concat([{begin:/\(/,end:/\)/,keywords:g,contains:E.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+a+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:g}}}function XD(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.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:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={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},d={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},t.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},_=e.optional(i)+t.IDENT_RE+"\\s*\\(",m=["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"],f=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["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"],E=["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"],h={type:f,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},C={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},T=[C,d,s,n,t.C_BLOCK_COMMENT_MODE,u,c],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:T.concat([{begin:/\(/,end:/\)/,keywords:h,contains:T.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:_,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:h,illegal:"",keywords:h,contains:["self",s]},{begin:t.IDENT_RE+"::",keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function jD(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["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"],o=["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"],a={keyword:i.concat(o),built_in:e,literal:r},s=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={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},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=t.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},p=t.inherit(d,{illegal:/\n/}),_={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,p]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},f=t.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});d.contains=[m,_,c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,t.C_BLOCK_COMMENT_MODE],p.contains=[f,_,u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[m,_,c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},S=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",b={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,E,t.C_LINE_COMMENT_MODE,t.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:"("+S+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[g,l,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},b]}}const JD=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),eM=["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"],tM=["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"],nM=["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"],rM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],iM=["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 oM(t){const e=t.regex,n=JD(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+nM.join("|")+")"},{begin:":(:)?("+rM.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+iM.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:tM.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+eM.join("|")+")\\b"}]}}function aM(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function sM(t){const o={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:o,illegal:"Wg(t,e,n-1))}function uM(t){const e=t.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Wg("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={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","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.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:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f_,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},f_,c]}}const g_="[A-Za-z$_][0-9A-Za-z$_]*",dM=["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"],pM=["true","false","null","undefined","NaN","Infinity"],Kg=["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"],Qg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Zg=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],_M=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],mM=[].concat(Zg,Kg,Qg);function fM(t){const e=t.regex,n=(v,{after:A})=>{const k="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(v,A)=>{const k=v[0].length+v.index,G=v.input[k];if(G==="<"||G===","){A.ignoreMatch();return}G===">"&&(n(v,{after:k})||A.ignoreMatch());let z;const ae=v.input.substring(k);if(z=ae.match(/^\s*=/)){A.ignoreMatch();return}if((z=ae.match(/^\s+extends\s+/))&&z.index===0){A.ignoreMatch();return}}},s={$pattern:g_,keyword:dM,literal:pM,built_in:mM,"variable.language":_M},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\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:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,p]},S={className:"comment",variants:[t.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:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},b=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,m,f,g,{match:/\$\d+/},d];p.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const h=[].concat(S,p.contains),C=h.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(h)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,match:e.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:{_:[...Kg,...Qg]}},O={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(v){return e.concat("(?!",v.join("|"),")")}const $={match:e.concat(/\b/,Y([...Zg,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",y={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),O,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,m,f,g,S,{match:/\$\d+/},d,x,{className:"attr",begin:r+e.lookahead(":"),relevance:0},y,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,t.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},$,B,R,V,{match:/\$[(.]/}]}}function gM(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[e,n,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Gr="[0-9](_*[0-9])*",zo=`\\.(${Gr})`,$o="[0-9a-fA-F](_*[0-9a-fA-F])*",hM={className:"number",variants:[{begin:`(\\b(${Gr})((${zo})|\\.)?|(${zo}))[eE][+-]?(${Gr})[fFdD]?\\b`},{begin:`\\b(${Gr})((${zo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${zo})[fFdD]?\\b`},{begin:`\\b(${Gr})[fFdD]\\b`},{begin:`\\b0[xX]((${$o})\\.?|(${$o})?\\.(${$o}))[pP][+-]?(${Gr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function EM(t){const e={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:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(a,{className:"string"}),"self"]}]},c=hM,u=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,t.C_LINE_COMMENT_MODE,u],relevance:0},t.C_LINE_COMMENT_MODE,u,s,l,a,t.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},c]}}const SM=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),bM=["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"],TM=["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"],Xg=["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"],jg=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],CM=["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(),yM=Xg.concat(jg);function vM(t){const e=SM(t),n=yM,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(b){return{className:"string",begin:"~?"+b+".*?"+b}},c=function(b,h,C){return{className:b,begin:h,relevance:C}},u={$pattern:/[a-z-]+/,keyword:r,attribute:TM.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,l("'"),l('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const p=s.concat({begin:/\{/,end:/\}/,contains:a}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},m={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+CM.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:u,returnEnd:!0,contains:s,relevance:0}},g={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,_,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+bM.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Xg.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+jg.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},e.FUNCTION_DISPATCH]},S={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[E]};return a.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,f,g,S,m,E,_,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function RM(t){const e="\\[=*\\[",n="\\]=*\\]",r={begin:e,end:n,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:t.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:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[r],relevance:5}])}}function OM(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={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}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),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}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=t.inherit(c,{contains:[]}),p=t.inherit(u,{contains:[]});c.contains.push(p),u.contains.push(d);let _=[n,l];return[c,u,d,p].forEach(g=>{g.contains=g.contains.concat(_)}),_=_.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},i,r,l,a]}}function AM(t){const e={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+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,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"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function IM(t){const e=t.regex,n=["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"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[t.BACKSLASH_ESCAPE,o,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(_,m,f="\\1")=>{const g=f==="\\1"?f:e.concat(f,m);return e.concat(e.concat("(?:",_,")"),m,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,f,r)},d=(_,m,f)=>e.concat(e.concat("(?:",_,")"),m,/(?:\\.|[^\\\/])*?/,f,r),p=[s,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,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:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.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:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",e.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",e.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:p}}function xM(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,r=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=t.inherit(t.APOS_STRING_MODE,{illegal:null}),c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(s),"on:begin":($,q)=>{q.data._beginMatch=$[1]||$[2]},"on:end":($,q)=>{q.data._beginMatch!==$[1]&&q.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[ -]`,_={scope:"string",variants:[c,l,u,d]},m={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},f=["false","null","true"],g=["__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"],E=["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"],b={keyword:g,literal:($=>{const q=[];return $.forEach(V=>{q.push(V),V.toLowerCase()===V?q.push(V.toUpperCase()):q.push(V.toLowerCase())}),q})(f),built_in:E},h=$=>$.map(q=>q.replace(/\|\d+$/,"")),C={variants:[{match:[/new/,e.concat(p,"+"),e.concat("(?!",h(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},T=e.concat(r,"\\b(?!\\()"),R={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),T],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),T],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:e.concat(r,e.lookahead(":"),e.lookahead(/(?!::)/))},O={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[x,o,R,t.C_BLOCK_COMMENT_MODE,_,m,C]},M={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",h(g).join("\\b|"),"|",h(E).join("\\b|"),"\\b)"),r,e.concat(p,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[O]};O.contains.push(M);const B=[x,R,t.C_BLOCK_COMMENT_MODE,_,m,C],Y={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:f,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:f,keyword:["new","array"]},contains:["self",...B]},...B,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:b,contains:[Y,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,M,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},C,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",o,R,t.C_BLOCK_COMMENT_MODE,_,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},_,m]}}function DM(t){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},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function MM(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function wM(t){const e=t.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["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"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,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"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l,u,c]},{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:[t.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,u,c]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",_=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${r.join("|")}`,f={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${_}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},g={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,f,d,t.HASH_COMMENT_MODE]}]};return c.contains=[d,f,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,f,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[E]},{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:[f,E,d]}]}}function LM(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function kM(t){const e=t.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=e.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]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=e.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:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.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]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function PM(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[t.COMMENT("#","$",{contains:[s]}),t.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[t.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{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:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,u]})]}]},p="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${_}))?([eE][+-]?(${_})|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"}]},f={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},T=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,u],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(l,c),relevance:0}].concat(l,c);u.contains=T,f.contains=T;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:T}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:T}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(M).concat(c).concat(T)}}function FM(t){const e=t.regex,n={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,t.IDENT_RE,e.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["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"],o=["true","false","Some","None","Ok","Err"],a=["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!","eprintln!","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!"],s=["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:t.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:""},n]}}const BM=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),UM=["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"],HM=["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"],GM=["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"],VM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],YM=["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 zM(t){const e=BM(t),n=VM,r=GM,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+UM.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+YM.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:[e.BLOCK_COMMENT,s,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:HM.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function $M(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function qM(t){const e=t.regex,n=t.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["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"],l=["add","asc","collation","desc","final","first","last","view"],c=["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"],u=["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"],d=["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"],p=["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"],_=u,m=[...c,...l].filter(b=>!u.includes(b)),f={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:e.concat(/\b/,e.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function S(b,{exceptions:h,when:C}={}){const T=C;return h=h||[],b.map(R=>R.match(/\|\d+$/)||h.includes(R)?R:T(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(m,{when:b=>b.length<3}),literal:o,type:s,built_in:d},contains:[{begin:e.either(...p),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(p),literal:o,type:s}},{className:"type",begin:e.either(...a)},E,f,r,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,g]}}function Jg(t){return t?typeof t=="string"?t:t.source:null}function qo(t){return ye("(?=",t,")")}function ye(...t){return t.map(n=>Jg(n)).join("")}function WM(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function ut(...t){return"("+(WM(t).capture?"":"?:")+t.map(r=>Jg(r)).join("|")+")"}const cu=t=>ye(/\b/,t,/\w$/.test(t)?/\b/:/\B/),KM=["Protocol","Type"].map(cu),h_=["init","self"].map(cu),QM=["Any","Self"],pl=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","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","macro","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"],E_=["false","nil","true"],ZM=["assignment","associativity","higherThan","left","lowerThan","none","right"],XM=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],S_=["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"],eh=ut(/[/=\-+!*%<>&|^~?]/,/[\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]/),th=ut(eh,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),_l=ye(eh,th,"*"),nh=ut(/[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]/),Ya=ut(nh,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),dn=ye(nh,Ya,"*"),ml=ye(/[A-Z]/,Ya,"*"),jM=["attached","autoclosure",ye(/convention\(/,ut("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ye(/objc\(/,dn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],JM=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ew(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[t.C_LINE_COMMENT_MODE,n],i={match:[/\./,ut(...KM,...h_)],className:{2:"keyword"}},o={match:ye(/\./,ut(...pl)),relevance:0},a=pl.filter(de=>typeof de=="string").concat(["_|0"]),s=pl.filter(de=>typeof de!="string").concat(QM).map(cu),l={variants:[{className:"keyword",match:ut(...s,...h_)}]},c={$pattern:ut(/\b\w+/,/#\w+/),keyword:a.concat(XM),literal:E_},u=[i,o,l],d={match:ye(/\./,ut(...S_)),relevance:0},p={className:"built_in",match:ye(/\b/,ut(...S_),/(?=\()/)},_=[d,p],m={match:/->/,relevance:0},f={className:"operator",relevance:0,variants:[{match:_l},{match:`\\.(\\.|${th})+`}]},g=[m,f],E="([0-9]_*)+",S="([0-9a-fA-F]_*)+",b={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${S})(\\.(${S}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},h=(de="")=>({className:"subst",variants:[{match:ye(/\\/,de,/[0\\tnr"']/)},{match:ye(/\\/,de,/u\{[0-9a-fA-F]{1,8}\}/)}]}),C=(de="")=>({className:"subst",match:ye(/\\/,de,/[\t ]*(?:[\r\n]|\r\n)/)}),T=(de="")=>({className:"subst",label:"interpol",begin:ye(/\\/,de,/\(/),end:/\)/}),R=(de="")=>({begin:ye(de,/"""/),end:ye(/"""/,de),contains:[h(de),C(de),T(de)]}),x=(de="")=>({begin:ye(de,/"/),end:ye(/"/,de),contains:[h(de),T(de)]}),O={className:"string",variants:[R(),R("#"),R("##"),R("###"),x(),x("#"),x("##"),x("###")]},M=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],B={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:M},Y=de=>{const ke=ye(de,/\//),Qe=ye(/\//,de);return{begin:ke,end:Qe,contains:[...M,{scope:"comment",begin:`#(?!.*${Qe})`,end:/$/}]}},$={scope:"regexp",variants:[Y("###"),Y("##"),Y("#"),B]},q={match:ye(/`/,dn,/`/)},V={className:"variable",match:/\$\d+/},J={className:"variable",match:`\\$${Ya}+`},y=[q,V,J],v={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:JM,contains:[...g,b,O]}]}},A={scope:"keyword",match:ye(/@/,ut(...jM))},k={scope:"meta",match:ye(/@/,dn)},G=[v,A,k],z={match:qo(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ye(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Ya,"+")},{className:"type",match:ml,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ye(/\s+&\s+/,qo(ml)),relevance:0}]},ae={begin://,keywords:c,contains:[...r,...u,...G,m,z]};z.contains.push(ae);const Ce={match:ye(dn,/\s*:/),keywords:"_|0",relevance:0},ie={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",Ce,...r,$,...u,..._,...g,b,O,...y,...G,z]},ue={begin://,keywords:"repeat each",contains:[...r,z]},Be={begin:ut(qo(ye(dn,/\s*:/)),qo(ye(dn,/\s+/,dn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:dn}]},Le={begin:/\(/,end:/\)/,keywords:c,contains:[Be,...r,...u,...g,b,O,...G,z,ie],endsParent:!0,illegal:/["']/},We={match:[/(func|macro)/,/\s+/,ut(q.match,dn,_l)],className:{1:"keyword",3:"title.function"},contains:[ue,Le,e],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ue,Le,e],illegal:/\[|%/},ht={match:[/operator/,/\s+/,_l],className:{1:"keyword",3:"title"}},Ft={begin:[/precedencegroup/,/\s+/,ml],className:{1:"keyword",3:"title"},contains:[z],keywords:[...ZM,...E_],end:/}/};for(const de of O.variants){const ke=de.contains.find(he=>he.label==="interpol");ke.keywords=c;const Qe=[...u,..._,...g,b,O,...y];ke.contains=[...Qe,{begin:/\(/,end:/\)/,contains:["self",...Qe]}]}return{name:"Swift",keywords:c,contains:[...r,We,Ke,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[t.inherit(t.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},ht,Ft,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},$,...u,..._,...g,b,O,...y,...G,z,ie]}}const za="[A-Za-z$_][0-9A-Za-z$_]*",rh=["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"],ih=["true","false","null","undefined","NaN","Infinity"],oh=["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"],ah=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],sh=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],lh=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ch=[].concat(sh,oh,ah);function tw(t){const e=t.regex,n=(v,{after:A})=>{const k="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(v,A)=>{const k=v[0].length+v.index,G=v.input[k];if(G==="<"||G===","){A.ignoreMatch();return}G===">"&&(n(v,{after:k})||A.ignoreMatch());let z;const ae=v.input.substring(k);if(z=ae.match(/^\s*=/)){A.ignoreMatch();return}if((z=ae.match(/^\s+extends\s+/))&&z.index===0){A.ignoreMatch();return}}},s={$pattern:za,keyword:rh,literal:ih,built_in:ch,"variable.language":lh},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\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:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,p]},S={className:"comment",variants:[t.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:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},b=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,m,f,g,{match:/\$\d+/},d];p.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const h=[].concat(S,p.contains),C=h.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(h)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,match:e.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:{_:[...oh,...ah]}},O={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(v){return e.concat("(?!",v.join("|"),")")}const $={match:e.concat(/\b/,Y([...sh,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",y={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),O,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,m,f,g,S,{match:/\$\d+/},d,x,{className:"attr",begin:r+e.lookahead(":"),relevance:0},y,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,t.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},$,B,R,V,{match:/\$[(.]/}]}}function nw(t){const e=tw(t),n=za,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:za,keyword:rh.concat(s),literal:ih,built_in:ch.concat(r),"variable.language":lh},c={className:"meta",begin:"@"+n},u=(p,_,m)=>{const f=p.contains.findIndex(g=>g.label===_);if(f===-1)throw new Error("can not find mode to replace");p.contains.splice(f,1,m)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),u(e,"shebang",t.SHEBANG()),u(e,"use_strict",a);const d=e.contains.find(p=>p.label==="func.def");return d.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function rw(t){const e=t.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:e.concat(/# */,e.either(o,i),/ *#/)},{begin:e.concat(/# */,s,/ *#/)},{begin:e.concat(/# */,a,/ *#/)},{begin:e.concat(/# */,e.either(o,i),/ +/,e.either(a,s),/ *#/)}]},c={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])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=t.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:[n,r,l,c,u,d,p,{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:[p]}]}}function iw(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const n=t.COMMENT(/;;/,/$/),r=["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"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={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/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={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/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,t.QUOTE_STRING_MODE,l,c,s]}}function ow(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(o,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,l,s]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function aw(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},a=t.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={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"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},_={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},f=[r,{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:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},_,m,o],g=[...f];return g.pop(),g.push(a),p.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:f}}const sw={arduino:KD,bash:QD,c:ZD,cpp:XD,csharp:jD,css:oM,diff:aM,go:sM,graphql:lM,ini:cM,java:uM,javascript:fM,json:gM,kotlin:EM,less:vM,lua:RM,makefile:OM,markdown:NM,objectivec:AM,perl:IM,php:xM,"php-template":DM,plaintext:MM,python:wM,"python-repl":LM,r:kM,ruby:PM,rust:FM,scss:zM,shell:$M,sql:qM,swift:ew,typescript:nw,vbnet:rw,wasm:iw,xml:ow,yaml:aw},lw={...sw,"1c":wA,abnf:LA,accesslog:kA,actionscript:PA,ada:FA,angelscript:BA,apache:UA,applescript:HA,arcade:GA,armasm:VA,asciidoc:YA,aspectj:zA,autohotkey:$A,autoit:qA,avrasm:WA,awk:KA,axapta:QA,basic:ZA,bnf:XA,brainfuck:jA,cal:JA,capnproto:eI,ceylon:tI,clean:nI,clojure:rI,"clojure-repl":iI,cmake:oI,coffeescript:pI,coq:_I,cos:mI,crmsh:fI,crystal:gI,csp:hI,d:EI,dart:SI,delphi:bI,django:TI,dns:CI,dockerfile:yI,dos:vI,dsconfig:RI,dts:OI,dust:NI,ebnf:AI,elixir:II,elm:xI,erb:DI,erlang:MI,"erlang-repl":wI,excel:LI,fix:kI,flix:PI,fortran:FI,fsharp:HI,gams:GI,gauss:VI,gcode:YI,gherkin:zI,glsl:$I,gml:qI,golo:WI,gradle:KI,groovy:QI,haml:ZI,handlebars:XI,haskell:jI,haxe:JI,hsp:ex,http:tx,hy:nx,inform7:rx,irpf90:ix,isbl:ox,"jboss-cli":ax,julia:sx,"julia-repl":lx,lasso:cx,latex:ux,ldif:dx,leaf:px,lisp:_x,livecodeserver:mx,livescript:Tx,llvm:Cx,lsl:yx,mathematica:Rx,matlab:Ox,maxima:Nx,mel:Ax,mercury:Ix,mipsasm:xx,mizar:Dx,mojolicious:Mx,monkey:wx,moonscript:Lx,n1ql:kx,nestedtext:Px,nginx:Fx,nim:Bx,nix:Ux,"node-repl":Hx,nsis:Gx,ocaml:Vx,openscad:Yx,oxygene:zx,parser3:$x,pf:qx,pgsql:Wx,pony:Kx,powershell:Qx,processing:Zx,profile:Xx,prolog:jx,properties:Jx,protobuf:eD,puppet:tD,purebasic:nD,q:rD,qml:iD,reasonml:oD,rib:aD,roboconf:sD,routeros:lD,rsl:cD,ruleslanguage:uD,sas:dD,scala:pD,scheme:_D,scilab:mD,smali:fD,smalltalk:gD,sml:hD,sqf:ED,stan:SD,stata:bD,step21:TD,stylus:AD,subunit:ID,taggerscript:xD,tap:DD,tcl:MD,thrift:wD,tp:LD,twig:kD,vala:PD,vbscript:FD,"vbscript-html":BD,verilog:UD,vhdl:HD,vim:GD,wren:VD,x86asm:YD,xl:zD,xquery:$D,zephir:qD};function uh(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&uh(n)}),t}class b_{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function dh(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Pn(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const cw="",T_=t=>!!t.scope,uw=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};class dw{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=dh(e)}openNode(e){if(!T_(e))return;const n=uw(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){T_(e)&&(this.buffer+=cw)}value(){return this.buffer}span(e){this.buffer+=``}}const C_=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class uu{constructor(){this.rootNode=C_(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=C_({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{uu._collapse(n)}))}}class pw extends uu{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new dw(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function io(t){return t?typeof t=="string"?t:t.source:null}function ph(t){return vr("(?=",t,")")}function _w(t){return vr("(?:",t,")*")}function mw(t){return vr("(?:",t,")?")}function vr(...t){return t.map(n=>io(n)).join("")}function fw(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function du(...t){return"("+(fw(t).capture?"":"?:")+t.map(r=>io(r)).join("|")+")"}function _h(t){return new RegExp(t.toString()+"|").exec("").length-1}function gw(t,e){const n=t&&t.exec(e);return n&&n.index===0}const hw=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let o=io(r),a="";for(;o.length>0;){const s=hw.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const Ew=/\b\B/,mh="[a-zA-Z]\\w*",_u="[a-zA-Z_]\\w*",fh="\\b\\d+(\\.\\d+)?",gh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hh="\\b(0b[01]+)",Sw="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",bw=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=vr(e,/.*\b/,t.binary,/\b.*/)),Pn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},oo={begin:"\\\\[\\s\\S]",relevance:0},Tw={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oo]},Cw={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oo]},yw={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/},Cs=function(t,e,n={}){const r=Pn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=du("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:vr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},vw=Cs("//","$"),Rw=Cs("/\\*","\\*/"),Ow=Cs("#","$"),Nw={scope:"number",begin:fh,relevance:0},Aw={scope:"number",begin:gh,relevance:0},Iw={scope:"number",begin:hh,relevance:0},xw={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oo,{begin:/\[/,end:/\]/,relevance:0,contains:[oo]}]},Dw={scope:"title",begin:mh,relevance:0},Mw={scope:"title",begin:_u,relevance:0},ww={begin:"\\.\\s*"+_u,relevance:0},Lw=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Wo=Object.freeze({__proto__:null,APOS_STRING_MODE:Tw,BACKSLASH_ESCAPE:oo,BINARY_NUMBER_MODE:Iw,BINARY_NUMBER_RE:hh,COMMENT:Cs,C_BLOCK_COMMENT_MODE:Rw,C_LINE_COMMENT_MODE:vw,C_NUMBER_MODE:Aw,C_NUMBER_RE:gh,END_SAME_AS_BEGIN:Lw,HASH_COMMENT_MODE:Ow,IDENT_RE:mh,MATCH_NOTHING_RE:Ew,METHOD_GUARD:ww,NUMBER_MODE:Nw,NUMBER_RE:fh,PHRASAL_WORDS_MODE:yw,QUOTE_STRING_MODE:Cw,REGEXP_MODE:xw,RE_STARTERS_RE:Sw,SHEBANG:bw,TITLE_MODE:Dw,UNDERSCORE_IDENT_RE:_u,UNDERSCORE_TITLE_MODE:Mw});function kw(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Pw(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Fw(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=kw,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Bw(t,e){Array.isArray(t.illegal)&&(t.illegal=du(...t.illegal))}function Uw(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Hw(t,e){t.relevance===void 0&&(t.relevance=1)}const Gw=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=vr(n.beforeMatch,ph(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},Vw=["of","and","for","in","not","or","if","then","parent","list","value"],Yw="keyword";function Eh(t,e,n=Yw){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(o){Object.assign(r,Eh(t[o],e,o))}),r;function i(o,a){e&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,zw(l[0],l[1])]})}}function zw(t,e){return e?Number(e):$w(t)?0:1}function $w(t){return Vw.includes(t.toLowerCase())}const y_={},_r=t=>{console.error(t)},v_=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Lr=(t,e)=>{y_[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),y_[`${t}/${e}`]=!0)},$a=new Error;function Sh(t,e,{key:n}){let r=0;const i=t[n],o={},a={};for(let s=1;s<=e.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=_h(e[s-1]);t[n]=a,t[n]._emit=o,t[n]._multi=!0}function qw(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw _r("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$a;if(typeof t.beginScope!="object"||t.beginScope===null)throw _r("beginScope must be object"),$a;Sh(t,t.begin,{key:"beginScope"}),t.begin=pu(t.begin,{joinWith:""})}}function Ww(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw _r("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$a;if(typeof t.endScope!="object"||t.endScope===null)throw _r("endScope must be object"),$a;Sh(t,t.end,{key:"endScope"}),t.end=pu(t.end,{joinWith:""})}}function Kw(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function Qw(t){Kw(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),qw(t),Ww(t)}function Zw(t){function e(a,s){return new RegExp(io(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=_h(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(pu(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[Pw,Uw,Qw,Gw].forEach(u=>u(a,s)),t.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[Fw,Bw,Hw].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Eh(a.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=e(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=e(l.end)),l.terminatorEnd=io(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Xw(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Pn(t.classNameAliases||{}),o(t)}function bh(t){return t?t.endsWithParent||bh(t.starts):!1}function Xw(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return Pn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:bh(t)?Pn(t,{starts:t.starts?Pn(t.starts):null}):Object.isFrozen(t)?Pn(t):t}var jw="11.9.0";class Jw extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const fl=dh,R_=Pn,O_=Symbol("nomatch"),e2=7,Th=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:pw};function l(y){return s.noHighlightRe.test(y)}function c(y){let v=y.className+" ";v+=y.parentNode?y.parentNode.className:"";const A=s.languageDetectRe.exec(v);if(A){const k=O(A[1]);return k||(v_(o.replace("{}",A[1])),v_("Falling back to no-highlight mode for this block.",y)),k?A[1]:"no-highlight"}return v.split(/\s+/).find(k=>l(k)||O(k))}function u(y,v,A){let k="",G="";typeof v=="object"?(k=y,A=v.ignoreIllegals,G=v.language):(Lr("10.7.0","highlight(lang, code, ...args) has been deprecated."),Lr("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(A=!0);const z={code:k,language:G};V("before:highlight",z);const ae=z.result?z.result:d(z.language,z.code,A);return ae.code=z.code,V("after:highlight",ae),ae}function d(y,v,A,k){const G=Object.create(null);function z(N,D){return N.keywords[D]}function ae(){if(!P.keywords){oe.addText(X);return}let N=0;P.keywordPatternRe.lastIndex=0;let D=P.keywordPatternRe.exec(X),U="";for(;D;){U+=X.substring(N,D.index);const K=he.case_insensitive?D[0].toLowerCase():D[0],_e=z(P,K);if(_e){const[De,Rr]=_e;if(oe.addText(U),U="",G[K]=(G[K]||0)+1,G[K]<=e2&&(He+=Rr),De.startsWith("_"))U+=D[0];else{const I=he.classNameAliases[De]||De;ue(D[0],I)}}else U+=D[0];N=P.keywordPatternRe.lastIndex,D=P.keywordPatternRe.exec(X)}U+=X.substring(N),oe.addText(U)}function Ce(){if(X==="")return;let N=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){oe.addText(X);return}N=d(P.subLanguage,X,!0,et[P.subLanguage]),et[P.subLanguage]=N._top}else N=_(X,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(He+=N.relevance),oe.__addSublanguage(N._emitter,N.language)}function ie(){P.subLanguage!=null?Ce():ae(),X=""}function ue(N,D){N!==""&&(oe.startScope(D),oe.addText(N),oe.endScope())}function Be(N,D){let U=1;const K=D.length-1;for(;U<=K;){if(!N._emit[U]){U++;continue}const _e=he.classNameAliases[N[U]]||N[U],De=D[U];_e?ue(De,_e):(X=De,ae(),X=""),U++}}function Le(N,D){return N.scope&&typeof N.scope=="string"&&oe.openNode(he.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(ue(X,he.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),X=""):N.beginScope._multi&&(Be(N.beginScope,D),X="")),P=Object.create(N,{parent:{value:P}}),P}function We(N,D,U){let K=gw(N.endRe,U);if(K){if(N["on:end"]){const _e=new b_(N);N["on:end"](D,_e),_e.isMatchIgnored&&(K=!1)}if(K){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return We(N.parent,D,U)}function Ke(N){return P.matcher.regexIndex===0?(X+=N[0],1):(bt=!0,0)}function ht(N){const D=N[0],U=N.rule,K=new b_(U),_e=[U.__beforeBegin,U["on:begin"]];for(const De of _e)if(De&&(De(N,K),K.isMatchIgnored))return Ke(D);return U.skip?X+=D:(U.excludeBegin&&(X+=D),ie(),!U.returnBegin&&!U.excludeBegin&&(X=D)),Le(U,N),U.returnBegin?0:D.length}function Ft(N){const D=N[0],U=v.substring(N.index),K=We(P,N,U);if(!K)return O_;const _e=P;P.endScope&&P.endScope._wrap?(ie(),ue(D,P.endScope._wrap)):P.endScope&&P.endScope._multi?(ie(),Be(P.endScope,N)):_e.skip?X+=D:(_e.returnEnd||_e.excludeEnd||(X+=D),ie(),_e.excludeEnd&&(X=D));do P.scope&&oe.closeNode(),!P.skip&&!P.subLanguage&&(He+=P.relevance),P=P.parent;while(P!==K.parent);return K.starts&&Le(K.starts,N),_e.returnEnd?0:D.length}function de(){const N=[];for(let D=P;D!==he;D=D.parent)D.scope&&N.unshift(D.scope);N.forEach(D=>oe.openNode(D))}let ke={};function Qe(N,D){const U=D&&D[0];if(X+=N,U==null)return ie(),0;if(ke.type==="begin"&&D.type==="end"&&ke.index===D.index&&U===""){if(X+=v.slice(D.index,D.index+1),!i){const K=new Error(`0 width match regex (${y})`);throw K.languageName=y,K.badRule=ke.rule,K}return 1}if(ke=D,D.type==="begin")return ht(D);if(D.type==="illegal"&&!A){const K=new Error('Illegal lexeme "'+U+'" for mode "'+(P.scope||"")+'"');throw K.mode=P,K}else if(D.type==="end"){const K=Ft(D);if(K!==O_)return K}if(D.type==="illegal"&&U==="")return 1;if(St>1e5&&St>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=U,U.length}const he=O(y);if(!he)throw _r(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');const zt=Zw(he);let Et="",P=k||zt;const et={},oe=new s.__emitter(s);de();let X="",He=0,xe=0,St=0,bt=!1;try{if(he.__emitTokens)he.__emitTokens(v,oe);else{for(P.matcher.considerAll();;){St++,bt?bt=!1:P.matcher.considerAll(),P.matcher.lastIndex=xe;const N=P.matcher.exec(v);if(!N)break;const D=v.substring(xe,N.index),U=Qe(D,N);xe=N.index+U}Qe(v.substring(xe))}return oe.finalize(),Et=oe.toHTML(),{language:y,value:Et,relevance:He,illegal:!1,_emitter:oe,_top:P}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:y,value:fl(v),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:xe,context:v.slice(xe-100,xe+100),mode:N.mode,resultSoFar:Et},_emitter:oe};if(i)return{language:y,value:fl(v),illegal:!1,relevance:0,errorRaised:N,_emitter:oe,_top:P};throw N}}function p(y){const v={value:fl(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return v._emitter.addText(y),v}function _(y,v){v=v||s.languages||Object.keys(e);const A=p(y),k=v.filter(O).filter(B).map(ie=>d(ie,y,!1));k.unshift(A);const G=k.sort((ie,ue)=>{if(ie.relevance!==ue.relevance)return ue.relevance-ie.relevance;if(ie.language&&ue.language){if(O(ie.language).supersetOf===ue.language)return 1;if(O(ue.language).supersetOf===ie.language)return-1}return 0}),[z,ae]=G,Ce=z;return Ce.secondBest=ae,Ce}function m(y,v,A){const k=v&&n[v]||A;y.classList.add("hljs"),y.classList.add(`language-${k}`)}function f(y){let v=null;const A=c(y);if(l(A))return;if(V("before:highlightElement",{el:y,language:A}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.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(y)),s.throwUnescapedHTML))throw new Jw("One of your code blocks includes unescaped HTML.",y.innerHTML);v=y;const k=v.textContent,G=A?u(k,{language:A,ignoreIllegals:!0}):_(k);y.innerHTML=G.value,y.dataset.highlighted="yes",m(y,A,G.language),y.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(y.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),V("after:highlightElement",{el:y,result:G,text:k})}function g(y){s=R_(s,y)}const E=()=>{h(),Lr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){h(),Lr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function h(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(f)}function C(){b&&h()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function T(y,v){let A=null;try{A=v(t)}catch(k){if(_r("Language definition for '{}' could not be registered.".replace("{}",y)),i)_r(k);else throw k;A=a}A.name||(A.name=y),e[y]=A,A.rawDefinition=v.bind(null,t),A.aliases&&M(A.aliases,{languageName:y})}function R(y){delete e[y];for(const v of Object.keys(n))n[v]===y&&delete n[v]}function x(){return Object.keys(e)}function O(y){return y=(y||"").toLowerCase(),e[y]||e[n[y]]}function M(y,{languageName:v}){typeof y=="string"&&(y=[y]),y.forEach(A=>{n[A.toLowerCase()]=v})}function B(y){const v=O(y);return v&&!v.disableAutodetect}function Y(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=v=>{y["before:highlightBlock"](Object.assign({block:v.el},v))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=v=>{y["after:highlightBlock"](Object.assign({block:v.el},v))})}function $(y){Y(y),r.push(y)}function q(y){const v=r.indexOf(y);v!==-1&&r.splice(v,1)}function V(y,v){const A=y;r.forEach(function(k){k[A]&&k[A](v)})}function J(y){return Lr("10.7.0","highlightBlock will be removed entirely in v12.0"),Lr("10.7.0","Please use highlightElement now."),f(y)}Object.assign(t,{highlight:u,highlightAuto:_,highlightAll:h,highlightElement:f,highlightBlock:J,configure:g,initHighlighting:E,initHighlightingOnLoad:S,registerLanguage:T,unregisterLanguage:R,listLanguages:x,getLanguage:O,registerAliases:M,autoDetection:B,inherit:R_,addPlugin:$,removePlugin:q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=jw,t.regex={concat:vr,lookahead:ph,either:du,optional:mw,anyNumberOfTimes:_w};for(const y in Wo)typeof Wo[y]=="object"&&uh(Wo[y]);return Object.assign(t,Wo),t},ui=Th({});ui.newInstance=()=>Th({});var t2=ui;ui.HighlightJS=ui;ui.default=ui;const n2=Kc(t2),N_={},r2="hljs-";function i2(t){const e=n2.newInstance();return t&&o(t),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,c,u){const d=u||N_,p=typeof d.prefix=="string"?d.prefix:r2;if(!e.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");e.configure({__emitter:o2,classPrefix:p});const _=e.highlight(c,{ignoreIllegals:!0,language:l});if(_.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:_.errorRaised});const m=_._emitter.root,f=m.data;return f.language=_.language,f.relevance=_.relevance,m}function r(l,c){const d=(c||N_).subset||i();let p=-1,_=0,m;for(;++p_&&(_=g.data.relevance,m=g)}return m||{type:"root",children:[],data:{language:void 0,relevance:_}}}function i(){return e.listLanguages()}function o(l,c){if(typeof l=="string")e.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&e.registerLanguage(u,l[u])}}function a(l,c){if(typeof l=="string")e.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];e.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function s(l){return!!e.getLanguage(l)}}class o2{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const r=this.stack[this.stack.length-1],i=e.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(e){const n=this,r=e.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const a2=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,A_=new ve("aie-video-plugin"),Ri="video_action",s2=Ne.create({name:"video",group:"block",addAttributes(){return{src:{default:null,parseHTML:t=>{const e=t.getAttribute("src");if(e)return e;const n=t.querySelector("source");return n?n.getAttribute("src"):null},renderHTML:t=>({src:t.src})},poster:{default:null,parseHTML:t=>t.getAttribute("poster"),renderHTML:t=>({poster:t.poster})},width:{default:350,parseHTML:t=>`${t.getAttribute("width")??""}`},controls:{default:!0,parseHTML:t=>`${t.getAttribute("controls")??"true"}`}}},parseHTML(){return[{tag:"video",getAttrs:t=>({src:t.getAttribute("src"),poster:t.getAttribute("poster")})}]},renderHTML({HTMLAttributes:t}){return["video",{controls:"true",...t,src:null},["source",{src:t.src}]]},addCommands(){return{setVideo:t=>({commands:e})=>e.insertContent(`",O_=t=>!!t.scope,mw=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};class fw{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Eh(e)}openNode(e){if(!O_(e))return;const n=mw(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){O_(e)&&(this.buffer+=_w)}value(){return this.buffer}span(e){this.buffer+=``}}const N_=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class mu{constructor(){this.rootNode=N_(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=N_({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{mu._collapse(n)}))}}class gw extends mu{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new fw(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function oo(t){return t?typeof t=="string"?t:t.source:null}function Sh(t){return vr("(?=",t,")")}function hw(t){return vr("(?:",t,")*")}function Ew(t){return vr("(?:",t,")?")}function vr(...t){return t.map(n=>oo(n)).join("")}function Sw(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function fu(...t){return"("+(Sw(t).capture?"":"?:")+t.map(r=>oo(r)).join("|")+")"}function bh(t){return new RegExp(t.toString()+"|").exec("").length-1}function bw(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Tw=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function gu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let o=oo(r),a="";for(;o.length>0;){const s=Tw.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const Cw=/\b\B/,Th="[a-zA-Z]\\w*",hu="[a-zA-Z_]\\w*",Ch="\\b\\d+(\\.\\d+)?",yh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",vh="\\b(0b[01]+)",yw="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vw=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=vr(e,/.*\b/,t.binary,/\b.*/)),Pn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ao={begin:"\\\\[\\s\\S]",relevance:0},Rw={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ao]},Ow={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ao]},Nw={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/},ys=function(t,e,n={}){const r=Pn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=fu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:vr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Aw=ys("//","$"),Iw=ys("/\\*","\\*/"),xw=ys("#","$"),Dw={scope:"number",begin:Ch,relevance:0},Mw={scope:"number",begin:yh,relevance:0},ww={scope:"number",begin:vh,relevance:0},Lw={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ao,{begin:/\[/,end:/\]/,relevance:0,contains:[ao]}]},kw={scope:"title",begin:Th,relevance:0},Pw={scope:"title",begin:hu,relevance:0},Fw={begin:"\\.\\s*"+hu,relevance:0},Bw=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Ko=Object.freeze({__proto__:null,APOS_STRING_MODE:Rw,BACKSLASH_ESCAPE:ao,BINARY_NUMBER_MODE:ww,BINARY_NUMBER_RE:vh,COMMENT:ys,C_BLOCK_COMMENT_MODE:Iw,C_LINE_COMMENT_MODE:Aw,C_NUMBER_MODE:Mw,C_NUMBER_RE:yh,END_SAME_AS_BEGIN:Bw,HASH_COMMENT_MODE:xw,IDENT_RE:Th,MATCH_NOTHING_RE:Cw,METHOD_GUARD:Fw,NUMBER_MODE:Dw,NUMBER_RE:Ch,PHRASAL_WORDS_MODE:Nw,QUOTE_STRING_MODE:Ow,REGEXP_MODE:Lw,RE_STARTERS_RE:yw,SHEBANG:vw,TITLE_MODE:kw,UNDERSCORE_IDENT_RE:hu,UNDERSCORE_TITLE_MODE:Pw});function Uw(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Hw(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Gw(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Uw,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Vw(t,e){Array.isArray(t.illegal)&&(t.illegal=fu(...t.illegal))}function Yw(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function zw(t,e){t.relevance===void 0&&(t.relevance=1)}const $w=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=vr(n.beforeMatch,Sh(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},qw=["of","and","for","in","not","or","if","then","parent","list","value"],Ww="keyword";function Rh(t,e,n=Ww){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(o){Object.assign(r,Rh(t[o],e,o))}),r;function i(o,a){e&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,Kw(l[0],l[1])]})}}function Kw(t,e){return e?Number(e):Qw(t)?0:1}function Qw(t){return qw.includes(t.toLowerCase())}const A_={},_r=t=>{console.error(t)},I_=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Lr=(t,e)=>{A_[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),A_[`${t}/${e}`]=!0)},qa=new Error;function Oh(t,e,{key:n}){let r=0;const i=t[n],o={},a={};for(let s=1;s<=e.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=bh(e[s-1]);t[n]=a,t[n]._emit=o,t[n]._multi=!0}function Zw(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw _r("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),qa;if(typeof t.beginScope!="object"||t.beginScope===null)throw _r("beginScope must be object"),qa;Oh(t,t.begin,{key:"beginScope"}),t.begin=gu(t.begin,{joinWith:""})}}function Xw(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw _r("skip, excludeEnd, returnEnd not compatible with endScope: {}"),qa;if(typeof t.endScope!="object"||t.endScope===null)throw _r("endScope must be object"),qa;Oh(t,t.end,{key:"endScope"}),t.end=gu(t.end,{joinWith:""})}}function jw(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function Jw(t){jw(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Zw(t),Xw(t)}function e2(t){function e(a,s){return new RegExp(oo(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=bh(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(gu(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[Hw,Yw,Jw,$w].forEach(u=>u(a,s)),t.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[Gw,Vw,zw].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Rh(a.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=e(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=e(l.end)),l.terminatorEnd=oo(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return t2(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Pn(t.classNameAliases||{}),o(t)}function Nh(t){return t?t.endsWithParent||Nh(t.starts):!1}function t2(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return Pn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Nh(t)?Pn(t,{starts:t.starts?Pn(t.starts):null}):Object.isFrozen(t)?Pn(t):t}var n2="11.9.0";class r2 extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const hl=Eh,x_=Pn,D_=Symbol("nomatch"),i2=7,Ah=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:gw};function l(y){return s.noHighlightRe.test(y)}function c(y){let v=y.className+" ";v+=y.parentNode?y.parentNode.className:"";const A=s.languageDetectRe.exec(v);if(A){const k=O(A[1]);return k||(I_(o.replace("{}",A[1])),I_("Falling back to no-highlight mode for this block.",y)),k?A[1]:"no-highlight"}return v.split(/\s+/).find(k=>l(k)||O(k))}function u(y,v,A){let k="",G="";typeof v=="object"?(k=y,A=v.ignoreIllegals,G=v.language):(Lr("10.7.0","highlight(lang, code, ...args) has been deprecated."),Lr("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(A=!0);const z={code:k,language:G};V("before:highlight",z);const ae=z.result?z.result:d(z.language,z.code,A);return ae.code=z.code,V("after:highlight",ae),ae}function d(y,v,A,k){const G=Object.create(null);function z(N,D){return N.keywords[D]}function ae(){if(!P.keywords){oe.addText(X);return}let N=0;P.keywordPatternRe.lastIndex=0;let D=P.keywordPatternRe.exec(X),U="";for(;D;){U+=X.substring(N,D.index);const K=he.case_insensitive?D[0].toLowerCase():D[0],_e=z(P,K);if(_e){const[De,Rr]=_e;if(oe.addText(U),U="",G[K]=(G[K]||0)+1,G[K]<=i2&&(He+=Rr),De.startsWith("_"))U+=D[0];else{const I=he.classNameAliases[De]||De;ue(D[0],I)}}else U+=D[0];N=P.keywordPatternRe.lastIndex,D=P.keywordPatternRe.exec(X)}U+=X.substring(N),oe.addText(U)}function Ce(){if(X==="")return;let N=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){oe.addText(X);return}N=d(P.subLanguage,X,!0,et[P.subLanguage]),et[P.subLanguage]=N._top}else N=_(X,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(He+=N.relevance),oe.__addSublanguage(N._emitter,N.language)}function ie(){P.subLanguage!=null?Ce():ae(),X=""}function ue(N,D){N!==""&&(oe.startScope(D),oe.addText(N),oe.endScope())}function Be(N,D){let U=1;const K=D.length-1;for(;U<=K;){if(!N._emit[U]){U++;continue}const _e=he.classNameAliases[N[U]]||N[U],De=D[U];_e?ue(De,_e):(X=De,ae(),X=""),U++}}function Le(N,D){return N.scope&&typeof N.scope=="string"&&oe.openNode(he.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(ue(X,he.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),X=""):N.beginScope._multi&&(Be(N.beginScope,D),X="")),P=Object.create(N,{parent:{value:P}}),P}function We(N,D,U){let K=bw(N.endRe,U);if(K){if(N["on:end"]){const _e=new R_(N);N["on:end"](D,_e),_e.isMatchIgnored&&(K=!1)}if(K){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return We(N.parent,D,U)}function Ke(N){return P.matcher.regexIndex===0?(X+=N[0],1):(bt=!0,0)}function ht(N){const D=N[0],U=N.rule,K=new R_(U),_e=[U.__beforeBegin,U["on:begin"]];for(const De of _e)if(De&&(De(N,K),K.isMatchIgnored))return Ke(D);return U.skip?X+=D:(U.excludeBegin&&(X+=D),ie(),!U.returnBegin&&!U.excludeBegin&&(X=D)),Le(U,N),U.returnBegin?0:D.length}function Ft(N){const D=N[0],U=v.substring(N.index),K=We(P,N,U);if(!K)return D_;const _e=P;P.endScope&&P.endScope._wrap?(ie(),ue(D,P.endScope._wrap)):P.endScope&&P.endScope._multi?(ie(),Be(P.endScope,N)):_e.skip?X+=D:(_e.returnEnd||_e.excludeEnd||(X+=D),ie(),_e.excludeEnd&&(X=D));do P.scope&&oe.closeNode(),!P.skip&&!P.subLanguage&&(He+=P.relevance),P=P.parent;while(P!==K.parent);return K.starts&&Le(K.starts,N),_e.returnEnd?0:D.length}function de(){const N=[];for(let D=P;D!==he;D=D.parent)D.scope&&N.unshift(D.scope);N.forEach(D=>oe.openNode(D))}let Pe={};function Qe(N,D){const U=D&&D[0];if(X+=N,U==null)return ie(),0;if(Pe.type==="begin"&&D.type==="end"&&Pe.index===D.index&&U===""){if(X+=v.slice(D.index,D.index+1),!i){const K=new Error(`0 width match regex (${y})`);throw K.languageName=y,K.badRule=Pe.rule,K}return 1}if(Pe=D,D.type==="begin")return ht(D);if(D.type==="illegal"&&!A){const K=new Error('Illegal lexeme "'+U+'" for mode "'+(P.scope||"")+'"');throw K.mode=P,K}else if(D.type==="end"){const K=Ft(D);if(K!==D_)return K}if(D.type==="illegal"&&U==="")return 1;if(St>1e5&&St>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=U,U.length}const he=O(y);if(!he)throw _r(o.replace("{}",y)),new Error('Unknown language: "'+y+'"');const zt=e2(he);let Et="",P=k||zt;const et={},oe=new s.__emitter(s);de();let X="",He=0,xe=0,St=0,bt=!1;try{if(he.__emitTokens)he.__emitTokens(v,oe);else{for(P.matcher.considerAll();;){St++,bt?bt=!1:P.matcher.considerAll(),P.matcher.lastIndex=xe;const N=P.matcher.exec(v);if(!N)break;const D=v.substring(xe,N.index),U=Qe(D,N);xe=N.index+U}Qe(v.substring(xe))}return oe.finalize(),Et=oe.toHTML(),{language:y,value:Et,relevance:He,illegal:!1,_emitter:oe,_top:P}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:y,value:hl(v),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:xe,context:v.slice(xe-100,xe+100),mode:N.mode,resultSoFar:Et},_emitter:oe};if(i)return{language:y,value:hl(v),illegal:!1,relevance:0,errorRaised:N,_emitter:oe,_top:P};throw N}}function p(y){const v={value:hl(y),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return v._emitter.addText(y),v}function _(y,v){v=v||s.languages||Object.keys(e);const A=p(y),k=v.filter(O).filter(B).map(ie=>d(ie,y,!1));k.unshift(A);const G=k.sort((ie,ue)=>{if(ie.relevance!==ue.relevance)return ue.relevance-ie.relevance;if(ie.language&&ue.language){if(O(ie.language).supersetOf===ue.language)return 1;if(O(ue.language).supersetOf===ie.language)return-1}return 0}),[z,ae]=G,Ce=z;return Ce.secondBest=ae,Ce}function m(y,v,A){const k=v&&n[v]||A;y.classList.add("hljs"),y.classList.add(`language-${k}`)}function f(y){let v=null;const A=c(y);if(l(A))return;if(V("before:highlightElement",{el:y,language:A}),y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",y);return}if(y.children.length>0&&(s.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(y)),s.throwUnescapedHTML))throw new r2("One of your code blocks includes unescaped HTML.",y.innerHTML);v=y;const k=v.textContent,G=A?u(k,{language:A,ignoreIllegals:!0}):_(k);y.innerHTML=G.value,y.dataset.highlighted="yes",m(y,A,G.language),y.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(y.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),V("after:highlightElement",{el:y,result:G,text:k})}function g(y){s=x_(s,y)}const S=()=>{h(),Lr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function E(){h(),Lr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function h(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(f)}function C(){b&&h()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function T(y,v){let A=null;try{A=v(t)}catch(k){if(_r("Language definition for '{}' could not be registered.".replace("{}",y)),i)_r(k);else throw k;A=a}A.name||(A.name=y),e[y]=A,A.rawDefinition=v.bind(null,t),A.aliases&&M(A.aliases,{languageName:y})}function R(y){delete e[y];for(const v of Object.keys(n))n[v]===y&&delete n[v]}function x(){return Object.keys(e)}function O(y){return y=(y||"").toLowerCase(),e[y]||e[n[y]]}function M(y,{languageName:v}){typeof y=="string"&&(y=[y]),y.forEach(A=>{n[A.toLowerCase()]=v})}function B(y){const v=O(y);return v&&!v.disableAutodetect}function Y(y){y["before:highlightBlock"]&&!y["before:highlightElement"]&&(y["before:highlightElement"]=v=>{y["before:highlightBlock"](Object.assign({block:v.el},v))}),y["after:highlightBlock"]&&!y["after:highlightElement"]&&(y["after:highlightElement"]=v=>{y["after:highlightBlock"](Object.assign({block:v.el},v))})}function $(y){Y(y),r.push(y)}function q(y){const v=r.indexOf(y);v!==-1&&r.splice(v,1)}function V(y,v){const A=y;r.forEach(function(k){k[A]&&k[A](v)})}function J(y){return Lr("10.7.0","highlightBlock will be removed entirely in v12.0"),Lr("10.7.0","Please use highlightElement now."),f(y)}Object.assign(t,{highlight:u,highlightAuto:_,highlightAll:h,highlightElement:f,highlightBlock:J,configure:g,initHighlighting:S,initHighlightingOnLoad:E,registerLanguage:T,unregisterLanguage:R,listLanguages:x,getLanguage:O,registerAliases:M,autoDetection:B,inherit:x_,addPlugin:$,removePlugin:q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=n2,t.regex={concat:vr,lookahead:Sh,either:fu,optional:Ew,anyNumberOfTimes:hw};for(const y in Ko)typeof Ko[y]=="object"&&hh(Ko[y]);return Object.assign(t,Ko),t},ui=Ah({});ui.newInstance=()=>Ah({});var o2=ui;ui.HighlightJS=ui;ui.default=ui;const a2=jc(o2),M_={},s2="hljs-";function l2(t){const e=a2.newInstance();return t&&o(t),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,c,u){const d=u||M_,p=typeof d.prefix=="string"?d.prefix:s2;if(!e.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");e.configure({__emitter:c2,classPrefix:p});const _=e.highlight(c,{ignoreIllegals:!0,language:l});if(_.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:_.errorRaised});const m=_._emitter.root,f=m.data;return f.language=_.language,f.relevance=_.relevance,m}function r(l,c){const d=(c||M_).subset||i();let p=-1,_=0,m;for(;++p_&&(_=g.data.relevance,m=g)}return m||{type:"root",children:[],data:{language:void 0,relevance:_}}}function i(){return e.listLanguages()}function o(l,c){if(typeof l=="string")e.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&e.registerLanguage(u,l[u])}}function a(l,c){if(typeof l=="string")e.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];e.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function s(l){return!!e.getLanguage(l)}}class c2{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const r=this.stack[this.stack.length-1],i=e.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(e){const n=this,r=e.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const u2=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,w_=new ve("aie-video-plugin"),Oi="video_action",d2=Ne.create({name:"video",group:"block",addAttributes(){return{src:{default:null,parseHTML:t=>{const e=t.getAttribute("src");if(e)return e;const n=t.querySelector("source");return n?n.getAttribute("src"):null},renderHTML:t=>({src:t.src})},poster:{default:null,parseHTML:t=>t.getAttribute("poster"),renderHTML:t=>({poster:t.poster})},width:{default:350,parseHTML:t=>`${t.getAttribute("width")??""}`},controls:{default:!0,parseHTML:t=>`${t.getAttribute("controls")??"true"}`}}},parseHTML(){return[{tag:"video",getAttrs:t=>({src:t.getAttribute("src"),poster:t.getAttribute("poster")})}]},renderHTML({HTMLAttributes:t}){return["video",{controls:"true",...t,src:null},["source",{src:t.src}]]},addCommands(){return{setVideo:t=>({commands:e})=>e.insertContent(`
- `,n.querySelector("#replace").addEventListener("click",()=>{var i,o;const r=n.querySelector("textarea");if(r.value){const{state:{selection:a,tr:s},view:{dispatch:l},schema:c}=t.editor,u=c.text(r.value);l(s.replaceRangeWith(a.from,a.to,u)),(i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show()}}),n.querySelector("#insert").addEventListener("click",()=>{var i,o;const r=n.querySelector("textarea");if(r.value){const{state:{selection:a,tr:s},view:{dispatch:l}}=t.editor;l(s.insertText(r.value,a.to)),(i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show()}}),n.querySelector("#hide").addEventListener("click",()=>{var r,i;(r=t.aiPanelInstance)==null||r.hide(),(i=t.tippyInstance)==null||i.show()}),n.querySelector("#go").addEventListener("click",()=>{const r=n.querySelector("#prompt").value;I_(t,n,r)}),n.querySelectorAll(".aie-ai-panel-actions p").forEach(r=>{const i=r.getAttribute("data-prompt");r.addEventListener("click",()=>{I_(t,n,i)})}),n.addEventListener("click",r=>{var i,o;r.target===n&&((i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show())}),n},O2={id:"ai",title:"ai",icon:`
+ `,n.querySelector("#replace").addEventListener("click",()=>{var i,o;const r=n.querySelector("textarea");if(r.value){const{state:{selection:a,tr:s},view:{dispatch:l},schema:c}=t.editor,u=c.text(r.value);l(s.replaceRangeWith(a.from,a.to,u)),(i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show()}}),n.querySelector("#insert").addEventListener("click",()=>{var i,o;const r=n.querySelector("textarea");if(r.value){const{state:{selection:a,tr:s},view:{dispatch:l}}=t.editor;l(s.insertText(r.value,a.to)),(i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show()}}),n.querySelector("#hide").addEventListener("click",()=>{var r,i;(r=t.aiPanelInstance)==null||r.hide(),(i=t.tippyInstance)==null||i.show()}),n.querySelector("#go").addEventListener("click",()=>{const r=n.querySelector("#prompt").value;L_(t,n,r)}),n.querySelectorAll(".aie-ai-panel-actions p").forEach(r=>{const i=r.getAttribute("data-prompt");r.addEventListener("click",()=>{L_(t,n,i)})}),n.addEventListener("click",r=>{var i,o;r.target===n&&((i=t.aiPanelInstance)==null||i.hide(),(o=t.tippyInstance)==null||o.show())}),n},x2={id:"ai",title:"ai",icon:`
@@ -466,8 +466,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`),G=y,k=v),A===void 0&&(
- `,onInit:({innerEditor:t},e,n)=>{var o;const r={editor:t,tippyInstance:e},i=((o=t.aiEditor.options.ai)==null?void 0:o.bubblePanelMenus)||v2;return r.aiPanelInstance=we(n.querySelector("#ai"),{content:R2(r,i),appendTo:t.view.dom.closest(".aie-container"),trigger:"click",interactive:!0,arrow:!1,placement:"bottom",getReferenceClientRect:()=>yh(t),onShow:a=>{window.setTimeout(()=>{var s;return(s=a.popper.querySelector("#prompt"))==null?void 0:s.focus()},0)}}),r},onClick:(t,e,n,r)=>{var i;(i=r.tippyInstance)==null||i.hide()}},N2={id:"bold",title:"bold",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleBold().run()}},A2={id:"underline",title:"underline",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleUnderline().run()}},I2={id:"code",title:"code",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleCode().run()}},x2={id:"strike",title:"strike",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleStrike().run()}},D2={id:"italic",title:"italic",icon:' ',onClick:({innerEditor:t})=>{t.chain().toggleItalic().run()}},M2=[{title:"英语"},{title:"中文"},{title:"日语"},{title:"法语"},{title:"德语"},{title:"葡萄牙语"},{title:"西班牙语"}],w2=(t,e,n)=>{var r,i,o,a;if(t.aiClient)t.aiClient.stop();else{const{selection:s,doc:l}=t.editor.state,c=l.textBetween(s.from,s.to);let u=((a=(o=(i=(r=t.editor)==null?void 0:r.aiEditor.options.ai)==null?void 0:i.translate)==null?void 0:o.prompt)==null?void 0:a.call(o,e,c))||`你是一个${e}翻译专家,精通多个国家的语言,请帮我把以下 标签里内容翻译为: ${e},并返回翻译后结果。您需要翻译的内容是: -${c}`;const d=En.get("auto");if(d){const p=new Ch(30,n);d.chat("",u,{onStart(_){t.aiClient=_},onStop(){t.aiClient=void 0,p.finished()},onMessage(_){p.appendText(_.content)}})}else console.error("AI model name config error.")}},L2=t=>{const e=document.createElement("div");return e.classList.add("aie-translate-result-panel"),e.innerHTML=` + `,onInit:({innerEditor:t},e,n)=>{var o;const r={editor:t,tippyInstance:e},i=((o=t.aiEditor.options.ai)==null?void 0:o.bubblePanelMenus)||A2;return r.aiPanelInstance=we(n.querySelector("#ai"),{content:I2(r,i),appendTo:t.view.dom.closest(".aie-container"),trigger:"click",interactive:!0,arrow:!1,placement:"bottom",getReferenceClientRect:()=>xh(t),onShow:a=>{window.setTimeout(()=>{var s;return(s=a.popper.querySelector("#prompt"))==null?void 0:s.focus()},0)}}),r},onClick:(t,e,n,r)=>{var i;(i=r.tippyInstance)==null||i.hide()}},D2={id:"bold",title:"bold",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleBold().run()}},M2={id:"underline",title:"underline",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleUnderline().run()}},w2={id:"code",title:"code",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleCode().run()}},L2={id:"strike",title:"strike",icon:'',onClick:({innerEditor:t})=>{t.chain().toggleStrike().run()}},k2={id:"italic",title:"italic",icon:' ',onClick:({innerEditor:t})=>{t.chain().toggleItalic().run()}},P2=[{title:"英语"},{title:"中文"},{title:"日语"},{title:"法语"},{title:"德语"},{title:"葡萄牙语"},{title:"西班牙语"}],F2=(t,e,n)=>{var r,i,o,a;if(t.aiClient)t.aiClient.stop();else{const{selection:s,doc:l}=t.editor.state,c=l.textBetween(s.from,s.to);let u=((a=(o=(i=(r=t.editor)==null?void 0:r.aiEditor.options.ai)==null?void 0:i.translate)==null?void 0:o.prompt)==null?void 0:a.call(o,e,c))||`你是一个${e}翻译专家,精通多个国家的语言,请帮我把以下 标签里内容翻译为: ${e},并返回翻译后结果。您需要翻译的内容是: +${c}`;const d=En.get("auto");if(d){const p=new Ih(30,n);d.chat("",u,{onStart(_){t.aiClient=_},onStop(){t.aiClient=void 0,p.finished()},onMessage(_){p.appendText(_.content)}})}else console.error("AI model name config error.")}},B2=t=>{const e=document.createElement("div");return e.classList.add("aie-translate-result-panel"),e.innerHTML=`
- `,e.querySelector("#cancel").addEventListener("click",()=>{var n,r;(n=t.translateResultInstance)==null||n.hide(),(r=t.tippyInstance)==null||r.show()}),e.querySelector("#append").addEventListener("click",()=>{var i,o,a;(i=t.translateResultInstance)==null||i.hide();const{state:{selection:n,doc:r}}=t.editor;(o=t.editor)==null||o.commands.setTextSelection(Z.create(r,n.to)),(a=t.editor)==null||a.insertMarkdown(e.querySelector("textarea").value)}),e.querySelector("#replace").addEventListener("click",()=>{var n,r;(n=t.translateResultInstance)==null||n.hide(),(r=t.editor)==null||r.insertMarkdown(e.querySelector("textarea").value)}),e},k2=(t,e)=>{const n=document.createElement("div");n.classList.add("aie-translate-panel"),n.innerHTML=` + `,e.querySelector("#cancel").addEventListener("click",()=>{var n,r;(n=t.translateResultInstance)==null||n.hide(),(r=t.tippyInstance)==null||r.show()}),e.querySelector("#append").addEventListener("click",()=>{var i,o,a;(i=t.translateResultInstance)==null||i.hide();const{state:{selection:n,doc:r}}=t.editor;(o=t.editor)==null||o.commands.setTextSelection(Z.create(r,n.to)),(a=t.editor)==null||a.insertMarkdown(e.querySelector("textarea").value)}),e.querySelector("#replace").addEventListener("click",()=>{var n,r;(n=t.translateResultInstance)==null||n.hide(),(r=t.editor)==null||r.insertMarkdown(e.querySelector("textarea").value)}),e},U2=(t,e)=>{const n=document.createElement("div");n.classList.add("aie-translate-panel"),n.innerHTML=`
${e.map(i=>typeof i=="string"?`

${ce(i)}

`:`

${ce(i.title)}

`).join("")}
- `;const r=t.editor.view.dom.closest(".aie-container");return t.translateResultInstance=we(n,{content:L2(t),appendTo:r,placement:"bottom",interactive:!0,trigger:"click",arrow:!1,getReferenceClientRect(){return r.getBoundingClientRect()},offset:[0,-r.getBoundingClientRect().height+100],onTrigger:(i,o)=>{var l;const a=o.target&&o.target.getAttribute("data-lang");if(!a){i.disable();return}const s=i.popper.querySelector("textarea");s.value="",(l=t.translatePanelInstance)==null||l.hide(),w2(t,a,s)},onUntrigger:i=>{i.enable()}}),n},P2={id:"translate",title:"translate",icon:`
+ `;const r=t.editor.view.dom.closest(".aie-container");return t.translateResultInstance=we(n,{content:B2(t),appendTo:r,placement:"bottom",interactive:!0,trigger:"click",arrow:!1,getReferenceClientRect(){return r.getBoundingClientRect()},offset:[0,-r.getBoundingClientRect().height+100],onTrigger:(i,o)=>{var l;const a=o.target&&o.target.getAttribute("data-lang");if(!a){i.disable();return}const s=i.popper.querySelector("textarea");s.value="",(l=t.translatePanelInstance)==null||l.hide(),F2(t,a,s)},onUntrigger:i=>{i.enable()}}),n},H2={id:"translate",title:"translate",icon:`
@@ -489,11 +489,11 @@ ${ce("ai-append")}
- `,onInit:({innerEditor:t},e,n)=>{var o,a;const r={editor:t,tippyInstance:e},i=((a=(o=t.aiEditor.options.ai)==null?void 0:o.translate)==null?void 0:a.translateMenuItems)||M2;return r.translatePanelInstance=we(n.querySelector("#translate"),{content:k2(r,i),appendTo:t.view.dom.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1}),r}},F2=new mu([O2,N2,D2,A2,x2,P2,I2]),B2=(t,e)=>{if(!t||t.length===0)return t;let n=0;for(;ns.id==="ai");else if((o=n.ai)!=null&&o.bubblePanelIcon){for(let s of this.items)if(s.id==="ai"){s.icon=(a=n.ai)==null?void 0:a.bubblePanelIcon;break}}}}re("aie-bubble-link",f2);re("aie-bubble-image",C2);re("aie-bubble-table",y2);re("aie-bubble-text",U2);function vs(t,e){return ge.create({name:t,addOptions(){return{...e}},addProseMirrorPlugins(){return this.options.element?[u2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow,updateAtMouseUp:this.options.updateAtMouseUp})]:[]}})}const H2=t=>{var r;const e=((r=t.options.textSelectionBubbleMenu)==null?void 0:r.elementTagName)||"aie-bubble-text",n=document.createElement(e);return t.eventComponents.push(n),vs("textSelectionBubble",{pluginKey:"textSelectionBubble",element:n,updateDelay:0,updateAtMouseUp:!0,tippyOptions:{appendTo:t.container,arrow:!1,placement:"bottom",getReferenceClientRect:()=>yh(t.innerEditor),onCreate(i){n.instance=i}},shouldShow:({editor:i})=>{if(!i.isEditable)return!1;const{state:{selection:o}}=i;return!o.empty&&ds(i.state.doc,{from:o.from,to:o.to}).trim().length>0&&!i.isActive("link")&&!i.isActive("image")&&!(o instanceof Te)}})},G2=t=>{const e=document.createElement("aie-bubble-link");return t.eventComponents.push(e),vs("linkBubble",{pluginKey:"linkBubble",element:e,tippyOptions:{appendTo:t.container,placement:"bottom",arrow:!1,onCreate(n){e.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("link")})},V2=t=>{const e=document.createElement("aie-bubble-image");return t.eventComponents.push(e),vs("imageBubble",{pluginKey:"imageBubble",element:e,tippyOptions:{appendTo:t.container,placement:"top-start",arrow:!1,getReferenceClientRect:()=>{const{ranges:n}=t.innerEditor.state.selection,r=Math.min(...n.map(u=>u.$from.pos)),i=Math.max(...n.map(u=>u.$to.pos)),{view:o}=t.innerEditor,s=o.nodeDOM(r).querySelector("img"),l=Wi(o,r,i),c=s.getBoundingClientRect();return{...l,left:c.left+c.width*.5-100}},onCreate(n){e.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("image")})},Y2=t=>{const e=document.createElement("aie-bubble-table");return t.eventComponents.push(e),vs("tableBubble",{pluginKey:"tableBubble",element:e,tippyOptions:{placement:"top",appendTo:t.container,arrow:!1,getReferenceClientRect:()=>{const n=t.innerEditor.state.selection,{ranges:r}=n,i=Math.min(...r.map(d=>d.$from.pos)),o=Math.max(...r.map(d=>d.$to.pos)),{view:a,state:s}=t.innerEditor,l=Wi(a,i,o),c=s.selection.$from.posAtIndex(0,1),u=a.coordsAtPos(c);return{...l,top:u.top}}},shouldShow:({editor:n})=>{const{state:{selection:r}}=n;return n.isEditable&&n.isActive("table")&&r instanceof Te}})},z2=t=>{var i,o;const e=[];return t.options.editable===!1||(((i=t==null?void 0:t.options.textSelectionBubbleMenu)==null?void 0:i.enable)!==!1&&e.push(H2(t)),e.push(G2(t)),((o=t.options.image)==null?void 0:o.bubbleMenuEnable)!==!1&&e.push(V2(t)),e.push(Y2(t))),e},$2=ge.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new be({key:new ve("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,i=[];if(!n)return null;const o=this.editor.isEmpty;return t.descendants((a,s)=>{const l=r>=s&&r<=s+a.nodeSize,c=!a.isLeaf&&ms(a);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];o&&u.push(this.options.emptyEditorClass);const d=Fe.node(s,s+a.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:s,hasAnchor:l}):this.options.placeholder});i.push(d)}return this.options.includeChildren}),Se.create(t,i)}}})]}});function q2(t){var e;const{char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:a}=t,s=mC(n),l=new RegExp(`\\s${s}$`),c=o?"^":"",u=r?new RegExp(`${c}${s}.*?(?=\\s${s}|$)`,"gm"):new RegExp(`${c}(?:^)?${s}[^\\s${s}]*`,"gm"),d=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!d)return null;const p=a.pos-d.length,_=Array.from(d.matchAll(u)).pop();if(!_||_.input===void 0||_.index===void 0)return null;const m=_.input.slice(Math.max(0,_.index-1),_.index),f=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(m);if(i!==null&&!f)return null;const g=p+_.index;let E=g+_[0].length;return r&&l.test(d.slice(E-1,E+1))&&(_[0]+=" ",E+=1),g=a.pos?{range:{from:g,to:E},query:_[0].slice(n.length),text:_[0]}:null}const W2=new ve("suggestion");function vh({pluginKey:t=W2,editor:e,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:s="suggestion",command:l=()=>null,items:c=()=>[],render:u=()=>({}),allow:d=()=>!0,findSuggestionMatch:p=q2}){let _;const m=u==null?void 0:u(),f=new be({key:t,view(){return{update:async(g,E)=>{var S,b,h,C,T,R,x;const O=(S=this.key)===null||S===void 0?void 0:S.getState(E),M=(b=this.key)===null||b===void 0?void 0:b.getState(g.state),B=O.active&&M.active&&O.range.from!==M.range.from,Y=!O.active&&M.active,$=O.active&&!M.active,q=!Y&&!$&&O.query!==M.query,V=Y||B&&q,J=q||B,y=$||B&&q;if(!V&&!J&&!y)return;const v=y&&!V?O:M,A=g.dom.querySelector(`[data-decoration-id="${v.decorationId}"]`);_={editor:e,range:v.range,query:v.query,text:v.text,items:[],command:k=>l({editor:e,range:v.range,props:k}),decorationNode:A,clientRect:A?()=>{var k;const{decorationId:G}=(k=this.key)===null||k===void 0?void 0:k.getState(e.state),z=g.dom.querySelector(`[data-decoration-id="${G}"]`);return(z==null?void 0:z.getBoundingClientRect())||null}:null},V&&((h=m==null?void 0:m.onBeforeStart)===null||h===void 0||h.call(m,_)),J&&((C=m==null?void 0:m.onBeforeUpdate)===null||C===void 0||C.call(m,_)),(J||V)&&(_.items=await c({editor:e,query:v.query})),y&&((T=m==null?void 0:m.onExit)===null||T===void 0||T.call(m,_)),J&&((R=m==null?void 0:m.onUpdate)===null||R===void 0||R.call(m,_)),V&&((x=m==null?void 0:m.onStart)===null||x===void 0||x.call(m,_))},destroy:()=>{var g;_&&((g=m==null?void 0:m.onExit)===null||g===void 0||g.call(m,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(g,E,S,b){const{isEditable:h}=e,{composing:C}=e.view,{selection:T}=g,{empty:R,from:x}=T,O={...E};if(O.composing=C,h&&(R||e.view.composing)){(xE.range.to)&&!C&&!E.composing&&(O.active=!1);const M=p({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:T.$from}),B=`id_${Math.floor(Math.random()*4294967295)}`;M&&d({editor:e,state:b,range:M.range,isActive:E.active})?(O.active=!0,O.decorationId=E.decorationId?E.decorationId:B,O.range=M.range,O.query=M.query,O.text=M.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,E){var S;const{active:b,range:h}=f.getState(g.state);return b&&((S=m==null?void 0:m.onKeyDown)===null||S===void 0?void 0:S.call(m,{view:g,event:E,range:h}))||!1},decorations(g){const{active:E,range:S,decorationId:b}=f.getState(g);return E?Se.create(g.doc,[Fe.inline(S.from,S.to,{nodeName:a,class:s,"data-decoration-id":b})]):null}}});return f}const K2=new ve("mention"),Q2=Ne.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:t,node:e}){var n;return`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e}){var n;return["span",pe(this.HTMLAttributes,t.HTMLAttributes),`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`]},suggestion:{char:"@",pluginKey:K2,command:({editor:t,range:e,props:n})=>{var r,i,o;const a=t.view.state.selection.$to.nodeAfter;((r=a==null?void 0:a.text)===null||r===void 0?void 0:r.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(o=(i=t.view.dom.ownerDocument.defaultView)===null||i===void 0?void 0:i.getSelection())===null||o===void 0||o.collapseToEnd()},allow:({state:t,range:e})=>{const n=t.doc.resolve(e.from),r=t.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",pe({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t})];const n={...this.options};n.HTMLAttributes=pe({"data-type":this.name},this.options.HTMLAttributes,e);const r=this.options.renderHTML({options:n,node:t});return typeof r=="string"?["span",pe({"data-type":this.name},this.options.HTMLAttributes,e),r]:r},renderText({node:t}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:t})):this.options.renderText({options:this.options,node:t})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:i,anchor:o}=r;return i?(e.doc.nodesBetween(o-1,o,(a,s)=>{if(a.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",s,s+a.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[vh({editor:this.editor,...this.options.suggestion})]}}),Z2=t=>Q2.configure({HTMLAttributes:{class:"mention"},suggestion:{items:({query:e})=>t(e),render:()=>{let e,n,r=0,i;const o=()=>{e.innerHTML=` + `,onInit:({innerEditor:t},e,n)=>{var o,a;const r={editor:t,tippyInstance:e},i=((a=(o=t.aiEditor.options.ai)==null?void 0:o.translate)==null?void 0:a.translateMenuItems)||P2;return r.translatePanelInstance=we(n.querySelector("#translate"),{content:U2(r,i),appendTo:t.view.dom.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1}),r}},G2=new Eu([x2,D2,k2,M2,L2,H2,w2]),V2=(t,e)=>{if(!t||t.length===0)return t;let n=0;for(;ns.id==="ai");else if((o=n.ai)!=null&&o.bubblePanelIcon){for(let s of this.items)if(s.id==="ai"){s.icon=(a=n.ai)==null?void 0:a.bubblePanelIcon;break}}}}re("aie-bubble-link",S2);re("aie-bubble-image",O2);re("aie-bubble-table",N2);re("aie-bubble-text",Y2);function Rs(t,e){return ge.create({name:t,addOptions(){return{...e}},addProseMirrorPlugins(){return this.options.element?[m2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow,updateAtMouseUp:this.options.updateAtMouseUp})]:[]}})}const z2=t=>{var r;const e=((r=t.options.textSelectionBubbleMenu)==null?void 0:r.elementTagName)||"aie-bubble-text",n=document.createElement(e);return t.eventComponents.push(n),Rs("textSelectionBubble",{pluginKey:"textSelectionBubble",element:n,updateDelay:0,updateAtMouseUp:!0,tippyOptions:{appendTo:t.container,arrow:!1,placement:"bottom",getReferenceClientRect:()=>xh(t.innerEditor),onCreate(i){n.instance=i}},shouldShow:({editor:i})=>{if(!i.isEditable)return!1;const{state:{selection:o}}=i;return!o.empty&&ps(i.state.doc,{from:o.from,to:o.to}).trim().length>0&&!i.isActive("link")&&!i.isActive("image")&&!(o instanceof Te)}})},$2=t=>{const e=document.createElement("aie-bubble-link");return t.eventComponents.push(e),Rs("linkBubble",{pluginKey:"linkBubble",element:e,tippyOptions:{appendTo:t.container,placement:"bottom",arrow:!1,onCreate(n){e.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("link")})},q2=t=>{const e=document.createElement("aie-bubble-image");return t.eventComponents.push(e),Rs("imageBubble",{pluginKey:"imageBubble",element:e,tippyOptions:{appendTo:t.container,placement:"top-start",arrow:!1,getReferenceClientRect:()=>{const{ranges:n}=t.innerEditor.state.selection,r=Math.min(...n.map(u=>u.$from.pos)),i=Math.max(...n.map(u=>u.$to.pos)),{view:o}=t.innerEditor,s=o.nodeDOM(r).querySelector("img"),l=Ki(o,r,i),c=s.getBoundingClientRect();return{...l,left:c.left+c.width*.5-100}},onCreate(n){e.instance=n}},shouldShow:({editor:n})=>n.isEditable&&n.isActive("image")})},W2=t=>{const e=document.createElement("aie-bubble-table");return t.eventComponents.push(e),Rs("tableBubble",{pluginKey:"tableBubble",element:e,tippyOptions:{placement:"top",appendTo:t.container,arrow:!1,getReferenceClientRect:()=>{const n=t.innerEditor.state.selection,{ranges:r}=n,i=Math.min(...r.map(d=>d.$from.pos)),o=Math.max(...r.map(d=>d.$to.pos)),{view:a,state:s}=t.innerEditor,l=Ki(a,i,o),c=s.selection.$from.posAtIndex(0,1),u=a.coordsAtPos(c);return{...l,top:u.top}}},shouldShow:({editor:n})=>{const{state:{selection:r}}=n;return n.isEditable&&n.isActive("table")&&r instanceof Te}})},K2=t=>{var i,o;const e=[];return t.options.editable===!1||(((i=t==null?void 0:t.options.textSelectionBubbleMenu)==null?void 0:i.enable)!==!1&&e.push(z2(t)),e.push($2(t)),((o=t.options.image)==null?void 0:o.bubbleMenuEnable)!==!1&&e.push(q2(t)),e.push(W2(t))),e},Q2=ge.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Se({key:new ve("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,i=[];if(!n)return null;const o=this.editor.isEmpty;return t.descendants((a,s)=>{const l=r>=s&&r<=s+a.nodeSize,c=!a.isLeaf&&fs(a);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];o&&u.push(this.options.emptyEditorClass);const d=ke.node(s,s+a.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:s,hasAnchor:l}):this.options.placeholder});i.push(d)}return this.options.includeChildren}),be.create(t,i)}}})]}});function Z2(t){var e;const{char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:a}=t,s=SC(n),l=new RegExp(`\\s${s}$`),c=o?"^":"",u=r?new RegExp(`${c}${s}.*?(?=\\s${s}|$)`,"gm"):new RegExp(`${c}(?:^)?${s}[^\\s${s}]*`,"gm"),d=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!d)return null;const p=a.pos-d.length,_=Array.from(d.matchAll(u)).pop();if(!_||_.input===void 0||_.index===void 0)return null;const m=_.input.slice(Math.max(0,_.index-1),_.index),f=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(m);if(i!==null&&!f)return null;const g=p+_.index;let S=g+_[0].length;return r&&l.test(d.slice(S-1,S+1))&&(_[0]+=" ",S+=1),g=a.pos?{range:{from:g,to:S},query:_[0].slice(n.length),text:_[0]}:null}const X2=new ve("suggestion");function Dh({pluginKey:t=X2,editor:e,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:s="suggestion",command:l=()=>null,items:c=()=>[],render:u=()=>({}),allow:d=()=>!0,findSuggestionMatch:p=Z2}){let _;const m=u==null?void 0:u(),f=new Se({key:t,view(){return{update:async(g,S)=>{var E,b,h,C,T,R,x;const O=(E=this.key)===null||E===void 0?void 0:E.getState(S),M=(b=this.key)===null||b===void 0?void 0:b.getState(g.state),B=O.active&&M.active&&O.range.from!==M.range.from,Y=!O.active&&M.active,$=O.active&&!M.active,q=!Y&&!$&&O.query!==M.query,V=Y||B&&q,J=q||B,y=$||B&&q;if(!V&&!J&&!y)return;const v=y&&!V?O:M,A=g.dom.querySelector(`[data-decoration-id="${v.decorationId}"]`);_={editor:e,range:v.range,query:v.query,text:v.text,items:[],command:k=>l({editor:e,range:v.range,props:k}),decorationNode:A,clientRect:A?()=>{var k;const{decorationId:G}=(k=this.key)===null||k===void 0?void 0:k.getState(e.state),z=g.dom.querySelector(`[data-decoration-id="${G}"]`);return(z==null?void 0:z.getBoundingClientRect())||null}:null},V&&((h=m==null?void 0:m.onBeforeStart)===null||h===void 0||h.call(m,_)),J&&((C=m==null?void 0:m.onBeforeUpdate)===null||C===void 0||C.call(m,_)),(J||V)&&(_.items=await c({editor:e,query:v.query})),y&&((T=m==null?void 0:m.onExit)===null||T===void 0||T.call(m,_)),J&&((R=m==null?void 0:m.onUpdate)===null||R===void 0||R.call(m,_)),V&&((x=m==null?void 0:m.onStart)===null||x===void 0||x.call(m,_))},destroy:()=>{var g;_&&((g=m==null?void 0:m.onExit)===null||g===void 0||g.call(m,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(g,S,E,b){const{isEditable:h}=e,{composing:C}=e.view,{selection:T}=g,{empty:R,from:x}=T,O={...S};if(O.composing=C,h&&(R||e.view.composing)){(xS.range.to)&&!C&&!S.composing&&(O.active=!1);const M=p({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:T.$from}),B=`id_${Math.floor(Math.random()*4294967295)}`;M&&d({editor:e,state:b,range:M.range,isActive:S.active})?(O.active=!0,O.decorationId=S.decorationId?S.decorationId:B,O.range=M.range,O.query=M.query,O.text=M.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,S){var E;const{active:b,range:h}=f.getState(g.state);return b&&((E=m==null?void 0:m.onKeyDown)===null||E===void 0?void 0:E.call(m,{view:g,event:S,range:h}))||!1},decorations(g){const{active:S,range:E,decorationId:b}=f.getState(g);return S?be.create(g.doc,[ke.inline(E.from,E.to,{nodeName:a,class:s,"data-decoration-id":b})]):null}}});return f}const j2=new ve("mention"),J2=Ne.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:t,node:e}){var n;return`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e}){var n;return["span",pe(this.HTMLAttributes,t.HTMLAttributes),`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`]},suggestion:{char:"@",pluginKey:j2,command:({editor:t,range:e,props:n})=>{var r,i,o;const a=t.view.state.selection.$to.nodeAfter;((r=a==null?void 0:a.text)===null||r===void 0?void 0:r.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(o=(i=t.view.dom.ownerDocument.defaultView)===null||i===void 0?void 0:i.getSelection())===null||o===void 0||o.collapseToEnd()},allow:({state:t,range:e})=>{const n=t.doc.resolve(e.from),r=t.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",pe({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t})];const n={...this.options};n.HTMLAttributes=pe({"data-type":this.name},this.options.HTMLAttributes,e);const r=this.options.renderHTML({options:n,node:t});return typeof r=="string"?["span",pe({"data-type":this.name},this.options.HTMLAttributes,e),r]:r},renderText({node:t}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:t})):this.options.renderText({options:this.options,node:t})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:i,anchor:o}=r;return i?(e.doc.nodesBetween(o-1,o,(a,s)=>{if(a.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",s,s+a.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[Dh({editor:this.editor,...this.options.suggestion})]}}),eL=t=>J2.configure({HTMLAttributes:{class:"mention"},suggestion:{items:({query:e})=>t(e),render:()=>{let e,n,r=0,i;const o=()=>{e.innerHTML=`
${i.items.map((a,s)=>``).join("")}
- `,e.addEventListener("click",a=>{const s=a.target.closest(".item");if(s){const l=Number(s.getAttribute("data-index")),c=i.items[l];c&&c.id?i.command(c):i.command({id:c})}})};return{onStart:a=>{e=document.createElement("div"),e.classList.add("suggestion"),i=a,a.clientRect&&(o(),n=we("body",{getReferenceClientRect:a.clientRect,appendTo:()=>a.editor.view.dom.closest(".aie-container"),content:e,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"bottom-start",arrow:!1}))},onUpdate(a){i=a,a.clientRect&&(o(),n[0].setProps({getReferenceClientRect:a.clientRect}))},onKeyDown(a){if(a.event.key==="Escape")return n[0].hide(),!0;if(a.event.key==="ArrowUp")return r=(r+i.items.length-1)%i.items.length,o(),!0;if(a.event.key==="ArrowDown")return r=(r+1)%i.items.length,o(),!0;if(a.event.key==="Enter"){const s=i.items[r];return s&&s.id?i.command(s):i.command({id:s}),!0}return!1},onExit(){n[0].destroy(),e.remove()}}}}}),X2=[{icon:'',name:"AI 续写",prompt:"请帮我继续扩展一些这段话的内容",model:"auto"},{icon:'',name:"AI 提问",prompt:"",model:"auto"},{icon:'',name:"AI 翻译",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",model:"auto"},{icon:'',name:"AI 生图",prompt:"请根据以上的内容,生成一张图片,并把图片返回给我",model:"auto"}],j2=ge.create({name:"aiCommand",addOptions(){return{suggestion:{char:"/",command:({editor:t,range:e,props:n})=>{if(t.chain().focus().deleteRange(e).run(),n&&n.aiItem){let r=n.aiItem;const i=t.state.selection.$head.parent.textContent;let o=r.model;const a=En.get(r.model);a?a==null||a.chat(i,r.prompt,new Ra(t)):console.error("Ai model config error. can not find the type:"+o+" at command menu")}else switch(n.index){case 0:t.chain().setParagraph().run();return;case 1:t.chain().setHeading({level:1}).run();return;case 2:t.chain().setHeading({level:2}).run();return;case 3:t.chain().setHeading({level:3}).run();return;case 4:t.chain().toggleContainer("warning").run();return;case 5:t.chain().toggleBlockquote().run();return;case 6:t.chain().toggleBulletList().run();return;case 7:t.chain().toggleOrderedList().run();return;case 8:t.chain().setTextAlign("left").run();return;case 9:t.chain().setTextAlign("center").run();return;case 10:t.chain().toggleTaskList().run();return;case 11:t.chain().toggleCodeBlock().run();return}},render:()=>{let t,e,n=0,r;const i=()=>{t.innerHTML=` + `,e.addEventListener("click",a=>{const s=a.target.closest(".item");if(s){const l=Number(s.getAttribute("data-index")),c=i.items[l];c&&c.id?i.command(c):i.command({id:c})}})};return{onStart:a=>{e=document.createElement("div"),e.classList.add("suggestion"),i=a,a.clientRect&&(o(),n=we("body",{getReferenceClientRect:a.clientRect,appendTo:()=>a.editor.view.dom.closest(".aie-container"),content:e,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"bottom-start",arrow:!1}))},onUpdate(a){i=a,a.clientRect&&(o(),n[0].setProps({getReferenceClientRect:a.clientRect}))},onKeyDown(a){if(a.event.key==="Escape")return n[0].hide(),!0;if(a.event.key==="ArrowUp")return r=(r+i.items.length-1)%i.items.length,o(),!0;if(a.event.key==="ArrowDown")return r=(r+1)%i.items.length,o(),!0;if(a.event.key==="Enter"){const s=i.items[r];return s&&s.id?i.command(s):i.command({id:s}),!0}return!1},onExit(){n[0].destroy(),e.remove()}}}}}),tL=[{icon:'',name:"AI 续写",prompt:"请帮我继续扩展一些这段话的内容",model:"auto"},{icon:'',name:"AI 提问",prompt:"",model:"auto"},{icon:'',name:"AI 翻译",prompt:"请帮我翻译以上内容,在翻译之前,想先判断一下这个内容是不是中文,如果是中文,则翻译问英文,如果是其他语言,则需要翻译为中文,注意,你只需要返回翻译的结果,不需要对此进行任何解释,不需要除了翻译结果以外的其他任何内容。",model:"auto"},{icon:'',name:"AI 生图",prompt:"请根据以上的内容,生成一张图片,并把图片返回给我",model:"auto"}],nL=ge.create({name:"aiCommand",addOptions(){return{suggestion:{char:"/",command:({editor:t,range:e,props:n})=>{if(t.chain().focus().deleteRange(e).run(),n&&n.aiItem){let r=n.aiItem;const i=t.state.selection.$head.parent.textContent;let o=r.model;const a=En.get(r.model);a?a==null||a.chat(i,r.prompt,new Oa(t)):console.error("Ai model config error. can not find the type:"+o+" at command menu")}else switch(n.index){case 0:t.chain().setParagraph().run();return;case 1:t.chain().setHeading({level:1}).run();return;case 2:t.chain().setHeading({level:2}).run();return;case 3:t.chain().setHeading({level:3}).run();return;case 4:t.chain().toggleContainer("warning").run();return;case 5:t.chain().toggleBlockquote().run();return;case 6:t.chain().toggleBulletList().run();return;case 7:t.chain().toggleOrderedList().run();return;case 8:t.chain().setTextAlign("left").run();return;case 9:t.chain().setTextAlign("center").run();return;case 10:t.chain().toggleTaskList().run();return;case 11:t.chain().toggleCodeBlock().run();return}},render:()=>{let t,e,n=0,r;const i=()=>{t.innerHTML=`
@@ -536,10 +536,10 @@ ${ce("ai-append")}
${r.items.map((o,a)=>`
${o.icon} ${o.name}
`).join("")}
- `,t.addEventListener("click",o=>{const a=o.target.closest(".item");if(a){const s=Number(a.getAttribute("data-index"));r.command({index:s,aiItem:s>11?r.items[s-12]:null})}})};return{onStart:o=>{t=document.createElement("div"),t.classList.add("suggestion"),r=o,o.clientRect&&(i(),e=we("body",{getReferenceClientRect:o.clientRect,appendTo:()=>o.editor.view.dom.closest(".aie-container"),content:t,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"right-start",arrow:!1}))},onUpdate(o){r=o,o.clientRect&&e[0].setProps({getReferenceClientRect:o.clientRect})},onKeyDown(o){return o.event.key==="Escape"?(e[0].hide(),!0):o.event.key==="ArrowUp"?(n<6?n=11+r.items.length:n<=11?n-=6:(n-=1,n<0&&(n=11+r.items.length)),i(),!0):o.event.key==="ArrowDown"?(n<6?n+=6:n<11?n=12:(n+=1,n>11+r.items.length&&(n=0)),i(),!0):o.event.key==="ArrowLeft"?(n-=1,n<0&&(n=11+r.items.length),i(),!0):o.event.key==="ArrowRight"?(n+=1,n>11+r.items.length&&(n=0),i(),!0):o.event.key==="Enter"?(r.command({index:n,aiItem:n>11?r.items[n-12]:null}),!0):!1},onExit(){e[0].destroy(),t.remove()}}}}}},addProseMirrorPlugins(){return[vh({editor:this.editor,...this.options.suggestion})]}}),J2=ge.create({addProseMirrorPlugins(){return[new be({key:new ve("selection-marker"),state:{init:()=>Se.empty,apply:(t,e,n)=>{const{selection:r}=t;if(r){const i=[Fe.inline(r.$from.pos,r.$to.pos,{class:"selection-marker"},{inclusiveLeft:!0,inclusiveRight:!0})];return Se.create(n.doc,i)}return e}},props:{decorations(t){return this.getState(t)}}})]}});function eL(t,e,n){function r(p){return p.trim().split(" ",2)[0]===e}function i(p,_,m,f,g){return p[_].nesting===1&&p[_].attrJoin("class",e),g.renderToken(p,_,m,f,g)}n=n||{};const o=3,a=n.marker||":",s=a.charCodeAt(0),l=a.length,c=n.validate||r,u=n.render||i;function d(p,_,m,f){let g,E=!1,S=p.bMarks[_]+p.tShift[_],b=p.eMarks[_];if(s!==p.src.charCodeAt(S))return!1;for(g=S+1;g<=b&&a[(g-S)%l]===p.src[g];g++);const h=Math.floor((g-S)/l);if(h=m||(S=p.bMarks[R]+p.tShift[R],b=p.eMarks[R],S=4)){for(g=S+1;g<=b&&a[(g-S)%l]===p.src[g];g++);if(!(Math.floor((g-S)/l){this.options.classes.forEach(e=>{t.use(eL,e)})}}}}},addAttributes(){return{containerClass:{default:null,parseHTML:t=>[...t.classList].find(e=>this.options.classes.includes(e)),renderHTML:t=>({class:t.containerClass})}}},parseHTML(){return[{tag:"div",getAttrs:t=>{const e=t,n=["container-wrapper"].concat(this.options.classes);return[...e.classList].find(r=>n.includes(r))?null:!1}}]},renderHTML({HTMLAttributes:t}){return["div",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setContainer:t=>({commands:e})=>e.wrapIn(this.name,{containerClass:t}),toggleContainer:t=>({commands:e})=>e.toggleWrap(this.name,{containerClass:t}),unsetContainer:()=>({commands:t})=>t.lift(this.name)}},addInputRules(){return[Sr({find:tL,type:this.type,getAttributes:t=>({containerClass:t[1]})})]}}),rL=lg.extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),id:{default:null}}}}),iL=ge.create({name:"saveExt",addKeyboardShortcuts(){return{"Mod-s":({editor:t})=>this.options.onSave?this.options.onSave(t.aiEditor):!1}}}),oL=Ne.create({name:"figure",content:"block+",group:"block",defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figure"}]},renderHTML({HTMLAttributes:t}){return["figure",pe(this.options.HTMLAttributes,t),0]}}),aL=Ne.create({name:"figcaption",content:"inline*",group:"block",defining:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figcaption"}]},renderHTML({HTMLAttributes:t}){return["figcaption",pe(this.options.HTMLAttributes,t),0]}}),sL=(t,e)=>{const n=new RegExp(`<${e}[^>]*>(.*?)`,"gi");return t.replace(n,(r,i)=>i)},lL=(t,e)=>{for(let n of e)t=sL(t,n);return t},cL=(t,e,n)=>{function r(u){const d=document.createDocumentFragment();for(;u.firstChild;){const p=u.removeChild(u.firstChild),_=i(p);_&&d.appendChild(_)}return d}function i(u){var d;if(u.nodeType===Node.ELEMENT_NODE){const p=u;if(e.includes(p.tagName.toLowerCase())){if(!(((d=p.textContent)==null?void 0:d.trim())||""))return p;for(;p.attributes.length>0;)p.removeAttribute(p.attributes[0].name);return p.appendChild(r(p)),p}else return r(p)}else if(u.nodeType===Node.TEXT_NODE&&u.textContent&&u.textContent.trim().length>0)return u;return null}function o(u){const d=u.querySelectorAll("br");for(let p=0;pE.appendChild(S)),_.replaceWith(E),m.remove(),p++}}}t=t.replace(/(\n)/gm," ");const s=new DOMParser().parseFromString(t,"text/html"),l=i(s.body),c=document.createElement("div");return l&&(c.appendChild(l),o(c)),c.outerHTML},uL=t=>{var i;const e=t.documentElement.getAttributeNames();if(e&&e.length>0)for(let o of e){const a=t.documentElement.getAttribute(o);if(a!=null&&a.includes("microsoft")||a!=null&&a.includes("excel"))return!0}let n=t.getElementsByTagName("meta");for(let o of n){let a=o.getAttribute("name"),s=o.getAttribute("content");if(a&&a.toLowerCase()==="generator"&&(s!=null&&s.includes("Microsoft")||s!=null&&s.includes("LibreOffice")||s!=null&&s.includes("OpenOffice")))return!0}const r=(i=t.body.innerHTML)==null?void 0:i.trim();return!!(r!=null&&r.startsWith("")))},dL=t=>{const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("p").forEach(r=>{(!r.textContent||r.textContent.trim()==="")&&r.remove()}),e.innerHTML},pL=ge.create({name:"pasteExt",priority:1e3,addProseMirrorPlugins(){return[new be({key:new ve("aie-paste"),props:{handlePaste:(t,e)=>{if(t.props.editable&&!t.props.editable(t.state)||!e.clipboardData)return!1;const n=e.clipboardData.getData("text/plain");let r=e.clipboardData.getData("text/html");if(!r&&n){const i=this.editor.parseMarkdown(n);if(i){const{state:{tr:o},dispatch:a}=t;return a(o.replaceSelection(new H(i,0,0)).scrollIntoView()),!0}}else if(r){const{options:i}=this.editor.aiEditor;if(i.htmlPasteConfig){if(i.htmlPasteConfig.pasteAsText)r=cL(r,["p","br"]);else if(i.htmlPasteConfig.pasteClean){r=lL(r,["a","span","strong","b","em","i","u"]);const s=new DOMParser().parseFromString(r,"text/html").documentElement.querySelector("body");s&&(s==null||s.querySelectorAll("*").forEach(l=>{l.removeAttribute("style")}),r=s==null?void 0:s.innerHTML)}if(i.htmlPasteConfig.removeEmptyParagraphs!==!1&&(r=dL(r)),i.htmlPasteConfig.pasteProcessor&&(r=i.htmlPasteConfig.pasteProcessor(r)),r)return this.editor.commands.insertContent(r),!0}else if(n&&r){const a=new DOMParser().parseFromString(r,"text/html"),s=a.querySelector("table");if(s&&uL(a))return this.editor.commands.insertContent(s.outerHTML,{parseOptions:{preserveWhitespace:!1}}),!0}}}}})]}}),_L=ge.create({name:"className",addOptions(){return{types:["heading","paragraph","container","codeBlock","blockquote","bulletList","orderedList","listItem","taskList","taskItem","image","video","table","iframe"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{class:{defaultValue:"",parseHTML:t=>t.getAttribute("class"),renderHTML:t=>t.class?{class:t.class}:{}}}}]},addCommands(){return{setClassName:(t,e)=>({chain:n})=>!t||!this.options.types.includes(t)?!1:n().updateAttributes(t,{class:e}).run()}},onTransaction({editor:t,transaction:e}){e.steps.length>0&&e.steps.forEach(n=>{if(n instanceof Ue){let r=!1;if(n.getMap().forEach((i,o,a,s)=>{s==a+2&&(r=!0)}),r){const o=n.slice.content.lastChild;o&&!o.textContent&&t.commands.updateAttributes(o.type,{...o.attrs,class:""})}}})}}),mL=(t,e)=>{var r,i,o,a,s,l,c,u,d,p,_,m,f,g,E,S,b,h,C,T,R,x,O,M,B,Y,$,q,V;const n=[OR.configure({codeBlock:!1,heading:!1})];return n.push(NR,AR,IR,rL,wR.configure({uploadUrl:(r=e.attachment)==null?void 0:r.uploadUrl,uploadHeaders:(i=e.attachment)==null?void 0:i.uploadHeaders,uploadFormName:(o=e.attachment)==null?void 0:o.uploadFormName,uploader:((a=e.attachment)==null?void 0:a.uploader)||e.uploader,uploaderEvent:(s=e.attachment)==null?void 0:s.uploaderEvent}),LR,J2,FR.configure({multicolor:!0}),BR,UR,HR,GR.configure({types:["heading","paragraph"]}),VR,qR.configure({allowBase64:typeof((l=e.image)==null?void 0:l.allowBase64)>"u"?!0:(c=e.image)==null?void 0:c.allowBase64,defaultSize:((u=e.image)==null?void 0:u.defaultSize)||350,uploadUrl:(d=e.image)==null?void 0:d.uploadUrl,uploadHeaders:(p=e.image)==null?void 0:p.uploadHeaders,uploadFormName:(_=e.image)==null?void 0:_.uploadFormName,uploader:((m=e.image)==null?void 0:m.uploader)||e.uploader,uploaderEvent:(f=e.image)==null?void 0:f.uploaderEvent}),ZO.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0}),XO,jO,JO,typeof e.textCounter=="function"?zp.configure({textCounter:e.textCounter}):zp,yN.configure({openOnClick:!1,autolink:typeof((g=e.link)==null?void 0:g.autolink)>"u"?!0:(E=e.link)==null?void 0:E.autolink,HTMLAttributes:{ref:(S=e==null?void 0:e.link)==null?void 0:S.rel,class:(b=e==null?void 0:e.link)==null?void 0:b.class}}),vN,RN,ON,AN.configure({nested:!0}),MA.configure({lowlight:i2(lw),defaultLanguage:"auto",languageClassPrefix:"language-",languages:((h=e.codeBlock)==null?void 0:h.languages)||$g,codeExplainAi:((T=(C=e.ai)==null?void 0:C.codeBlock)==null?void 0:T.codeExplain)||{model:"auto",prompt:((R=e.codeBlock)==null?void 0:R.codeExplainPrompt)||"帮我对这个代码进行解释,返回代码的解释内容,注意,不需要对代码的注释进行解释"},codeCommentsAi:((O=(x=e.ai)==null?void 0:x.codeBlock)==null?void 0:O.codeComments)||{model:"auto",prompt:((M=e.codeBlock)==null?void 0:M.codeCommentsPrompt)||"帮我对这个代码添加一些注释,并返回添加注释的代码,只返回代码"}}),s2.configure({uploadUrl:(B=e.video)==null?void 0:B.uploadUrl,uploadHeaders:(Y=e.video)==null?void 0:Y.uploadHeaders,uploadFormName:($=e.video)==null?void 0:$.uploadFormName,uploader:((q=e.video)==null?void 0:q.uploader)||e.uploader,uploaderEvent:(V=e.video)==null?void 0:V.uploaderEvent}),l2,oL,aL,iL.configure({onSave:e.onSave}),pL,_L,nL,...z2(t)),e.placeholder&&n.push($2.configure({placeholder:e.placeholder})),n.push(j2.configure({suggestion:{items:J=>{var v;return((v=e.ai)==null?void 0:v.commands)||X2}}})),e.onMentionQuery&&n.push(Z2(e.onMentionQuery)),n},fL={default:"默认",delete:"删除",confirm:"确定",cancel:"取消",resize:"调整大小",undo:"撤销",redo:"重做",brush:"格式刷",container:"高亮块",eraser:"清除格式",heading:"正文/标题","font-family":"字体","font-size":"字号",bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",link:"链接","source-code":"源代码",code:"行内代码",subscript:"下标",superscript:"上标",hr:"分割线",todo:"任务列表",emoji:"表情",highlight:"高亮","font-color":"字体颜色",align:"对齐","line-height":"行高","bullet-list":"无序列表","ordered-list":"有序列表","indent-decrease":"减少缩进","indent-increase":"增加缩进",break:"强制换行",image:"图片",video:"视频",attachment:"附件",quote:"引用","code-block":"代码块",table:"表格",printer:"打印",fullscreen:"全屏",ai:"人工智能","menu-group":"菜单组",paragraph:"正文",h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",h5:"标题 5",h6:"标题 6",standardColors:"标准色",historyColors:"最近使用",insertTable:"插入表格",row:"行",column:"列","align-left":"居左对齐","align-right":"居右对齐","align-center":"居中对齐","align-justify":"两端对齐","insert-column-left":"左侧插入列","insert-column-right":"右侧插入列","insert-row-top":"上方插入行","insert-row-bottom":"下方插入行","delete-column":"删除当前列","delete-row":"删除当前行","merge-cells-horizontal":"合并单元格","merge-cells-vertical":"合并单元格","split-cells-horizontal":"解除合并单元格","split-cells-vertical":"解除合并单元格","delete-table":"删除表格","edit-link":"编辑链接",unlink:"取消链接","visit-link":"访问链接","link-address":"链接地址","link-open-type":"打开方式","link-open-blank":"新窗口","default-font-size":"字号","default-font-family":"默认字体","codeblock-ai-auto-comment":"自动注释","codeblock-ai-code-explain":"代码解释","placeholder-tell-ai-what-to-do-next":"告诉 AI 下一步应该如何?比如:帮我翻译成英语","tip-you-can-enter-text-above-or-select-the-operation-below":"提示:您可以在上面输入文字或者选择下方的操作","you-can-do-the-following":"您可以进行以下操作:","improve-writing":"改进写作","check-spelling-and-grammar":"检查拼写和语法","make-shorter":"简化内容","make-longer":"丰富内容",translate:"翻译",summarize:"总结","ai-append":"追加","ai-replace":"替换","ai-cancel":"舍弃","ai-continuation":"AI 续写","ai-optimization":"AI 优化","ai-proofreading":"AI 校对","ai-translation":"AI 翻译"},gL={default:"Default",delete:"Delete",confirm:"Confirm",cancel:"Cancel",resize:"Resize",undo:"Undo",redo:"Redo",brush:"Format Painter",container:"Highlight container",eraser:"clear format",heading:"Paragraph/Heading","font-family":"Font Family","font-size":"Font Size",bold:"Bold",italic:"Italics",underline:"Underline",strike:"Strikethrough",link:"Link","source-code":"Source code",code:"Inline code",subscript:"Subscript",superscript:"Superscript",hr:"Dividing line",todo:"Task list",emoji:"Emoji expression",highlight:"Highlight","font-color":"Font color",align:"Alignment","line-height":"Line height","bullet-list":"Unordered list","ordered-list":"Ordered list","indent-decrease":"Decrease indent","indent-increase":"Increase indent",break:"Force line break",image:"Image",video:"video",attachment:"Attachment",quote:"Quote","code-block":"Code block",table:"Table",printer:"Print",fullscreen:"Full screen",ai:"AI","menu-group":"Menu Group",paragraph:"Paragraph",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",standardColors:"Standard colors",historyColors:"Recently used colors",insertTable:"Insert Table",row:"Row",column:"Column","align-left":"Align left","align-right":"Align right","align-center":"Align center","align-justify":"Align justify","insert-column-left":"Insert column left","insert-column-right":"Insert column right","insert-row-top":"Insert row top","insert-row-bottom":"Insert row bottom","delete-column":"Delete column","delete-row":"Delete row","merge-cells-horizontal":"Merge cells","merge-cells-vertical":"Merge cells","split-cells-horizontal":"Split cells","split-cells-vertical":"Split cells","delete-table":"Delete table","edit-link":"Edit link",unlink:"Unlink","visit-link":"Visit link","link-address":"Link address","link-open-type":"Open type","link-open-blank":"Blank","default-font-size":"Size","default-font-family":"Default font","codeblock-ai-auto-comment":"auto comment","codeblock-ai-code-explain":"code explain","placeholder-tell-ai-what-to-do-next":"Tell AI what to do next? e.g., help me translate into English","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: You can enter text above or select the operation below","you-can-do-the-following":"You can do the following:","improve-writing":"Improve your writing","check-spelling-and-grammar":"Check spelling and grammar","make-shorter":"Make shorter","make-longer":"Make longer",translate:"Translate",summarize:"Summarize","ai-append":"Append","ai-replace":"Replace","ai-cancel":"Cancel","ai-continuation":"Continuation","ai-optimization":"Optimization","ai-proofreading":"Proofreading","ai-translation":"Translation"},hL={default:"Standard",delete:"Löschen",confirm:"Bestätigen",cancel:"Abbrechen",resize:"Größe ändern",undo:"Rückgängig",redo:"Wiederholen",brush:"Format übertragen",container:"Auswahl hervorheben",eraser:"Format löschen",heading:"Absatz/Überschrift","font-family":"Schriftart","font-size":"Schriftgröße",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",strike:"Durchgestrichen",link:"Link","source-code":"Quellcode",code:"Inline-Code",subscript:"Tiefgestellt",superscript:"Hochgestellt",hr:"Trennlinie",todo:"Aufgabenliste",emoji:"Emojis",highlight:"Hervorheben","font-color":"Schriftfarbe",align:"Ausrichtung","line-height":"Zeilenhöhe","bullet-list":"Aufzählungsliste","ordered-list":"Nummerierte Liste","indent-decrease":"Einzug verkleinern","indent-increase":"Einzug vergrößern",break:"Zeilenumbruch erzwingen",image:"Bild",video:"Video",attachment:"Anhang",quote:"Zitat","code-block":"Codeblock",table:"Tabelle",printer:"Drucken",fullscreen:"Vollbild",ai:"KI","menu-group":"Menügruppe",paragraph:"Absatz",h1:"Überschrift 1",h2:"Überschrift 2",h3:"Überschrift 3",h4:"Überschrift 4",h5:"Überschrift 5",h6:"Überschrift 6",standardColors:"Standardfarben",historyColors:"Zuletzt verwendete Farben",insertTable:"Tabelle einfügen",row:"Zeile",column:"Spalte","align-left":"Linksbündig","align-right":"Rechtsbündig","align-center":"Zentriert","align-justify":"Blocksatz","insert-column-left":"Spalte links einfügen","insert-column-right":"Spalte rechts einfügen","insert-row-top":"Zeile oben einfügen","insert-row-bottom":"Zeile unten einfügen","delete-column":"Spalte löschen","delete-row":"Zeile löschen","merge-cells-horizontal":"Zellen horizontal verbinden","merge-cells-vertical":"Zellen vertikal verbinden","split-cells-horizontal":"Zellen horizontal teilen","split-cells-vertical":"Zellen vertikal teilen","delete-table":"Tabelle löschen","edit-link":"Link bearbeiten",unlink:"Link entfernen","visit-link":"Link besuchen","link-address":"Link-Adresse","link-open-type":"Link öffnen in...","link-open-blank":"Neues Fenster","default-font-size":"Schriftgröße","default-font-family":"Standardschriftart","codeblock-ai-auto-comment":"Automatischer Kommentar","codeblock-ai-code-explain":"Code-Erklärung","placeholder-tell-ai-what-to-do-next":"Sagen Sie der KI, was als Nächstes zu tun ist, z.B. helfen Sie mir, ins Englische zu übersetzen","tip-you-can-enter-text-above-or-select-the-operation-below":"Tipp: Sie können oben Text eingeben oder die untenstehende Operation auswählen","you-can-do-the-following":"Sie können Folgendes tun:","improve-writing":"Schreiben verbessern","check-spelling-and-grammar":"Rechtschreibung und Grammatik prüfen","make-shorter":"Kürzen","make-longer":"Verlängern",translate:"Übersetzen",summarize:"Zusammenfassen","ai-append":"Anhängen","ai-replace":"Ersetzen","ai-cancel":"Abbrechen","ai-continuation":"Vorschläge für Fortsetzung","ai-optimization":"Optimierung","ai-proofreading":"Korrekturlesen","ai-translation":"Übersetzung"},EL={default:"Padrão",delete:"Excluir",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Desfazer",redo:"Refazer",brush:"Pincel",container:"Destacar seleção",eraser:"Apagar formatação",heading:"Cabeçalho","font-family":"Fonte","font-size":"Tamanho da fonte",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strike:"Tachado",link:"Link","source-code":"Código-fonte",code:"Código em linha",subscript:"Subscrito",superscript:"Sobrescrito",hr:"Linha horizontal",todo:"Lista de tarefas",emoji:"Emoji",highlight:"Destacar","font-color":"Cor da fonte",align:"Alinhamento","line-height":"Altura da linha","bullet-list":"Lista com marcadores","ordered-list":"Lista numerada","indent-decrease":"Diminuir recuo","indent-increase":"Aumentar recuo",break:"Quebra de linha",image:"Imagem",video:"Vídeo",attachment:"Anexo",quote:"Citação","code-block":"Bloco de código",table:"Tabela",printer:"Imprimir",fullscreen:"Tela cheia",ai:"IA","menu-group":"Grupo de menu",paragraph:"Parágrafo",h1:"Cabeçalho 1",h2:"Cabeçalho 2",h3:"Cabeçalho 3",h4:"Cabeçalho 4",h5:"Cabeçalho 5",h6:"Cabeçalho 6",standardColors:"Cores padrão",historyColors:"Cores recentes",insertTable:"Inserir tabela",row:"Linha",column:"Coluna","align-left":"Alinhar à esquerda","align-right":"Alinhar à direita","align-center":"Centralizar","align-justify":"Justificar","insert-column-left":"Inserir coluna à esquerda","insert-column-right":"Inserir coluna à direita","insert-row-top":"Inserir linha acima","insert-row-bottom":"Inserir linha abaixo","delete-column":"Excluir coluna","delete-row":"Excluir linha","merge-cells-horizontal":"Mesclar células horizontalmente","merge-cells-vertical":"Mesclar células verticalmente","split-cells-horizontal":"Dividir células horizontalmente","split-cells-vertical":"Dividir células verticalmente","delete-table":"Excluir tabela","edit-link":"Editar link",unlink:"Remover link","visit-link":"Visitar link","link-address":"Endereço do link","link-open-type":"Abrir link em...","link-open-blank":"Nova janela","default-font-size":"Tamanho padrão da fonte","default-font-family":"Fonte padrão","codeblock-ai-auto-comment":"Comentário automático","codeblock-ai-code-explain":"Explicação do código","placeholder-tell-ai-what-to-do-next":"Diga à IA o que fazer a seguir, por exemplo, ajude-me a traduzir para o inglês","tip-you-can-enter-text-above-or-select-the-operation-below":"Dica: Você pode digitar o texto acima ou selecionar a operação abaixo","you-can-do-the-following":"Você pode fazer o seguinte:","improve-writing":"Melhorar escrita","check-spelling-and-grammar":"Verificar ortografia e gramática","make-shorter":"Encurtar","make-longer":"Alongar",translate:"Traduzir",summarize:"Resumir","ai-append":"Anexar","ai-replace":"Substituir","ai-cancel":"Cancelar","ai-continuation":"Sugestões de continuação","ai-optimization":"Otimização","ai-proofreading":"Revisão","ai-translation":"Tradução"},SL={default:"Predeterminado",delete:"Eliminar",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Deshacer",redo:"Rehacer",brush:"Pincel de formato",container:"Bloque resaltado",eraser:"Borrar formato",heading:"Texto/Título","font-family":"Fuente","font-size":"Tamaño de fuente",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strike:"Tachado",link:"Enlace","source-code":"Código fuente",code:"Código en línea",subscript:"Subíndice",superscript:"Superíndice",hr:"Línea divisoria",todo:"Lista de tareas",emoji:"Emoji",highlight:"Resaltar","font-color":"Color de fuente",align:"Alinear","line-height":"Altura de línea","bullet-list":"Lista desordenada","ordered-list":"Lista ordenada","indent-decrease":"Disminuir sangría","indent-increase":"Aumentar sangría",break:"Salto de línea",image:"Imagen",video:"Video",attachment:"Adjunto",quote:"Cita","code-block":"Bloque de código",table:"Tabla",printer:"Imprimir",fullscreen:"Pantalla completa",ai:"Inteligencia artificial","menu-group":"Grupo de menú",paragraph:"Párrafo",h1:"Encabezado 1",h2:"Encabezado 2",h3:"Encabezado 3",h4:"Encabezado 4",h5:"Encabezado 5",h6:"Encabezado 6",standardColors:"Colores estándar",historyColors:"Usado recientemente",insertTable:"Insertar tabla",row:"Fila",column:"Columna","align-left":"Alinear a la izquierda","align-right":"Alinear a la derecha","align-center":"Alinear al centro","align-justify":"Justificar","insert-column-left":"Insertar columna a la izquierda","insert-column-right":"Insertar columna a la derecha","insert-row-top":"Insertar fila arriba","insert-row-bottom":"Insertar fila abajo","delete-column":"Eliminar columna","delete-row":"Eliminar fila","merge-cells-horizontal":"Combinar celdas horizontalmente","merge-cells-vertical":"Combinar celdas verticalmente","split-cells-horizontal":"Dividir celdas horizontalmente","split-cells-vertical":"Dividir celdas verticalmente","delete-table":"Eliminar tabla","edit-link":"Editar enlace",unlink:"Eliminar enlace","visit-link":"Visitar enlace","link-address":"Dirección del enlace","link-open-type":"Tipo de apertura","link-open-blank":"Nueva ventana","default-font-size":"Tamaño de fuente predeterminado","default-font-family":"Fuente predeterminada","codeblock-ai-auto-comment":"Comentario automático","codeblock-ai-code-explain":"Explicación del código","placeholder-tell-ai-what-to-do-next":"Dile a la IA qué hacer a continuación. Ejemplo: Traducir al inglés","tip-you-can-enter-text-above-or-select-the-operation-below":"Sugerencia: Puedes ingresar el texto arriba o seleccionar una operación abajo","you-can-do-the-following":"Puedes hacer lo siguiente:","improve-writing":"Mejorar escritura","check-spelling-and-grammar":"Revisar ortografía y gramática","make-shorter":"Hacer más corto","make-longer":"Hacer más largo",translate:"Traducir",summarize:"Resumir","ai-append":"Añadir","ai-replace":"Reemplazar","ai-cancel":"Cancelar","ai-continuation":"Continuación con IA","ai-optimization":"Optimización con IA","ai-proofreading":"Corrección con IA","ai-translation":"Traducción con IA"},bL={default:"डिफ़ॉल्ट",delete:"हटाएं",confirm:"पुष्टि करें",cancel:"रद्द करें",resize:"आकार बदलें",undo:"पूर्ववत करें",redo:"फिर से करें",brush:"फॉर्मेट ब्रश",container:"हाइलाइट ब्लॉक",eraser:"फॉर्मेट साफ़ करें",heading:"पाठ/शीर्षक","font-family":"फ़ॉन्ट","font-size":"फ़ॉन्ट आकार",bold:"बोल्ड",italic:"इटैलिक",underline:"रेखांकन",strike:"स्ट्राइकथ्रू",link:"लिंक","source-code":"स्रोत कोड",code:"इनलाइन कोड",subscript:"सबस्क्रिप्ट",superscript:"सुपरस्क्रिप्ट",hr:"विभाजक रेखा",todo:"कार्य सूची",emoji:"इमोजी",highlight:"हाइलाइट","font-color":"फ़ॉन्ट रंग",align:"संरेखित करें","line-height":"लाइन हाइट","bullet-list":"बिना क्रम वाली सूची","ordered-list":"क्रमबद्ध सूची","indent-decrease":"इंडेंट घटाएं","indent-increase":"इंडेंट बढ़ाएं",break:"लाइन ब्रेक",image:"चित्र",video:"वीडियो",attachment:"अनुलग्नक",quote:"उद्धरण","code-block":"कोड ब्लॉक",table:"तालिका",printer:"प्रिंट करें",fullscreen:"पूर्ण स्क्रीन",ai:"कृत्रिम बुद्धिमत्ता","menu-group":"मेनू समूह",paragraph:"पैराग्राफ",h1:"शीर्षक 1",h2:"शीर्षक 2",h3:"शीर्षक 3",h4:"शीर्षक 4",h5:"शीर्षक 5",h6:"शीर्षक 6",standardColors:"मानक रंग",historyColors:"हालिया रंग",insertTable:"तालिका सम्मिलित करें",row:"पंक्ति",column:"स्तंभ","align-left":"बाएं संरेखित","align-right":"दाएं संरेखित","align-center":"केंद्र संरेखित","align-justify":"दोनों तरफ संरेखित","insert-column-left":"बाईं ओर स्तंभ जोड़ें","insert-column-right":"दाईं ओर स्तंभ जोड़ें","insert-row-top":"ऊपर पंक्ति जोड़ें","insert-row-bottom":"नीचे पंक्ति जोड़ें","delete-column":"स्तंभ हटाएं","delete-row":"पंक्ति हटाएं","merge-cells-horizontal":"सेलों को क्षैतिज मिलाएं","merge-cells-vertical":"सेलों को लंबवत मिलाएं","split-cells-horizontal":"सेलों को क्षैतिज विभाजित करें","split-cells-vertical":"सेलों को लंबवत विभाजित करें","delete-table":"तालिका हटाएं","edit-link":"लिंक संपादित करें",unlink:"लिंक हटाएं","visit-link":"लिंक पर जाएं","link-address":"लिंक पता","link-open-type":"लिंक खोलने का प्रकार","link-open-blank":"नई विंडो","default-font-size":"डिफ़ॉल्ट फ़ॉन्ट आकार","default-font-family":"डिफ़ॉल्ट फ़ॉन्ट","codeblock-ai-auto-comment":"स्वचालित टिप्पणी","codeblock-ai-code-explain":"कोड व्याख्या","placeholder-tell-ai-what-to-do-next":"AI को बताएं कि अगला कदम क्या होना चाहिए? उदाहरण: कृपया इसे अंग्रेजी में अनुवाद करें","tip-you-can-enter-text-above-or-select-the-operation-below":"सुझाव: आप ऊपर टेक्स्ट दर्ज कर सकते हैं या नीचे दिए गए ऑपरेशन का चयन कर सकते हैं","you-can-do-the-following":"आप निम्नलिखित कर सकते हैं:","improve-writing":"लेखन सुधारें","check-spelling-and-grammar":"वर्तनी और व्याकरण जांचें","make-shorter":"छोटा करें","make-longer":"लंबा करें",translate:"अनुवाद करें",summarize:"सारांश","ai-append":"जोड़ें","ai-replace":"बदलें","ai-cancel":"रद्द करें","ai-continuation":"AI जारी रखें","ai-optimization":"AI अनुकूलन","ai-proofreading":"AI प्रूफरीडिंग","ai-translation":"AI अनुवाद"},TL={default:"Default",delete:"Hapus",confirm:"Konfirmasi",cancel:"Batal",resize:"Ubah ukuran",undo:"Batalkan",redo:"Ulangi",brush:"Kuas format",container:"Blok sorot",eraser:"Hapus format",heading:"Teks/Judul","font-family":"Font","font-size":"Ukuran font",bold:"Tebal",italic:"Miring",underline:"Garis bawah",strike:"Garis coret",link:"Tautan","source-code":"Kode sumber",code:"Kode dalam baris",subscript:"Subskrip",superscript:"Superskrip",hr:"Garis pemisah",todo:"Daftar tugas",emoji:"Emoji",highlight:"Sorot","font-color":"Warna font",align:"Rata","line-height":"Tinggi baris","bullet-list":"Daftar tak berurut","ordered-list":"Daftar berurut","indent-decrease":"Kurangi inden","indent-increase":"Tambah inden",break:"Pecah baris",image:"Gambar",video:"Video",attachment:"Lampiran",quote:"Kutipan","code-block":"Blok kode",table:"Tabel",printer:"Cetak",fullscreen:"Layar penuh",ai:"Kecerdasan buatan","menu-group":"Grup menu",paragraph:"Teks",h1:"Judul 1",h2:"Judul 2",h3:"Judul 3",h4:"Judul 4",h5:"Judul 5",h6:"Judul 6",standardColors:"Warna standar",historyColors:"Warna terbaru",insertTable:"Sisipkan tabel",row:"Baris",column:"Kolom","align-left":"Rata kiri","align-right":"Rata kanan","align-center":"Rata tengah","align-justify":"Rata kedua sisi","insert-column-left":"Sisipkan kolom di kiri","insert-column-right":"Sisipkan kolom di kanan","insert-row-top":"Sisipkan baris di atas","insert-row-bottom":"Sisipkan baris di bawah","delete-column":"Hapus kolom","delete-row":"Hapus baris","merge-cells-horizontal":"Gabungkan sel horizontal","merge-cells-vertical":"Gabungkan sel vertikal","split-cells-horizontal":"Pisahkan sel horizontal","split-cells-vertical":"Pisahkan sel vertikal","delete-table":"Hapus tabel","edit-link":"Edit tautan",unlink:"Hapus tautan","visit-link":"Kunjungi tautan","link-address":"Alamat tautan","link-open-type":"Jenis pembukaan tautan","link-open-blank":"Jendela baru","default-font-size":"Ukuran font","default-font-family":"Font default","codeblock-ai-auto-comment":"Komentar otomatis","codeblock-ai-code-explain":"Penjelasan kode","placeholder-tell-ai-what-to-do-next":"Beritahu AI langkah berikutnya? Contoh: Bantu saya terjemahkan ke bahasa Inggris","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: Anda bisa memasukkan teks di atas atau memilih operasi di bawah","you-can-do-the-following":"Anda dapat melakukan hal-hal berikut:","improve-writing":"Tingkatkan tulisan","check-spelling-and-grammar":"Periksa ejaan dan tata bahasa","make-shorter":"Buat lebih singkat","make-longer":"Buat lebih panjang",translate:"Terjemahkan",summarize:"Ringkas","ai-append":"Tambahkan","ai-replace":"Ganti","ai-cancel":"Batalkan","ai-continuation":"AI Lanjutkan","ai-optimization":"AI Optimasi","ai-proofreading":"AI Koreksi","ai-translation":"AI Terjemahan"},CL={default:"デフォルト",delete:"削除",confirm:"確認",cancel:"キャンセル",resize:"サイズ調整",undo:"元に戻す",redo:"やり直す",brush:"フォーマットブラシ",container:"ハイライトブロック",eraser:"フォーマットクリア",heading:"テキスト/見出し","font-family":"フォント","font-size":"フォントサイズ",bold:"太字",italic:"斜体",underline:"下線",strike:"取り消し線",link:"リンク","source-code":"ソースコード",code:"インラインコード",subscript:"下付き文字",superscript:"上付き文字",hr:"区切り線",todo:"タスクリスト",emoji:"絵文字",highlight:"ハイライト","font-color":"フォントカラー",align:"配置","line-height":"行の高さ","bullet-list":"箇条書きリスト","ordered-list":"番号付きリスト","indent-decrease":"インデントを減らす","indent-increase":"インデントを増やす",break:"改行",image:"画像",video:"ビデオ",attachment:"添付ファイル",quote:"引用","code-block":"コードブロック",table:"テーブル",printer:"印刷",fullscreen:"全画面",ai:"AI","menu-group":"メニューグループ",paragraph:"段落",h1:"見出し 1",h2:"見出し 2",h3:"見出し 3",h4:"見出し 4",h5:"見出し 5",h6:"見出し 6",standardColors:"標準色",historyColors:"最近使用した色",insertTable:"テーブル挿入",row:"行",column:"列","align-left":"左揃え","align-right":"右揃え","align-center":"中央揃え","align-justify":"両端揃え","insert-column-left":"左に列を挿入","insert-column-right":"右に列を挿入","insert-row-top":"上に行を挿入","insert-row-bottom":"下に行を挿入","delete-column":"列を削除","delete-row":"行を削除","merge-cells-horizontal":"セルを横に結合","merge-cells-vertical":"セルを縦に結合","split-cells-horizontal":"セルを横に分割","split-cells-vertical":"セルを縦に分割","delete-table":"テーブルを削除","edit-link":"リンク編集",unlink:"リンク解除","visit-link":"リンクを訪問","link-address":"リンクアドレス","link-open-type":"開き方","link-open-blank":"新しいウィンドウで開く","default-font-size":"デフォルトフォントサイズ","default-font-family":"デフォルトフォント","codeblock-ai-auto-comment":"自動コメント","codeblock-ai-code-explain":"コードの説明","placeholder-tell-ai-what-to-do-next":"次にAIに何をさせるか教えてください。例:英語に翻訳して","tip-you-can-enter-text-above-or-select-the-operation-below":"ヒント:上にテキストを入力するか、下の操作を選択できます","you-can-do-the-following":"次の操作ができます:","improve-writing":"文章を改善","check-spelling-and-grammar":"スペルと文法のチェック","make-shorter":"短くする","make-longer":"長くする",translate:"翻訳",summarize:"要約","ai-append":"追加","ai-replace":"置換","ai-cancel":"キャンセル","ai-continuation":"AI継続","ai-optimization":"AI最適化","ai-proofreading":"AI校正","ai-translation":"AI翻訳"},yL={default:"기본값",delete:"삭제",confirm:"확인",cancel:"취소",resize:"크기 조정",undo:"실행 취소",redo:"다시 실행",brush:"형식 브러시",container:"강조 블록",eraser:"서식 지우기",heading:"본문/제목","font-family":"글꼴","font-size":"글꼴 크기",bold:"굵게",italic:"기울임꼴",underline:"밑줄",strike:"취소선",link:"링크","source-code":"소스 코드",code:"인라인 코드",subscript:"아래 첨자",superscript:"위 첨자",hr:"구분선",todo:"할 일 목록",emoji:"이모지",highlight:"강조","font-color":"글꼴 색상",align:"정렬","line-height":"줄 간격","bullet-list":"글머리 기호 목록","ordered-list":"번호 목록","indent-decrease":"들여쓰기 줄이기","indent-increase":"들여쓰기 늘리기",break:"줄바꿈",image:"이미지",video:"비디오",attachment:"첨부 파일",quote:"인용","code-block":"코드 블록",table:"테이블",printer:"인쇄",fullscreen:"전체 화면",ai:"AI","menu-group":"메뉴 그룹",paragraph:"본문",h1:"제목 1",h2:"제목 2",h3:"제목 3",h4:"제목 4",h5:"제목 5",h6:"제목 6",standardColors:"표준 색상",historyColors:"최근 사용 색상",insertTable:"테이블 삽입",row:"행",column:"열","align-left":"왼쪽 정렬","align-right":"오른쪽 정렬","align-center":"가운데 정렬","align-justify":"양쪽 맞춤","insert-column-left":"왼쪽에 열 삽입","insert-column-right":"오른쪽에 열 삽입","insert-row-top":"위쪽에 행 삽입","insert-row-bottom":"아래쪽에 행 삽입","delete-column":"열 삭제","delete-row":"행 삭제","merge-cells-horizontal":"셀 병합","merge-cells-vertical":"셀 세로 병합","split-cells-horizontal":"셀 가로 분할","split-cells-vertical":"셀 세로 분할","delete-table":"테이블 삭제","edit-link":"링크 편집",unlink:"링크 해제","visit-link":"링크 방문","link-address":"링크 주소","link-open-type":"열기 유형","link-open-blank":"새 창","default-font-size":"기본 글꼴 크기","default-font-family":"기본 글꼴","codeblock-ai-auto-comment":"자동 주석","codeblock-ai-code-explain":"코드 설명","placeholder-tell-ai-what-to-do-next":"AI에게 다음 작업을 지시하세요. 예: 영어로 번역해 주세요","tip-you-can-enter-text-above-or-select-the-operation-below":"팁: 위에 텍스트를 입력하거나 아래 작업을 선택할 수 있습니다","you-can-do-the-following":"다음 작업을 수행할 수 있습니다:","improve-writing":"글쓰기 개선","check-spelling-and-grammar":"철자 및 문법 검사","make-shorter":"짧게 만들기","make-longer":"길게 만들기",translate:"번역",summarize:"요약","ai-append":"추가","ai-replace":"대체","ai-cancel":"취소","ai-continuation":"AI 계속","ai-optimization":"AI 최적화","ai-proofreading":"AI 교정","ai-translation":"AI 번역"},vL={default:"ค่าเริ่มต้น",delete:"ลบ",confirm:"ยืนยัน",cancel:"ยกเลิก",resize:"ปรับขนาด",undo:"เลิกทำ",redo:"ทำซ้ำ",brush:"แปรงรูปแบบ",container:"บล็อกไฮไลท์",eraser:"ล้างรูปแบบ",heading:"ข้อความ/หัวข้อ","font-family":"แบบอักษร","font-size":"ขนาดตัวอักษร",bold:"ตัวหนา",italic:"ตัวเอียง",underline:"ขีดเส้นใต้",strike:"ขีดฆ่า",link:"ลิงก์","source-code":"โค้ดต้นฉบับ",code:"โค้ดในบรรทัด",subscript:"ตัวห้อย",superscript:"ตัวยก",hr:"เส้นแบ่ง",todo:"รายการสิ่งที่ต้องทำ",emoji:"อีโมจิ",highlight:"ไฮไลท์","font-color":"สีตัวอักษร",align:"จัดแนว","line-height":"ความสูงบรรทัด","bullet-list":"รายการจุด","ordered-list":"รายการลำดับ","indent-decrease":"ลดการเยื้อง","indent-increase":"เพิ่มการเยื้อง",break:"ขึ้นบรรทัดใหม่",image:"รูปภาพ",video:"วิดีโอ",attachment:"ไฟล์แนบ",quote:"อ้างอิง","code-block":"บล็อกโค้ด",table:"ตาราง",printer:"พิมพ์",fullscreen:"เต็มจอ",ai:"ปัญญาประดิษฐ์","menu-group":"กลุ่มเมนู",paragraph:"ข้อความ",h1:"หัวข้อ 1",h2:"หัวข้อ 2",h3:"หัวข้อ 3",h4:"หัวข้อ 4",h5:"หัวข้อ 5",h6:"หัวข้อ 6",standardColors:"สีมาตรฐาน",historyColors:"ใช้ล่าสุด",insertTable:"แทรกตาราง",row:"แถว",column:"คอลัมน์","align-left":"จัดชิดซ้าย","align-right":"จัดชิดขวา","align-center":"จัดกึ่งกลาง","align-justify":"จัดเต็มหน้า","insert-column-left":"แทรกคอลัมน์ด้านซ้าย","insert-column-right":"แทรกคอลัมน์ด้านขวา","insert-row-top":"แทรกแถวด้านบน","insert-row-bottom":"แทรกแถวด้านล่าง","delete-column":"ลบคอลัมน์","delete-row":"ลบแถว","merge-cells-horizontal":"ผสานเซลล์ตามแนวนอน","merge-cells-vertical":"ผสานเซลล์ตามแนวตั้ง","split-cells-horizontal":"แยกเซลล์แนวนอน","split-cells-vertical":"แยกเซลล์แนวตั้ง","delete-table":"ลบตาราง","edit-link":"แก้ไขลิงก์",unlink:"ยกเลิกการเชื่อมโยง","visit-link":"เยี่ยมชมลิงก์","link-address":"ที่อยู่ลิงก์","link-open-type":"วิธีการเปิด","link-open-blank":"หน้าต่างใหม่","default-font-size":"ขนาดตัวอักษร","default-font-family":"แบบอักษรเริ่มต้น","codeblock-ai-auto-comment":"คอมเมนต์อัตโนมัติ","codeblock-ai-code-explain":"อธิบายโค้ด","placeholder-tell-ai-what-to-do-next":"บอก AI ว่าต้องทำอะไรต่อไป เช่น ช่วยแปลเป็นภาษาอังกฤษ","tip-you-can-enter-text-above-or-select-the-operation-below":"เคล็ดลับ: คุณสามารถป้อนข้อความข้างบนหรือเลือกการดำเนินการด้านล่าง","you-can-do-the-following":"คุณสามารถทำสิ่งต่อไปนี้:","improve-writing":"ปรับปรุงการเขียน","check-spelling-and-grammar":"ตรวจสอบการสะกดและไวยากรณ์","make-shorter":"ทำให้สั้นลง","make-longer":"ทำให้ยาวขึ้น",translate:"แปล",summarize:"สรุป","ai-append":"เพิ่ม","ai-replace":"แทนที่","ai-cancel":"ยกเลิก","ai-continuation":"AI เขียนต่อ","ai-optimization":"AI ปรับแต่ง","ai-proofreading":"AI พิสูจน์อักษร","ai-translation":"AI แปล"},RL={default:"Mặc định",delete:"Xóa",confirm:"Xác nhận",cancel:"Hủy",resize:"Điều chỉnh kích thước",undo:"Hoàn tác",redo:"Làm lại",brush:"Chổi định dạng",container:"Khối nổi bật",eraser:"Xóa định dạng",heading:"Nội dung/Đầu đề","font-family":"Phông chữ","font-size":"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",underline:"Gạch chân",strike:"Gạch ngang",link:"Liên kết","source-code":"Mã nguồn",code:"Mã trong dòng",subscript:"Chỉ số dưới",superscript:"Chỉ số trên",hr:"Đường phân cách",todo:"Danh sách công việc",emoji:"Biểu tượng cảm xúc",highlight:"Đánh dấu","font-color":"Màu chữ",align:"Căn chỉnh","line-height":"Chiều cao dòng","bullet-list":"Danh sách dấu chấm","ordered-list":"Danh sách có thứ tự","indent-decrease":"Giảm thụt lề","indent-increase":"Tăng thụt lề",break:"Xuống dòng",image:"Hình ảnh",video:"Video",attachment:"Tệp đính kèm",quote:"Trích dẫn","code-block":"Khối mã",table:"Bảng",printer:"In",fullscreen:"Toàn màn hình",ai:"Trí tuệ nhân tạo","menu-group":"Nhóm menu",paragraph:"Nội dung",h1:"Tiêu đề 1",h2:"Tiêu đề 2",h3:"Tiêu đề 3",h4:"Tiêu đề 4",h5:"Tiêu đề 5",h6:"Tiêu đề 6",standardColors:"Màu tiêu chuẩn",historyColors:"Màu đã dùng gần đây",insertTable:"Chèn bảng",row:"Hàng",column:"Cột","align-left":"Căn trái","align-right":"Căn phải","align-center":"Căn giữa","align-justify":"Căn đều","insert-column-left":"Chèn cột bên trái","insert-column-right":"Chèn cột bên phải","insert-row-top":"Chèn hàng phía trên","insert-row-bottom":"Chèn hàng phía dưới","delete-column":"Xóa cột hiện tại","delete-row":"Xóa hàng hiện tại","merge-cells-horizontal":"Gộp ô ngang","merge-cells-vertical":"Gộp ô dọc","split-cells-horizontal":"Tách ô ngang","split-cells-vertical":"Tách ô dọc","delete-table":"Xóa bảng","edit-link":"Chỉnh sửa liên kết",unlink:"Hủy liên kết","visit-link":"Truy cập liên kết","link-address":"Địa chỉ liên kết","link-open-type":"Cách mở liên kết","link-open-blank":"Cửa sổ mới","default-font-size":"Cỡ chữ","default-font-family":"Phông chữ mặc định","codeblock-ai-auto-comment":"Nhận xét tự động","codeblock-ai-code-explain":"Giải thích mã","placeholder-tell-ai-what-to-do-next":"Nói với AI bước tiếp theo là gì? Ví dụ: Giúp tôi dịch sang tiếng Anh","tip-you-can-enter-text-above-or-select-the-operation-below":"Mẹo: Bạn có thể nhập văn bản phía trên hoặc chọn thao tác bên dưới","you-can-do-the-following":"Bạn có thể thực hiện các thao tác sau:","improve-writing":"Cải thiện bài viết","check-spelling-and-grammar":"Kiểm tra chính tả và ngữ pháp","make-shorter":"Rút gọn","make-longer":"Mở rộng nội dung",translate:"Dịch",summarize:"Tóm tắt","ai-append":"Thêm vào","ai-replace":"Thay thế","ai-cancel":"Hủy","ai-continuation":"AI Viết tiếp","ai-optimization":"AI Tối ưu hóa","ai-proofreading":"AI Hiệu đính","ai-translation":"AI Dịch"},x_={};function OL(t){let e=x_[t];if(e)return e;e=x_[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);e.push(r)}for(let n=0;n=55296&&u<=57343?i+="���":i+=String.fromCharCode(u),o+=6;continue}}if((s&248)===240&&o+91114111?i+="����":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="�"}return i})}di.defaultChars=";/?:@&=+$,#";di.componentChars="";const D_={};function NL(t){let e=D_[t];if(e)return e;e=D_[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const r=NL(e);let i="";for(let o=0,a=t.length;o=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){i+=encodeURIComponent(t[o]+t[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[o])}return i}Eo.defaultChars=";/?:@&=+$,-_.!~*'()#";Eo.componentChars="-_.!~*'()";function fu(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function Wa(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const AL=/^([a-z0-9.+-]+:)/i,IL=/:[0-9]*$/,xL=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,DL=["<",">",'"',"`"," ","\r",` -`," "],ML=["{","}","|","\\","^","`"].concat(DL),wL=["'"].concat(ML),M_=["%","/","?",";","#"].concat(wL),w_=["/","?","#"],LL=255,L_=/^[+a-z0-9A-Z_-]{0,63}$/,kL=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,k_={javascript:!0,"javascript:":!0},P_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function gu(t,e){if(t&&t instanceof Wa)return t;const n=new Wa;return n.parse(t,e),n}Wa.prototype.parse=function(t,e){let n,r,i,o=t;if(o=o.trim(),!e&&t.split("#").length===1){const c=xL.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=AL.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(e||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&k_[a])&&(o=o.substr(2),this.slashes=!0)),!k_[a]&&(i||a&&!P_[a])){let c=-1;for(let m=0;m127?S+="x":S+=E[b];if(!S.match(L_)){const b=m.slice(0,f),h=m.slice(f+1),C=E.match(kL);C&&(b.push(C[1]),h.unshift(C[2])),h.length&&(o=h.join(".")+o),this.hostname=b.join(".");break}}}}this.hostname.length>LL&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),P_[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Wa.prototype.parseHost=function(t){let e=IL.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const PL=Object.freeze(Object.defineProperty({__proto__:null,decode:di,encode:Eo,format:fu,parse:gu},Symbol.toStringTag,{value:"Module"})),Rh=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Oh=/[\0-\x1F\x7F-\x9F]/,FL=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,hu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Nh=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Ah=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,BL=Object.freeze(Object.defineProperty({__proto__:null,Any:Rh,Cc:Oh,Cf:FL,P:hu,S:Nh,Z:Ah},Symbol.toStringTag,{value:"Module"})),UL=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),HL=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var gl;const GL=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),VL=(gl=String.fromCodePoint)!==null&&gl!==void 0?gl:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function YL(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=GL.get(t))!==null&&e!==void 0?e:t}var Ye;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ye||(Ye={}));const zL=32;var Fn;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Fn||(Fn={}));function _c(t){return t>=Ye.ZERO&&t<=Ye.NINE}function $L(t){return t>=Ye.UPPER_A&&t<=Ye.UPPER_F||t>=Ye.LOWER_A&&t<=Ye.LOWER_F}function qL(t){return t>=Ye.UPPER_A&&t<=Ye.UPPER_Z||t>=Ye.LOWER_A&&t<=Ye.LOWER_Z||_c(t)}function WL(t){return t===Ye.EQUALS||qL(t)}var Ve;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Ve||(Ve={}));var xn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(xn||(xn={}));class KL{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xn.Strict}startEntity(e){this.decodeMode=e,this.state=Ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Ve.EntityStart:return e.charCodeAt(n)===Ye.NUM?(this.state=Ve.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Ve.NamedEntity,this.stateNamedEntity(e,n));case Ve.NumericStart:return this.stateNumericStart(e,n);case Ve.NumericDecimal:return this.stateNumericDecimal(e,n);case Ve.NumericHex:return this.stateNumericHex(e,n);case Ve.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|zL)===Ye.LOWER_X?(this.state=Ve.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Ve.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(e.substr(n,o),i),this.consumed+=o}}stateNumericHex(e,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Ye.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==xn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&Fn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~Fn.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Ve.NamedEntity:return this.result!==0&&(this.decodeMode!==xn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ve.NumericDecimal:return this.emitNumericEntity(0,2);case Ve.NumericHex:return this.emitNumericEntity(0,3);case Ve.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ve.EntityStart:return 0}}}function Ih(t){let e="";const n=new KL(t,r=>e+=VL(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){e+=i.slice(a,s),n.startEntity(o);const c=n.write(i,s+1);if(c<0){a=s+n.end();break}a=s+c,s=c===0?a+1:a}const l=e+i.slice(a);return e="",l}}function QL(t,e,n,r){const i=(e&Fn.BRANCH_LENGTH)>>7,o=e&Fn.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:t[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,c=t[l];if(cr)s=l-1;else return t[l+i]}return-1}const ZL=Ih(UL);Ih(HL);function xh(t,e=xn.Legacy){return ZL(t,e)}function XL(t){return Object.prototype.toString.call(t)}function Eu(t){return XL(t)==="[object String]"}const jL=Object.prototype.hasOwnProperty;function JL(t,e){return jL.call(t,e)}function Rs(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){t[r]=n[r]})}}),t}function Dh(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function Su(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Ka(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const Mh=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ek=/&([a-z#][a-z0-9]{1,31});/gi,tk=new RegExp(Mh.source+"|"+ek.source,"gi"),nk=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rk(t,e){if(e.charCodeAt(0)===35&&nk.test(e)){const r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return Su(r)?Ka(r):t}const n=xh(t);return n!==t?n:t}function ik(t){return t.indexOf("\\")<0?t:t.replace(Mh,"$1")}function pi(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(tk,function(e,n,r){return n||rk(e,r)})}const ok=/[&<>"]/,ak=/[&<>"]/g,sk={"&":"&","<":"<",">":">",'"':"""};function lk(t){return sk[t]}function Yn(t){return ok.test(t)?t.replace(ak,lk):t}const ck=/[.?*+^$[\]\\(){}|-]/g;function uk(t){return t.replace(ck,"\\$&")}function Oe(t){switch(t){case 9:case 32:return!0}return!1}function ao(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function so(t){return hu.test(t)||Nh.test(t)}function lo(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Os(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const dk={mdurl:PL,ucmicro:BL},pk=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Dh,assign:Rs,escapeHtml:Yn,escapeRE:uk,fromCodePoint:Ka,has:JL,isMdAsciiPunct:lo,isPunctChar:so,isSpace:Oe,isString:Eu,isValidEntityCode:Su,isWhiteSpace:ao,lib:dk,normalizeReference:Os,unescapeAll:pi,unescapeMd:ik},Symbol.toStringTag,{value:"Module"}));function _k(t,e,n){let r,i,o,a;const s=t.posMax,l=t.pos;for(t.pos=e+1,r=1;t.pos32))return o;if(r===41){if(a===0)break;a--}i++}return e===i||a!==0||(o.str=pi(t.slice(e,i)),o.pos=i,o.ok=!0),o}function fk(t,e,n,r){let i,o=e;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=t.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;e++,o++,s===40&&(s=41),a.marker=s}for(;o"+Yn(o.content)+""};an.code_block=function(t,e,n,r,i){const o=t[e];return""+Yn(t[e].content)+` -`};an.fence=function(t,e,n,r,i){const o=t[e],a=o.info?pi(o.info).trim():"";let s="",l="";if(a){const u=a.split(/(\s+)/g);s=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,s,l)||Yn(o.content):c=Yn(o.content),c.indexOf("{const a=o.target.closest(".item");if(a){const s=Number(a.getAttribute("data-index"));r.command({index:s,aiItem:s>11?r.items[s-12]:null})}})};return{onStart:o=>{t=document.createElement("div"),t.classList.add("suggestion"),r=o,o.clientRect&&(i(),e=we("body",{getReferenceClientRect:o.clientRect,appendTo:()=>o.editor.view.dom.closest(".aie-container"),content:t,showOnCreate:!0,interactive:!0,allowHTML:!0,trigger:"manual",placement:"right-start",arrow:!1}))},onUpdate(o){r=o,o.clientRect&&e[0].setProps({getReferenceClientRect:o.clientRect})},onKeyDown(o){return o.event.key==="Escape"?(e[0].hide(),!0):o.event.key==="ArrowUp"?(n<6?n=11+r.items.length:n<=11?n-=6:(n-=1,n<0&&(n=11+r.items.length)),i(),!0):o.event.key==="ArrowDown"?(n<6?n+=6:n<11?n=12:(n+=1,n>11+r.items.length&&(n=0)),i(),!0):o.event.key==="ArrowLeft"?(n-=1,n<0&&(n=11+r.items.length),i(),!0):o.event.key==="ArrowRight"?(n+=1,n>11+r.items.length&&(n=0),i(),!0):o.event.key==="Enter"?(r.command({index:n,aiItem:n>11?r.items[n-12]:null}),!0):!1},onExit(){e[0].destroy(),t.remove()}}}}}},addProseMirrorPlugins(){return[Dh({editor:this.editor,...this.options.suggestion})]}}),rL=ge.create({addProseMirrorPlugins(){const t=this.editor;return[new Se({key:new ve("selection-marker"),props:{decorations(e){return e.selection.empty||t.isFocused?null:be.create(e.doc,[ke.inline(e.selection.from,e.selection.to,{class:"selection-marker"})])}}})]}});function iL(t,e,n){function r(p){return p.trim().split(" ",2)[0]===e}function i(p,_,m,f,g){return p[_].nesting===1&&p[_].attrJoin("class",e),g.renderToken(p,_,m,f,g)}n=n||{};const o=3,a=n.marker||":",s=a.charCodeAt(0),l=a.length,c=n.validate||r,u=n.render||i;function d(p,_,m,f){let g,S=!1,E=p.bMarks[_]+p.tShift[_],b=p.eMarks[_];if(s!==p.src.charCodeAt(E))return!1;for(g=E+1;g<=b&&a[(g-E)%l]===p.src[g];g++);const h=Math.floor((g-E)/l);if(h=m||(E=p.bMarks[R]+p.tShift[R],b=p.eMarks[R],E=4)){for(g=E+1;g<=b&&a[(g-E)%l]===p.src[g];g++);if(!(Math.floor((g-E)/l){this.options.classes.forEach(e=>{t.use(iL,e)})}}}}},addAttributes(){return{containerClass:{default:null,parseHTML:t=>[...t.classList].find(e=>this.options.classes.includes(e)),renderHTML:t=>({class:t.containerClass})}}},parseHTML(){return[{tag:"div",getAttrs:t=>{const e=t,n=["container-wrapper"].concat(this.options.classes);return[...e.classList].find(r=>n.includes(r))?null:!1}}]},renderHTML({HTMLAttributes:t}){return["div",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setContainer:t=>({commands:e})=>e.wrapIn(this.name,{containerClass:t}),toggleContainer:t=>({commands:e})=>e.toggleWrap(this.name,{containerClass:t}),unsetContainer:()=>({commands:t})=>t.lift(this.name)}},addInputRules(){return[Sr({find:oL,type:this.type,getAttributes:t=>({containerClass:t[1]})})]}}),sL=fg.extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),id:{default:null}}}}),lL=ge.create({name:"saveExt",addKeyboardShortcuts(){return{"Mod-s":({editor:t})=>this.options.onSave?this.options.onSave(t.aiEditor):!1}}}),cL=Ne.create({name:"figure",content:"block+",group:"block",defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figure"}]},renderHTML({HTMLAttributes:t}){return["figure",pe(this.options.HTMLAttributes,t),0]}}),uL=Ne.create({name:"figcaption",content:"inline*",group:"block",defining:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figcaption"}]},renderHTML({HTMLAttributes:t}){return["figcaption",pe(this.options.HTMLAttributes,t),0]}}),dL=(t,e)=>{const n=new RegExp(`<${e}[^>]*>(.*?)`,"gi");return t.replace(n,(r,i)=>i)},pL=(t,e)=>{for(let n of e)t=dL(t,n);return t},_L=(t,e,n)=>{function r(u){const d=document.createDocumentFragment();for(;u.firstChild;){const p=u.removeChild(u.firstChild),_=i(p);_&&d.appendChild(_)}return d}function i(u){var d;if(u.nodeType===Node.ELEMENT_NODE){const p=u;if(e.includes(p.tagName.toLowerCase())){if(!(((d=p.textContent)==null?void 0:d.trim())||""))return p;for(;p.attributes.length>0;)p.removeAttribute(p.attributes[0].name);return p.appendChild(r(p)),p}else return r(p)}else if(u.nodeType===Node.TEXT_NODE&&u.textContent&&u.textContent.trim().length>0)return u;return null}function o(u){const d=u.querySelectorAll("br");for(let p=0;pS.appendChild(E)),_.replaceWith(S),m.remove(),p++}}}t=t.replace(/(\n)/gm," ");const s=new DOMParser().parseFromString(t,"text/html"),l=i(s.body),c=document.createElement("div");return l&&(c.appendChild(l),o(c)),c.innerHTML},mL=t=>{var i;const e=t.documentElement.getAttributeNames();if(e&&e.length>0)for(let o of e){const a=t.documentElement.getAttribute(o);if(a!=null&&a.includes("microsoft")||a!=null&&a.includes("excel"))return!0}let n=t.getElementsByTagName("meta");for(let o of n){let a=o.getAttribute("name"),s=o.getAttribute("content");if(a&&a.toLowerCase()==="generator"&&(s!=null&&s.includes("Microsoft")||s!=null&&s.includes("LibreOffice")||s!=null&&s.includes("OpenOffice")))return!0}const r=(i=t.body.innerHTML)==null?void 0:i.trim();return!!(r!=null&&r.startsWith("")))},fL=t=>{const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("p").forEach(r=>{(!r.textContent||r.textContent.trim()==="")&&r.remove()}),e.innerHTML},gL=t=>{const n=new DOMParser().parseFromString(t,"text/html"),r=document.createDocumentFragment(),i=n.body.children;for(let a of i)a.hasAttribute("data-pm-slice")?a.childNodes.forEach(s=>{r.appendChild(s.cloneNode(!0))}):r.appendChild(a.cloneNode(!0));const o=document.createElement("div");return o.appendChild(r),o.innerHTML},hL=ge.create({name:"pasteExt",priority:1e3,addProseMirrorPlugins(){return[new Se({key:new ve("aie-paste"),props:{handlePaste:(t,e)=>{if(t.props.editable&&!t.props.editable(t.state)||!e.clipboardData)return!1;const n=e.clipboardData.getData("text/plain");let r=e.clipboardData.getData("text/html");if(!r&&n){const i=this.editor.parseMarkdown(n);if(i){const{state:{tr:o},dispatch:a}=t;return a(o.replaceSelection(new H(i,0,0)).scrollIntoView()),!0}}else if(r){r=gL(r);const{options:i}=this.editor.aiEditor;if(i.htmlPasteConfig){if(i.htmlPasteConfig.pasteAsText)r=_L(r,["p","br"]);else if(i.htmlPasteConfig.pasteClean){r=pL(r,["a","span","strong","b","em","i","u"]);const s=new DOMParser().parseFromString(r,"text/html").documentElement.querySelector("body");s&&(s==null||s.querySelectorAll("*").forEach(l=>{l.removeAttribute("style")}),r=s==null?void 0:s.innerHTML)}if(i.htmlPasteConfig.removeEmptyParagraphs!==!1&&(r=fL(r)),i.htmlPasteConfig.pasteProcessor&&(r=i.htmlPasteConfig.pasteProcessor(r)),r)return this.editor.commands.insertContent(r),!0}else if(n&&r){const a=new DOMParser().parseFromString(r,"text/html"),s=a.querySelector("table");if(s&&mL(a))return this.editor.commands.insertContent(s.outerHTML,{parseOptions:{preserveWhitespace:!1}}),!0}}}}})]}}),EL=ge.create({name:"className",addOptions(){return{types:["heading","paragraph","container","codeBlock","blockquote","bulletList","orderedList","listItem","taskList","taskItem","image","video","table","iframe"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{class:{defaultValue:"",parseHTML:t=>t.getAttribute("class"),renderHTML:t=>t.class?{class:t.class}:{}}}}]},addCommands(){return{setClassName:(t,e)=>({chain:n})=>!t||!this.options.types.includes(t)?!1:n().updateAttributes(t,{class:e}).run()}},onTransaction({editor:t,transaction:e}){e.steps.length>0&&e.steps.forEach(n=>{if(n instanceof Ue){let r=!1;if(n.getMap().forEach((i,o,a,s)=>{s==a+2&&(r=!0)}),r){const o=n.slice.content.lastChild;o&&!o.textContent&&t.commands.updateAttributes(o.type,{...o.attrs,class:""})}}})}}),SL=(t,e)=>{var r,i,o,a,s,l,c,u,d,p,_,m,f,g,S,E,b,h,C,T,R,x,O,M,B,Y,$,q,V;const n=[DR.configure({codeBlock:!1,heading:!1})];return n.push(MR,wR,LR,sL,BR.configure({uploadUrl:(r=e.attachment)==null?void 0:r.uploadUrl,uploadHeaders:(i=e.attachment)==null?void 0:i.uploadHeaders,uploadFormName:(o=e.attachment)==null?void 0:o.uploadFormName,uploader:((a=e.attachment)==null?void 0:a.uploader)||e.uploader,uploaderEvent:(s=e.attachment)==null?void 0:s.uploaderEvent}),UR,rL,VR.configure({multicolor:!0}),YR,zR,$R,qR.configure({types:["heading","paragraph"]}),WR,XR.configure({allowBase64:typeof((l=e.image)==null?void 0:l.allowBase64)>"u"?!0:(c=e.image)==null?void 0:c.allowBase64,defaultSize:((u=e.image)==null?void 0:u.defaultSize)||350,uploadUrl:(d=e.image)==null?void 0:d.uploadUrl,uploadHeaders:(p=e.image)==null?void 0:p.uploadHeaders,uploadFormName:(_=e.image)==null?void 0:_.uploadFormName,uploader:((m=e.image)==null?void 0:m.uploader)||e.uploader,uploaderEvent:(f=e.image)==null?void 0:f.uploaderEvent}),eN.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0}),tN,nN,rN,typeof e.textCounter=="function"?Zp.configure({textCounter:e.textCounter}):Zp,NN.configure({openOnClick:!1,autolink:typeof((g=e.link)==null?void 0:g.autolink)>"u"?!0:(S=e.link)==null?void 0:S.autolink,HTMLAttributes:{ref:(E=e==null?void 0:e.link)==null?void 0:E.rel,class:(b=e==null?void 0:e.link)==null?void 0:b.class}}),AN,IN,xN,MN.configure({nested:!0}),PA.configure({lowlight:l2(pw),defaultLanguage:"auto",languageClassPrefix:"language-",languages:((h=e.codeBlock)==null?void 0:h.languages)||jg,codeExplainAi:((T=(C=e.ai)==null?void 0:C.codeBlock)==null?void 0:T.codeExplain)||{model:"auto",prompt:((R=e.codeBlock)==null?void 0:R.codeExplainPrompt)||"帮我对这个代码进行解释,返回代码的解释内容,注意,不需要对代码的注释进行解释"},codeCommentsAi:((O=(x=e.ai)==null?void 0:x.codeBlock)==null?void 0:O.codeComments)||{model:"auto",prompt:((M=e.codeBlock)==null?void 0:M.codeCommentsPrompt)||"帮我对这个代码添加一些注释,并返回添加注释的代码,只返回代码"}}),d2.configure({uploadUrl:(B=e.video)==null?void 0:B.uploadUrl,uploadHeaders:(Y=e.video)==null?void 0:Y.uploadHeaders,uploadFormName:($=e.video)==null?void 0:$.uploadFormName,uploader:((q=e.video)==null?void 0:q.uploader)||e.uploader,uploaderEvent:(V=e.video)==null?void 0:V.uploaderEvent}),p2,cL,uL,lL.configure({onSave:e.onSave}),hL,EL,aL,...K2(t)),e.placeholder&&n.push(Q2.configure({placeholder:e.placeholder})),n.push(nL.configure({suggestion:{items:J=>{var v;return((v=e.ai)==null?void 0:v.commands)||tL}}})),e.onMentionQuery&&n.push(eL(e.onMentionQuery)),n},bL={default:"默认",delete:"删除",confirm:"确定",cancel:"取消",resize:"调整大小",undo:"撤销",redo:"重做",brush:"格式刷",container:"高亮块",eraser:"清除格式",heading:"正文/标题","font-family":"字体","font-size":"字号",bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",link:"链接","source-code":"源代码",code:"行内代码",subscript:"下标",superscript:"上标",hr:"分割线",todo:"任务列表",emoji:"表情",highlight:"高亮","font-color":"字体颜色",align:"对齐","line-height":"行高","bullet-list":"无序列表","ordered-list":"有序列表","indent-decrease":"减少缩进","indent-increase":"增加缩进",break:"强制换行",image:"图片",video:"视频",attachment:"附件",quote:"引用","code-block":"代码块",table:"表格",printer:"打印",fullscreen:"全屏",ai:"人工智能","menu-group":"菜单组",paragraph:"正文",h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",h5:"标题 5",h6:"标题 6",standardColors:"标准色",historyColors:"最近使用",insertTable:"插入表格",row:"行",column:"列","align-left":"居左对齐","align-right":"居右对齐","align-center":"居中对齐","align-justify":"两端对齐","insert-column-left":"左侧插入列","insert-column-right":"右侧插入列","insert-row-top":"上方插入行","insert-row-bottom":"下方插入行","delete-column":"删除当前列","delete-row":"删除当前行","merge-cells-horizontal":"合并单元格","merge-cells-vertical":"合并单元格","split-cells-horizontal":"解除合并单元格","split-cells-vertical":"解除合并单元格","delete-table":"删除表格","edit-link":"编辑链接",unlink:"取消链接","visit-link":"访问链接","link-address":"链接地址","link-open-type":"打开方式","link-open-blank":"新窗口","default-font-size":"字号","default-font-family":"默认字体","codeblock-ai-auto-comment":"自动注释","codeblock-ai-code-explain":"代码解释","placeholder-tell-ai-what-to-do-next":"告诉 AI 下一步应该如何?比如:帮我翻译成英语","tip-you-can-enter-text-above-or-select-the-operation-below":"提示:您可以在上面输入文字或者选择下方的操作","you-can-do-the-following":"您可以进行以下操作:","improve-writing":"改进写作","check-spelling-and-grammar":"检查拼写和语法","make-shorter":"简化内容","make-longer":"丰富内容",translate:"翻译",summarize:"总结","ai-append":"追加","ai-replace":"替换","ai-cancel":"舍弃","ai-continuation":"AI 续写","ai-optimization":"AI 优化","ai-proofreading":"AI 校对","ai-translation":"AI 翻译"},TL={default:"Default",delete:"Delete",confirm:"Confirm",cancel:"Cancel",resize:"Resize",undo:"Undo",redo:"Redo",brush:"Format Painter",container:"Highlight container",eraser:"clear format",heading:"Paragraph/Heading","font-family":"Font Family","font-size":"Font Size",bold:"Bold",italic:"Italics",underline:"Underline",strike:"Strikethrough",link:"Link","source-code":"Source code",code:"Inline code",subscript:"Subscript",superscript:"Superscript",hr:"Dividing line",todo:"Task list",emoji:"Emoji expression",highlight:"Highlight","font-color":"Font color",align:"Alignment","line-height":"Line height","bullet-list":"Unordered list","ordered-list":"Ordered list","indent-decrease":"Decrease indent","indent-increase":"Increase indent",break:"Force line break",image:"Image",video:"video",attachment:"Attachment",quote:"Quote","code-block":"Code block",table:"Table",printer:"Print",fullscreen:"Full screen",ai:"AI","menu-group":"Menu Group",paragraph:"Paragraph",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",standardColors:"Standard colors",historyColors:"Recently used colors",insertTable:"Insert Table",row:"Row",column:"Column","align-left":"Align left","align-right":"Align right","align-center":"Align center","align-justify":"Align justify","insert-column-left":"Insert column left","insert-column-right":"Insert column right","insert-row-top":"Insert row top","insert-row-bottom":"Insert row bottom","delete-column":"Delete column","delete-row":"Delete row","merge-cells-horizontal":"Merge cells","merge-cells-vertical":"Merge cells","split-cells-horizontal":"Split cells","split-cells-vertical":"Split cells","delete-table":"Delete table","edit-link":"Edit link",unlink:"Unlink","visit-link":"Visit link","link-address":"Link address","link-open-type":"Open type","link-open-blank":"Blank","default-font-size":"Size","default-font-family":"Default font","codeblock-ai-auto-comment":"auto comment","codeblock-ai-code-explain":"code explain","placeholder-tell-ai-what-to-do-next":"Tell AI what to do next? e.g., help me translate into English","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: You can enter text above or select the operation below","you-can-do-the-following":"You can do the following:","improve-writing":"Improve your writing","check-spelling-and-grammar":"Check spelling and grammar","make-shorter":"Make shorter","make-longer":"Make longer",translate:"Translate",summarize:"Summarize","ai-append":"Append","ai-replace":"Replace","ai-cancel":"Cancel","ai-continuation":"Continuation","ai-optimization":"Optimization","ai-proofreading":"Proofreading","ai-translation":"Translation"},CL={default:"Standard",delete:"Löschen",confirm:"Bestätigen",cancel:"Abbrechen",resize:"Größe ändern",undo:"Rückgängig",redo:"Wiederholen",brush:"Format übertragen",container:"Auswahl hervorheben",eraser:"Format löschen",heading:"Absatz/Überschrift","font-family":"Schriftart","font-size":"Schriftgröße",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",strike:"Durchgestrichen",link:"Link","source-code":"Quellcode",code:"Inline-Code",subscript:"Tiefgestellt",superscript:"Hochgestellt",hr:"Trennlinie",todo:"Aufgabenliste",emoji:"Emojis",highlight:"Hervorheben","font-color":"Schriftfarbe",align:"Ausrichtung","line-height":"Zeilenhöhe","bullet-list":"Aufzählungsliste","ordered-list":"Nummerierte Liste","indent-decrease":"Einzug verkleinern","indent-increase":"Einzug vergrößern",break:"Zeilenumbruch erzwingen",image:"Bild",video:"Video",attachment:"Anhang",quote:"Zitat","code-block":"Codeblock",table:"Tabelle",printer:"Drucken",fullscreen:"Vollbild",ai:"KI","menu-group":"Menügruppe",paragraph:"Absatz",h1:"Überschrift 1",h2:"Überschrift 2",h3:"Überschrift 3",h4:"Überschrift 4",h5:"Überschrift 5",h6:"Überschrift 6",standardColors:"Standardfarben",historyColors:"Zuletzt verwendete Farben",insertTable:"Tabelle einfügen",row:"Zeile",column:"Spalte","align-left":"Linksbündig","align-right":"Rechtsbündig","align-center":"Zentriert","align-justify":"Blocksatz","insert-column-left":"Spalte links einfügen","insert-column-right":"Spalte rechts einfügen","insert-row-top":"Zeile oben einfügen","insert-row-bottom":"Zeile unten einfügen","delete-column":"Spalte löschen","delete-row":"Zeile löschen","merge-cells-horizontal":"Zellen horizontal verbinden","merge-cells-vertical":"Zellen vertikal verbinden","split-cells-horizontal":"Zellen horizontal teilen","split-cells-vertical":"Zellen vertikal teilen","delete-table":"Tabelle löschen","edit-link":"Link bearbeiten",unlink:"Link entfernen","visit-link":"Link besuchen","link-address":"Link-Adresse","link-open-type":"Link öffnen in...","link-open-blank":"Neues Fenster","default-font-size":"Schriftgröße","default-font-family":"Standardschriftart","codeblock-ai-auto-comment":"Automatischer Kommentar","codeblock-ai-code-explain":"Code-Erklärung","placeholder-tell-ai-what-to-do-next":"Sagen Sie der KI, was als Nächstes zu tun ist, z.B. helfen Sie mir, ins Englische zu übersetzen","tip-you-can-enter-text-above-or-select-the-operation-below":"Tipp: Sie können oben Text eingeben oder die untenstehende Operation auswählen","you-can-do-the-following":"Sie können Folgendes tun:","improve-writing":"Schreiben verbessern","check-spelling-and-grammar":"Rechtschreibung und Grammatik prüfen","make-shorter":"Kürzen","make-longer":"Verlängern",translate:"Übersetzen",summarize:"Zusammenfassen","ai-append":"Anhängen","ai-replace":"Ersetzen","ai-cancel":"Abbrechen","ai-continuation":"Vorschläge für Fortsetzung","ai-optimization":"Optimierung","ai-proofreading":"Korrekturlesen","ai-translation":"Übersetzung"},yL={default:"Padrão",delete:"Excluir",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Desfazer",redo:"Refazer",brush:"Pincel",container:"Destacar seleção",eraser:"Apagar formatação",heading:"Cabeçalho","font-family":"Fonte","font-size":"Tamanho da fonte",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strike:"Tachado",link:"Link","source-code":"Código-fonte",code:"Código em linha",subscript:"Subscrito",superscript:"Sobrescrito",hr:"Linha horizontal",todo:"Lista de tarefas",emoji:"Emoji",highlight:"Destacar","font-color":"Cor da fonte",align:"Alinhamento","line-height":"Altura da linha","bullet-list":"Lista com marcadores","ordered-list":"Lista numerada","indent-decrease":"Diminuir recuo","indent-increase":"Aumentar recuo",break:"Quebra de linha",image:"Imagem",video:"Vídeo",attachment:"Anexo",quote:"Citação","code-block":"Bloco de código",table:"Tabela",printer:"Imprimir",fullscreen:"Tela cheia",ai:"IA","menu-group":"Grupo de menu",paragraph:"Parágrafo",h1:"Cabeçalho 1",h2:"Cabeçalho 2",h3:"Cabeçalho 3",h4:"Cabeçalho 4",h5:"Cabeçalho 5",h6:"Cabeçalho 6",standardColors:"Cores padrão",historyColors:"Cores recentes",insertTable:"Inserir tabela",row:"Linha",column:"Coluna","align-left":"Alinhar à esquerda","align-right":"Alinhar à direita","align-center":"Centralizar","align-justify":"Justificar","insert-column-left":"Inserir coluna à esquerda","insert-column-right":"Inserir coluna à direita","insert-row-top":"Inserir linha acima","insert-row-bottom":"Inserir linha abaixo","delete-column":"Excluir coluna","delete-row":"Excluir linha","merge-cells-horizontal":"Mesclar células horizontalmente","merge-cells-vertical":"Mesclar células verticalmente","split-cells-horizontal":"Dividir células horizontalmente","split-cells-vertical":"Dividir células verticalmente","delete-table":"Excluir tabela","edit-link":"Editar link",unlink:"Remover link","visit-link":"Visitar link","link-address":"Endereço do link","link-open-type":"Abrir link em...","link-open-blank":"Nova janela","default-font-size":"Tamanho padrão da fonte","default-font-family":"Fonte padrão","codeblock-ai-auto-comment":"Comentário automático","codeblock-ai-code-explain":"Explicação do código","placeholder-tell-ai-what-to-do-next":"Diga à IA o que fazer a seguir, por exemplo, ajude-me a traduzir para o inglês","tip-you-can-enter-text-above-or-select-the-operation-below":"Dica: Você pode digitar o texto acima ou selecionar a operação abaixo","you-can-do-the-following":"Você pode fazer o seguinte:","improve-writing":"Melhorar escrita","check-spelling-and-grammar":"Verificar ortografia e gramática","make-shorter":"Encurtar","make-longer":"Alongar",translate:"Traduzir",summarize:"Resumir","ai-append":"Anexar","ai-replace":"Substituir","ai-cancel":"Cancelar","ai-continuation":"Sugestões de continuação","ai-optimization":"Otimização","ai-proofreading":"Revisão","ai-translation":"Tradução"},vL={default:"Predeterminado",delete:"Eliminar",confirm:"Confirmar",cancel:"Cancelar",resize:"Redimensionar",undo:"Deshacer",redo:"Rehacer",brush:"Pincel de formato",container:"Bloque resaltado",eraser:"Borrar formato",heading:"Texto/Título","font-family":"Fuente","font-size":"Tamaño de fuente",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strike:"Tachado",link:"Enlace","source-code":"Código fuente",code:"Código en línea",subscript:"Subíndice",superscript:"Superíndice",hr:"Línea divisoria",todo:"Lista de tareas",emoji:"Emoji",highlight:"Resaltar","font-color":"Color de fuente",align:"Alinear","line-height":"Altura de línea","bullet-list":"Lista desordenada","ordered-list":"Lista ordenada","indent-decrease":"Disminuir sangría","indent-increase":"Aumentar sangría",break:"Salto de línea",image:"Imagen",video:"Video",attachment:"Adjunto",quote:"Cita","code-block":"Bloque de código",table:"Tabla",printer:"Imprimir",fullscreen:"Pantalla completa",ai:"Inteligencia artificial","menu-group":"Grupo de menú",paragraph:"Párrafo",h1:"Encabezado 1",h2:"Encabezado 2",h3:"Encabezado 3",h4:"Encabezado 4",h5:"Encabezado 5",h6:"Encabezado 6",standardColors:"Colores estándar",historyColors:"Usado recientemente",insertTable:"Insertar tabla",row:"Fila",column:"Columna","align-left":"Alinear a la izquierda","align-right":"Alinear a la derecha","align-center":"Alinear al centro","align-justify":"Justificar","insert-column-left":"Insertar columna a la izquierda","insert-column-right":"Insertar columna a la derecha","insert-row-top":"Insertar fila arriba","insert-row-bottom":"Insertar fila abajo","delete-column":"Eliminar columna","delete-row":"Eliminar fila","merge-cells-horizontal":"Combinar celdas horizontalmente","merge-cells-vertical":"Combinar celdas verticalmente","split-cells-horizontal":"Dividir celdas horizontalmente","split-cells-vertical":"Dividir celdas verticalmente","delete-table":"Eliminar tabla","edit-link":"Editar enlace",unlink:"Eliminar enlace","visit-link":"Visitar enlace","link-address":"Dirección del enlace","link-open-type":"Tipo de apertura","link-open-blank":"Nueva ventana","default-font-size":"Tamaño de fuente predeterminado","default-font-family":"Fuente predeterminada","codeblock-ai-auto-comment":"Comentario automático","codeblock-ai-code-explain":"Explicación del código","placeholder-tell-ai-what-to-do-next":"Dile a la IA qué hacer a continuación. Ejemplo: Traducir al inglés","tip-you-can-enter-text-above-or-select-the-operation-below":"Sugerencia: Puedes ingresar el texto arriba o seleccionar una operación abajo","you-can-do-the-following":"Puedes hacer lo siguiente:","improve-writing":"Mejorar escritura","check-spelling-and-grammar":"Revisar ortografía y gramática","make-shorter":"Hacer más corto","make-longer":"Hacer más largo",translate:"Traducir",summarize:"Resumir","ai-append":"Añadir","ai-replace":"Reemplazar","ai-cancel":"Cancelar","ai-continuation":"Continuación con IA","ai-optimization":"Optimización con IA","ai-proofreading":"Corrección con IA","ai-translation":"Traducción con IA"},RL={default:"डिफ़ॉल्ट",delete:"हटाएं",confirm:"पुष्टि करें",cancel:"रद्द करें",resize:"आकार बदलें",undo:"पूर्ववत करें",redo:"फिर से करें",brush:"फॉर्मेट ब्रश",container:"हाइलाइट ब्लॉक",eraser:"फॉर्मेट साफ़ करें",heading:"पाठ/शीर्षक","font-family":"फ़ॉन्ट","font-size":"फ़ॉन्ट आकार",bold:"बोल्ड",italic:"इटैलिक",underline:"रेखांकन",strike:"स्ट्राइकथ्रू",link:"लिंक","source-code":"स्रोत कोड",code:"इनलाइन कोड",subscript:"सबस्क्रिप्ट",superscript:"सुपरस्क्रिप्ट",hr:"विभाजक रेखा",todo:"कार्य सूची",emoji:"इमोजी",highlight:"हाइलाइट","font-color":"फ़ॉन्ट रंग",align:"संरेखित करें","line-height":"लाइन हाइट","bullet-list":"बिना क्रम वाली सूची","ordered-list":"क्रमबद्ध सूची","indent-decrease":"इंडेंट घटाएं","indent-increase":"इंडेंट बढ़ाएं",break:"लाइन ब्रेक",image:"चित्र",video:"वीडियो",attachment:"अनुलग्नक",quote:"उद्धरण","code-block":"कोड ब्लॉक",table:"तालिका",printer:"प्रिंट करें",fullscreen:"पूर्ण स्क्रीन",ai:"कृत्रिम बुद्धिमत्ता","menu-group":"मेनू समूह",paragraph:"पैराग्राफ",h1:"शीर्षक 1",h2:"शीर्षक 2",h3:"शीर्षक 3",h4:"शीर्षक 4",h5:"शीर्षक 5",h6:"शीर्षक 6",standardColors:"मानक रंग",historyColors:"हालिया रंग",insertTable:"तालिका सम्मिलित करें",row:"पंक्ति",column:"स्तंभ","align-left":"बाएं संरेखित","align-right":"दाएं संरेखित","align-center":"केंद्र संरेखित","align-justify":"दोनों तरफ संरेखित","insert-column-left":"बाईं ओर स्तंभ जोड़ें","insert-column-right":"दाईं ओर स्तंभ जोड़ें","insert-row-top":"ऊपर पंक्ति जोड़ें","insert-row-bottom":"नीचे पंक्ति जोड़ें","delete-column":"स्तंभ हटाएं","delete-row":"पंक्ति हटाएं","merge-cells-horizontal":"सेलों को क्षैतिज मिलाएं","merge-cells-vertical":"सेलों को लंबवत मिलाएं","split-cells-horizontal":"सेलों को क्षैतिज विभाजित करें","split-cells-vertical":"सेलों को लंबवत विभाजित करें","delete-table":"तालिका हटाएं","edit-link":"लिंक संपादित करें",unlink:"लिंक हटाएं","visit-link":"लिंक पर जाएं","link-address":"लिंक पता","link-open-type":"लिंक खोलने का प्रकार","link-open-blank":"नई विंडो","default-font-size":"डिफ़ॉल्ट फ़ॉन्ट आकार","default-font-family":"डिफ़ॉल्ट फ़ॉन्ट","codeblock-ai-auto-comment":"स्वचालित टिप्पणी","codeblock-ai-code-explain":"कोड व्याख्या","placeholder-tell-ai-what-to-do-next":"AI को बताएं कि अगला कदम क्या होना चाहिए? उदाहरण: कृपया इसे अंग्रेजी में अनुवाद करें","tip-you-can-enter-text-above-or-select-the-operation-below":"सुझाव: आप ऊपर टेक्स्ट दर्ज कर सकते हैं या नीचे दिए गए ऑपरेशन का चयन कर सकते हैं","you-can-do-the-following":"आप निम्नलिखित कर सकते हैं:","improve-writing":"लेखन सुधारें","check-spelling-and-grammar":"वर्तनी और व्याकरण जांचें","make-shorter":"छोटा करें","make-longer":"लंबा करें",translate:"अनुवाद करें",summarize:"सारांश","ai-append":"जोड़ें","ai-replace":"बदलें","ai-cancel":"रद्द करें","ai-continuation":"AI जारी रखें","ai-optimization":"AI अनुकूलन","ai-proofreading":"AI प्रूफरीडिंग","ai-translation":"AI अनुवाद"},OL={default:"Default",delete:"Hapus",confirm:"Konfirmasi",cancel:"Batal",resize:"Ubah ukuran",undo:"Batalkan",redo:"Ulangi",brush:"Kuas format",container:"Blok sorot",eraser:"Hapus format",heading:"Teks/Judul","font-family":"Font","font-size":"Ukuran font",bold:"Tebal",italic:"Miring",underline:"Garis bawah",strike:"Garis coret",link:"Tautan","source-code":"Kode sumber",code:"Kode dalam baris",subscript:"Subskrip",superscript:"Superskrip",hr:"Garis pemisah",todo:"Daftar tugas",emoji:"Emoji",highlight:"Sorot","font-color":"Warna font",align:"Rata","line-height":"Tinggi baris","bullet-list":"Daftar tak berurut","ordered-list":"Daftar berurut","indent-decrease":"Kurangi inden","indent-increase":"Tambah inden",break:"Pecah baris",image:"Gambar",video:"Video",attachment:"Lampiran",quote:"Kutipan","code-block":"Blok kode",table:"Tabel",printer:"Cetak",fullscreen:"Layar penuh",ai:"Kecerdasan buatan","menu-group":"Grup menu",paragraph:"Teks",h1:"Judul 1",h2:"Judul 2",h3:"Judul 3",h4:"Judul 4",h5:"Judul 5",h6:"Judul 6",standardColors:"Warna standar",historyColors:"Warna terbaru",insertTable:"Sisipkan tabel",row:"Baris",column:"Kolom","align-left":"Rata kiri","align-right":"Rata kanan","align-center":"Rata tengah","align-justify":"Rata kedua sisi","insert-column-left":"Sisipkan kolom di kiri","insert-column-right":"Sisipkan kolom di kanan","insert-row-top":"Sisipkan baris di atas","insert-row-bottom":"Sisipkan baris di bawah","delete-column":"Hapus kolom","delete-row":"Hapus baris","merge-cells-horizontal":"Gabungkan sel horizontal","merge-cells-vertical":"Gabungkan sel vertikal","split-cells-horizontal":"Pisahkan sel horizontal","split-cells-vertical":"Pisahkan sel vertikal","delete-table":"Hapus tabel","edit-link":"Edit tautan",unlink:"Hapus tautan","visit-link":"Kunjungi tautan","link-address":"Alamat tautan","link-open-type":"Jenis pembukaan tautan","link-open-blank":"Jendela baru","default-font-size":"Ukuran font","default-font-family":"Font default","codeblock-ai-auto-comment":"Komentar otomatis","codeblock-ai-code-explain":"Penjelasan kode","placeholder-tell-ai-what-to-do-next":"Beritahu AI langkah berikutnya? Contoh: Bantu saya terjemahkan ke bahasa Inggris","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: Anda bisa memasukkan teks di atas atau memilih operasi di bawah","you-can-do-the-following":"Anda dapat melakukan hal-hal berikut:","improve-writing":"Tingkatkan tulisan","check-spelling-and-grammar":"Periksa ejaan dan tata bahasa","make-shorter":"Buat lebih singkat","make-longer":"Buat lebih panjang",translate:"Terjemahkan",summarize:"Ringkas","ai-append":"Tambahkan","ai-replace":"Ganti","ai-cancel":"Batalkan","ai-continuation":"AI Lanjutkan","ai-optimization":"AI Optimasi","ai-proofreading":"AI Koreksi","ai-translation":"AI Terjemahan"},NL={default:"デフォルト",delete:"削除",confirm:"確認",cancel:"キャンセル",resize:"サイズ調整",undo:"元に戻す",redo:"やり直す",brush:"フォーマットブラシ",container:"ハイライトブロック",eraser:"フォーマットクリア",heading:"テキスト/見出し","font-family":"フォント","font-size":"フォントサイズ",bold:"太字",italic:"斜体",underline:"下線",strike:"取り消し線",link:"リンク","source-code":"ソースコード",code:"インラインコード",subscript:"下付き文字",superscript:"上付き文字",hr:"区切り線",todo:"タスクリスト",emoji:"絵文字",highlight:"ハイライト","font-color":"フォントカラー",align:"配置","line-height":"行の高さ","bullet-list":"箇条書きリスト","ordered-list":"番号付きリスト","indent-decrease":"インデントを減らす","indent-increase":"インデントを増やす",break:"改行",image:"画像",video:"ビデオ",attachment:"添付ファイル",quote:"引用","code-block":"コードブロック",table:"テーブル",printer:"印刷",fullscreen:"全画面",ai:"AI","menu-group":"メニューグループ",paragraph:"段落",h1:"見出し 1",h2:"見出し 2",h3:"見出し 3",h4:"見出し 4",h5:"見出し 5",h6:"見出し 6",standardColors:"標準色",historyColors:"最近使用した色",insertTable:"テーブル挿入",row:"行",column:"列","align-left":"左揃え","align-right":"右揃え","align-center":"中央揃え","align-justify":"両端揃え","insert-column-left":"左に列を挿入","insert-column-right":"右に列を挿入","insert-row-top":"上に行を挿入","insert-row-bottom":"下に行を挿入","delete-column":"列を削除","delete-row":"行を削除","merge-cells-horizontal":"セルを横に結合","merge-cells-vertical":"セルを縦に結合","split-cells-horizontal":"セルを横に分割","split-cells-vertical":"セルを縦に分割","delete-table":"テーブルを削除","edit-link":"リンク編集",unlink:"リンク解除","visit-link":"リンクを訪問","link-address":"リンクアドレス","link-open-type":"開き方","link-open-blank":"新しいウィンドウで開く","default-font-size":"デフォルトフォントサイズ","default-font-family":"デフォルトフォント","codeblock-ai-auto-comment":"自動コメント","codeblock-ai-code-explain":"コードの説明","placeholder-tell-ai-what-to-do-next":"次にAIに何をさせるか教えてください。例:英語に翻訳して","tip-you-can-enter-text-above-or-select-the-operation-below":"ヒント:上にテキストを入力するか、下の操作を選択できます","you-can-do-the-following":"次の操作ができます:","improve-writing":"文章を改善","check-spelling-and-grammar":"スペルと文法のチェック","make-shorter":"短くする","make-longer":"長くする",translate:"翻訳",summarize:"要約","ai-append":"追加","ai-replace":"置換","ai-cancel":"キャンセル","ai-continuation":"AI継続","ai-optimization":"AI最適化","ai-proofreading":"AI校正","ai-translation":"AI翻訳"},AL={default:"기본값",delete:"삭제",confirm:"확인",cancel:"취소",resize:"크기 조정",undo:"실행 취소",redo:"다시 실행",brush:"형식 브러시",container:"강조 블록",eraser:"서식 지우기",heading:"본문/제목","font-family":"글꼴","font-size":"글꼴 크기",bold:"굵게",italic:"기울임꼴",underline:"밑줄",strike:"취소선",link:"링크","source-code":"소스 코드",code:"인라인 코드",subscript:"아래 첨자",superscript:"위 첨자",hr:"구분선",todo:"할 일 목록",emoji:"이모지",highlight:"강조","font-color":"글꼴 색상",align:"정렬","line-height":"줄 간격","bullet-list":"글머리 기호 목록","ordered-list":"번호 목록","indent-decrease":"들여쓰기 줄이기","indent-increase":"들여쓰기 늘리기",break:"줄바꿈",image:"이미지",video:"비디오",attachment:"첨부 파일",quote:"인용","code-block":"코드 블록",table:"테이블",printer:"인쇄",fullscreen:"전체 화면",ai:"AI","menu-group":"메뉴 그룹",paragraph:"본문",h1:"제목 1",h2:"제목 2",h3:"제목 3",h4:"제목 4",h5:"제목 5",h6:"제목 6",standardColors:"표준 색상",historyColors:"최근 사용 색상",insertTable:"테이블 삽입",row:"행",column:"열","align-left":"왼쪽 정렬","align-right":"오른쪽 정렬","align-center":"가운데 정렬","align-justify":"양쪽 맞춤","insert-column-left":"왼쪽에 열 삽입","insert-column-right":"오른쪽에 열 삽입","insert-row-top":"위쪽에 행 삽입","insert-row-bottom":"아래쪽에 행 삽입","delete-column":"열 삭제","delete-row":"행 삭제","merge-cells-horizontal":"셀 병합","merge-cells-vertical":"셀 세로 병합","split-cells-horizontal":"셀 가로 분할","split-cells-vertical":"셀 세로 분할","delete-table":"테이블 삭제","edit-link":"링크 편집",unlink:"링크 해제","visit-link":"링크 방문","link-address":"링크 주소","link-open-type":"열기 유형","link-open-blank":"새 창","default-font-size":"기본 글꼴 크기","default-font-family":"기본 글꼴","codeblock-ai-auto-comment":"자동 주석","codeblock-ai-code-explain":"코드 설명","placeholder-tell-ai-what-to-do-next":"AI에게 다음 작업을 지시하세요. 예: 영어로 번역해 주세요","tip-you-can-enter-text-above-or-select-the-operation-below":"팁: 위에 텍스트를 입력하거나 아래 작업을 선택할 수 있습니다","you-can-do-the-following":"다음 작업을 수행할 수 있습니다:","improve-writing":"글쓰기 개선","check-spelling-and-grammar":"철자 및 문법 검사","make-shorter":"짧게 만들기","make-longer":"길게 만들기",translate:"번역",summarize:"요약","ai-append":"추가","ai-replace":"대체","ai-cancel":"취소","ai-continuation":"AI 계속","ai-optimization":"AI 최적화","ai-proofreading":"AI 교정","ai-translation":"AI 번역"},IL={default:"ค่าเริ่มต้น",delete:"ลบ",confirm:"ยืนยัน",cancel:"ยกเลิก",resize:"ปรับขนาด",undo:"เลิกทำ",redo:"ทำซ้ำ",brush:"แปรงรูปแบบ",container:"บล็อกไฮไลท์",eraser:"ล้างรูปแบบ",heading:"ข้อความ/หัวข้อ","font-family":"แบบอักษร","font-size":"ขนาดตัวอักษร",bold:"ตัวหนา",italic:"ตัวเอียง",underline:"ขีดเส้นใต้",strike:"ขีดฆ่า",link:"ลิงก์","source-code":"โค้ดต้นฉบับ",code:"โค้ดในบรรทัด",subscript:"ตัวห้อย",superscript:"ตัวยก",hr:"เส้นแบ่ง",todo:"รายการสิ่งที่ต้องทำ",emoji:"อีโมจิ",highlight:"ไฮไลท์","font-color":"สีตัวอักษร",align:"จัดแนว","line-height":"ความสูงบรรทัด","bullet-list":"รายการจุด","ordered-list":"รายการลำดับ","indent-decrease":"ลดการเยื้อง","indent-increase":"เพิ่มการเยื้อง",break:"ขึ้นบรรทัดใหม่",image:"รูปภาพ",video:"วิดีโอ",attachment:"ไฟล์แนบ",quote:"อ้างอิง","code-block":"บล็อกโค้ด",table:"ตาราง",printer:"พิมพ์",fullscreen:"เต็มจอ",ai:"ปัญญาประดิษฐ์","menu-group":"กลุ่มเมนู",paragraph:"ข้อความ",h1:"หัวข้อ 1",h2:"หัวข้อ 2",h3:"หัวข้อ 3",h4:"หัวข้อ 4",h5:"หัวข้อ 5",h6:"หัวข้อ 6",standardColors:"สีมาตรฐาน",historyColors:"ใช้ล่าสุด",insertTable:"แทรกตาราง",row:"แถว",column:"คอลัมน์","align-left":"จัดชิดซ้าย","align-right":"จัดชิดขวา","align-center":"จัดกึ่งกลาง","align-justify":"จัดเต็มหน้า","insert-column-left":"แทรกคอลัมน์ด้านซ้าย","insert-column-right":"แทรกคอลัมน์ด้านขวา","insert-row-top":"แทรกแถวด้านบน","insert-row-bottom":"แทรกแถวด้านล่าง","delete-column":"ลบคอลัมน์","delete-row":"ลบแถว","merge-cells-horizontal":"ผสานเซลล์ตามแนวนอน","merge-cells-vertical":"ผสานเซลล์ตามแนวตั้ง","split-cells-horizontal":"แยกเซลล์แนวนอน","split-cells-vertical":"แยกเซลล์แนวตั้ง","delete-table":"ลบตาราง","edit-link":"แก้ไขลิงก์",unlink:"ยกเลิกการเชื่อมโยง","visit-link":"เยี่ยมชมลิงก์","link-address":"ที่อยู่ลิงก์","link-open-type":"วิธีการเปิด","link-open-blank":"หน้าต่างใหม่","default-font-size":"ขนาดตัวอักษร","default-font-family":"แบบอักษรเริ่มต้น","codeblock-ai-auto-comment":"คอมเมนต์อัตโนมัติ","codeblock-ai-code-explain":"อธิบายโค้ด","placeholder-tell-ai-what-to-do-next":"บอก AI ว่าต้องทำอะไรต่อไป เช่น ช่วยแปลเป็นภาษาอังกฤษ","tip-you-can-enter-text-above-or-select-the-operation-below":"เคล็ดลับ: คุณสามารถป้อนข้อความข้างบนหรือเลือกการดำเนินการด้านล่าง","you-can-do-the-following":"คุณสามารถทำสิ่งต่อไปนี้:","improve-writing":"ปรับปรุงการเขียน","check-spelling-and-grammar":"ตรวจสอบการสะกดและไวยากรณ์","make-shorter":"ทำให้สั้นลง","make-longer":"ทำให้ยาวขึ้น",translate:"แปล",summarize:"สรุป","ai-append":"เพิ่ม","ai-replace":"แทนที่","ai-cancel":"ยกเลิก","ai-continuation":"AI เขียนต่อ","ai-optimization":"AI ปรับแต่ง","ai-proofreading":"AI พิสูจน์อักษร","ai-translation":"AI แปล"},xL={default:"Mặc định",delete:"Xóa",confirm:"Xác nhận",cancel:"Hủy",resize:"Điều chỉnh kích thước",undo:"Hoàn tác",redo:"Làm lại",brush:"Chổi định dạng",container:"Khối nổi bật",eraser:"Xóa định dạng",heading:"Nội dung/Đầu đề","font-family":"Phông chữ","font-size":"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",underline:"Gạch chân",strike:"Gạch ngang",link:"Liên kết","source-code":"Mã nguồn",code:"Mã trong dòng",subscript:"Chỉ số dưới",superscript:"Chỉ số trên",hr:"Đường phân cách",todo:"Danh sách công việc",emoji:"Biểu tượng cảm xúc",highlight:"Đánh dấu","font-color":"Màu chữ",align:"Căn chỉnh","line-height":"Chiều cao dòng","bullet-list":"Danh sách dấu chấm","ordered-list":"Danh sách có thứ tự","indent-decrease":"Giảm thụt lề","indent-increase":"Tăng thụt lề",break:"Xuống dòng",image:"Hình ảnh",video:"Video",attachment:"Tệp đính kèm",quote:"Trích dẫn","code-block":"Khối mã",table:"Bảng",printer:"In",fullscreen:"Toàn màn hình",ai:"Trí tuệ nhân tạo","menu-group":"Nhóm menu",paragraph:"Nội dung",h1:"Tiêu đề 1",h2:"Tiêu đề 2",h3:"Tiêu đề 3",h4:"Tiêu đề 4",h5:"Tiêu đề 5",h6:"Tiêu đề 6",standardColors:"Màu tiêu chuẩn",historyColors:"Màu đã dùng gần đây",insertTable:"Chèn bảng",row:"Hàng",column:"Cột","align-left":"Căn trái","align-right":"Căn phải","align-center":"Căn giữa","align-justify":"Căn đều","insert-column-left":"Chèn cột bên trái","insert-column-right":"Chèn cột bên phải","insert-row-top":"Chèn hàng phía trên","insert-row-bottom":"Chèn hàng phía dưới","delete-column":"Xóa cột hiện tại","delete-row":"Xóa hàng hiện tại","merge-cells-horizontal":"Gộp ô ngang","merge-cells-vertical":"Gộp ô dọc","split-cells-horizontal":"Tách ô ngang","split-cells-vertical":"Tách ô dọc","delete-table":"Xóa bảng","edit-link":"Chỉnh sửa liên kết",unlink:"Hủy liên kết","visit-link":"Truy cập liên kết","link-address":"Địa chỉ liên kết","link-open-type":"Cách mở liên kết","link-open-blank":"Cửa sổ mới","default-font-size":"Cỡ chữ","default-font-family":"Phông chữ mặc định","codeblock-ai-auto-comment":"Nhận xét tự động","codeblock-ai-code-explain":"Giải thích mã","placeholder-tell-ai-what-to-do-next":"Nói với AI bước tiếp theo là gì? Ví dụ: Giúp tôi dịch sang tiếng Anh","tip-you-can-enter-text-above-or-select-the-operation-below":"Mẹo: Bạn có thể nhập văn bản phía trên hoặc chọn thao tác bên dưới","you-can-do-the-following":"Bạn có thể thực hiện các thao tác sau:","improve-writing":"Cải thiện bài viết","check-spelling-and-grammar":"Kiểm tra chính tả và ngữ pháp","make-shorter":"Rút gọn","make-longer":"Mở rộng nội dung",translate:"Dịch",summarize:"Tóm tắt","ai-append":"Thêm vào","ai-replace":"Thay thế","ai-cancel":"Hủy","ai-continuation":"AI Viết tiếp","ai-optimization":"AI Tối ưu hóa","ai-proofreading":"AI Hiệu đính","ai-translation":"AI Dịch"},k_={};function DL(t){let e=k_[t];if(e)return e;e=k_[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);e.push(r)}for(let n=0;n=55296&&u<=57343?i+="���":i+=String.fromCharCode(u),o+=6;continue}}if((s&248)===240&&o+91114111?i+="����":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="�"}return i})}di.defaultChars=";/?:@&=+$,#";di.componentChars="";const P_={};function ML(t){let e=P_[t];if(e)return e;e=P_[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const r=ML(e);let i="";for(let o=0,a=t.length;o=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){i+=encodeURIComponent(t[o]+t[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[o])}return i}So.defaultChars=";/?:@&=+$,-_.!~*'()#";So.componentChars="-_.!~*'()";function Su(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function Ka(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const wL=/^([a-z0-9.+-]+:)/i,LL=/:[0-9]*$/,kL=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,PL=["<",">",'"',"`"," ","\r",` +`," "],FL=["{","}","|","\\","^","`"].concat(PL),BL=["'"].concat(FL),F_=["%","/","?",";","#"].concat(BL),B_=["/","?","#"],UL=255,U_=/^[+a-z0-9A-Z_-]{0,63}$/,HL=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H_={javascript:!0,"javascript:":!0},G_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function bu(t,e){if(t&&t instanceof Ka)return t;const n=new Ka;return n.parse(t,e),n}Ka.prototype.parse=function(t,e){let n,r,i,o=t;if(o=o.trim(),!e&&t.split("#").length===1){const c=kL.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=wL.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(e||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&H_[a])&&(o=o.substr(2),this.slashes=!0)),!H_[a]&&(i||a&&!G_[a])){let c=-1;for(let m=0;m127?E+="x":E+=S[b];if(!E.match(U_)){const b=m.slice(0,f),h=m.slice(f+1),C=S.match(HL);C&&(b.push(C[1]),h.unshift(C[2])),h.length&&(o=h.join(".")+o),this.hostname=b.join(".");break}}}}this.hostname.length>UL&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),G_[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ka.prototype.parseHost=function(t){let e=LL.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const GL=Object.freeze(Object.defineProperty({__proto__:null,decode:di,encode:So,format:Su,parse:bu},Symbol.toStringTag,{value:"Module"})),Mh=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wh=/[\0-\x1F\x7F-\x9F]/,VL=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Tu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Lh=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,kh=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,YL=Object.freeze(Object.defineProperty({__proto__:null,Any:Mh,Cc:wh,Cf:VL,P:Tu,S:Lh,Z:kh},Symbol.toStringTag,{value:"Module"})),zL=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),$L=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var El;const qL=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),WL=(El=String.fromCodePoint)!==null&&El!==void 0?El:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function KL(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=qL.get(t))!==null&&e!==void 0?e:t}var Ye;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ye||(Ye={}));const QL=32;var Fn;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Fn||(Fn={}));function fc(t){return t>=Ye.ZERO&&t<=Ye.NINE}function ZL(t){return t>=Ye.UPPER_A&&t<=Ye.UPPER_F||t>=Ye.LOWER_A&&t<=Ye.LOWER_F}function XL(t){return t>=Ye.UPPER_A&&t<=Ye.UPPER_Z||t>=Ye.LOWER_A&&t<=Ye.LOWER_Z||fc(t)}function jL(t){return t===Ye.EQUALS||XL(t)}var Ve;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Ve||(Ve={}));var xn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(xn||(xn={}));class JL{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xn.Strict}startEntity(e){this.decodeMode=e,this.state=Ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Ve.EntityStart:return e.charCodeAt(n)===Ye.NUM?(this.state=Ve.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Ve.NamedEntity,this.stateNamedEntity(e,n));case Ve.NumericStart:return this.stateNumericStart(e,n);case Ve.NumericDecimal:return this.stateNumericDecimal(e,n);case Ve.NumericHex:return this.stateNumericHex(e,n);case Ve.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|QL)===Ye.LOWER_X?(this.state=Ve.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Ve.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(e.substr(n,o),i),this.consumed+=o}}stateNumericHex(e,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Ye.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==xn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&Fn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~Fn.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Ve.NamedEntity:return this.result!==0&&(this.decodeMode!==xn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ve.NumericDecimal:return this.emitNumericEntity(0,2);case Ve.NumericHex:return this.emitNumericEntity(0,3);case Ve.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ve.EntityStart:return 0}}}function Ph(t){let e="";const n=new JL(t,r=>e+=WL(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){e+=i.slice(a,s),n.startEntity(o);const c=n.write(i,s+1);if(c<0){a=s+n.end();break}a=s+c,s=c===0?a+1:a}const l=e+i.slice(a);return e="",l}}function ek(t,e,n,r){const i=(e&Fn.BRANCH_LENGTH)>>7,o=e&Fn.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:t[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,c=t[l];if(cr)s=l-1;else return t[l+i]}return-1}const tk=Ph(zL);Ph($L);function Fh(t,e=xn.Legacy){return tk(t,e)}function nk(t){return Object.prototype.toString.call(t)}function Cu(t){return nk(t)==="[object String]"}const rk=Object.prototype.hasOwnProperty;function ik(t,e){return rk.call(t,e)}function Os(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){t[r]=n[r]})}}),t}function Bh(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function yu(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Qa(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const Uh=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ok=/&([a-z#][a-z0-9]{1,31});/gi,ak=new RegExp(Uh.source+"|"+ok.source,"gi"),sk=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function lk(t,e){if(e.charCodeAt(0)===35&&sk.test(e)){const r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return yu(r)?Qa(r):t}const n=Fh(t);return n!==t?n:t}function ck(t){return t.indexOf("\\")<0?t:t.replace(Uh,"$1")}function pi(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(ak,function(e,n,r){return n||lk(e,r)})}const uk=/[&<>"]/,dk=/[&<>"]/g,pk={"&":"&","<":"<",">":">",'"':"""};function _k(t){return pk[t]}function zn(t){return uk.test(t)?t.replace(dk,_k):t}const mk=/[.?*+^$[\]\\(){}|-]/g;function fk(t){return t.replace(mk,"\\$&")}function Oe(t){switch(t){case 9:case 32:return!0}return!1}function so(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function lo(t){return Tu.test(t)||Lh.test(t)}function co(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ns(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const gk={mdurl:GL,ucmicro:YL},hk=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Bh,assign:Os,escapeHtml:zn,escapeRE:fk,fromCodePoint:Qa,has:ik,isMdAsciiPunct:co,isPunctChar:lo,isSpace:Oe,isString:Cu,isValidEntityCode:yu,isWhiteSpace:so,lib:gk,normalizeReference:Ns,unescapeAll:pi,unescapeMd:ck},Symbol.toStringTag,{value:"Module"}));function Ek(t,e,n){let r,i,o,a;const s=t.posMax,l=t.pos;for(t.pos=e+1,r=1;t.pos32))return o;if(r===41){if(a===0)break;a--}i++}return e===i||a!==0||(o.str=pi(t.slice(e,i)),o.pos=i,o.ok=!0),o}function bk(t,e,n,r){let i,o=e;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=t.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;e++,o++,s===40&&(s=41),a.marker=s}for(;o"+zn(o.content)+""};an.code_block=function(t,e,n,r,i){const o=t[e];return""+zn(t[e].content)+` +`};an.fence=function(t,e,n,r,i){const o=t[e],a=o.info?pi(o.info).trim():"";let s="",l="";if(a){const u=a.split(/(\s+)/g);s=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,s,l)||zn(o.content):c=zn(o.content),c.indexOf("${c} `}return`
${c}
`};an.image=function(t,e,n,r,i){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)};an.hardbreak=function(t,e,n){return n.xhtmlOut?`
@@ -547,25 +547,25 @@ ${ce("ai-append")} `};an.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};an.text=function(t,e){return Yn(t[e].content)};an.html_block=function(t,e){return t[e].content};an.html_inline=function(t,e){return t[e].content};function gi(){this.rules=Rs({},an)}gi.prototype.renderAttrs=function(e){let n,r,i;if(!e.attrs)return"";for(i="",n=0,r=e.attrs.length;n `:">",o};gi.prototype.renderInline=function(t,e,n){let r="";const i=this.rules;for(let o=0,a=t.length;o=0&&(r=this.attrs[n][1]),r};Yt.prototype.attrJoin=function(e,n){const r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function wh(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}wh.prototype.Token=Yt;const hk=/\r\n?|\n/g,Ek=/\0/g;function Sk(t){let e;e=t.src.replace(hk,` -`),e=e.replace(Ek,"�"),t.src=e}function bk(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function Tk(t){const e=t.tokens;for(let n=0,r=e.length;n\s]/i.test(t)}function yk(t){return/^<\/a\s*>/i.test(t)}function vk(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n=0;a--){const s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Ck(s.content)&&o>0&&o--,yk(s.content)&&o++),!(o>0)&&s.type==="text"&&t.md.linkify.test(s.content)){const l=s.content;let c=t.md.linkify.match(l);const u=[];let d=s.level,p=0;c.length>0&&c[0].index===0&&a>0&&i[a-1].type==="text_special"&&(c=c.slice(1));for(let _=0;_p){const C=new t.Token("text","",0);C.content=l.slice(p,E),C.level=d,u.push(C)}const S=new t.Token("link_open","a",1);S.attrs=[["href",f]],S.level=d++,S.markup="linkify",S.info="auto",u.push(S);const b=new t.Token("text","",0);b.content=g,b.level=d,u.push(b);const h=new t.Token("link_close","a",-1);h.level=--d,h.markup="linkify",h.info="auto",u.push(h),p=c[_].lastIndex}if(p=0;n--){const r=t[n];r.type==="text"&&!e&&(r.content=r.content.replace(Ok,Ak)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function xk(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&Lh.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function Dk(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(Rk.test(t.tokens[e].content)&&Ik(t.tokens[e].children),Lh.test(t.tokens[e].content)&&xk(t.tokens[e].children))}const Mk=/['"]/,F_=/['"]/g,B_="’";function Ko(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function wk(t,e){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){m=t[n].content.charCodeAt(t[n].content.length-1);break}let f=32;if(l=48&&m<=57&&(p=d=!1),d&&p&&(d=g,p=E),!d&&!p){_&&(o.content=Ko(o.content,u.index,B_));continue}if(p)for(n=r.length-1;n>=0;n--){let h=r[n];if(r[n].level=0;e--)t.tokens[e].type!=="inline"||!Mk.test(t.tokens[e].content)||wk(t.tokens[e].children,t)}function kk(t){let e,n;const r=t.tokens,i=r.length;for(let o=0;o0&&this.level++,this.tokens.push(r),r};sn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};sn.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;en;)if(!Oe(this.src.charCodeAt(--e)))return e+1;return e};sn.prototype.skipChars=function(e,n){for(let r=this.src.length;er;)if(n!==this.src.charCodeAt(--e))return e+1;return e};sn.prototype.getLines=function(e,n,r,i){if(e>=n)return"";const o=new Array(n-e);for(let a=0,s=e;sr?o[a]=new Array(l-r+1).join(" ")+this.src.slice(u,d):o[a]=this.src.slice(u,d)}return o.join("")};sn.prototype.Token=Yt;const Pk=65536;function El(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function U_(t){const e=[],n=t.length;let r=0,i=t.charCodeAt(r),o=!1,a=0,s="";for(;rn)return!1;let i=e+1;if(t.sCount[i]=4)return!1;let o=t.bMarks[i]+t.tShift[i];if(o>=t.eMarks[i])return!1;const a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=t.eMarks[i])return!1;const s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Oe(s)||a===45&&Oe(s))return!1;for(;o=4)return!1;c=U_(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(r)return!0;const p=t.parentType;t.parentType="table";const _=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),f=[e,0];m.map=f;const g=t.push("thead_open","thead",1);g.map=[e,e+1];const E=t.push("tr_open","tr",1);E.map=[e,e+1];for(let h=0;h=4||(c=U_(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),b+=d-c.length,b>Pk))break;if(i===e+2){const T=t.push("tbody_open","tbody",1);T.map=S=[e+2,0]}const C=t.push("tr_open","tr",1);C.map=[i,i+1];for(let T=0;T=4){r++,i=r;continue}break}t.line=i;const o=t.push("code_block","code",0);return o.content=t.getLines(e,i,4+t.blkIndent,!1)+` -`,o.map=[e,t.line],!0}function Uk(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>o)return!1;const a=t.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=t.skipChars(i,a);let l=i-s;if(l<3)return!1;const c=t.src.slice(s,i),u=t.src.slice(i,o);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=e,p=!1;for(;d++,!(d>=n||(i=s=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],i=4)&&(i=t.skipChars(i,a),!(i-s=4||t.src.charCodeAt(i)!==62)return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=t.md.block.ruler.getRules("blockquote"),p=t.parentType;t.parentType="blockquote";let _=!1,m;for(m=e;m=o)break;if(t.src.charCodeAt(i++)===62&&!b){let C=t.sCount[m]+1,T,R;t.src.charCodeAt(i)===32?(i++,C++,R=!1,T=!0):t.src.charCodeAt(i)===9?(T=!0,(t.bsCount[m]+C)%4===3?(i++,C++,R=!1):R=!0):T=!1;let x=C;for(s.push(t.bMarks[m]),t.bMarks[m]=i;i=o,l.push(t.bsCount[m]),t.bsCount[m]=t.sCount[m]+1+(T?1:0),c.push(t.sCount[m]),t.sCount[m]=x-C,u.push(t.tShift[m]),t.tShift[m]=i-t.bMarks[m];continue}if(_)break;let h=!1;for(let C=0,T=d.length;C";const E=[e,0];g.map=E,t.md.block.tokenize(t,e,m);const S=t.push("blockquote_close","blockquote",-1);S.markup=">",t.lineMax=a,t.parentType=p,E[1]=t.line;for(let b=0;b=4)return!1;let o=t.bMarks[e]+t.tShift[e];const a=t.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o=r)return-1;let o=t.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=t.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]=t.blkIndent&&(u=!0);let d,p,_;if((_=G_(t,l))>=0){if(d=!0,a=t.bMarks[l]+t.tShift[l],p=Number(t.src.slice(a,_-1)),u&&p!==1)return!1}else if((_=H_(t,l))>=0)d=!1;else return!1;if(u&&t.skipSpaces(_)>=t.eMarks[l])return!1;if(r)return!0;const m=t.src.charCodeAt(_-1),f=t.tokens.length;d?(s=t.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=t.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(m);let E=!1;const S=t.md.block.ruler.getRules("list"),b=t.parentType;for(t.parentType="list";l=i?R=1:R=C-h,R>4&&(R=1);const x=h+R;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const O=[l,0];s.map=O,d&&(s.info=t.src.slice(a,_-1));const M=t.tight,B=t.tShift[l],Y=t.sCount[l],$=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=x,t.tight=!0,t.tShift[l]=T-t.bMarks[l],t.sCount[l]=C,T>=i&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),(!t.tight||E)&&(c=!1),E=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=$,t.tShift[l]=B,t.sCount[l]=Y,t.tight=M,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=t.line,O[1]=l,l>=n||t.sCount[l]=4)break;let q=!1;for(let V=0,J=S.length;V=4||t.src.charCodeAt(i)!==91)return!1;function s(S){const b=t.lineMax;if(S>=b||t.isEmpty(S))return null;let h=!1;if(t.sCount[S]-t.blkIndent>3&&(h=!0),t.sCount[S]<0&&(h=!0),!h){const R=t.md.block.ruler.getRules("reference"),x=t.parentType;t.parentType="reference";let O=!1;for(let M=0,B=R.length;M"u"&&(t.env.references={}),typeof t.env.references[E]>"u"&&(t.env.references[E]={title:g,href:d}),t.line=a),!0):!1}const $k=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qk="[a-zA-Z_:][a-zA-Z0-9:._-]*",Wk="[^\"'=<>`\\x00-\\x20]+",Kk="'[^']*'",Qk='"[^"]*"',Zk="(?:"+Wk+"|"+Kk+"|"+Qk+")",Xk="(?:\\s+"+qk+"(?:\\s*=\\s*"+Zk+")?)",kh="<[A-Za-z][A-Za-z0-9\\-]*"+Xk+"*\\s*\\/?>",Ph="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",jk="",Jk="<[?][\\s\\S]*?[?]>",eP="]*>",tP="",nP=new RegExp("^(?:"+kh+"|"+Ph+"|"+jk+"|"+Jk+"|"+eP+"|"+tP+")"),rP=new RegExp("^(?:"+kh+"|"+Ph+")"),kr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(rP.source+"\\s*$"),/^$/,!1]];function iP(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(i)!==60)return!1;let a=t.src.slice(i,o),s=0;for(;s=4)return!1;let a=t.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=t.src.charCodeAt(++i);a===35&&i6||ii&&Oe(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[e,t.line];const u=t.push("inline","",0);u.content=t.src.slice(i,o).trim(),u.map=[e,t.line],u.children=[];const d=t.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function aP(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const i=t.parentType;t.parentType="paragraph";let o=0,a,s=e+1;for(;s3)continue;if(t.sCount[s]>=t.blkIndent){let _=t.bMarks[s]+t.tShift[s];const m=t.eMarks[s];if(_=m))){o=a===61?1:2;break}}if(t.sCount[s]<0)continue;let p=!1;for(let _=0,m=r.length;_3||t.sCount[o]<0)continue;let c=!1;for(let u=0,d=r.length;u=n||t.sCount[a]=o){t.line=n;break}const l=t.line;let c=!1;for(let u=0;u=t.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),a=t.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};So.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),i=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o0)return!1;const n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const i=t.pending.match(uP);if(!i)return!1;const o=i[1],a=t.md.linkify.matchAtStart(t.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=t.md.normalizeLink(s);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-o.length);const c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=t.push("text","",0);u.content=t.md.normalizeLinkText(s);const d=t.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return t.pos+=s.length-o.length,!0}function pP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const r=t.pending.length-1,i=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(t){Tu[t.charCodeAt(0)]=1});function _P(t,e){let n=t.pos;const r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=t.src.charCodeAt(n);if(i===10){for(e||t.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&s<=57343&&(o+=t.src[n+1],n++)}const a="\\"+o;if(!e){const s=t.push("text_special","",0);i<256&&Tu[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return t.pos=n+1,!0}function mP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=t.posMax;for(;n=0;r--){const i=e[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=e[i.end],a=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),l=t.tokens[i.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=t.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(t.tokens[e[r-1].token].content="",t.tokens[e[i.end+1].token].content="",r--)}}function EP(t){const e=t.tokens_meta,n=t.tokens_meta.length;Y_(t,t.delimiters);for(let r=0;r=d)return!1;if(l=m,i=t.md.helpers.parseLinkDestination(t.src,m,t.posMax),i.ok){for(a=t.md.normalizeLink(i.str),t.md.validateLink(a)?m=i.pos:a="",l=m;m=d||t.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof t.env.references>"u")return!1;if(m=0?r=t.src.slice(l,m++):m=_+1):m=_+1,r||(r=t.src.slice(p,_)),o=t.env.references[Os(r)],!o)return t.pos=u,!1;a=o.href,s=o.title}if(!e){t.pos=p,t.posMax=_;const f=t.push("link_open","a",1),g=[["href",a]];f.attrs=g,s&&g.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=m,t.posMax=d,!0}function bP(t,e){let n,r,i,o,a,s,l,c,u="";const d=t.pos,p=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const _=t.pos+2,m=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(m<0)return!1;if(o=m+1,o=p)return!1;for(c=o,s=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),s.ok&&(u=t.md.normalizeLink(s.str),t.md.validateLink(u)?o=s.pos:u=""),c=o;o=p||t.src.charCodeAt(o)!==41)return t.pos=d,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o=0?i=t.src.slice(c,o++):o=m+1):o=m+1,i||(i=t.src.slice(_,m)),a=t.env.references[Os(i)],!a)return t.pos=d,!1;u=a.href,l=a.title}if(!e){r=t.src.slice(_,m);const f=[];t.md.inline.parse(r,t.md,t.env,f);const g=t.push("image","img",0),E=[["src",u],["alt",""]];g.attrs=E,g.children=f,g.content=r,l&&E.push(["title",l])}return t.pos=o,t.posMax=p,!0}const TP=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,CP=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function yP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const r=t.pos,i=t.posMax;for(;;){if(++n>=i)return!1;const a=t.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=t.src.slice(r+1,n);if(CP.test(o)){const a=t.md.normalizeLink(o);if(!t.md.validateLink(a))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}if(TP.test(o)){const a=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(a))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}return!1}function vP(t){return/^\s]/i.test(t)}function RP(t){return/^<\/a\s*>/i.test(t)}function OP(t){const e=t|32;return e>=97&&e<=122}function NP(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=t.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!OP(i))return!1;const o=t.src.slice(r).match(nP);if(!o)return!1;if(!e){const a=t.push("html_inline","",0);a.content=o[0],vP(a.content)&&t.linkLevel++,RP(a.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const AP=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,IP=/^&([a-z][a-z0-9]{1,31});/i;function xP(t,e){const n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){const o=t.src.slice(n).match(AP);if(o){if(!e){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=t.push("text_special","",0);s.content=Su(a)?Ka(a):Ka(65533),s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(IP);if(o){const a=xh(o[0]);if(a!==o[0]){if(!e){const s=t.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function z_(t){const e={},n=t.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;al;c-=o[c]+1){const d=t[c];if(d.marker===s.marker&&d.open&&d.end<0){let p=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(p=!0),!p){const _=c>0&&!t[c-1].open?o[c-1]+1:0;o[a]=a-c+_,o[c]=_,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}function DP(t){const e=t.tokens_meta,n=t.tokens_meta.length;z_(t.delimiters);for(let r=0;r0&&r++,i[e].type==="text"&&e+1=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;a||t.pos++,o[e]=t.pos};bo.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,i=t.md.options.maxNesting;for(;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};bo.prototype.parse=function(t,e,n,r){const i=new this.State(t,e,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function mc(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function As(t){return Object.prototype.toString.call(t)}function LP(t){return As(t)==="[object String]"}function kP(t){return As(t)==="[object Object]"}function PP(t){return As(t)==="[object RegExp]"}function $_(t){return As(t)==="[object Function]"}function FP(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Uh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function BP(t){return Object.keys(t||{}).reduce(function(e,n){return e||Uh.hasOwnProperty(n)},!1)}const UP={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},HP="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",GP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function VP(t){t.__index__=-1,t.__text_cache__=""}function YP(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function q_(){return function(t,e){e.normalize(t)}}function Qa(t){const e=t.re=wP(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(HP),n.push(e.src_xn),e.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(t.__schemas__).forEach(function(s){const l=t.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(t.__compiled__[s]=c,kP(l)){PP(l.validate)?c.validate=YP(l.validate):$_(l.validate)?c.validate=l.validate:o(s,l),$_(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=q_();return}if(LP(l)){i.push(s);return}o(s,l)}),i.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:q_()};const a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(FP).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),VP(t)}function zP(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function fc(t,e){const n=new zP(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Rt(t,e){if(!(this instanceof Rt))return new Rt(t,e);e||BP(t)&&(e=t,t={}),this.__opts__=mc({},Uh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mc({},UP,t),this.__compiled__={},this.__tlds__=GP,this.__tlds_replaced__=!1,this.re={},Qa(this)}Rt.prototype.add=function(e,n){return this.__schemas__[e]=n,Qa(this),this};Rt.prototype.set=function(e){return this.__opts__=mc(this.__opts__,e),this};Rt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,o,a,s,l,c,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Rt.prototype.pretest=function(e){return this.re.pretest.test(e)};Rt.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};Rt.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(fc(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(fc(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Rt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,fc(this,0)):null};Rt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Qa(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qa(this),this)};Rt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Rt.prototype.onCompile=function(){};const jr=2147483647,jt=36,Cu=1,co=26,$P=38,qP=700,Hh=72,Gh=128,Vh="-",WP=/^xn--/,KP=/[^\0-\x7F]/,QP=/[\x2E\u3002\uFF0E\uFF61]/g,ZP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tl=jt-Cu,Jt=Math.floor,Cl=String.fromCharCode;function On(t){throw new RangeError(ZP[t])}function XP(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Yh(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(QP,".");const i=t.split("."),o=XP(i,e).join(".");return r+o}function zh(t){const e=[];let n=0;const r=t.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...t),JP=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:jt},W_=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},$h=function(t,e,n){let r=0;for(t=n?Jt(t/qP):t>>1,t+=Jt(t/e);t>Tl*co>>1;r+=jt)t=Jt(t/Tl);return Jt(r+(Tl+1)*t/(t+$P))},qh=function(t){const e=[],n=t.length;let r=0,i=Gh,o=Hh,a=t.lastIndexOf(Vh);a<0&&(a=0);for(let s=0;s=128&&On("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&On("invalid-input");const p=JP(t.charCodeAt(s++));p>=jt&&On("invalid-input"),p>Jt((jr-r)/u)&&On("overflow"),r+=p*u;const _=d<=o?Cu:d>=o+co?co:d-o;if(p<_)break;const m=jt-_;u>Jt(jr/m)&&On("overflow"),u*=m}const c=e.length+1;o=$h(r-l,c,l==0),Jt(r/c)>jr-i&&On("overflow"),i+=Jt(r/c),r%=c,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Wh=function(t){const e=[];t=zh(t);const n=t.length;let r=Gh,i=0,o=Hh;for(const l of t)l<128&&e.push(Cl(l));const a=e.length;let s=a;for(a&&e.push(Vh);s=r&&uJt((jr-i)/c)&&On("overflow"),i+=(l-r)*c,r=l;for(const u of t)if(ujr&&On("overflow"),u===r){let d=i;for(let p=jt;;p+=jt){const _=p<=o?Cu:p>=o+co?co:p-o;if(d<_)break;const m=d-_,f=jt-_;e.push(Cl(W_(_+m%f,0))),d=Jt(m/f)}e.push(Cl(W_(d,0))),o=$h(i,c,s===a),i=0,++s}++i,++r}return e.join("")},e3=function(t){return Yh(t,function(e){return WP.test(e)?qh(e.slice(4).toLowerCase()):e})},t3=function(t){return Yh(t,function(e){return KP.test(e)?"xn--"+Wh(e):e})},Kh={version:"2.3.1",ucs2:{decode:zh,encode:jP},decode:qh,encode:Wh,toASCII:t3,toUnicode:e3},n3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},r3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},i3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},o3={default:n3,zero:r3,commonmark:i3},a3=/^(vbscript|javascript|file|data):/,s3=/^data:image\/(gif|png|jpeg|webp);/;function l3(t){const e=t.trim().toLowerCase();return a3.test(e)?s3.test(e):!0}const Qh=["http:","https:","mailto:"];function c3(t){const e=gu(t,!0);if(e.hostname&&(!e.protocol||Qh.indexOf(e.protocol)>=0))try{e.hostname=Kh.toASCII(e.hostname)}catch{}return Eo(fu(e))}function u3(t){const e=gu(t,!0);if(e.hostname&&(!e.protocol||Qh.indexOf(e.protocol)>=0))try{e.hostname=Kh.toUnicode(e.hostname)}catch{}return di(fu(e),di.defaultChars+"%")}function Pt(t,e){if(!(this instanceof Pt))return new Pt(t,e);e||Eu(t)||(e=t||{},t="default"),this.inline=new bo,this.block=new Ns,this.core=new bu,this.renderer=new gi,this.linkify=new Rt,this.validateLink=l3,this.normalizeLink=c3,this.normalizeLinkText=u3,this.utils=pk,this.helpers=Rs({},gk),this.options={},this.configure(t),e&&this.set(e)}Pt.prototype.set=function(t){return Rs(this.options,t),this};Pt.prototype.configure=function(t){const e=this;if(Eu(t)){const n=t;if(t=o3[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};Pt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Pt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Pt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Pt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Pt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Pt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Pt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};function d3(t){for(var e=1;e0&&t[e-1]===` -`;)e--;return t.substring(0,e)}var m3=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function yu(t){return vu(t,m3)}var Zh=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Xh(t){return vu(t,Zh)}function f3(t){return Jh(t,Zh)}var jh=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function g3(t){return vu(t,jh)}function h3(t){return Jh(t,jh)}function vu(t,e){return e.indexOf(t.nodeName)>=0}function Jh(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var at={};at.paragraph={filter:"p",replacement:function(t){return` +`;break}return r};gi.prototype.render=function(t,e,n){let r="";const i=this.rules;for(let o=0,a=t.length;o=0&&(r=this.attrs[n][1]),r};Yt.prototype.attrJoin=function(e,n){const r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function Hh(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Hh.prototype.Token=Yt;const Ck=/\r\n?|\n/g,yk=/\0/g;function vk(t){let e;e=t.src.replace(Ck,` +`),e=e.replace(yk,"�"),t.src=e}function Rk(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function Ok(t){const e=t.tokens;for(let n=0,r=e.length;n\s]/i.test(t)}function Ak(t){return/^<\/a\s*>/i.test(t)}function Ik(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n=0;a--){const s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Nk(s.content)&&o>0&&o--,Ak(s.content)&&o++),!(o>0)&&s.type==="text"&&t.md.linkify.test(s.content)){const l=s.content;let c=t.md.linkify.match(l);const u=[];let d=s.level,p=0;c.length>0&&c[0].index===0&&a>0&&i[a-1].type==="text_special"&&(c=c.slice(1));for(let _=0;_p){const C=new t.Token("text","",0);C.content=l.slice(p,S),C.level=d,u.push(C)}const E=new t.Token("link_open","a",1);E.attrs=[["href",f]],E.level=d++,E.markup="linkify",E.info="auto",u.push(E);const b=new t.Token("text","",0);b.content=g,b.level=d,u.push(b);const h=new t.Token("link_close","a",-1);h.level=--d,h.markup="linkify",h.info="auto",u.push(h),p=c[_].lastIndex}if(p=0;n--){const r=t[n];r.type==="text"&&!e&&(r.content=r.content.replace(Dk,wk)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function kk(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&Gh.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function Pk(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(xk.test(t.tokens[e].content)&&Lk(t.tokens[e].children),Gh.test(t.tokens[e].content)&&kk(t.tokens[e].children))}const Fk=/['"]/,V_=/['"]/g,Y_="’";function Qo(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Bk(t,e){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){m=t[n].content.charCodeAt(t[n].content.length-1);break}let f=32;if(l=48&&m<=57&&(p=d=!1),d&&p&&(d=g,p=S),!d&&!p){_&&(o.content=Qo(o.content,u.index,Y_));continue}if(p)for(n=r.length-1;n>=0;n--){let h=r[n];if(r[n].level=0;e--)t.tokens[e].type!=="inline"||!Fk.test(t.tokens[e].content)||Bk(t.tokens[e].children,t)}function Hk(t){let e,n;const r=t.tokens,i=r.length;for(let o=0;o0&&this.level++,this.tokens.push(r),r};sn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};sn.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;en;)if(!Oe(this.src.charCodeAt(--e)))return e+1;return e};sn.prototype.skipChars=function(e,n){for(let r=this.src.length;er;)if(n!==this.src.charCodeAt(--e))return e+1;return e};sn.prototype.getLines=function(e,n,r,i){if(e>=n)return"";const o=new Array(n-e);for(let a=0,s=e;sr?o[a]=new Array(l-r+1).join(" ")+this.src.slice(u,d):o[a]=this.src.slice(u,d)}return o.join("")};sn.prototype.Token=Yt;const Gk=65536;function bl(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function z_(t){const e=[],n=t.length;let r=0,i=t.charCodeAt(r),o=!1,a=0,s="";for(;rn)return!1;let i=e+1;if(t.sCount[i]=4)return!1;let o=t.bMarks[i]+t.tShift[i];if(o>=t.eMarks[i])return!1;const a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=t.eMarks[i])return!1;const s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Oe(s)||a===45&&Oe(s))return!1;for(;o=4)return!1;c=z_(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(r)return!0;const p=t.parentType;t.parentType="table";const _=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),f=[e,0];m.map=f;const g=t.push("thead_open","thead",1);g.map=[e,e+1];const S=t.push("tr_open","tr",1);S.map=[e,e+1];for(let h=0;h=4||(c=z_(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),b+=d-c.length,b>Gk))break;if(i===e+2){const T=t.push("tbody_open","tbody",1);T.map=E=[e+2,0]}const C=t.push("tr_open","tr",1);C.map=[i,i+1];for(let T=0;T=4){r++,i=r;continue}break}t.line=i;const o=t.push("code_block","code",0);return o.content=t.getLines(e,i,4+t.blkIndent,!1)+` +`,o.map=[e,t.line],!0}function zk(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>o)return!1;const a=t.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=t.skipChars(i,a);let l=i-s;if(l<3)return!1;const c=t.src.slice(s,i),u=t.src.slice(i,o);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=e,p=!1;for(;d++,!(d>=n||(i=s=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],i=4)&&(i=t.skipChars(i,a),!(i-s=4||t.src.charCodeAt(i)!==62)return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=t.md.block.ruler.getRules("blockquote"),p=t.parentType;t.parentType="blockquote";let _=!1,m;for(m=e;m=o)break;if(t.src.charCodeAt(i++)===62&&!b){let C=t.sCount[m]+1,T,R;t.src.charCodeAt(i)===32?(i++,C++,R=!1,T=!0):t.src.charCodeAt(i)===9?(T=!0,(t.bsCount[m]+C)%4===3?(i++,C++,R=!1):R=!0):T=!1;let x=C;for(s.push(t.bMarks[m]),t.bMarks[m]=i;i=o,l.push(t.bsCount[m]),t.bsCount[m]=t.sCount[m]+1+(T?1:0),c.push(t.sCount[m]),t.sCount[m]=x-C,u.push(t.tShift[m]),t.tShift[m]=i-t.bMarks[m];continue}if(_)break;let h=!1;for(let C=0,T=d.length;C";const S=[e,0];g.map=S,t.md.block.tokenize(t,e,m);const E=t.push("blockquote_close","blockquote",-1);E.markup=">",t.lineMax=a,t.parentType=p,S[1]=t.line;for(let b=0;b=4)return!1;let o=t.bMarks[e]+t.tShift[e];const a=t.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o=r)return-1;let o=t.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=t.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]=t.blkIndent&&(u=!0);let d,p,_;if((_=q_(t,l))>=0){if(d=!0,a=t.bMarks[l]+t.tShift[l],p=Number(t.src.slice(a,_-1)),u&&p!==1)return!1}else if((_=$_(t,l))>=0)d=!1;else return!1;if(u&&t.skipSpaces(_)>=t.eMarks[l])return!1;if(r)return!0;const m=t.src.charCodeAt(_-1),f=t.tokens.length;d?(s=t.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=t.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(m);let S=!1;const E=t.md.block.ruler.getRules("list"),b=t.parentType;for(t.parentType="list";l=i?R=1:R=C-h,R>4&&(R=1);const x=h+R;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const O=[l,0];s.map=O,d&&(s.info=t.src.slice(a,_-1));const M=t.tight,B=t.tShift[l],Y=t.sCount[l],$=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=x,t.tight=!0,t.tShift[l]=T-t.bMarks[l],t.sCount[l]=C,T>=i&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),(!t.tight||S)&&(c=!1),S=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=$,t.tShift[l]=B,t.sCount[l]=Y,t.tight=M,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=t.line,O[1]=l,l>=n||t.sCount[l]=4)break;let q=!1;for(let V=0,J=E.length;V=4||t.src.charCodeAt(i)!==91)return!1;function s(E){const b=t.lineMax;if(E>=b||t.isEmpty(E))return null;let h=!1;if(t.sCount[E]-t.blkIndent>3&&(h=!0),t.sCount[E]<0&&(h=!0),!h){const R=t.md.block.ruler.getRules("reference"),x=t.parentType;t.parentType="reference";let O=!1;for(let M=0,B=R.length;M"u"&&(t.env.references={}),typeof t.env.references[S]>"u"&&(t.env.references[S]={title:g,href:d}),t.line=a),!0):!1}const Zk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xk="[a-zA-Z_:][a-zA-Z0-9:._-]*",jk="[^\"'=<>`\\x00-\\x20]+",Jk="'[^']*'",eP='"[^"]*"',tP="(?:"+jk+"|"+Jk+"|"+eP+")",nP="(?:\\s+"+Xk+"(?:\\s*=\\s*"+tP+")?)",Vh="<[A-Za-z][A-Za-z0-9\\-]*"+nP+"*\\s*\\/?>",Yh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",rP="",iP="<[?][\\s\\S]*?[?]>",oP="]*>",aP="",sP=new RegExp("^(?:"+Vh+"|"+Yh+"|"+rP+"|"+iP+"|"+oP+"|"+aP+")"),lP=new RegExp("^(?:"+Vh+"|"+Yh+")"),kr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(lP.source+"\\s*$"),/^$/,!1]];function cP(t,e,n,r){let i=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(i)!==60)return!1;let a=t.src.slice(i,o),s=0;for(;s=4)return!1;let a=t.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=t.src.charCodeAt(++i);a===35&&i6||ii&&Oe(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[e,t.line];const u=t.push("inline","",0);u.content=t.src.slice(i,o).trim(),u.map=[e,t.line],u.children=[];const d=t.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function dP(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const i=t.parentType;t.parentType="paragraph";let o=0,a,s=e+1;for(;s3)continue;if(t.sCount[s]>=t.blkIndent){let _=t.bMarks[s]+t.tShift[s];const m=t.eMarks[s];if(_=m))){o=a===61?1:2;break}}if(t.sCount[s]<0)continue;let p=!1;for(let _=0,m=r.length;_3||t.sCount[o]<0)continue;let c=!1;for(let u=0,d=r.length;u=n||t.sCount[a]=o){t.line=n;break}const l=t.line;let c=!1;for(let u=0;u=t.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),a=t.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};bo.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),i=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o0)return!1;const n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const i=t.pending.match(fP);if(!i)return!1;const o=i[1],a=t.md.linkify.matchAtStart(t.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=t.md.normalizeLink(s);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-o.length);const c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=t.push("text","",0);u.content=t.md.normalizeLinkText(s);const d=t.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return t.pos+=s.length-o.length,!0}function hP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const r=t.pending.length-1,i=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(t){Ru[t.charCodeAt(0)]=1});function EP(t,e){let n=t.pos;const r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=t.src.charCodeAt(n);if(i===10){for(e||t.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&s<=57343&&(o+=t.src[n+1],n++)}const a="\\"+o;if(!e){const s=t.push("text_special","",0);i<256&&Ru[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return t.pos=n+1,!0}function SP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=t.posMax;for(;n=0;r--){const i=e[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=e[i.end],a=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),l=t.tokens[i.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=t.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(t.tokens[e[r-1].token].content="",t.tokens[e[i.end+1].token].content="",r--)}}function yP(t){const e=t.tokens_meta,n=t.tokens_meta.length;K_(t,t.delimiters);for(let r=0;r=d)return!1;if(l=m,i=t.md.helpers.parseLinkDestination(t.src,m,t.posMax),i.ok){for(a=t.md.normalizeLink(i.str),t.md.validateLink(a)?m=i.pos:a="",l=m;m=d||t.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof t.env.references>"u")return!1;if(m=0?r=t.src.slice(l,m++):m=_+1):m=_+1,r||(r=t.src.slice(p,_)),o=t.env.references[Ns(r)],!o)return t.pos=u,!1;a=o.href,s=o.title}if(!e){t.pos=p,t.posMax=_;const f=t.push("link_open","a",1),g=[["href",a]];f.attrs=g,s&&g.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=m,t.posMax=d,!0}function RP(t,e){let n,r,i,o,a,s,l,c,u="";const d=t.pos,p=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const _=t.pos+2,m=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(m<0)return!1;if(o=m+1,o=p)return!1;for(c=o,s=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),s.ok&&(u=t.md.normalizeLink(s.str),t.md.validateLink(u)?o=s.pos:u=""),c=o;o=p||t.src.charCodeAt(o)!==41)return t.pos=d,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o=0?i=t.src.slice(c,o++):o=m+1):o=m+1,i||(i=t.src.slice(_,m)),a=t.env.references[Ns(i)],!a)return t.pos=d,!1;u=a.href,l=a.title}if(!e){r=t.src.slice(_,m);const f=[];t.md.inline.parse(r,t.md,t.env,f);const g=t.push("image","img",0),S=[["src",u],["alt",""]];g.attrs=S,g.children=f,g.content=r,l&&S.push(["title",l])}return t.pos=o,t.posMax=p,!0}const OP=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,NP=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function AP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const r=t.pos,i=t.posMax;for(;;){if(++n>=i)return!1;const a=t.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=t.src.slice(r+1,n);if(NP.test(o)){const a=t.md.normalizeLink(o);if(!t.md.validateLink(a))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}if(OP.test(o)){const a=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(a))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}return!1}function IP(t){return/^\s]/i.test(t)}function xP(t){return/^<\/a\s*>/i.test(t)}function DP(t){const e=t|32;return e>=97&&e<=122}function MP(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=t.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!DP(i))return!1;const o=t.src.slice(r).match(sP);if(!o)return!1;if(!e){const a=t.push("html_inline","",0);a.content=o[0],IP(a.content)&&t.linkLevel++,xP(a.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const wP=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,LP=/^&([a-z][a-z0-9]{1,31});/i;function kP(t,e){const n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){const o=t.src.slice(n).match(wP);if(o){if(!e){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=t.push("text_special","",0);s.content=yu(a)?Qa(a):Qa(65533),s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(LP);if(o){const a=Fh(o[0]);if(a!==o[0]){if(!e){const s=t.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function Q_(t){const e={},n=t.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;al;c-=o[c]+1){const d=t[c];if(d.marker===s.marker&&d.open&&d.end<0){let p=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(p=!0),!p){const _=c>0&&!t[c-1].open?o[c-1]+1:0;o[a]=a-c+_,o[c]=_,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}function PP(t){const e=t.tokens_meta,n=t.tokens_meta.length;Q_(t.delimiters);for(let r=0;r0&&r++,i[e].type==="text"&&e+1=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;a||t.pos++,o[e]=t.pos};To.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,i=t.md.options.maxNesting;for(;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};To.prototype.parse=function(t,e,n,r){const i=new this.State(t,e,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function gc(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function Is(t){return Object.prototype.toString.call(t)}function UP(t){return Is(t)==="[object String]"}function HP(t){return Is(t)==="[object Object]"}function GP(t){return Is(t)==="[object RegExp]"}function Z_(t){return Is(t)==="[object Function]"}function VP(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const qh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function YP(t){return Object.keys(t||{}).reduce(function(e,n){return e||qh.hasOwnProperty(n)},!1)}const zP={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},$P="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",qP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function WP(t){t.__index__=-1,t.__text_cache__=""}function KP(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function X_(){return function(t,e){e.normalize(t)}}function Za(t){const e=t.re=BP(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push($P),n.push(e.src_xn),e.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(t.__schemas__).forEach(function(s){const l=t.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(t.__compiled__[s]=c,HP(l)){GP(l.validate)?c.validate=KP(l.validate):Z_(l.validate)?c.validate=l.validate:o(s,l),Z_(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=X_();return}if(UP(l)){i.push(s);return}o(s,l)}),i.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:X_()};const a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(VP).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),WP(t)}function QP(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function hc(t,e){const n=new QP(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||YP(t)&&(e=t,t={}),this.__opts__=gc({},qh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=gc({},zP,t),this.__compiled__={},this.__tlds__=qP,this.__tlds_replaced__=!1,this.re={},Za(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,Za(this),this};Ot.prototype.set=function(e){return this.__opts__=gc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,o,a,s,l,c,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};Ot.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(hc(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(hc(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Ot.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,hc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Za(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Za(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};const jr=2147483647,jt=36,Ou=1,uo=26,ZP=38,XP=700,Wh=72,Kh=128,Qh="-",jP=/^xn--/,JP=/[^\0-\x7F]/,e3=/[\x2E\u3002\uFF0E\uFF61]/g,t3={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yl=jt-Ou,Jt=Math.floor,vl=String.fromCharCode;function On(t){throw new RangeError(t3[t])}function n3(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Zh(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(e3,".");const i=t.split("."),o=n3(i,e).join(".");return r+o}function Xh(t){const e=[];let n=0;const r=t.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...t),i3=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:jt},j_=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},jh=function(t,e,n){let r=0;for(t=n?Jt(t/XP):t>>1,t+=Jt(t/e);t>yl*uo>>1;r+=jt)t=Jt(t/yl);return Jt(r+(yl+1)*t/(t+ZP))},Jh=function(t){const e=[],n=t.length;let r=0,i=Kh,o=Wh,a=t.lastIndexOf(Qh);a<0&&(a=0);for(let s=0;s=128&&On("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&On("invalid-input");const p=i3(t.charCodeAt(s++));p>=jt&&On("invalid-input"),p>Jt((jr-r)/u)&&On("overflow"),r+=p*u;const _=d<=o?Ou:d>=o+uo?uo:d-o;if(p<_)break;const m=jt-_;u>Jt(jr/m)&&On("overflow"),u*=m}const c=e.length+1;o=jh(r-l,c,l==0),Jt(r/c)>jr-i&&On("overflow"),i+=Jt(r/c),r%=c,e.splice(r++,0,i)}return String.fromCodePoint(...e)},eE=function(t){const e=[];t=Xh(t);const n=t.length;let r=Kh,i=0,o=Wh;for(const l of t)l<128&&e.push(vl(l));const a=e.length;let s=a;for(a&&e.push(Qh);s=r&&uJt((jr-i)/c)&&On("overflow"),i+=(l-r)*c,r=l;for(const u of t)if(ujr&&On("overflow"),u===r){let d=i;for(let p=jt;;p+=jt){const _=p<=o?Ou:p>=o+uo?uo:p-o;if(d<_)break;const m=d-_,f=jt-_;e.push(vl(j_(_+m%f,0))),d=Jt(m/f)}e.push(vl(j_(d,0))),o=jh(i,c,s===a),i=0,++s}++i,++r}return e.join("")},o3=function(t){return Zh(t,function(e){return jP.test(e)?Jh(e.slice(4).toLowerCase()):e})},a3=function(t){return Zh(t,function(e){return JP.test(e)?"xn--"+eE(e):e})},tE={version:"2.3.1",ucs2:{decode:Xh,encode:r3},decode:Jh,encode:eE,toASCII:a3,toUnicode:o3},s3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},l3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},c3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},u3={default:s3,zero:l3,commonmark:c3},d3=/^(vbscript|javascript|file|data):/,p3=/^data:image\/(gif|png|jpeg|webp);/;function _3(t){const e=t.trim().toLowerCase();return d3.test(e)?p3.test(e):!0}const nE=["http:","https:","mailto:"];function m3(t){const e=bu(t,!0);if(e.hostname&&(!e.protocol||nE.indexOf(e.protocol)>=0))try{e.hostname=tE.toASCII(e.hostname)}catch{}return So(Su(e))}function f3(t){const e=bu(t,!0);if(e.hostname&&(!e.protocol||nE.indexOf(e.protocol)>=0))try{e.hostname=tE.toUnicode(e.hostname)}catch{}return di(Su(e),di.defaultChars+"%")}function Pt(t,e){if(!(this instanceof Pt))return new Pt(t,e);e||Cu(t)||(e=t||{},t="default"),this.inline=new To,this.block=new As,this.core=new vu,this.renderer=new gi,this.linkify=new Ot,this.validateLink=_3,this.normalizeLink=m3,this.normalizeLinkText=f3,this.utils=hk,this.helpers=Os({},Tk),this.options={},this.configure(t),e&&this.set(e)}Pt.prototype.set=function(t){return Os(this.options,t),this};Pt.prototype.configure=function(t){const e=this;if(Cu(t)){const n=t;if(t=u3[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};Pt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Pt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Pt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Pt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Pt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Pt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Pt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};function g3(t){for(var e=1;e0&&t[e-1]===` +`;)e--;return t.substring(0,e)}var S3=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Nu(t){return Au(t,S3)}var rE=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function iE(t){return Au(t,rE)}function b3(t){return aE(t,rE)}var oE=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function T3(t){return Au(t,oE)}function C3(t){return aE(t,oE)}function Au(t,e){return e.indexOf(t.nodeName)>=0}function aE(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var at={};at.paragraph={filter:"p",replacement:function(t){return` `+t+` `}};at.lineBreak={filter:"br",replacement:function(t,e,n){return n.br+` -`}};at.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(t,e,n){var r=Number(e.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var i=gc(r===1?"=":"-",t.length);return` +`}};at.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(t,e,n){var r=Number(e.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var i=Ec(r===1?"=":"-",t.length);return` `+t+` `+i+` `}else return` -`+gc("#",r)+" "+t+` +`+Ec("#",r)+" "+t+` `}};at.blockquote={filter:"blockquote",replacement:function(t){return t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^/gm,"> "),` @@ -584,7 +584,7 @@ ${ce("ai-append")} `+e.firstChild.textContent.replace(/\n/g,` `)+` -`}};at.fencedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){for(var r=e.firstChild.getAttribute("class")||"",i=(r.match(/language-(\S+)/)||[null,""])[1],o=e.firstChild.textContent,a=n.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm"),c;c=l.exec(o);)c[0].length>=s&&(s=c[0].length+1);var u=gc(a,s);return` +`}};at.fencedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){for(var r=e.firstChild.getAttribute("class")||"",i=(r.match(/language-(\S+)/)||[null,""])[1],o=e.firstChild.textContent,a=n.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm"),c;c=l.exec(o);)c[0].length>=s&&(s=c[0].length+1);var u=Ec(a,s);return` `+u+i+` `+o.replace(/\n$/,"")+` @@ -594,13 +594,13 @@ ${ce("ai-append")} `+n.hr+` -`}};at.inlineLink={filter:function(t,e){return e.linkStyle==="inlined"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e){var n=e.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=Za(e.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+t+"]("+n+r+")"}};at.referenceLink={filter:function(t,e){return e.linkStyle==="referenced"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e,n){var r=e.getAttribute("href"),i=Za(e.getAttribute("title"));i&&(i=' "'+i+'"');var o,a;switch(n.linkReferenceStyle){case"collapsed":o="["+t+"][]",a="["+t+"]: "+r+i;break;case"shortcut":o="["+t+"]",a="["+t+"]: "+r+i;break;default:var s=this.references.length+1;o="["+t+"]["+s+"]",a="["+s+"]: "+r+i}return this.references.push(a),o},references:[],append:function(t){var e="";return this.references.length&&(e=` +`}};at.inlineLink={filter:function(t,e){return e.linkStyle==="inlined"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e){var n=e.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=Xa(e.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+t+"]("+n+r+")"}};at.referenceLink={filter:function(t,e){return e.linkStyle==="referenced"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e,n){var r=e.getAttribute("href"),i=Xa(e.getAttribute("title"));i&&(i=' "'+i+'"');var o,a;switch(n.linkReferenceStyle){case"collapsed":o="["+t+"][]",a="["+t+"]: "+r+i;break;case"shortcut":o="["+t+"]",a="["+t+"]: "+r+i;break;default:var s=this.references.length+1;o="["+t+"]["+s+"]",a="["+s+"]: "+r+i}return this.references.push(a),o},references:[],append:function(t){var e="";return this.references.length&&(e=` `+this.references.join(` `)+` -`,this.references=[]),e}};at.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}};at.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}};at.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}};at.image={filter:"img",replacement:function(t,e){var n=Za(e.getAttribute("alt")),r=e.getAttribute("src")||"",i=Za(e.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function Za(t){return t?t.replace(/(\n+\s*)+/g,` -`):""}function eE(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}eE.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=yl(this.array,t,this.options))||(e=yl(this._keep,t,this.options))||(e=yl(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function S3(t){var e=t.element,n=t.isBlock,r=t.isVoid,i=t.isPre||function(d){return d.nodeName==="PRE"};if(!(!e.firstChild||i(e))){for(var o=null,a=!1,s=null,l=K_(s,e,i);l!==e;){if(l.nodeType===3||l.nodeType===4){var c=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){l=vl(l);continue}l.data=c,o=l}else if(l.nodeType===1)n(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):r(l)||i(l)?(o=null,a=!0):o&&(a=!1);else{l=vl(l);continue}var u=K_(s,l,i);s=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||vl(o))}}function vl(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function K_(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var Ru=typeof window<"u"?window:{};function b3(){var t=Ru.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function T3(){var t=function(){};return C3()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function C3(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{Ru.ActiveXObject&&(t=!0)}return t}var y3=b3()?Ru.DOMParser:T3();function v3(t,e){var n;if(typeof t=="string"){var r=R3().parseFromString(''+t+"","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return S3({element:n,isBlock:yu,isVoid:Xh,isPre:e.preformattedCode?O3:null}),n}var Rl;function R3(){return Rl=Rl||new y3,Rl}function O3(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function N3(t,e){return t.isBlock=yu(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=A3(t),t.flankingWhitespace=I3(t,e),t}function A3(t){return!Xh(t)&&!g3(t)&&/^\s*$/i.test(t.textContent)&&!f3(t)&&!h3(t)}function I3(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=x3(t.textContent);return n.leadingAscii&&Q_("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Q_("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function x3(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function Q_(t,e,n){var r,i,o;return t==="left"?(r=e.previousSibling,i=/ $/):(r=e.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!yu(r)&&(o=i.test(r.textContent))),o}var D3=Array.prototype.reduce,M3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Xa(t){if(!(this instanceof Xa))return new Xa(t);var e={rules:at,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?` +`,this.references=[]),e}};at.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}};at.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}};at.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}};at.image={filter:"img",replacement:function(t,e){var n=Xa(e.getAttribute("alt")),r=e.getAttribute("src")||"",i=Xa(e.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function Xa(t){return t?t.replace(/(\n+\s*)+/g,` +`):""}function sE(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}sE.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=Rl(this.array,t,this.options))||(e=Rl(this._keep,t,this.options))||(e=Rl(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function v3(t){var e=t.element,n=t.isBlock,r=t.isVoid,i=t.isPre||function(d){return d.nodeName==="PRE"};if(!(!e.firstChild||i(e))){for(var o=null,a=!1,s=null,l=J_(s,e,i);l!==e;){if(l.nodeType===3||l.nodeType===4){var c=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){l=Ol(l);continue}l.data=c,o=l}else if(l.nodeType===1)n(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):r(l)||i(l)?(o=null,a=!0):o&&(a=!1);else{l=Ol(l);continue}var u=J_(s,l,i);s=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||Ol(o))}}function Ol(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function J_(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var Iu=typeof window<"u"?window:{};function R3(){var t=Iu.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function O3(){var t=function(){};return N3()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function N3(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{Iu.ActiveXObject&&(t=!0)}return t}var A3=R3()?Iu.DOMParser:O3();function I3(t,e){var n;if(typeof t=="string"){var r=x3().parseFromString(''+t+"","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return v3({element:n,isBlock:Nu,isVoid:iE,isPre:e.preformattedCode?D3:null}),n}var Nl;function x3(){return Nl=Nl||new A3,Nl}function D3(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function M3(t,e){return t.isBlock=Nu(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=w3(t),t.flankingWhitespace=L3(t,e),t}function w3(t){return!iE(t)&&!T3(t)&&/^\s*$/i.test(t.textContent)&&!b3(t)&&!C3(t)}function L3(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=k3(t.textContent);return n.leadingAscii&&em("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&em("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function k3(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function em(t,e,n){var r,i,o;return t==="left"?(r=e.previousSibling,i=/ $/):(r=e.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!Nu(r)&&(o=i.test(r.textContent))),o}var P3=Array.prototype.reduce,F3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ja(t){if(!(this instanceof ja))return new ja(t);var e={rules:at,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?` `:""},keepReplacement:function(n,r){return r.isBlock?` @@ -610,6 +610,6 @@ ${ce("ai-append")} `+n+` -`:n}};this.options=d3({},e,t),this.rules=new eE(this.options)}Xa.prototype={turndown:function(t){if(!k3(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=tE.call(this,new v3(t,this.options));return w3.call(this,e)},use:function(t){if(Array.isArray(t))for(var e=0;eP3.render(t),B3=t=>F3.turndown(t);re("aie-header",og);re("aie-footer",ag);const U3={theme:"light",lang:"zh",contentRetentionKey:"ai-editor-content",editable:!0,draggable:!0,placeholder:"",toolbarSize:"small"};class rE extends _C{constructor(n,r={}){super(r);w(this,"aiEditor");this.aiEditor=n}parseHtml(n){function r(o){return new window.DOMParser().parseFromString(`${o}`,"text/html").body}return Wr.fromSchema(this.schema).parse(r(n),{}).content}parseMarkdown(n){const r=ja(n);return this.parseHtml(r)}insertMarkdown(n){this.commands.insertContent(ja(n))}}class H3{constructor(e){w(this,"customLayout",!1);w(this,"innerEditor");w(this,"container");w(this,"header");w(this,"mainEl");w(this,"footer");w(this,"options");w(this,"eventComponents",[]);this.options={...U3,...e},this.initI18nAndInnerEditor()}initI18nAndInnerEditor(){const e=this.options.i18n||{},n={de:{translation:{...hL,...e.de}},en:{translation:{...gL,...e.en}},pt:{translation:{...EL,...e.pt}},zh:{translation:{...fL,...e.zh}},es:{translation:{...SL,...e.es}},hi:{translation:{...bL,...e.hi}},id:{translation:{...TL,...e.id}},ja:{translation:{...CL,...e.ja}},ko:{translation:{...yL,...e.ko}},th:{translation:{...vL,...e.th}},vi:{translation:{...RL,...e.vi}}};for(let r of Object.keys(e))r!="de"&&r!="en"&&r!="pt"&&r!="zh"&&(n[r]={translation:{...e[r]}});Je.init({lng:this.options.lang,resources:n},(r,i)=>{this.initInnerEditor()})}initInnerEditor(){const e=typeof this.options.element=="string"?document.querySelector(this.options.element):this.options.element;e.classList.add(`aie-theme-${this.options.theme}`),this.container=e.querySelector(".aie-container"),this.container?this.customLayout=!0:(this.container=document.createElement("div"),this.container.classList.add("aie-container")),e.appendChild(this.container),this.mainEl=document.createElement("div"),this.mainEl.style.flexGrow="1",this.mainEl.style.overflow="auto",this.header=new og,this.eventComponents.push(this.header),this.footer=new ag,this.footer.initDraggable(this.options.draggable),this.eventComponents.push(this.footer);let n=this.options.content;if(this.options.contentRetention&&this.options.contentRetentionKey){const r=localStorage.getItem(this.options.contentRetentionKey);if(r)try{n=JSON.parse(r)}catch(i){console.error(i,"Can not parse the cache content from localStorage.")}}this.innerEditor=new rE(this,{element:this.mainEl,content:this.options.contentIsMarkdown===!0&&typeof n=="string"?ja(n):n,editable:this.options.editable,extensions:this.getExtensions(),onCreate:r=>this.onCreate(r),onTransaction:r=>this.onTransaction(r),onFocus:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onFocus)==null?void 0:i.call(r,this)},onBlur:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onBlur)==null?void 0:i.call(r,this)},onDestroy:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onDestroy)==null?void 0:i.call(r,this)},editorProps:{attributes:{class:"aie-content"}}})}getExtensions(){let e=mL(this,this.options);if(this.options.onCreateBefore){const n=this.options.onCreateBefore(this,e);n&&(e=n)}return e}onCreate(e){this.innerEditor.view.dom.style.height="calc(100% - 20px)",this.eventComponents.forEach(o=>{o.onCreate&&o.onCreate(e,this.options)}),(this.container.querySelector(".aie-container-header")||this.container).appendChild(this.header),(this.container.querySelector(".aie-container-main")||this.container).appendChild(this.mainEl),(this.container.querySelector(".aie-container-footer")||this.container).appendChild(this.footer),this.options.ai&&En.init(this.innerEditor,this.options.ai),this.options.onCreated&&this.options.onCreated(this)}onTransaction(e){var n,r;if(this.eventComponents.forEach(i=>{i.onTransaction&&i.onTransaction(e)}),!e.transaction.getMeta("ignoreChanged")&&((r=(n=this.options).onTransaction)==null||r.call(n,this,e.transaction),e.transaction.docChanged&&this.options.onChange&&this.options.onChange(this),e.transaction.docChanged&&this.options.contentRetention&&this.options.contentRetentionKey)){const i=e.editor.getHTML();if(i==="

"||i==="")localStorage.removeItem(this.options.contentRetentionKey);else{const o=e.editor.getJSON();localStorage.setItem(this.options.contentRetentionKey,JSON.stringify(o))}}}getHtml(){return this.innerEditor.getHTML()}getJson(){return this.innerEditor.getJSON()}getText(){return this.innerEditor.getText()}getSelectedText(){const e=this.innerEditor.state.selection;return e.empty?"":ds(this.innerEditor.state.doc,{from:e.from,to:e.to})}getMarkdown(){return B3(this.getHtml())}getOptions(){return this.options}getAttributes(e){return this.innerEditor.getAttributes(e)}setAttributes(e,n){this.innerEditor.commands.updateAttributes(e,n)}isActive(e,n){return typeof e=="object"||!n?this.innerEditor.isActive(e):this.innerEditor.isActive(e,n)}commands(){return this.innerEditor.commands}commandsChain(){return this.innerEditor.chain()}getOutline(){const e=this.innerEditor.state.doc,n=[];return e.descendants((r,i)=>{if(r.type.name==="heading"){const o=`aie-heading-${n.length+1}`;if(r.attrs.id!==o){const{state:{tr:s},view:{dispatch:l}}=this.innerEditor;l(s.setNodeMarkup(i,void 0,{...r.attrs,id:o}).setMeta("ignoreChanged",!0))}let a="";r.descendants(s=>{s.text&&(a+=s.text)}),n.push({id:o,text:a,level:r.attrs.level,pos:i,size:r.nodeSize})}}),n}focus(){return this.innerEditor.commands.focus(),this}focusPos(e){return this.innerEditor.commands.focus(e),this}focusStart(){return this.innerEditor.commands.focus("start"),this}focusEnd(){return this.innerEditor.commands.focus("end"),this}isFocused(){return this.innerEditor.isFocused}blur(){return this.innerEditor.commands.blur(),this}insert(e){return this.innerEditor.commands.insertContent(e),this}insertMarkdown(e){return this.innerEditor.insertMarkdown(e),this}setEditable(e){return this.options.editable=e,this.innerEditor.setEditable(e,!0),this.eventComponents.forEach(n=>{n.onEditableChange(e)}),this}setContent(e){return this.focus().clear().insert(e),this}setMarkdownContent(e){const n=ja(e);return this.setContent(n)}clear(){return this.innerEditor.commands.clearContent(!0),this}isEmpty(){return this.innerEditor.isEmpty}changeLang(e){return this.destroy(),this.options.lang=e,Je.changeLanguage(e),this.initInnerEditor(),this}removeRetention(){return this.options.contentRetentionKey&&localStorage.removeItem(this.options.contentRetentionKey),this}destroy(){var e,n;(n=(e=this.options).onDestroy)==null||n.call(e,this),this.innerEditor.destroy(),this.eventComponents=[],this.customLayout?(this.header.remove(),this.mainEl.remove(),this.footer.remove()):this.container.remove()}isDestroyed(){return this.innerEditor.isDestroyed}}exports.AiEditor=H3;exports.AiModelManager=En;exports.CustomAiModel=ng;exports.InnerEditor=rE;exports.OpenaiAiModel=rg;exports.SparkAiModel=Jf;exports.WenXinAiModel=tg; +`.substring(0,i);return n+o+r}function H3(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}const G3=Pt({html:!0,linkify:!0,typographer:!0}),uE=new ja({headingStyle:"atx",hr:"---",bulletListMarker:"-",codeBlockStyle:"fenced",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",preformattedCode:!1});uE.keep(t=>!(t&&t.nodeName==="DIV"));const Ja=t=>{if(!t)return t;const e=G3.render(t).trim();if(!e)return t;const r=new DOMParser().parseFromString(e,"text/html");let i="";for(let o=0;ot&&uE.turndown(t);re("aie-header",pg);re("aie-footer",_g);const Y3={theme:"light",lang:"zh",contentRetentionKey:"ai-editor-content",editable:!0,draggable:!0,placeholder:"",toolbarSize:"small"};class dE extends EC{constructor(n,r={}){super(r);L(this,"aiEditor");this.aiEditor=n}parseHtml(n){function r(o){return new window.DOMParser().parseFromString(`${o}`,"text/html").body}return Wr.fromSchema(this.schema).parse(r(n),{}).content}parseMarkdown(n){const r=Ja(n);return this.parseHtml(r)}insertMarkdown(n){this.commands.insertContent(Ja(n))}}class z3{constructor(e){L(this,"customLayout",!1);L(this,"innerEditor");L(this,"container");L(this,"header");L(this,"mainEl");L(this,"footer");L(this,"options");L(this,"eventComponents",[]);this.options={...Y3,...e},this.initI18nAndInnerEditor()}initI18nAndInnerEditor(){const e=this.options.i18n||{},n={de:{translation:{...CL,...e.de}},en:{translation:{...TL,...e.en}},pt:{translation:{...yL,...e.pt}},zh:{translation:{...bL,...e.zh}},es:{translation:{...vL,...e.es}},hi:{translation:{...RL,...e.hi}},id:{translation:{...OL,...e.id}},ja:{translation:{...NL,...e.ja}},ko:{translation:{...AL,...e.ko}},th:{translation:{...IL,...e.th}},vi:{translation:{...xL,...e.vi}}};for(let r of Object.keys(e))r!="de"&&r!="en"&&r!="pt"&&r!="zh"&&(n[r]={translation:{...e[r]}});Je.init({lng:this.options.lang,resources:n},(r,i)=>{this.initInnerEditor()})}initInnerEditor(){const e=typeof this.options.element=="string"?document.querySelector(this.options.element):this.options.element;e.classList.add(`aie-theme-${this.options.theme}`),this.container=e.querySelector(".aie-container"),this.container?this.customLayout=!0:(this.container=document.createElement("div"),this.container.classList.add("aie-container")),e.appendChild(this.container),this.mainEl=document.createElement("div"),this.mainEl.style.flexGrow="1",this.mainEl.style.overflow="auto",this.header=new pg,this.eventComponents.push(this.header),this.footer=new _g,this.footer.initDraggable(this.options.draggable),this.eventComponents.push(this.footer);let n=this.options.content;if(n&&this.options.contentIsMarkdown&&(n=Ja(n)),this.options.contentRetention&&this.options.contentRetentionKey){const r=localStorage.getItem(this.options.contentRetentionKey);if(r)try{n=JSON.parse(r)}catch(i){console.error(i,"Can not parse the cache content from localStorage.")}}this.innerEditor=new dE(this,{element:this.mainEl,content:n,editable:this.options.editable,extensions:this.getExtensions(),onCreate:r=>this.onCreate(r),onTransaction:r=>this.onTransaction(r),onFocus:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onFocus)==null?void 0:i.call(r,this)},onBlur:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onBlur)==null?void 0:i.call(r,this)},onDestroy:()=>{var r,i;return(i=(r=this.options)==null?void 0:r.onDestroy)==null?void 0:i.call(r,this)},editorProps:{attributes:{class:"aie-content"}}})}getExtensions(){let e=SL(this,this.options);if(this.options.onCreateBefore){const n=this.options.onCreateBefore(this,e);n&&(e=n)}return e}onCreate(e){this.innerEditor.view.dom.style.height="calc(100% - 20px)",this.eventComponents.forEach(o=>{o.onCreate&&o.onCreate(e,this.options)}),(this.container.querySelector(".aie-container-header")||this.container).appendChild(this.header),(this.container.querySelector(".aie-container-main")||this.container).appendChild(this.mainEl),(this.container.querySelector(".aie-container-footer")||this.container).appendChild(this.footer),this.options.ai&&En.init(this.innerEditor,this.options.ai),this.options.onCreated&&this.options.onCreated(this)}onTransaction(e){var n,r;if(this.eventComponents.forEach(i=>{i.onTransaction&&i.onTransaction(e)}),!e.transaction.getMeta("ignoreChanged")&&((r=(n=this.options).onTransaction)==null||r.call(n,this,e.transaction),e.transaction.docChanged&&this.options.onChange&&this.options.onChange(this),e.transaction.docChanged&&this.options.contentRetention&&this.options.contentRetentionKey)){const i=e.editor.getHTML();if(i==="

"||i==="")localStorage.removeItem(this.options.contentRetentionKey);else{const o=e.editor.getJSON();localStorage.setItem(this.options.contentRetentionKey,JSON.stringify(o))}}}getHtml(){return this.innerEditor.getHTML()}getJson(){return this.innerEditor.getJSON()}getText(){return this.innerEditor.getText()}getSelectedText(){const e=this.innerEditor.state.selection;return e.empty?"":ps(this.innerEditor.state.doc,{from:e.from,to:e.to})}getMarkdown(){return V3(this.getHtml())}getOptions(){return this.options}getAttributes(e){return this.innerEditor.getAttributes(e)}setAttributes(e,n){this.innerEditor.commands.updateAttributes(e,n)}isActive(e,n){return typeof e=="object"||!n?this.innerEditor.isActive(e):this.innerEditor.isActive(e,n)}commands(){return this.innerEditor.commands}commandsChain(){return this.innerEditor.chain()}getOutline(){const e=this.innerEditor.state.doc,n=[];return e.descendants((r,i)=>{if(r.type.name==="heading"){const o=`aie-heading-${n.length+1}`;if(r.attrs.id!==o){const{state:{tr:s},view:{dispatch:l}}=this.innerEditor;l(s.setNodeMarkup(i,void 0,{...r.attrs,id:o}).setMeta("ignoreChanged",!0))}let a="";r.descendants(s=>{s.text&&(a+=s.text)}),n.push({id:o,text:a,level:r.attrs.level,pos:i,size:r.nodeSize})}}),n}focus(){return this.innerEditor.commands.focus(),this}focusPos(e){return this.innerEditor.commands.focus(e),this}focusStart(){return this.innerEditor.commands.focus("start"),this}focusEnd(){return this.innerEditor.commands.focus("end"),this}isFocused(){return this.innerEditor.isFocused}blur(){return this.innerEditor.commands.blur(),this}insert(e){return this.innerEditor.commands.insertContent(e),this}insertMarkdown(e){return this.innerEditor.insertMarkdown(e),this}setEditable(e){return this.options.editable=e,this.innerEditor.setEditable(e,!0),this.eventComponents.forEach(n=>{n.onEditableChange(e)}),this}setContent(e){return this.focus().clear().insert(e),this}setMarkdownContent(e){const n=Ja(e);return this.setContent(n)}clear(){return this.innerEditor.commands.clearContent(!0),this}isEmpty(){return this.innerEditor.isEmpty}changeLang(e){return this.destroy(),this.options.lang=e,Je.changeLanguage(e),this.initInnerEditor(),this}removeRetention(){return this.options.contentRetentionKey&&localStorage.removeItem(this.options.contentRetentionKey),this}destroy(){var e,n;(n=(e=this.options).onDestroy)==null||n.call(e,this),this.innerEditor.destroy(),this.eventComponents=[],this.customLayout?(this.header.remove(),this.mainEl.remove(),this.footer.remove()):this.container.remove()}isDestroyed(){return this.innerEditor.isDestroyed}}exports.AiEditor=z3;exports.AiModelManager=En;exports.CustomAiModel=cg;exports.InnerEditor=dE;exports.OpenaiAiModel=ug;exports.SparkAiModel=ag;exports.WenXinAiModel=lg; diff --git a/dist/index.d.ts b/dist/index.d.ts index fa45a1e..b01427e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -368,7 +368,8 @@ export declare class OpenaiAiModel extends AiModel { export declare interface OpenaiModelConfig extends AiModelConfig { endpoint?: string; - apiKey: string; + customUrl?: string | (() => string); + apiKey?: string; model?: string; } @@ -376,7 +377,7 @@ export declare class SparkAiModel extends AiModel { constructor(editor: InnerEditor, globalConfig: AiGlobalConfig); createAiClient(url: string, listener: AiMessageListener): AiClient; wrapPayload(promptMessage: string): string; - getDomain(sparkAiModelConfig: SparkAiModelConfig): "4.0Ultra" | "generalv3.5" | "generalv3" | "generalv2" | "general"; + getDomain(sparkAiModelConfig: SparkAiModelConfig): "4.0Ultra" | "generalv3.5" | "generalv3" | "generalv2" | "lite" | "general"; createAiClientUrl(): string; } diff --git a/dist/index.js b/dist/index.js index 662763e..b2e04e7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,10 +1,10 @@ -var lE = Object.defineProperty; -var Lu = (t) => { +var gE = Object.defineProperty; +var Bu = (t) => { throw TypeError(t); }; -var cE = (t, e, n) => e in t ? lE(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; -var w = (t, e, n) => cE(t, typeof e != "symbol" ? e + "" : e, n), ku = (t, e, n) => e.has(t) || Lu("Cannot " + n); -var Or = (t, e, n) => (ku(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Pu = (t, e, n) => e.has(t) ? Lu("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Fu = (t, e, n, r) => (ku(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n); +var hE = (t, e, n) => e in t ? gE(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; +var L = (t, e, n) => hE(t, typeof e != "symbol" ? e + "" : e, n), Uu = (t, e, n) => e.has(t) || Bu("Cannot " + n); +var Or = (t, e, n) => (Uu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Hu = (t, e, n) => e.has(t) ? Bu("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Gu = (t, e, n, r) => (Uu(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n); function Ze(t) { this.content = t; } @@ -105,7 +105,7 @@ Ze.from = function(t) { if (t) for (var n in t) e.push(n, t[n]); return new Ze(e); }; -function Z_(t, e, n) { +function tm(t, e, n) { for (let r = 0; ; r++) { if (r == t.childCount || r == e.childCount) return t.childCount == e.childCount ? null : n; @@ -122,14 +122,14 @@ function Z_(t, e, n) { return n; } if (i.content.size || o.content.size) { - let a = Z_(i.content, o.content, n + 1); + let a = tm(i.content, o.content, n + 1); if (a != null) return a; } n += i.nodeSize; } } -function X_(t, e, n, r) { +function nm(t, e, n, r) { for (let i = t.childCount, o = e.childCount; ; ) { if (i == 0 || o == 0) return i == o ? null : { a: n, b: r }; @@ -147,14 +147,14 @@ function X_(t, e, n, r) { return { a: n, b: r }; } if (a.content.size || s.content.size) { - let c = X_(a.content, s.content, n - 1, r - 1); + let c = nm(a.content, s.content, n - 1, r - 1); if (c) return c; } n -= l, r -= l; } } -class L { +class w { /** @internal */ @@ -209,7 +209,7 @@ class L { let n = this.lastChild, r = e.firstChild, i = this.content.slice(), o = 0; for (n.isText && n.sameMarkup(r) && (i[i.length - 1] = n.withText(n.text + r.text), o = 1); o < e.content.length; o++) i.push(e.content[o]); - return new L(i, this.size + e.size); + return new w(i, this.size + e.size); } /** Cut out the sub-fragment between the two given positions. @@ -223,13 +223,13 @@ class L { let s = this.content[o], l = a + s.nodeSize; l > e && ((a < e || l > n) && (s.isText ? s = s.cut(Math.max(0, e - a), Math.min(s.text.length, n - a)) : s = s.cut(Math.max(0, e - a - 1), Math.min(s.content.size, n - a - 1))), r.push(s), i += s.nodeSize), a = l; } - return new L(r, i); + return new w(r, i); } /** @internal */ cutByIndex(e, n) { - return e == n ? L.empty : e == 0 && n == this.content.length ? this : new L(this.content.slice(e, n)); + return e == n ? w.empty : e == 0 && n == this.content.length ? this : new w(this.content.slice(e, n)); } /** Create a new fragment in which the node at the given index is @@ -240,21 +240,21 @@ class L { if (r == n) return this; let i = this.content.slice(), o = this.size + n.nodeSize - r.nodeSize; - return i[e] = n, new L(i, o); + return i[e] = n, new w(i, o); } /** Create a new fragment by prepending the given node to this fragment. */ addToStart(e) { - return new L([e].concat(this.content), this.size + e.nodeSize); + return new w([e].concat(this.content), this.size + e.nodeSize); } /** Create a new fragment by appending the given node to this fragment. */ addToEnd(e) { - return new L(this.content.concat(e), this.size + e.nodeSize); + return new w(this.content.concat(e), this.size + e.nodeSize); } /** Compare this fragment to another one. @@ -316,7 +316,7 @@ class L { fragment differ, or `null` if they are the same. */ findDiffStart(e, n = 0) { - return Z_(this, e, n); + return tm(this, e, n); } /** Find the first position, searching from the end, at which this @@ -325,7 +325,7 @@ class L { nodes, an object with two separate positions is returned. */ findDiffEnd(e, n = this.size, r = e.size) { - return X_(this, e, n, r); + return nm(this, e, n, r); } /** Find the index and inner offset corresponding to a given relative @@ -334,15 +334,15 @@ class L { */ findIndex(e, n = -1) { if (e == 0) - return vo(0, e); + return Ro(0, e); if (e == this.size) - return vo(this.content.length, e); + return Ro(this.content.length, e); if (e > this.size || e < 0) throw new RangeError(`Position ${e} outside of fragment (${this})`); for (let r = 0, i = 0; ; r++) { let o = this.child(r), a = i + o.nodeSize; if (a >= e) - return a == e || n > 0 ? vo(r + 1, a) : vo(r, i); + return a == e || n > 0 ? Ro(r + 1, a) : Ro(r, i); i = a; } } @@ -369,10 +369,10 @@ class L { */ static fromJSON(e, n) { if (!n) - return L.empty; + return w.empty; if (!Array.isArray(n)) throw new RangeError("Invalid input for Fragment.fromJSON"); - return new L(n.map(e.nodeFromJSON)); + return new w(n.map(e.nodeFromJSON)); } /** Build a fragment from an array of nodes. Ensures that adjacent @@ -380,13 +380,13 @@ class L { */ static fromArray(e) { if (!e.length) - return L.empty; + return w.empty; let n, r = 0; for (let i = 0; i < e.length; i++) { let o = e[i]; r += o.nodeSize, i && o.isText && e[i - 1].sameMarkup(o) ? (n || (n = e.slice(0, i)), n[n.length - 1] = o.withText(n[n.length - 1].text + o.text)) : n && n.push(o); } - return new L(n || e, r); + return new w(n || e, r); } /** Create a fragment from something that can be interpreted as a @@ -396,22 +396,22 @@ class L { */ static from(e) { if (!e) - return L.empty; - if (e instanceof L) + return w.empty; + if (e instanceof w) return e; if (Array.isArray(e)) return this.fromArray(e); if (e.attrs) - return new L([e], e.nodeSize); + return new w([e], e.nodeSize); throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : "")); } } -L.empty = new L([], 0); -const Ds = { index: 0, offset: 0 }; -function vo(t, e) { - return Ds.index = t, Ds.offset = e, Ds; +w.empty = new w([], 0); +const Ms = { index: 0, offset: 0 }; +function Ro(t, e) { + return Ms.index = t, Ms.offset = e, Ms; } -function oa(t, e) { +function aa(t, e) { if (t === e) return !0; if (!(t && typeof t == "object") || !(e && typeof e == "object")) @@ -423,11 +423,11 @@ function oa(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) - if (!oa(t[r], e[r])) + if (!aa(t[r], e[r])) return !1; } else { for (let r in t) - if (!(r in e) || !oa(t[r], e[r])) + if (!(r in e) || !aa(t[r], e[r])) return !1; for (let r in e) if (!(r in t)) @@ -435,7 +435,7 @@ function oa(t, e) { } return !0; } -let Re = class Ol { +let Re = class Al { /** @internal */ @@ -489,7 +489,7 @@ let Re = class Ol { another mark. */ eq(e) { - return this == e || this.type == e.type && oa(this.attrs, e.attrs); + return this == e || this.type == e.type && aa(this.attrs, e.attrs); } /** Convert this mark to a JSON-serializeable representation. @@ -533,15 +533,15 @@ let Re = class Ol { */ static setFrom(e) { if (!e || Array.isArray(e) && e.length == 0) - return Ol.none; - if (e instanceof Ol) + return Al.none; + if (e instanceof Al) return [e]; let n = e.slice(); return n.sort((r, i) => r.type.rank - i.type.rank), n; } }; Re.none = []; -class aa extends Error { +class sa extends Error { } class H { /** @@ -569,14 +569,14 @@ class H { @internal */ insertAt(e, n) { - let r = J_(this.content, e + this.openStart, n); + let r = im(this.content, e + this.openStart, n); return r && new H(r, this.openStart, this.openEnd); } /** @internal */ removeBetween(e, n) { - return new H(j_(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd); + return new H(rm(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd); } /** Tests whether this slice is equal to another slice. @@ -608,7 +608,7 @@ class H { let r = n.openStart || 0, i = n.openEnd || 0; if (typeof r != "number" || typeof i != "number") throw new RangeError("Invalid input for Slice.fromJSON"); - return new H(L.fromJSON(e, n.content), r, i); + return new H(w.fromJSON(e, n.content), r, i); } /** Create a slice from a fragment by taking the maximum possible @@ -623,8 +623,8 @@ class H { return new H(e, r, i); } } -H.empty = new H(L.empty, 0, 0); -function j_(t, e, n) { +H.empty = new H(w.empty, 0, 0); +function rm(t, e, n) { let { index: r, offset: i } = t.findIndex(e), o = t.maybeChild(r), { index: a, offset: s } = t.findIndex(n); if (i == e || o.isText) { if (s != n && !t.child(a).isText) @@ -633,81 +633,81 @@ function j_(t, e, n) { } if (r != a) throw new RangeError("Removing non-flat range"); - return t.replaceChild(r, o.copy(j_(o.content, e - i - 1, n - i - 1))); + return t.replaceChild(r, o.copy(rm(o.content, e - i - 1, n - i - 1))); } -function J_(t, e, n, r) { +function im(t, e, n, r) { let { index: i, offset: o } = t.findIndex(e), a = t.maybeChild(i); if (o == e || a.isText) return t.cut(0, e).append(n).append(t.cut(e)); - let s = J_(a.content, e - o - 1, n); + let s = im(a.content, e - o - 1, n); return s && t.replaceChild(i, a.copy(s)); } -function uE(t, e, n) { +function EE(t, e, n) { if (n.openStart > t.depth) - throw new aa("Inserted content deeper than insertion position"); + throw new sa("Inserted content deeper than insertion position"); if (t.depth - n.openStart != e.depth - n.openEnd) - throw new aa("Inconsistent open depths"); - return em(t, e, n, 0); + throw new sa("Inconsistent open depths"); + return om(t, e, n, 0); } -function em(t, e, n, r) { +function om(t, e, n, r) { let i = t.index(r), o = t.node(r); if (i == e.index(r) && r < t.depth - n.openStart) { - let a = em(t, e, n, r + 1); + let a = om(t, e, n, r + 1); return o.copy(o.content.replaceChild(i, a)); } else if (n.content.size) if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) { let a = t.parent, s = a.content; - return ar(a, s.cut(0, t.parentOffset).append(n.content).append(s.cut(e.parentOffset))); + return sr(a, s.cut(0, t.parentOffset).append(n.content).append(s.cut(e.parentOffset))); } else { - let { start: a, end: s } = dE(n, t); - return ar(o, nm(t, a, s, e, r)); + let { start: a, end: s } = SE(n, t); + return sr(o, sm(t, a, s, e, r)); } - else return ar(o, sa(t, e, r)); + else return sr(o, la(t, e, r)); } -function tm(t, e) { +function am(t, e) { if (!e.type.compatibleContent(t.type)) - throw new aa("Cannot join " + e.type.name + " onto " + t.type.name); + throw new sa("Cannot join " + e.type.name + " onto " + t.type.name); } -function Nl(t, e, n) { +function Il(t, e, n) { let r = t.node(n); - return tm(r, e.node(n)), r; + return am(r, e.node(n)), r; } -function or(t, e) { +function ar(t, e) { let n = e.length - 1; n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t); } -function Ii(t, e, n, r) { +function xi(t, e, n, r) { let i = (e || t).node(n), o = 0, a = e ? e.index(n) : i.childCount; - t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (or(t.nodeAfter, r), o++)); + t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (ar(t.nodeAfter, r), o++)); for (let s = o; s < a; s++) - or(i.child(s), r); - e && e.depth == n && e.textOffset && or(e.nodeBefore, r); + ar(i.child(s), r); + e && e.depth == n && e.textOffset && ar(e.nodeBefore, r); } -function ar(t, e) { +function sr(t, e) { return t.type.checkContent(e), t.copy(e); } -function nm(t, e, n, r, i) { - let o = t.depth > i && Nl(t, e, i + 1), a = r.depth > i && Nl(n, r, i + 1), s = []; - return Ii(null, t, i, s), o && a && e.index(i) == n.index(i) ? (tm(o, a), or(ar(o, nm(t, e, n, r, i + 1)), s)) : (o && or(ar(o, sa(t, e, i + 1)), s), Ii(e, n, i, s), a && or(ar(a, sa(n, r, i + 1)), s)), Ii(r, null, i, s), new L(s); +function sm(t, e, n, r, i) { + let o = t.depth > i && Il(t, e, i + 1), a = r.depth > i && Il(n, r, i + 1), s = []; + return xi(null, t, i, s), o && a && e.index(i) == n.index(i) ? (am(o, a), ar(sr(o, sm(t, e, n, r, i + 1)), s)) : (o && ar(sr(o, la(t, e, i + 1)), s), xi(e, n, i, s), a && ar(sr(a, la(n, r, i + 1)), s)), xi(r, null, i, s), new w(s); } -function sa(t, e, n) { +function la(t, e, n) { let r = []; - if (Ii(null, t, n, r), t.depth > n) { - let i = Nl(t, e, n + 1); - or(ar(i, sa(t, e, n + 1)), r); + if (xi(null, t, n, r), t.depth > n) { + let i = Il(t, e, n + 1); + ar(sr(i, la(t, e, n + 1)), r); } - return Ii(e, null, n, r), new L(r); + return xi(e, null, n, r), new w(r); } -function dE(t, e) { +function SE(t, e) { let n = e.depth - t.openStart, i = e.node(n).copy(t.content); for (let o = n - 1; o >= 0; o--) - i = e.node(o).copy(L.from(i)); + i = e.node(o).copy(w.from(i)); return { start: i.resolveNoCache(t.openStart + n), end: i.resolveNoCache(i.content.size - t.openEnd - n) }; } -class Gi { +class Vi { /** @internal */ @@ -892,7 +892,7 @@ class Gi { return e.blockRange(this); for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--) if (e.pos <= this.end(r) && (!n || n(this.node(r)))) - return new la(this, e, r); + return new ca(this, e, r); return null; } /** @@ -935,13 +935,13 @@ class Gi { break; o = c - 1, i += l + 1; } - return new Gi(n, r, o); + return new Vi(n, r, o); } /** @internal */ static resolveCached(e, n) { - let r = Bu.get(e); + let r = Vu.get(e); if (r) for (let o = 0; o < r.elts.length; o++) { let a = r.elts[o]; @@ -949,18 +949,18 @@ class Gi { return a; } else - Bu.set(e, r = new pE()); - let i = r.elts[r.i] = Gi.resolve(e, n); - return r.i = (r.i + 1) % _E, i; + Vu.set(e, r = new bE()); + let i = r.elts[r.i] = Vi.resolve(e, n); + return r.i = (r.i + 1) % TE, i; } } -class pE { +class bE { constructor() { this.elts = [], this.i = 0; } } -const _E = 12, Bu = /* @__PURE__ */ new WeakMap(); -class la { +const TE = 12, Vu = /* @__PURE__ */ new WeakMap(); +class ca { /** Construct a node range. `$from` and `$to` should point into the same node until at least the given `depth`, since a node range @@ -1000,13 +1000,13 @@ class la { return this.$to.indexAfter(this.depth); } } -const mE = /* @__PURE__ */ Object.create(null); -let sr = class Al { +const CE = /* @__PURE__ */ Object.create(null); +let Fn = class xl { /** @internal */ constructor(e, n, r, i = Re.none) { - this.type = e, this.attrs = n, this.marks = i, this.content = r || L.empty; + this.type = e, this.attrs = n, this.marks = i, this.content = r || w.empty; } /** The size of this node, as defined by the integer-based [indexing @@ -1113,21 +1113,21 @@ let sr = class Al { attributes, and marks. */ hasMarkup(e, n, r) { - return this.type == e && oa(this.attrs, n || e.defaultAttrs || mE) && Re.sameSet(this.marks, r || Re.none); + return this.type == e && aa(this.attrs, n || e.defaultAttrs || CE) && Re.sameSet(this.marks, r || Re.none); } /** Create a new node with the same markup as this node, containing the given content (or empty, if no content is given). */ copy(e = null) { - return e == this.content ? this : new Al(this.type, this.attrs, e, this.marks); + return e == this.content ? this : new xl(this.type, this.attrs, e, this.marks); } /** Create a copy of this node, with the given set of marks instead of the node's own marks. */ mark(e) { - return e == this.marks ? this : new Al(this.type, this.attrs, this.content, e); + return e == this.marks ? this : new xl(this.type, this.attrs, this.content, e); } /** Create a copy of this node with only the content between the @@ -1156,7 +1156,7 @@ let sr = class Al { [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown. */ replace(e, n, r) { - return uE(this.resolve(e), this.resolve(n), r); + return EE(this.resolve(e), this.resolve(n), r); } /** Find the node directly after the given position. @@ -1199,13 +1199,13 @@ let sr = class Al { [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context. */ resolve(e) { - return Gi.resolveCached(this, e); + return Vi.resolveCached(this, e); } /** @internal */ resolveNoCache(e) { - return Gi.resolve(this, e); + return Vi.resolve(this, e); } /** Test whether a given mark or mark type occurs in this document @@ -1271,7 +1271,7 @@ let sr = class Al { if (this.type.spec.toDebugString) return this.type.spec.toDebugString(this); let e = this.type.name; - return this.content.size && (e += "(" + this.content.toStringInner() + ")"), rm(this.marks, e); + return this.content.size && (e += "(" + this.content.toStringInner() + ")"), lm(this.marks, e); } /** Get the content match in this node at the given index. @@ -1289,7 +1289,7 @@ let sr = class Al { can optionally pass `start` and `end` indices into the replacement fragment. */ - canReplace(e, n, r = L.empty, i = 0, o = r.childCount) { + canReplace(e, n, r = w.empty, i = 0, o = r.childCount) { let a = this.contentMatchAt(e).matchFragment(r, i, o), s = a && a.matchFragment(this.content, n); if (!s || !s.validEnd) return !1; @@ -1360,12 +1360,12 @@ let sr = class Al { throw new RangeError("Invalid text node in JSON"); return e.text(n.text, r); } - let i = L.fromJSON(e, n.content), o = e.nodeType(n.type).create(n.attrs, i, r); + let i = w.fromJSON(e, n.content), o = e.nodeType(n.type).create(n.attrs, i, r); return o.type.checkAttrs(o.attrs), o; } }; -sr.prototype.text = void 0; -class ca extends sr { +Fn.prototype.text = void 0; +class ua extends Fn { /** @internal */ @@ -1375,7 +1375,7 @@ class ca extends sr { this.text = r; } toString() { - return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : rm(this.marks, JSON.stringify(this.text)); + return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : lm(this.marks, JSON.stringify(this.text)); } get textContent() { return this.text; @@ -1387,10 +1387,10 @@ class ca extends sr { return this.text.length; } mark(e) { - return e == this.marks ? this : new ca(this.type, this.attrs, this.text, e); + return e == this.marks ? this : new ua(this.type, this.attrs, this.text, e); } withText(e) { - return e == this.text ? this : new ca(this.type, this.attrs, e, this.marks); + return e == this.text ? this : new ua(this.type, this.attrs, e, this.marks); } cut(e = 0, n = this.text.length) { return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n)); @@ -1403,7 +1403,7 @@ class ca extends sr { return e.text = this.text, e; } } -function rm(t, e) { +function lm(t, e) { for (let n = t.length - 1; n >= 0; n--) e = t[n].type.name + "(" + e + ")"; return e; @@ -1419,13 +1419,13 @@ class mr { @internal */ static parse(e, n) { - let r = new fE(e, n); + let r = new yE(e, n); if (r.next == null) return mr.empty; - let i = im(r); + let i = cm(r); r.next && r.err("Unexpected trailing text"); - let o = CE(TE(i)); - return yE(o, r), o; + let o = xE(IE(i)); + return DE(o, r), o; } /** Match a node type, returning a match after that node if @@ -1488,7 +1488,7 @@ class mr { function o(a, s) { let l = a.matchFragment(e, r); if (l && (!n || l.validEnd)) - return L.from(s.map((c) => c.createAndFill())); + return w.from(s.map((c) => c.createAndFill())); for (let c = 0; c < a.next.length; c++) { let { type: u, next: d } = a.next[c]; if (!(u.isText || u.hasRequiredAttrs()) && i.indexOf(d) == -1) { @@ -1571,7 +1571,7 @@ class mr { } } mr.empty = new mr(!0); -class fE { +class yE { constructor(e, n) { this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift(); } @@ -1585,22 +1585,22 @@ class fE { throw new SyntaxError(e + " (in content expression '" + this.string + "')"); } } -function im(t) { +function cm(t) { let e = []; do - e.push(gE(t)); + e.push(vE(t)); while (t.eat("|")); return e.length == 1 ? e[0] : { type: "choice", exprs: e }; } -function gE(t) { +function vE(t) { let e = []; do - e.push(hE(t)); + e.push(RE(t)); while (t.next && t.next != ")" && t.next != "|"); return e.length == 1 ? e[0] : { type: "seq", exprs: e }; } -function hE(t) { - let e = bE(t); +function RE(t) { + let e = AE(t); for (; ; ) if (t.eat("+")) e = { type: "plus", expr: e }; @@ -1609,43 +1609,43 @@ function hE(t) { else if (t.eat("?")) e = { type: "opt", expr: e }; else if (t.eat("{")) - e = EE(t, e); + e = OE(t, e); else break; return e; } -function Uu(t) { +function Yu(t) { /\D/.test(t.next) && t.err("Expected number, got '" + t.next + "'"); let e = Number(t.next); return t.pos++, e; } -function EE(t, e) { - let n = Uu(t), r = n; - return t.eat(",") && (t.next != "}" ? r = Uu(t) : r = -1), t.eat("}") || t.err("Unclosed braced range"), { type: "range", min: n, max: r, expr: e }; +function OE(t, e) { + let n = Yu(t), r = n; + return t.eat(",") && (t.next != "}" ? r = Yu(t) : r = -1), t.eat("}") || t.err("Unclosed braced range"), { type: "range", min: n, max: r, expr: e }; } -function SE(t, e) { +function NE(t, e) { let n = t.nodeTypes, r = n[e]; if (r) return [r]; let i = []; for (let o in n) { let a = n[o]; - a.groups.indexOf(e) > -1 && i.push(a); + a.isInGroup(e) && i.push(a); } return i.length == 0 && t.err("No node type or group '" + e + "' found"), i; } -function bE(t) { +function AE(t) { if (t.eat("(")) { - let e = im(t); + let e = cm(t); return t.eat(")") || t.err("Missing closing paren"), e; } else if (/\W/.test(t.next)) t.err("Unexpected token '" + t.next + "'"); else { - let e = SE(t, t.next).map((n) => (t.inline == null ? t.inline = n.isInline : t.inline != n.isInline && t.err("Mixing inline and block content"), { type: "name", value: n })); + let e = NE(t, t.next).map((n) => (t.inline == null ? t.inline = n.isInline : t.inline != n.isInline && t.err("Mixing inline and block content"), { type: "name", value: n })); return t.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e }; } } -function TE(t) { +function IE(t) { let e = [[]]; return i(o(t, 0), n()), e; function n() { @@ -1699,12 +1699,12 @@ function TE(t) { } } } -function om(t, e) { +function um(t, e) { return e - t; } -function Hu(t, e) { +function zu(t, e) { let n = []; - return r(e), n.sort(om); + return r(e), n.sort(um); function r(i) { let o = t[i]; if (o.length == 1 && !o[0].term) @@ -1716,9 +1716,9 @@ function Hu(t, e) { } } } -function CE(t) { +function xE(t) { let e = /* @__PURE__ */ Object.create(null); - return n(Hu(t, 0)); + return n(zu(t, 0)); function n(r) { let i = []; r.forEach((a) => { @@ -1728,20 +1728,20 @@ function CE(t) { let c; for (let u = 0; u < i.length; u++) i[u][0] == s && (c = i[u][1]); - Hu(t, l).forEach((u) => { + zu(t, l).forEach((u) => { c || i.push([s, c = []]), c.indexOf(u) == -1 && c.push(u); }); }); }); let o = e[r.join(",")] = new mr(r.indexOf(t.length - 1) > -1); for (let a = 0; a < i.length; a++) { - let s = i[a][1].sort(om); + let s = i[a][1].sort(um); o.next.push({ type: i[a][0], next: e[s.join(",")] || n(s) }); } return o; } } -function yE(t, e) { +function DE(t, e) { for (let n = 0, r = [t]; n < r.length; n++) { let i = r[n], o = !i.validEnd, a = []; for (let s = 0; s < i.next.length; s++) { @@ -1751,7 +1751,7 @@ function yE(t, e) { o && e.err("Only non-generatable nodes (" + a.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)"); } } -function am(t) { +function dm(t) { let e = /* @__PURE__ */ Object.create(null); for (let n in t) { let r = t[n]; @@ -1761,7 +1761,7 @@ function am(t) { } return e; } -function sm(t, e) { +function pm(t, e) { let n = /* @__PURE__ */ Object.create(null); for (let r in t) { let i = e && e[r]; @@ -1776,7 +1776,7 @@ function sm(t, e) { } return n; } -function lm(t, e, n, r) { +function _m(t, e, n, r) { for (let i in e) if (!(i in t)) throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`); @@ -1785,19 +1785,19 @@ function lm(t, e, n, r) { o.validate && o.validate(e[i]); } } -function cm(t, e) { +function mm(t, e) { let n = /* @__PURE__ */ Object.create(null); if (e) for (let r in e) - n[r] = new RE(t, r, e[r]); + n[r] = new wE(t, r, e[r]); return n; } -let Gu = class um { +let $u = class fm { /** @internal */ constructor(e, n, r) { - this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = cm(e, r.attrs), this.defaultAttrs = am(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text"; + this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = mm(e, r.attrs), this.defaultAttrs = dm(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text"; } /** True if this is an inline type. @@ -1826,6 +1826,13 @@ let Gu = class um { return this.isLeaf || !!this.spec.atom; } /** + Return true when this node type is part of the given + [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group). + */ + isInGroup(e) { + return this.groups.indexOf(e) > -1; + } + /** The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option. */ get whitespace() { @@ -1851,7 +1858,7 @@ let Gu = class um { @internal */ computeAttrs(e) { - return !e && this.defaultAttrs ? this.defaultAttrs : sm(this.attrs, e); + return !e && this.defaultAttrs ? this.defaultAttrs : pm(this.attrs, e); } /** Create a `Node` of this type. The given attributes are @@ -1864,7 +1871,7 @@ let Gu = class um { create(e = null, n, r) { if (this.isText) throw new Error("NodeType.create can't construct text nodes"); - return new sr(this, this.computeAttrs(e), L.from(n), Re.setFrom(r)); + return new Fn(this, this.computeAttrs(e), w.from(n), Re.setFrom(r)); } /** Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content @@ -1872,7 +1879,7 @@ let Gu = class um { if it doesn't match. */ createChecked(e = null, n, r) { - return n = L.from(n), this.checkContent(n), new sr(this, this.computeAttrs(e), n, Re.setFrom(r)); + return n = w.from(n), this.checkContent(n), new Fn(this, this.computeAttrs(e), n, Re.setFrom(r)); } /** Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is @@ -1883,14 +1890,14 @@ let Gu = class um { `Fragment.empty` as content. */ createAndFill(e = null, n, r) { - if (e = this.computeAttrs(e), n = L.from(n), n.size) { + if (e = this.computeAttrs(e), n = w.from(n), n.size) { let a = this.contentMatch.fillBefore(n); if (!a) return null; n = a.append(n); } - let i = this.contentMatch.matchFragment(n), o = i && i.fillBefore(L.empty, !0); - return o ? new sr(this, e, n.append(o), Re.setFrom(r)) : null; + let i = this.contentMatch.matchFragment(n), o = i && i.fillBefore(w.empty, !0); + return o ? new Fn(this, e, n.append(o), Re.setFrom(r)) : null; } /** Returns true if the given fragment is valid content for this node @@ -1918,7 +1925,7 @@ let Gu = class um { @internal */ checkAttrs(e) { - lm(this.attrs, e, "node", this.name); + _m(this.attrs, e, "node", this.name); } /** Check whether the given mark type is allowed in this node. @@ -1953,7 +1960,7 @@ let Gu = class um { */ static compile(e, n) { let r = /* @__PURE__ */ Object.create(null); - e.forEach((o, a) => r[o] = new um(o, n, a)); + e.forEach((o, a) => r[o] = new fm(o, n, a)); let i = n.spec.topNode || "doc"; if (!r[i]) throw new RangeError("Schema is missing its top node type ('" + i + "')"); @@ -1964,7 +1971,7 @@ let Gu = class um { return r; } }; -function vE(t, e, n) { +function ME(t, e, n) { let r = n.split("|"); return (i) => { let o = i === null ? "null" : typeof i; @@ -1972,21 +1979,21 @@ function vE(t, e, n) { throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`); }; } -class RE { +class wE { constructor(e, n, r) { - this.hasDefault = Object.prototype.hasOwnProperty.call(r, "default"), this.default = r.default, this.validate = typeof r.validate == "string" ? vE(e, n, r.validate) : r.validate; + this.hasDefault = Object.prototype.hasOwnProperty.call(r, "default"), this.default = r.default, this.validate = typeof r.validate == "string" ? ME(e, n, r.validate) : r.validate; } get isRequired() { return !this.hasDefault; } } -class Ja { +class es { /** @internal */ constructor(e, n, r, i) { - this.name = e, this.rank = n, this.schema = r, this.spec = i, this.attrs = cm(e, i.attrs), this.excluded = null; - let o = am(this.attrs); + this.name = e, this.rank = n, this.schema = r, this.spec = i, this.attrs = mm(e, i.attrs), this.excluded = null; + let o = dm(this.attrs); this.instance = o ? new Re(this, o) : null; } /** @@ -1995,14 +2002,14 @@ class Ja { they have defaults, will be added. */ create(e = null) { - return !e && this.instance ? this.instance : new Re(this, sm(this.attrs, e)); + return !e && this.instance ? this.instance : new Re(this, pm(this.attrs, e)); } /** @internal */ static compile(e, n) { let r = /* @__PURE__ */ Object.create(null), i = 0; - return e.forEach((o, a) => r[o] = new Ja(o, i++, n, a)), r; + return e.forEach((o, a) => r[o] = new es(o, i++, n, a)), r; } /** When there is a mark of this type in the given set, a new set @@ -2025,7 +2032,7 @@ class Ja { @internal */ checkAttrs(e) { - lm(this.attrs, e, "mark", this.name); + _m(this.attrs, e, "mark", this.name); } /** Queries whether a given mark type is @@ -2035,7 +2042,7 @@ class Ja { return this.excluded.indexOf(e) > -1; } } -class dm { +class gm { /** Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec). */ @@ -2044,7 +2051,7 @@ class dm { let n = this.spec = {}; for (let i in e) n[i] = e[i]; - n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Gu.compile(this.spec.nodes, this), this.marks = Ja.compile(this.spec.marks, this); + n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = $u.compile(this.spec.nodes, this), this.marks = es.compile(this.spec.marks, this); let r = /* @__PURE__ */ Object.create(null); for (let i in this.nodes) { if (i in this.marks) @@ -2057,11 +2064,11 @@ class dm { throw new RangeError("Linebreak replacement nodes must be inline leaf nodes"); this.linebreakReplacement = o; } - o.markSet = s == "_" ? null : s ? Vu(this, s.split(" ")) : s == "" || !o.inlineContent ? [] : null; + o.markSet = s == "_" ? null : s ? qu(this, s.split(" ")) : s == "" || !o.inlineContent ? [] : null; } for (let i in this.marks) { let o = this.marks[i], a = o.spec.excludes; - o.excluded = a == null ? [o] : a == "" ? [] : Vu(this, a.split(" ")); + o.excluded = a == null ? [o] : a == "" ? [] : qu(this, a.split(" ")); } this.nodeFromJSON = this.nodeFromJSON.bind(this), this.markFromJSON = this.markFromJSON.bind(this), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null); } @@ -2074,7 +2081,7 @@ class dm { node(e, n = null, r, i) { if (typeof e == "string") e = this.nodeType(e); - else if (e instanceof Gu) { + else if (e instanceof $u) { if (e.schema != this) throw new RangeError("Node type from different schema used (" + e.name + ")"); } else throw new RangeError("Invalid node type: " + e); @@ -2086,7 +2093,7 @@ class dm { */ text(e, n) { let r = this.nodes.text; - return new ca(r, r.defaultAttrs, e, Re.setFrom(n)); + return new ua(r, r.defaultAttrs, e, Re.setFrom(n)); } /** Create a mark with the given type and attributes. @@ -2099,7 +2106,7 @@ class dm { bound. */ nodeFromJSON(e) { - return sr.fromJSON(this, e); + return Fn.fromJSON(this, e); } /** Deserialize a mark from its JSON representation. This method is @@ -2118,7 +2125,7 @@ class dm { return n; } } -function Vu(t, e) { +function qu(t, e) { let n = []; for (let r = 0; r < e.length; r++) { let i = e[r], o = t.marks[i], a = o; @@ -2134,13 +2141,13 @@ function Vu(t, e) { } return n; } -function OE(t) { +function LE(t) { return t.tag != null; } -function NE(t) { +function kE(t) { return t.style != null; } -let Wr = class Il { +let Wr = class Dl { /** Create a parser that targets the given schema, using the given parsing rules. @@ -2149,9 +2156,9 @@ let Wr = class Il { this.schema = e, this.rules = n, this.tags = [], this.styles = []; let r = this.matchedStyles = []; n.forEach((i) => { - if (OE(i)) + if (LE(i)) this.tags.push(i); - else if (NE(i)) { + else if (kE(i)) { let o = /[^=]*/.exec(i.style)[0]; r.indexOf(o) < 0 && r.push(o), this.styles.push(i); } @@ -2166,7 +2173,7 @@ let Wr = class Il { Parse a document from the content of a DOM node. */ parse(e, n = {}) { - let r = new zu(this, n, !1); + let r = new Ku(this, n, !1); return r.addAll(e, Re.none, n.from, n.to), r.finish(); } /** @@ -2178,7 +2185,7 @@ let Wr = class Il { the left of the input and the end of nodes at the end. */ parseSlice(e, n = {}) { - let r = new zu(this, n, !0); + let r = new Ku(this, n, !0); return r.addAll(e, Re.none, n.from, n.to), H.maxOpen(r.finish()); } /** @@ -2187,7 +2194,7 @@ let Wr = class Il { matchTag(e, n, r) { for (let i = r ? this.tags.indexOf(r) + 1 : 0; i < this.tags.length; i++) { let o = this.tags[i]; - if (xE(e, o.tag) && (o.namespace === void 0 || e.namespaceURI == o.namespace) && (!o.context || n.matchesContext(o.context))) { + if (BE(e, o.tag) && (o.namespace === void 0 || e.namespaceURI == o.namespace) && (!o.context || n.matchesContext(o.context))) { if (o.getAttrs) { let a = o.getAttrs(e); if (a === !1) @@ -2235,13 +2242,13 @@ let Wr = class Il { for (let i in e.marks) { let o = e.marks[i].spec.parseDOM; o && o.forEach((a) => { - r(a = $u(a)), a.mark || a.ignore || a.clearMark || (a.mark = i); + r(a = Qu(a)), a.mark || a.ignore || a.clearMark || (a.mark = i); }); } for (let i in e.nodes) { let o = e.nodes[i].spec.parseDOM; o && o.forEach((a) => { - r(a = $u(a)), a.node || a.ignore || a.mark || (a.node = i); + r(a = Qu(a)), a.node || a.ignore || a.mark || (a.node = i); }); } return n; @@ -2252,10 +2259,10 @@ let Wr = class Il { [priority](https://prosemirror.net/docs/ref/#model.ParseRule.priority). */ static fromSchema(e) { - return e.cached.domParser || (e.cached.domParser = new Il(e, Il.schemaRules(e))); + return e.cached.domParser || (e.cached.domParser = new Dl(e, Dl.schemaRules(e))); } }; -const pm = { +const hm = { address: !0, article: !0, aside: !0, @@ -2288,26 +2295,26 @@ const pm = { table: !0, tfoot: !0, ul: !0 -}, AE = { +}, PE = { head: !0, noscript: !0, object: !0, script: !0, style: !0, title: !0 -}, _m = { ol: !0, ul: !0 }, ua = 1, da = 2, xi = 4; -function Yu(t, e, n) { - return e != null ? (e ? ua : 0) | (e === "full" ? da : 0) : t && t.whitespace == "pre" ? ua | da : n & ~xi; +}, Em = { ol: !0, ul: !0 }, da = 1, pa = 2, Di = 4; +function Wu(t, e, n) { + return e != null ? (e ? da : 0) | (e === "full" ? pa : 0) : t && t.whitespace == "pre" ? da | pa : n & ~Di; } -class Ro { +class Oo { constructor(e, n, r, i, o, a) { - this.type = e, this.attrs = n, this.marks = r, this.solid = i, this.options = a, this.content = [], this.activeMarks = Re.none, this.match = o || (a & xi ? null : e.contentMatch); + this.type = e, this.attrs = n, this.marks = r, this.solid = i, this.options = a, this.content = [], this.activeMarks = Re.none, this.match = o || (a & Di ? null : e.contentMatch); } findWrapping(e) { if (!this.match) { if (!this.type) return []; - let n = this.type.contentMatch.fillBefore(L.from(e)); + let n = this.type.contentMatch.fillBefore(w.from(e)); if (n) this.match = this.type.contentMatch.matchFragment(n); else { @@ -2318,25 +2325,25 @@ class Ro { return this.match.findWrapping(e.type); } finish(e) { - if (!(this.options & ua)) { + if (!(this.options & da)) { let r = this.content[this.content.length - 1], i; if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) { let o = r; r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = o.withText(o.text.slice(0, o.text.length - i[0].length)); } } - let n = L.from(this.content); - return !e && this.match && (n = n.append(this.match.fillBefore(L.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n; + let n = w.from(this.content); + return !e && this.match && (n = n.append(this.match.fillBefore(w.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n; } inlineContext(e) { - return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !pm.hasOwnProperty(e.parentNode.nodeName.toLowerCase()); + return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !hm.hasOwnProperty(e.parentNode.nodeName.toLowerCase()); } } -class zu { +class Ku { constructor(e, n, r) { this.parser = e, this.options = n, this.isOpen = r, this.open = 0; - let i = n.topNode, o, a = Yu(null, n.preserveWhitespace, 0) | (r ? xi : 0); - i ? o = new Ro(i.type, i.attrs, Re.none, !0, n.topMatch || i.type.contentMatch, a) : r ? o = new Ro(null, null, Re.none, !0, null, a) : o = new Ro(e.schema.topNodeType, null, Re.none, !0, null, a), this.nodes = [o], this.find = n.findPositions, this.needsBlock = !1; + let i = n.topNode, o, a = Wu(null, n.preserveWhitespace, 0) | (r ? Di : 0); + i ? o = new Oo(i.type, i.attrs, Re.none, !0, n.topMatch || i.type.contentMatch, a) : r ? o = new Oo(null, null, Re.none, !0, null, a) : o = new Oo(e.schema.topNodeType, null, Re.none, !0, null, a), this.nodes = [o], this.find = n.findPositions, this.needsBlock = !1; } get top() { return this.nodes[this.open]; @@ -2349,9 +2356,9 @@ class zu { } addTextNode(e, n) { let r = e.nodeValue, i = this.top; - if (i.options & da || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) { - if (i.options & ua) - i.options & da ? r = r.replace(/\r\n?/g, ` + if (i.options & pa || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) { + if (i.options & da) + i.options & pa ? r = r.replace(/\r\n?/g, ` `) : r = r.replace(/\r?\n|\r/g, " "); else if (r = r.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(r) && this.open == this.nodes.length - 1) { let o = i.content[i.content.length - 1], a = e.previousSibling; @@ -2365,14 +2372,14 @@ class zu { // none is found, the element's content nodes are added directly. addElement(e, n, r) { let i = e.nodeName.toLowerCase(), o; - _m.hasOwnProperty(i) && this.parser.normalizeLists && IE(e); + Em.hasOwnProperty(i) && this.parser.normalizeLists && FE(e); let a = this.options.ruleFromNode && this.options.ruleFromNode(e) || (o = this.parser.matchTag(e, this, r)); - if (a ? a.ignore : AE.hasOwnProperty(i)) + if (a ? a.ignore : PE.hasOwnProperty(i)) this.findInside(e), this.ignoreFallback(e, n); else if (!a || a.skip || a.closeParent) { a && a.closeParent ? this.open = Math.max(0, this.open - 1) : a && a.skip.nodeType && (e = a.skip); let s, l = this.top, c = this.needsBlock; - if (pm.hasOwnProperty(i)) + if (hm.hasOwnProperty(i)) l.content.length && l.content[0].isInline && this.open && (this.open--, l = this.top), s = !0, l.type || (this.needsBlock = !0); else if (!e.firstChild) { this.leafFallback(e, n); @@ -2442,7 +2449,7 @@ class zu { this.findInside(e), n.getContent(e, this.parser.schema).forEach((l) => this.insertNode(l, r)); else { let l = e; - typeof n.contentElement == "string" ? l = e.querySelector(n.contentElement) : typeof n.contentElement == "function" ? l = n.contentElement(e) : n.contentElement && (l = n.contentElement), this.findAround(e, l, !0), this.addAll(l, r); + typeof n.contentElement == "string" ? l = e.querySelector(n.contentElement) : typeof n.contentElement == "function" ? l = n.contentElement(e) : n.contentElement && (l = n.contentElement), this.findAround(e, l, !0), this.addAll(l, r), this.findAround(e, l, !1); } o && this.sync(s) && this.open--; } @@ -2485,7 +2492,7 @@ class zu { i.match && (i.match = i.match.matchType(e.type)); let o = Re.none; for (let a of r.concat(e.marks)) - (i.type ? i.type.allowsMarkType(a.type) : qu(a.type, e.type)) && (o = a.addToSet(o)); + (i.type ? i.type.allowsMarkType(a.type) : Zu(a.type, e.type)) && (o = a.addToSet(o)); return i.content.push(e.mark(o)), !0; } return !1; @@ -2501,10 +2508,10 @@ class zu { this.closeExtra(); let a = this.top; a.match = a.match && a.match.matchType(e); - let s = Yu(e, o, a.options); - a.options & xi && a.content.length == 0 && (s |= xi); + let s = Wu(e, o, a.options); + a.options & Di && a.content.length == 0 && (s |= Di); let l = Re.none; - return r = r.filter((c) => (a.type ? a.type.allowsMarkType(c.type) : qu(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Ro(e, n, l, i, null, s)), this.open++, r; + return r = r.filter((c) => (a.type ? a.type.allowsMarkType(c.type) : Zu(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Oo(e, n, l, i, null, s)), this.open++, r; } // Make sure all nodes above this.open are finished and added to // their parents @@ -2572,7 +2579,7 @@ class zu { return !1; } else { let u = l > 0 || l == 0 && i ? this.nodes[l].type : r && l >= o ? r.node(l - o).type : null; - if (!u || u.name != c && u.groups.indexOf(c) == -1) + if (!u || u.name != c && !u.isInGroup(c)) return !1; l--; } @@ -2596,22 +2603,22 @@ class zu { } } } -function IE(t) { +function FE(t) { for (let e = t.firstChild, n = null; e; e = e.nextSibling) { let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null; - r && _m.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null); + r && Em.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null); } } -function xE(t, e) { +function BE(t, e) { return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e); } -function $u(t) { +function Qu(t) { let e = {}; for (let n in t) e[n] = t[n]; return e; } -function qu(t, e) { +function Zu(t, e) { let n = e.schema.nodes; for (let r in n) { let i = n[r]; @@ -2649,7 +2656,7 @@ class Cr { nodes. */ serializeFragment(e, n = {}, r) { - r || (r = Ms(n).createDocumentFragment()); + r || (r = ws(n).createDocumentFragment()); let i = r, o = []; return e.forEach((a) => { if (o.length || a.marks.length) { @@ -2678,7 +2685,7 @@ class Cr { @internal */ serializeNodeInner(e, n) { - let { dom: r, contentDOM: i } = Zo(Ms(n), this.nodes[e.type.name](e), null, e.attrs); + let { dom: r, contentDOM: i } = Xo(ws(n), this.nodes[e.type.name](e), null, e.attrs); if (i) { if (e.isLeaf) throw new RangeError("Content hole not allowed in a leaf node spec"); @@ -2706,10 +2713,10 @@ class Cr { */ serializeMark(e, n, r = {}) { let i = this.marks[e.type.name]; - return i && Zo(Ms(r), i(e, n), null, e.attrs); + return i && Xo(ws(r), i(e, n), null, e.attrs); } static renderSpec(e, n, r = null, i) { - return Zo(e, n, r, i); + return Xo(e, n, r, i); } /** Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM) @@ -2723,17 +2730,17 @@ class Cr { This can be useful as a base to build a custom serializer from. */ static nodesFromSchema(e) { - let n = Wu(e.nodes); + let n = Xu(e.nodes); return n.text || (n.text = (r) => r.text), n; } /** Gather the serializers in a schema's mark specs into an object. */ static marksFromSchema(e) { - return Wu(e.marks); + return Xu(e.marks); } } -function Wu(t) { +function Xu(t) { let e = {}; for (let n in t) { let r = t[n].spec.toDOM; @@ -2741,15 +2748,15 @@ function Wu(t) { } return e; } -function Ms(t) { +function ws(t) { return t.document || window.document; } -const Ku = /* @__PURE__ */ new WeakMap(); -function DE(t) { - let e = Ku.get(t); - return e === void 0 && Ku.set(t, e = ME(t)), e; +const ju = /* @__PURE__ */ new WeakMap(); +function UE(t) { + let e = ju.get(t); + return e === void 0 && ju.set(t, e = HE(t)), e; } -function ME(t) { +function HE(t) { let e = null; function n(r) { if (r && typeof r == "object") @@ -2765,7 +2772,7 @@ function ME(t) { } return n(t), e; } -function Zo(t, e, n, r) { +function Xo(t, e, n, r) { if (typeof e == "string") return { dom: t.createTextNode(e) }; if (e.nodeType != null) @@ -2775,7 +2782,7 @@ function Zo(t, e, n, r) { let i = e[0], o; if (typeof i != "string") throw new RangeError("Invalid array passed to renderSpec"); - if (r && (o = DE(r)) && o.indexOf(e) > -1) + if (r && (o = UE(r)) && o.indexOf(e) > -1) throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack."); let a = i.indexOf(" "); a > 0 && (n = i.slice(0, a), i = i.slice(a + 1)); @@ -2795,7 +2802,7 @@ function Zo(t, e, n, r) { throw new RangeError("Content hole must be the only child of its parent node"); return { dom: l, contentDOM: l }; } else { - let { dom: _, contentDOM: m } = Zo(t, p, n, r); + let { dom: _, contentDOM: m } = Xo(t, p, n, r); if (l.appendChild(_), m) { if (s) throw new RangeError("Multiple content holes"); @@ -2805,18 +2812,18 @@ function Zo(t, e, n, r) { } return { dom: l, contentDOM: s }; } -const mm = 65535, fm = Math.pow(2, 16); -function wE(t, e) { - return t + e * fm; +const Sm = 65535, bm = Math.pow(2, 16); +function GE(t, e) { + return t + e * bm; } -function Qu(t) { - return t & mm; +function Ju(t) { + return t & Sm; } -function LE(t) { - return (t - (t & mm)) / fm; +function VE(t) { + return (t - (t & Sm)) / bm; } -const gm = 1, hm = 2, Xo = 4, Em = 8; -class xl { +const Tm = 1, Cm = 2, jo = 4, ym = 8; +class Ml { /** @internal */ @@ -2829,19 +2836,19 @@ class xl { argument from the document. */ get deleted() { - return (this.delInfo & Em) > 0; + return (this.delInfo & ym) > 0; } /** Tells you whether the token before the mapped position was deleted. */ get deletedBefore() { - return (this.delInfo & (gm | Xo)) > 0; + return (this.delInfo & (Tm | jo)) > 0; } /** True when the token after the mapped position was deleted. */ get deletedAfter() { - return (this.delInfo & (hm | Xo)) > 0; + return (this.delInfo & (Cm | jo)) > 0; } /** Tells whether any of the steps mapped through deletes across the @@ -2849,7 +2856,7 @@ class xl { position). */ get deletedAcross() { - return (this.delInfo & Xo) > 0; + return (this.delInfo & jo) > 0; } } class Ct { @@ -2866,11 +2873,11 @@ class Ct { @internal */ recover(e) { - let n = 0, r = Qu(e); + let n = 0, r = Ju(e); if (!this.inverted) for (let i = 0; i < r; i++) n += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1]; - return this.ranges[r * 3] + n + LE(e); + return this.ranges[r * 3] + n + VE(e); } mapResult(e, n = 1) { return this._map(e, n, !1); @@ -2892,18 +2899,18 @@ class Ct { let p = c ? e == l ? -1 : e == d ? 1 : n : n, _ = l + i + (p < 0 ? 0 : u); if (r) return _; - let m = e == (n < 0 ? l : d) ? null : wE(s / 3, e - l), f = e == l ? hm : e == d ? gm : Xo; - return (n < 0 ? e != l : e != d) && (f |= Em), new xl(_, f, m); + let m = e == (n < 0 ? l : d) ? null : GE(s / 3, e - l), f = e == l ? Cm : e == d ? Tm : jo; + return (n < 0 ? e != l : e != d) && (f |= ym), new Ml(_, f, m); } i += u - c; } - return r ? e + i : new xl(e + i, 0, null); + return r ? e + i : new Ml(e + i, 0, null); } /** @internal */ touches(e, n) { - let r = 0, i = Qu(n), o = this.inverted ? 2 : 1, a = this.inverted ? 1 : 2; + let r = 0, i = Ju(n), o = this.inverted ? 2 : 1, a = this.inverted ? 1 : 2; for (let s = 0; s < this.ranges.length; s += 3) { let l = this.ranges[s] - (this.inverted ? r : 0); if (l > e) @@ -3053,10 +3060,10 @@ class Kr { } i |= s.delInfo, e = s.pos; } - return r ? e : new xl(e, i, null); + return r ? e : new Ml(e, i, null); } } -const ws = /* @__PURE__ */ Object.create(null); +const Ls = /* @__PURE__ */ Object.create(null); class ot { /** Get the step map that represents the changes made by this step, @@ -3081,7 +3088,7 @@ class ot { static fromJSON(e, n) { if (!n || !n.stepType) throw new RangeError("Invalid input for Step.fromJSON"); - let r = ws[n.stepType]; + let r = Ls[n.stepType]; if (!r) throw new RangeError(`No step type ${n.stepType} defined`); return r.fromJSON(e, n); @@ -3093,12 +3100,12 @@ class ot { that's unlikely to clash with steps from other modules. */ static jsonID(e, n) { - if (e in ws) + if (e in Ls) throw new RangeError("Duplicate use of step JSON ID " + e); - return ws[e] = n, n.prototype.jsonID = e, n; + return Ls[e] = n, n.prototype.jsonID = e, n; } } -class Pe { +class Fe { /** @internal */ @@ -3109,13 +3116,13 @@ class Pe { Create a successful step result. */ static ok(e) { - return new Pe(e, null); + return new Fe(e, null); } /** Create a failed step result. */ static fail(e) { - return new Pe(null, e); + return new Fe(null, e); } /** Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given @@ -3124,21 +3131,21 @@ class Pe { */ static fromReplace(e, n, r, i) { try { - return Pe.ok(e.replace(n, r, i)); + return Fe.ok(e.replace(n, r, i)); } catch (o) { - if (o instanceof aa) - return Pe.fail(o.message); + if (o instanceof sa) + return Fe.fail(o.message); throw o; } } } -function hc(t, e, n) { +function Sc(t, e, n) { let r = []; for (let i = 0; i < t.childCount; i++) { let o = t.child(i); - o.content.size && (o = o.copy(hc(o.content, e, o))), o.isInline && (o = e(o, n, i)), r.push(o); + o.content.size && (o = o.copy(Sc(o.content, e, o))), o.isInline && (o = e(o, n, i)), r.push(o); } - return L.fromArray(r); + return w.fromArray(r); } class xn extends ot { /** @@ -3148,8 +3155,8 @@ class xn extends ot { super(), this.from = e, this.to = n, this.mark = r; } apply(e) { - let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), o = new H(hc(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), i), n.openStart, n.openEnd); - return Pe.fromReplace(e, this.from, this.to, o); + let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), o = new H(Sc(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), i), n.openStart, n.openEnd); + return Fe.fromReplace(e, this.from, this.to, o); } invert() { return new Zt(this.from, this.to, this.mark); @@ -3187,8 +3194,8 @@ class Zt extends ot { super(), this.from = e, this.to = n, this.mark = r; } apply(e) { - let n = e.slice(this.from, this.to), r = new H(hc(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd); - return Pe.fromReplace(e, this.from, this.to, r); + let n = e.slice(this.from, this.to), r = new H(Sc(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd); + return Fe.fromReplace(e, this.from, this.to, r); } invert() { return new xn(this.from, this.to, this.mark); @@ -3228,9 +3235,9 @@ class Dn extends ot { apply(e) { let n = e.nodeAt(this.pos); if (!n) - return Pe.fail("No node at mark step's position"); + return Fe.fail("No node at mark step's position"); let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks)); - return Pe.fromReplace(e, this.pos, this.pos + 1, new H(L.from(r), 0, n.isLeaf ? 0 : 1)); + return Fe.fromReplace(e, this.pos, this.pos + 1, new H(w.from(r), 0, n.isLeaf ? 0 : 1)); } invert(e) { let n = e.nodeAt(this.pos); @@ -3272,9 +3279,9 @@ class Jr extends ot { apply(e) { let n = e.nodeAt(this.pos); if (!n) - return Pe.fail("No node at mark step's position"); + return Fe.fail("No node at mark step's position"); let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks)); - return Pe.fromReplace(e, this.pos, this.pos + 1, new H(L.from(r), 0, n.isLeaf ? 0 : 1)); + return Fe.fromReplace(e, this.pos, this.pos + 1, new H(w.from(r), 0, n.isLeaf ? 0 : 1)); } invert(e) { let n = e.nodeAt(this.pos); @@ -3311,7 +3318,7 @@ class Ue extends ot { super(), this.from = e, this.to = n, this.slice = r, this.structure = i; } apply(e) { - return this.structure && Dl(e, this.from, this.to) ? Pe.fail("Structure replace would overwrite content") : Pe.fromReplace(e, this.from, this.to, this.slice); + return this.structure && wl(e, this.from, this.to) ? Fe.fail("Structure replace would overwrite content") : Fe.fromReplace(e, this.from, this.to, this.slice); } getMap() { return new Ct([this.from, this.to - this.from, this.slice.size]); @@ -3360,13 +3367,13 @@ class ze extends ot { super(), this.from = e, this.to = n, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = a, this.structure = s; } apply(e) { - if (this.structure && (Dl(e, this.from, this.gapFrom) || Dl(e, this.gapTo, this.to))) - return Pe.fail("Structure gap-replace would overwrite content"); + if (this.structure && (wl(e, this.from, this.gapFrom) || wl(e, this.gapTo, this.to))) + return Fe.fail("Structure gap-replace would overwrite content"); let n = e.slice(this.gapFrom, this.gapTo); if (n.openStart || n.openEnd) - return Pe.fail("Gap is not a flat range"); + return Fe.fail("Gap is not a flat range"); let r = this.slice.insertAt(this.insert, n.content); - return r ? Pe.fromReplace(e, this.from, this.to, r) : Pe.fail("Content does not fit in gap"); + return r ? Fe.fromReplace(e, this.from, this.to, r) : Fe.fail("Content does not fit in gap"); } getMap() { return new Ct([ @@ -3407,7 +3414,7 @@ class ze extends ot { } } ot.jsonID("replaceAround", ze); -function Dl(t, e, n) { +function wl(t, e, n) { let r = t.resolve(e), i = n - e, o = r.depth; for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; ) o--, i--; @@ -3421,7 +3428,7 @@ function Dl(t, e, n) { } return !1; } -function kE(t, e, n, r) { +function YE(t, e, n, r) { let i = [], o = [], a, s; t.doc.nodesBetween(e, n, (l, c, u) => { if (!l.isInline) @@ -3435,14 +3442,14 @@ function kE(t, e, n, r) { } }), i.forEach((l) => t.step(l)), o.forEach((l) => t.step(l)); } -function PE(t, e, n, r) { +function zE(t, e, n, r) { let i = [], o = 0; t.doc.nodesBetween(e, n, (a, s) => { if (!a.isInline) return; o++; let l = null; - if (r instanceof Ja) { + if (r instanceof es) { let c = a.marks, u; for (; u = r.isInSet(c); ) (l || (l = [])).push(u), c = u.removeFromSet(c); @@ -3460,7 +3467,7 @@ function PE(t, e, n, r) { } }), i.forEach((a) => t.step(new Zt(a.from, a.to, a.style))); } -function Sm(t, e, n, r = n.contentMatch, i = !0) { +function bc(t, e, n, r = n.contentMatch, i = !0) { let o = t.doc.nodeAt(e), a = [], s = e + 1; for (let l = 0; l < o.childCount; l++) { let c = o.child(l), u = s + c.nodeSize, d = r.matchType(c.type); @@ -3473,19 +3480,19 @@ function Sm(t, e, n, r = n.contentMatch, i = !0) { if (i && c.isText && n.whitespace != "pre") { let p, _ = /\r?\n|\r/g, m; for (; p = _.exec(c.text); ) - m || (m = new H(L.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), a.push(new Ue(s + p.index, s + p.index + p[0].length, m)); + m || (m = new H(w.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), a.push(new Ue(s + p.index, s + p.index + p[0].length, m)); } } s = u; } if (!r.validEnd) { - let l = r.fillBefore(L.empty, !0); + let l = r.fillBefore(w.empty, !0); t.replace(s, s, new H(l, 0, 0)); } for (let l = a.length - 1; l >= 0; l--) t.step(a[l]); } -function FE(t, e, n) { +function $E(t, e, n) { return (e == 0 || t.canReplace(e, t.childCount)) && (n == t.childCount || t.canReplace(0, n)); } function _i(t) { @@ -3494,35 +3501,35 @@ function _i(t) { let i = t.$from.node(r), o = t.$from.index(r), a = t.$to.indexAfter(r); if (r < t.depth && i.canReplace(o, a, n)) return r; - if (r == 0 || i.type.spec.isolating || !FE(i, o, a)) + if (r == 0 || i.type.spec.isolating || !$E(i, o, a)) break; } return null; } -function BE(t, e, n) { - let { $from: r, $to: i, depth: o } = e, a = r.before(o + 1), s = i.after(o + 1), l = a, c = s, u = L.empty, d = 0; +function qE(t, e, n) { + let { $from: r, $to: i, depth: o } = e, a = r.before(o + 1), s = i.after(o + 1), l = a, c = s, u = w.empty, d = 0; for (let m = o, f = !1; m > n; m--) - f || r.index(m) > 0 ? (f = !0, u = L.from(r.node(m).copy(u)), d++) : l--; - let p = L.empty, _ = 0; + f || r.index(m) > 0 ? (f = !0, u = w.from(r.node(m).copy(u)), d++) : l--; + let p = w.empty, _ = 0; for (let m = o, f = !1; m > n; m--) - f || i.after(m + 1) < i.end(m) ? (f = !0, p = L.from(i.node(m).copy(p)), _++) : c++; + f || i.after(m + 1) < i.end(m) ? (f = !0, p = w.from(i.node(m).copy(p)), _++) : c++; t.step(new ze(l, c, a, s, new H(u.append(p), d, _), u.size - d, !0)); } -function Ec(t, e, n = null, r = t) { - let i = UE(t, e), o = i && HE(r, e); - return o ? i.map(Zu).concat({ type: e, attrs: n }).concat(o.map(Zu)) : null; +function Tc(t, e, n = null, r = t) { + let i = WE(t, e), o = i && KE(r, e); + return o ? i.map(ed).concat({ type: e, attrs: n }).concat(o.map(ed)) : null; } -function Zu(t) { +function ed(t) { return { type: t, attrs: null }; } -function UE(t, e) { +function WE(t, e) { let { parent: n, startIndex: r, endIndex: i } = t, o = n.contentMatchAt(r).findWrapping(e); if (!o) return null; let a = o.length ? o[0] : e; return n.canReplaceWith(r, i, a) ? o : null; } -function HE(t, e) { +function KE(t, e) { let { parent: n, startIndex: r, endIndex: i } = t, o = n.child(r), a = e.contentMatch.findWrapping(o.type); if (!a) return null; @@ -3531,38 +3538,38 @@ function HE(t, e) { l = l.matchType(n.child(c).type); return !l || !l.validEnd ? null : a; } -function GE(t, e, n) { - let r = L.empty; +function QE(t, e, n) { + let r = w.empty; for (let a = n.length - 1; a >= 0; a--) { if (r.size) { let s = n[a].type.contentMatch.matchFragment(r); if (!s || !s.validEnd) throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper"); } - r = L.from(n[a].type.create(n[a].attrs, r)); + r = w.from(n[a].type.create(n[a].attrs, r)); } let i = e.start, o = e.end; t.step(new ze(i, o, i, o, new H(r, 0, 0), n.length, !0)); } -function VE(t, e, n, r, i) { +function ZE(t, e, n, r, i) { if (!r.isTextblock) throw new RangeError("Type given to setBlockType should be a textblock"); let o = t.steps.length; t.doc.nodesBetween(e, n, (a, s) => { let l = typeof i == "function" ? i(a) : i; - if (a.isTextblock && !a.hasMarkup(r, l) && $E(t.doc, t.mapping.slice(o).map(s), r)) { + if (a.isTextblock && !a.hasMarkup(r, l) && XE(t.doc, t.mapping.slice(o).map(s), r)) { let c = null; if (r.schema.linebreakReplacement) { let _ = r.whitespace == "pre", m = !!r.contentMatch.matchType(r.schema.linebreakReplacement); _ && !m ? c = !1 : !_ && m && (c = !0); } - c === !1 && zE(t, a, s, o), Sm(t, t.mapping.slice(o).map(s, 1), r, void 0, c === null); + c === !1 && Rm(t, a, s, o), bc(t, t.mapping.slice(o).map(s, 1), r, void 0, c === null); let u = t.mapping.slice(o), d = u.map(s, 1), p = u.map(s + a.nodeSize, 1); - return t.step(new ze(d, p, d + 1, p - 1, new H(L.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), c === !0 && YE(t, a, s, o), !1; + return t.step(new ze(d, p, d + 1, p - 1, new H(w.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), c === !0 && vm(t, a, s, o), !1; } }); } -function YE(t, e, n, r) { +function vm(t, e, n, r) { e.forEach((i, o) => { if (i.isText) { let a, s = /\r?\n|\r/g; @@ -3573,7 +3580,7 @@ function YE(t, e, n, r) { } }); } -function zE(t, e, n, r) { +function Rm(t, e, n, r) { e.forEach((i, o) => { if (i.type == i.type.schema.linebreakReplacement) { let a = t.mapping.slice(r).map(n + 1 + o); @@ -3582,11 +3589,11 @@ function zE(t, e, n, r) { } }); } -function $E(t, e, n) { +function XE(t, e, n) { let r = t.resolve(e), i = r.index(); return r.parent.canReplaceWith(i, i + 1, n); } -function qE(t, e, n, r, i) { +function jE(t, e, n, r, i) { let o = t.doc.nodeAt(e); if (!o) throw new RangeError("No node at given position"); @@ -3596,7 +3603,7 @@ function qE(t, e, n, r, i) { return t.replaceWith(e, e + o.nodeSize, a); if (!n.validContent(o.content)) throw new RangeError("Invalid content for node type " + n.name); - t.step(new ze(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new H(L.from(a), 0, 0), 1, !0)); + t.step(new ze(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new H(w.from(a), 0, 0), 1, !0)); } function Qr(t, e, n = 1, r) { let i = t.resolve(e), o = i.depth - n, a = r && r[r.length - 1] || i.parent; @@ -3615,38 +3622,63 @@ function Qr(t, e, n = 1, r) { let s = i.indexAfter(o), l = r && r[0]; return i.node(o).canReplaceWith(s, s, l ? l.type : i.node(o + 1).type); } -function WE(t, e, n = 1, r) { - let i = t.doc.resolve(e), o = L.empty, a = L.empty; +function JE(t, e, n = 1, r) { + let i = t.doc.resolve(e), o = w.empty, a = w.empty; for (let s = i.depth, l = i.depth - n, c = n - 1; s > l; s--, c--) { - o = L.from(i.node(s).copy(o)); + o = w.from(i.node(s).copy(o)); let u = r && r[c]; - a = L.from(u ? u.type.create(u.attrs, a) : i.node(s).copy(a)); + a = w.from(u ? u.type.create(u.attrs, a) : i.node(s).copy(a)); } t.step(new Ue(e, e, new H(o.append(a), n, n), !0)); } -function zn(t, e) { +function $n(t, e) { let n = t.resolve(e), r = n.index(); - return bm(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1); + return Om(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1); +} +function eS(t, e) { + e.content.size || t.type.compatibleContent(e.type); + let n = t.contentMatchAt(t.childCount), { linebreakReplacement: r } = t.type.schema; + for (let i = 0; i < e.childCount; i++) { + let o = e.child(i), a = o.type == r ? t.type.schema.nodes.text : o.type; + if (n = n.matchType(a), !n || !t.type.allowsMarks(o.marks)) + return !1; + } + return n.validEnd; } -function bm(t, e) { - return !!(t && e && !t.isLeaf && t.canAppend(e)); +function Om(t, e) { + return !!(t && e && !t.isLeaf && eS(t, e)); } -function es(t, e, n = -1) { +function ts(t, e, n = -1) { let r = t.resolve(e); for (let i = r.depth; ; i--) { let o, a, s = r.index(i); - if (i == r.depth ? (o = r.nodeBefore, a = r.nodeAfter) : n > 0 ? (o = r.node(i + 1), s++, a = r.node(i).maybeChild(s)) : (o = r.node(i).maybeChild(s - 1), a = r.node(i + 1)), o && !o.isTextblock && bm(o, a) && r.node(i).canReplace(s, s + 1)) + if (i == r.depth ? (o = r.nodeBefore, a = r.nodeAfter) : n > 0 ? (o = r.node(i + 1), s++, a = r.node(i).maybeChild(s)) : (o = r.node(i).maybeChild(s - 1), a = r.node(i + 1)), o && !o.isTextblock && Om(o, a) && r.node(i).canReplace(s, s + 1)) return e; if (i == 0) break; e = n < 0 ? r.before(i) : r.after(i); } } -function KE(t, e, n) { - let r = new Ue(e - n, e + n, H.empty, !0); - t.step(r); +function tS(t, e, n) { + let r = null, { linebreakReplacement: i } = t.doc.type.schema, o = t.doc.resolve(e - n), a = o.node().type; + if (i && a.inlineContent) { + let u = a.whitespace == "pre", d = !!a.contentMatch.matchType(i); + u && !d ? r = !1 : !u && d && (r = !0); + } + let s = t.steps.length; + if (r === !1) { + let u = t.doc.resolve(e + n); + Rm(t, u.node(), u.before(), s); + } + a.inlineContent && bc(t, e + n - 1, a, o.node().contentMatchAt(o.index()), r == null); + let l = t.mapping.slice(s), c = l.map(e - n); + if (t.step(new Ue(c, l.map(e + n, -1), H.empty, !0)), r === !0) { + let u = t.doc.resolve(c); + vm(t, u.node(), u.before(), t.steps.length); + } + return t; } -function QE(t, e, n) { +function nS(t, e, n) { let r = t.resolve(e); if (r.parent.canReplaceWith(r.index(), r.index(), n)) return e; @@ -3668,7 +3700,7 @@ function QE(t, e, n) { } return null; } -function Tm(t, e, n) { +function Nm(t, e, n) { let r = t.resolve(e); if (!n.content.size) return e; @@ -3689,18 +3721,18 @@ function Tm(t, e, n) { } return null; } -function ts(t, e, n = e, r = H.empty) { +function ns(t, e, n = e, r = H.empty) { if (e == n && !r.size) return null; let i = t.resolve(e), o = t.resolve(n); - return Cm(i, o, r) ? new Ue(e, n, r) : new ZE(i, o, r).fit(); + return Am(i, o, r) ? new Ue(e, n, r) : new rS(i, o, r).fit(); } -function Cm(t, e, n) { +function Am(t, e, n) { return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content); } -class ZE { +class rS { constructor(e, n, r) { - this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = L.empty; + this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = w.empty; for (let i = 0; i <= e.depth; i++) { let o = e.node(i); this.frontier.push({ @@ -3709,7 +3741,7 @@ class ZE { }); } for (let i = e.depth; i > 0; i--) - this.placed = L.from(e.node(i).copy(this.placed)); + this.placed = w.from(e.node(i).copy(this.placed)); } get depth() { return this.frontier.length - 1; @@ -3744,11 +3776,11 @@ class ZE { for (let n = 1; n <= 2; n++) for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) { let i, o = null; - r ? (o = Ls(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content; + r ? (o = ks(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content; let a = i.firstChild; for (let s = this.depth; s >= 0; s--) { let { type: l, match: c } = this.frontier[s], u, d = null; - if (n == 1 && (a ? c.matchType(a.type) || (d = c.fillBefore(L.from(a), !1)) : o && l.compatibleContent(o.type))) + if (n == 1 && (a ? c.matchType(a.type) || (d = c.fillBefore(w.from(a), !1)) : o && l.compatibleContent(o.type))) return { sliceDepth: r, frontierDepth: s, parent: o, inject: d }; if (n == 2 && a && (u = c.findWrapping(a.type))) return { sliceDepth: r, frontierDepth: s, parent: o, wrap: u }; @@ -3758,16 +3790,16 @@ class ZE { } } openMore() { - let { content: e, openStart: n, openEnd: r } = this.unplaced, i = Ls(e, n); + let { content: e, openStart: n, openEnd: r } = this.unplaced, i = ks(e, n); return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new H(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0); } dropNode() { - let { content: e, openStart: n, openEnd: r } = this.unplaced, i = Ls(e, n); + let { content: e, openStart: n, openEnd: r } = this.unplaced, i = ks(e, n); if (i.childCount <= 1 && n > 0) { let o = e.size - n <= n + i.size; - this.unplaced = new H(Oi(e, n - 1, 1), n - 1, o ? n - 1 : r); + this.unplaced = new H(Ni(e, n - 1, 1), n - 1, o ? n - 1 : r); } else - this.unplaced = new H(Oi(e, n, 1), n, r); + this.unplaced = new H(Ni(e, n, 1), n, r); } // Move content from the unplaced slice at `sliceDepth` to the // frontier node at `frontierDepth`. Close that frontier node when @@ -3789,21 +3821,21 @@ class ZE { let f = s.child(c), g = d.matchType(f.type); if (!g) break; - c++, (c > 1 || l == 0 || f.content.size) && (d = g, u.push(ym(f.mark(p.allowedMarks(f.marks)), c == 1 ? l : 0, c == s.childCount ? _ : -1))); + c++, (c > 1 || l == 0 || f.content.size) && (d = g, u.push(Im(f.mark(p.allowedMarks(f.marks)), c == 1 ? l : 0, c == s.childCount ? _ : -1))); } let m = c == s.childCount; - m || (_ = -1), this.placed = Ni(this.placed, n, L.from(u)), this.frontier[n].match = d, m && _ < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode(); + m || (_ = -1), this.placed = Ai(this.placed, n, w.from(u)), this.frontier[n].match = d, m && _ < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode(); for (let f = 0, g = s; f < _; f++) { - let E = g.lastChild; - this.frontier.push({ type: E.type, match: E.contentMatchAt(E.childCount) }), g = E.content; + let S = g.lastChild; + this.frontier.push({ type: S.type, match: S.contentMatchAt(S.childCount) }), g = S.content; } - this.unplaced = m ? e == 0 ? H.empty : new H(Oi(a.content, e - 1, 1), e - 1, _ < 0 ? a.openEnd : e - 1) : new H(Oi(a.content, e, c), a.openStart, a.openEnd); + this.unplaced = m ? e == 0 ? H.empty : new H(Ni(a.content, e - 1, 1), e - 1, _ < 0 ? a.openEnd : e - 1) : new H(Ni(a.content, e, c), a.openStart, a.openEnd); } mustMoveInline() { if (!this.$to.parent.isTextblock) return -1; let e = this.frontier[this.depth], n; - if (!e.type.isTextblock || !ks(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth) + if (!e.type.isTextblock || !Ps(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth) return -1; let { depth: r } = this.$to, i = this.$to.after(r); for (; r > 1 && i == this.$to.end(--r); ) @@ -3812,10 +3844,10 @@ class ZE { } findCloseLevel(e) { e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) { - let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), a = ks(e, n, i, r, o); + let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), a = Ps(e, n, i, r, o); if (a) { for (let s = n - 1; s >= 0; s--) { - let { match: l, type: c } = this.frontier[s], u = ks(e, s, c, l, !0); + let { match: l, type: c } = this.frontier[s], u = Ps(e, s, c, l, !0); if (!u || u.childCount) continue e; } @@ -3829,7 +3861,7 @@ class ZE { return null; for (; this.depth > n.depth; ) this.closeFrontierNode(); - n.fit.childCount && (this.placed = Ni(this.placed, n.depth, n.fit)), e = n.move; + n.fit.childCount && (this.placed = Ai(this.placed, n.depth, n.fit)), e = n.move; for (let r = n.depth + 1; r <= e.depth; r++) { let i = e.node(r), o = i.type.contentMatch.fillBefore(i.content, !0, e.index(r)); this.openFrontierNode(i.type, i.attrs, o); @@ -3838,53 +3870,53 @@ class ZE { } openFrontierNode(e, n = null, r) { let i = this.frontier[this.depth]; - i.match = i.match.matchType(e), this.placed = Ni(this.placed, this.depth, L.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch }); + i.match = i.match.matchType(e), this.placed = Ai(this.placed, this.depth, w.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch }); } closeFrontierNode() { - let n = this.frontier.pop().match.fillBefore(L.empty, !0); - n.childCount && (this.placed = Ni(this.placed, this.frontier.length, n)); + let n = this.frontier.pop().match.fillBefore(w.empty, !0); + n.childCount && (this.placed = Ai(this.placed, this.frontier.length, n)); } } -function Oi(t, e, n) { - return e == 0 ? t.cutByIndex(n, t.childCount) : t.replaceChild(0, t.firstChild.copy(Oi(t.firstChild.content, e - 1, n))); -} function Ni(t, e, n) { - return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(Ni(t.lastChild.content, e - 1, n))); + return e == 0 ? t.cutByIndex(n, t.childCount) : t.replaceChild(0, t.firstChild.copy(Ni(t.firstChild.content, e - 1, n))); +} +function Ai(t, e, n) { + return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(Ai(t.lastChild.content, e - 1, n))); } -function Ls(t, e) { +function ks(t, e) { for (let n = 0; n < e; n++) t = t.firstChild.content; return t; } -function ym(t, e, n) { +function Im(t, e, n) { if (e <= 0) return t; let r = t.content; - return e > 1 && (r = r.replaceChild(0, ym(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(L.empty, !0)))), t.copy(r); + return e > 1 && (r = r.replaceChild(0, Im(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(w.empty, !0)))), t.copy(r); } -function ks(t, e, n, r, i) { +function Ps(t, e, n, r, i) { let o = t.node(e), a = i ? t.indexAfter(e) : t.index(e); if (a == o.childCount && !n.compatibleContent(o.type)) return null; let s = r.fillBefore(o.content, !0, a); - return s && !XE(n, o.content, a) ? s : null; + return s && !iS(n, o.content, a) ? s : null; } -function XE(t, e, n) { +function iS(t, e, n) { for (let r = n; r < e.childCount; r++) if (!t.allowsMarks(e.child(r).marks)) return !0; return !1; } -function jE(t) { +function oS(t) { return t.spec.defining || t.spec.definingForContent; } -function JE(t, e, n, r) { +function aS(t, e, n, r) { if (!r.size) return t.deleteRange(e, n); let i = t.doc.resolve(e), o = t.doc.resolve(n); - if (Cm(i, o, r)) + if (Am(i, o, r)) return t.step(new Ue(e, n, r)); - let a = Rm(i, t.doc.resolve(n)); + let a = Dm(i, t.doc.resolve(n)); a[a.length - 1] == 0 && a.pop(); let s = -(i.depth + 1); a.unshift(s); @@ -3902,7 +3934,7 @@ function JE(t, e, n, r) { p = m.content; } for (let p = u - 1; p >= 0; p--) { - let _ = c[p], m = jE(_.type); + let _ = c[p], m = oS(_.type); if (m && !_.sameMarkup(i.node(Math.abs(s) - 1))) u = p; else if (m || !_.type.isTextblock) @@ -3912,11 +3944,11 @@ function JE(t, e, n, r) { let _ = (p + u + 1) % (r.openStart + 1), m = c[_]; if (m) for (let f = 0; f < a.length; f++) { - let g = a[(f + l) % a.length], E = !0; - g < 0 && (E = !1, g = -g); - let S = i.node(g - 1), b = i.index(g - 1); - if (S.canReplaceWith(b, b, m.type, m.marks)) - return t.replace(i.before(g), E ? o.after(g) : n, new H(vm(r.content, 0, r.openStart, _), _, r.openEnd)); + let g = a[(f + l) % a.length], S = !0; + g < 0 && (S = !1, g = -g); + let E = i.node(g - 1), b = i.index(g - 1); + if (E.canReplaceWith(b, b, m.type, m.marks)) + return t.replace(i.before(g), S ? o.after(g) : n, new H(xm(r.content, 0, r.openStart, _), _, r.openEnd)); } } let d = t.steps.length; @@ -3925,26 +3957,26 @@ function JE(t, e, n, r) { _ < 0 || (e = i.before(_), n = o.after(_)); } } -function vm(t, e, n, r, i) { +function xm(t, e, n, r, i) { if (e < n) { let o = t.firstChild; - t = t.replaceChild(0, o.copy(vm(o.content, e + 1, n, r, o))); + t = t.replaceChild(0, o.copy(xm(o.content, e + 1, n, r, o))); } if (e > r) { let o = i.contentMatchAt(0), a = o.fillBefore(t).append(t); - t = a.append(o.matchFragment(a).fillBefore(L.empty, !0)); + t = a.append(o.matchFragment(a).fillBefore(w.empty, !0)); } return t; } -function eS(t, e, n, r) { +function sS(t, e, n, r) { if (!r.isInline && e == n && t.doc.resolve(e).parent.content.size) { - let i = QE(t.doc, e, r.type); + let i = nS(t.doc, e, r.type); i != null && (e = n = i); } - t.replaceRange(e, n, new H(L.from(r), 0, 0)); + t.replaceRange(e, n, new H(w.from(r), 0, 0)); } -function tS(t, e, n) { - let r = t.doc.resolve(e), i = t.doc.resolve(n), o = Rm(r, i); +function lS(t, e, n) { + let r = t.doc.resolve(e), i = t.doc.resolve(n), o = Dm(r, i); for (let a = 0; a < o.length; a++) { let s = o[a], l = a == o.length - 1; if (l && s == 0 || r.node(s).type.contentMatch.validEnd) @@ -3953,11 +3985,11 @@ function tS(t, e, n) { return t.delete(r.before(s), i.after(s)); } for (let a = 1; a <= r.depth && a <= i.depth; a++) - if (e - r.start(a) == r.depth - a && n > r.end(a) && i.end(a) - n != i.depth - a) + if (e - r.start(a) == r.depth - a && n > r.end(a) && i.end(a) - n != i.depth - a && r.start(a - 1) == i.start(a - 1) && r.node(a - 1).canReplace(r.index(a - 1), i.index(a - 1))) return t.delete(r.before(a), n); t.delete(e, n); } -function Rm(t, e) { +function Dm(t, e) { let n = [], r = Math.min(t.depth, e.depth); for (let i = r; i >= 0; i--) { let o = t.start(i); @@ -3977,13 +4009,13 @@ class Zr extends ot { apply(e) { let n = e.nodeAt(this.pos); if (!n) - return Pe.fail("No node at attribute step's position"); + return Fe.fail("No node at attribute step's position"); let r = /* @__PURE__ */ Object.create(null); for (let o in n.attrs) r[o] = n.attrs[o]; r[this.attr] = this.value; let i = n.type.create(r, null, n.marks); - return Pe.fromReplace(e, this.pos, this.pos + 1, new H(L.from(i), 0, n.isLeaf ? 0 : 1)); + return Fe.fromReplace(e, this.pos, this.pos + 1, new H(w.from(i), 0, n.isLeaf ? 0 : 1)); } getMap() { return Ct.empty; @@ -4005,7 +4037,7 @@ class Zr extends ot { } } ot.jsonID("attr", Zr); -class Vi extends ot { +class Yi extends ot { /** Construct an attribute step. */ @@ -4018,13 +4050,13 @@ class Vi extends ot { n[i] = e.attrs[i]; n[this.attr] = this.value; let r = e.type.create(n, e.content, e.marks); - return Pe.ok(r); + return Fe.ok(r); } getMap() { return Ct.empty; } invert(e) { - return new Vi(this.attr, e.attrs[this.attr]); + return new Yi(this.attr, e.attrs[this.attr]); } map(e) { return this; @@ -4035,10 +4067,10 @@ class Vi extends ot { static fromJSON(e, n) { if (typeof n.attr != "string") throw new RangeError("Invalid input for DocAttrStep.fromJSON"); - return new Vi(n.attr, n.value); + return new Yi(n.attr, n.value); } } -ot.jsonID("docAttr", Vi); +ot.jsonID("docAttr", Yi); let ei = class extends Error { }; ei = function t(e) { @@ -4048,7 +4080,7 @@ ei = function t(e) { ei.prototype = Object.create(Error.prototype); ei.prototype.constructor = ei; ei.prototype.name = "TransformError"; -class Sc { +class Cc { /** Create a transform that starts with the given document. */ @@ -4097,7 +4129,7 @@ class Sc { given `slice`. */ replace(e, n = e, r = H.empty) { - let i = ts(this.doc, e, n, r); + let i = ns(this.doc, e, n, r); return i && this.step(i), this; } /** @@ -4105,7 +4137,7 @@ class Sc { fragment, node, or array of nodes. */ replaceWith(e, n, r) { - return this.replace(e, n, new H(L.from(r), 0, 0)); + return this.replace(e, n, new H(w.from(r), 0, 0)); } /** Delete the content between the given positions. @@ -4139,7 +4171,7 @@ class Sc { control over what happens. */ replaceRange(e, n, r) { - return JE(this, e, n, r), this; + return aS(this, e, n, r), this; } /** Replace the given range with a node, but use `from` and `to` as @@ -4151,14 +4183,14 @@ class Sc { that parent node. */ replaceRangeWith(e, n, r) { - return eS(this, e, n, r), this; + return sS(this, e, n, r), this; } /** Delete the given range, expanding it to cover fully covered parent nodes until a valid replace is found. */ deleteRange(e, n) { - return tS(this, e, n), this; + return lS(this, e, n), this; } /** Split the content in the given range off from its parent, if there @@ -4168,14 +4200,14 @@ class Sc { sure the lift is valid. */ lift(e, n) { - return BE(this, e, n), this; + return qE(this, e, n), this; } /** Join the blocks around the given position. If depth is 2, their last and first siblings are also joined, and so on. */ join(e, n = 1) { - return KE(this, e, n), this; + return tS(this, e, n), this; } /** Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers. @@ -4183,21 +4215,21 @@ class Sc { probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping). */ wrap(e, n) { - return GE(this, e, n), this; + return QE(this, e, n), this; } /** Set the type of all textblocks (partly) between `from` and `to` to the given node type with the given attributes. */ setBlockType(e, n = e, r, i = null) { - return VE(this, e, n, r, i), this; + return ZE(this, e, n, r, i), this; } /** Change the type, attributes, and/or marks of the node at `pos`. When `type` isn't given, the existing node type is preserved, */ setNodeMarkup(e, n, r = null, i) { - return qE(this, e, n, r, i), this; + return jE(this, e, n, r, i), this; } /** Set a single attribute on a given node to a new value. @@ -4211,7 +4243,7 @@ class Sc { Set a single attribute on the document to a new value. */ setDocAttribute(e, n) { - return this.step(new Vi(e, n)), this; + return this.step(new Yi(e, n)), this; } /** Add a mark to the node at position `pos`. @@ -4241,13 +4273,13 @@ class Sc { use after the split. */ split(e, n = 1, r) { - return WE(this, e, n, r), this; + return JE(this, e, n, r), this; } /** Add the given mark to the inline content between `from` and `to`. */ addMark(e, n, r) { - return kE(this, e, n, r), this; + return YE(this, e, n, r), this; } /** Remove marks from inline nodes between `from` and `to`. When @@ -4256,7 +4288,7 @@ class Sc { remove all marks of any type. */ removeMark(e, n, r) { - return PE(this, e, n, r), this; + return zE(this, e, n, r), this; } /** Removes all marks and nodes from the content of the node at @@ -4265,10 +4297,10 @@ class Sc { third argument. */ clearIncompatible(e, n, r) { - return Sm(this, e, n, r), this; + return bc(this, e, n, r), this; } } -const Ps = /* @__PURE__ */ Object.create(null); +const Fs = /* @__PURE__ */ Object.create(null); class te { /** Initialize a selection with the head and anchor and ranges. If no @@ -4276,7 +4308,7 @@ class te { `$head`. */ constructor(e, n, r) { - this.$anchor = e, this.$head = n, this.ranges = r || [new Om(e.min(n), e.max(n))]; + this.$anchor = e, this.$head = n, this.ranges = r || [new Mm(e.min(n), e.max(n))]; } /** The selection's anchor, as an unresolved position. @@ -4341,7 +4373,7 @@ class te { let o = e.steps.length, a = this.ranges; for (let s = 0; s < a.length; s++) { let { $from: l, $to: c } = a[s], u = e.mapping.slice(o); - e.replaceRange(u.map(l.pos), u.map(c.pos), s ? H.empty : n), s == 0 && Ju(e, o, (r ? r.isInline : i && i.isTextblock) ? -1 : 1); + e.replaceRange(u.map(l.pos), u.map(c.pos), s ? H.empty : n), s == 0 && rd(e, o, (r ? r.isInline : i && i.isTextblock) ? -1 : 1); } } /** @@ -4352,7 +4384,7 @@ class te { let r = e.steps.length, i = this.ranges; for (let o = 0; o < i.length; o++) { let { $from: a, $to: s } = i[o], l = e.mapping.slice(r), c = l.map(a.pos), u = l.map(s.pos); - o ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, n), Ju(e, r, n.isInline ? -1 : 1)); + o ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, n), rd(e, r, n.isInline ? -1 : 1)); } } /** @@ -4404,7 +4436,7 @@ class te { static fromJSON(e, n) { if (!n || !n.type) throw new RangeError("Invalid input for Selection.fromJSON"); - let r = Ps[n.type]; + let r = Fs[n.type]; if (!r) throw new RangeError(`No selection type ${n.type} defined`); return r.fromJSON(e, n); @@ -4416,9 +4448,9 @@ class te { clash with classes from other modules. */ static jsonID(e, n) { - if (e in Ps) + if (e in Fs) throw new RangeError("Duplicate use of selection JSON ID " + e); - return Ps[e] = n, n.prototype.jsonID = e, n; + return Fs[e] = n, n.prototype.jsonID = e, n; } /** Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection, @@ -4434,7 +4466,7 @@ class te { } } te.prototype.visible = !0; -class Om { +class Mm { /** Create a range. */ @@ -4442,16 +4474,16 @@ class Om { this.$from = e, this.$to = n; } } -let Xu = !1; -function ju(t) { - !Xu && !t.parent.inlineContent && (Xu = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")")); +let td = !1; +function nd(t) { + !td && !t.parent.inlineContent && (td = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")")); } class Z extends te { /** Construct a text selection between the given points. */ constructor(e, n = e) { - ju(e), ju(n), super(e, n); + nd(e), nd(n), super(e, n); } /** Returns a resolved position if this is a cursor selection (an @@ -4477,7 +4509,7 @@ class Z extends te { return e instanceof Z && e.anchor == this.anchor && e.head == this.head; } getBookmark() { - return new ns(this.anchor, this.head); + return new rs(this.anchor, this.head); } toJSON() { return { type: "text", anchor: this.anchor, head: this.head }; @@ -4518,12 +4550,12 @@ class Z extends te { } } te.jsonID("text", Z); -class ns { +class rs { constructor(e, n) { this.anchor = e, this.head = n; } map(e) { - return new ns(e.map(this.anchor), e.map(this.head)); + return new rs(e.map(this.anchor), e.map(this.head)); } resolve(e) { return Z.between(e.resolve(this.anchor), e.resolve(this.head)); @@ -4543,7 +4575,7 @@ class ee extends te { return r ? te.near(o) : new ee(o); } content() { - return new H(L.from(this.node), 0, 0); + return new H(w.from(this.node), 0, 0); } eq(e) { return e instanceof ee && e.anchor == this.anchor; @@ -4552,7 +4584,7 @@ class ee extends te { return { type: "node", anchor: this.anchor }; } getBookmark() { - return new bc(this.anchor); + return new yc(this.anchor); } /** @internal @@ -4578,13 +4610,13 @@ class ee extends te { } ee.prototype.visible = !1; te.jsonID("node", ee); -class bc { +class yc { constructor(e) { this.anchor = e; } map(e) { let { deleted: n, pos: r } = e.mapResult(this.anchor); - return n ? new ns(r, r) : new bc(r); + return n ? new rs(r, r) : new yc(r); } resolve(e) { let n = e.resolve(this.anchor), r = n.nodeAfter; @@ -4622,11 +4654,11 @@ class Dt extends te { return e instanceof Dt; } getBookmark() { - return nS; + return cS; } } te.jsonID("all", Dt); -const nS = { +const cS = { map() { return this; }, @@ -4651,7 +4683,7 @@ function Pr(t, e, n, r, i, o = !1) { } return null; } -function Ju(t, e, n) { +function rd(t, e, n) { let r = t.steps.length - 1; if (r < e) return; @@ -4663,8 +4695,8 @@ function Ju(t, e, n) { a == null && (a = u); }), t.setSelection(te.near(t.doc.resolve(a), n)); } -const ed = 1, Oo = 2, td = 4; -class rS extends Sc { +const id = 1, No = 2, od = 4; +class uS extends Cc { /** @internal */ @@ -4687,19 +4719,19 @@ class rS extends Sc { 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 | ed) & ~Oo, this.storedMarks = null, this; + return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | id) & ~No, this.storedMarks = null, this; } /** Whether the selection was explicitly updated by this transaction. */ get selectionSet() { - return (this.updated & ed) > 0; + return (this.updated & id) > 0; } /** Set the current stored marks. */ setStoredMarks(e) { - return this.storedMarks = e, this.updated |= Oo, this; + return this.storedMarks = e, this.updated |= No, this; } /** Make sure the current stored marks or, if that is null, the marks @@ -4725,13 +4757,13 @@ class rS extends Sc { Whether the stored marks were explicitly set for this transaction. */ get storedMarksSet() { - return (this.updated & Oo) > 0; + return (this.updated & No) > 0; } /** @internal */ addStep(e, n) { - super.addStep(e, n), this.updated = this.updated & ~Oo, this.storedMarks = null; + super.addStep(e, n), this.updated = this.updated & ~No, this.storedMarks = null; } /** Update the timestamp for the transaction. @@ -4806,25 +4838,25 @@ class rS extends Sc { when updated to the state produced by this transaction. */ scrollIntoView() { - return this.updated |= td, this; + return this.updated |= od, this; } /** True when this transaction has had `scrollIntoView` called on it. */ get scrolledIntoView() { - return (this.updated & td) > 0; + return (this.updated & od) > 0; } } -function nd(t, e) { +function ad(t, e) { return !e || !t ? t : t.bind(e); } -class Ai { +class Ii { constructor(e, n, r) { - this.name = e, this.init = nd(n.init, r), this.apply = nd(n.apply, r); + this.name = e, this.init = ad(n.init, r), this.apply = ad(n.apply, r); } } -const iS = [ - new Ai("doc", { +const dS = [ + new Ii("doc", { init(t) { return t.doc || t.schema.topNodeType.createAndFill(); }, @@ -4832,7 +4864,7 @@ const iS = [ return t.doc; } }), - new Ai("selection", { + new Ii("selection", { init(t, e) { return t.selection || te.atStart(e.doc); }, @@ -4840,7 +4872,7 @@ const iS = [ return t.selection; } }), - new Ai("storedMarks", { + new Ii("storedMarks", { init(t) { return t.storedMarks || null; }, @@ -4848,7 +4880,7 @@ const iS = [ return r.selection.$cursor ? t.storedMarks : null; } }), - new Ai("scrollToSelection", { + new Ii("scrollToSelection", { init() { return 0; }, @@ -4857,12 +4889,12 @@ const iS = [ } }) ]; -class Fs { +class Bs { constructor(e, n) { - this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = iS.slice(), n && n.forEach((r) => { + this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = dS.slice(), n && n.forEach((r) => { if (this.pluginsByKey[r.key]) throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")"); - this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new Ai(r.key, r.spec.state, r)); + this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new Ii(r.key, r.spec.state, r)); }); } } @@ -4952,13 +4984,13 @@ class Vr { Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state. */ get tr() { - return new rS(this); + return new uS(this); } /** Create a new state. */ static create(e) { - let n = new Fs(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Vr(n); + let n = new Bs(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Vr(n); for (let i = 0; i < n.fields.length; i++) r[n.fields[i].name] = n.fields[i].init(e, r); return r; @@ -4972,7 +5004,7 @@ class Vr { configuration object.. */ reconfigure(e) { - let n = new Fs(this.schema, e.plugins), r = n.fields, i = new Vr(n); + let n = new Bs(this.schema, e.plugins), r = n.fields, i = new Vr(n); for (let o = 0; o < r.length; o++) { let a = r[o].name; i[a] = this.hasOwnProperty(a) ? this[a] : r[o].init(e, i); @@ -5009,10 +5041,10 @@ class Vr { throw new RangeError("Invalid input for EditorState.fromJSON"); if (!e.schema) throw new RangeError("Required config field 'schema' missing"); - let i = new Fs(e.schema, e.plugins), o = new Vr(i); + let i = new Bs(e.schema, e.plugins), o = new Vr(i); return i.fields.forEach((a) => { if (a.name == "doc") - o.doc = sr.fromJSON(e.schema, n.doc); + o.doc = Fn.fromJSON(e.schema, n.doc); else if (a.name == "selection") o.selection = te.fromJSON(o.doc, n.selection); else if (a.name == "storedMarks") @@ -5031,19 +5063,19 @@ class Vr { }), o; } } -function Nm(t, e, n) { +function wm(t, e, n) { for (let r in t) { let i = t[r]; - i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = Nm(i, e, {})), n[r] = i; + i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = wm(i, e, {})), n[r] = i; } return n; } -class be { +class Se { /** Create a plugin. */ constructor(e) { - this.spec = e, this.props = {}, e.props && Nm(e.props, this, this.props), this.key = e.key ? e.key.key : Am("plugin"); + this.spec = e, this.props = {}, e.props && wm(e.props, this, this.props), this.key = e.key ? e.key.key : Lm("plugin"); } /** Extract the plugin's state field from an editor state. @@ -5052,16 +5084,16 @@ class be { return e[this.key]; } } -const Bs = /* @__PURE__ */ Object.create(null); -function Am(t) { - return t in Bs ? t + "$" + ++Bs[t] : (Bs[t] = 0, t + "$"); +const Us = /* @__PURE__ */ Object.create(null); +function Lm(t) { + return t in Us ? t + "$" + ++Us[t] : (Us[t] = 0, t + "$"); } class ve { /** Create a plugin key. */ constructor(e = "key") { - this.key = Am(e); + this.key = Lm(e); } /** Get the active plugin with this key, if any, from an editor @@ -5081,54 +5113,54 @@ const Xe = function(t) { for (var e = 0; ; e++) if (t = t.previousSibling, !t) return e; -}, Yi = function(t) { +}, zi = function(t) { let e = t.assignedSlot || t.parentNode; return e && e.nodeType == 11 ? e.host : e; }; -let Ml = null; +let Ll = null; const pn = function(t, e, n) { - let r = Ml || (Ml = document.createRange()); + let r = Ll || (Ll = document.createRange()); return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r; -}, oS = function() { - Ml = null; +}, pS = function() { + Ll = null; }, fr = function(t, e, n, r) { - return n && (rd(t, e, n, r, -1) || rd(t, e, n, r, 1)); -}, aS = /^(img|br|input|textarea|hr)$/i; -function rd(t, e, n, r, i) { + return n && (sd(t, e, n, r, -1) || sd(t, e, n, r, 1)); +}, _S = /^(img|br|input|textarea|hr)$/i; +function sd(t, e, n, r, i) { for (; ; ) { if (t == n && e == r) return !0; - if (e == (i < 0 ? 0 : It(t))) { + if (e == (i < 0 ? 0 : xt(t))) { let o = t.parentNode; - if (!o || o.nodeType != 1 || uo(t) || aS.test(t.nodeName) || t.contentEditable == "false") + if (!o || o.nodeType != 1 || po(t) || _S.test(t.nodeName) || t.contentEditable == "false") return !1; e = Xe(t) + (i < 0 ? 0 : 1), t = o; } else if (t.nodeType == 1) { if (t = t.childNodes[e + (i < 0 ? -1 : 0)], t.contentEditable == "false") return !1; - e = i < 0 ? It(t) : 0; + e = i < 0 ? xt(t) : 0; } else return !1; } } -function It(t) { +function xt(t) { return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length; } -function sS(t, e) { +function mS(t, e) { for (; ; ) { if (t.nodeType == 3 && e) return t; if (t.nodeType == 1 && e > 0) { if (t.contentEditable == "false") return null; - t = t.childNodes[e - 1], e = It(t); - } else if (t.parentNode && !uo(t)) + t = t.childNodes[e - 1], e = xt(t); + } else if (t.parentNode && !po(t)) e = Xe(t), t = t.parentNode; else return null; } } -function lS(t, e) { +function fS(t, e) { for (; ; ) { if (t.nodeType == 3 && e < t.nodeValue.length) return t; @@ -5136,59 +5168,59 @@ function lS(t, e) { if (t.contentEditable == "false") return null; t = t.childNodes[e], e = 0; - } else if (t.parentNode && !uo(t)) + } else if (t.parentNode && !po(t)) e = Xe(t) + 1, t = t.parentNode; else return null; } } -function cS(t, e, n) { - for (let r = e == 0, i = e == It(t); r || i; ) { +function gS(t, e, n) { + for (let r = e == 0, i = e == xt(t); r || i; ) { if (t == n) return !0; let o = Xe(t); if (t = t.parentNode, !t) return !1; - r = r && o == 0, i = i && o == It(t); + r = r && o == 0, i = i && o == xt(t); } } -function uo(t) { +function po(t) { let e; for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode) ; return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t); } -const rs = function(t) { +const is = function(t) { return t.focusNode && fr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset); }; -function jn(t, e) { +function Jn(t, e) { let n = document.createEvent("Event"); return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n; } -function uS(t) { +function hS(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; return e; } -function dS(t, e, n) { +function ES(t, e, n) { if (t.caretPositionFromPoint) try { let r = t.caretPositionFromPoint(e, n); if (r) - return { node: r.offsetNode, offset: Math.min(It(r.offsetNode), r.offset) }; + return { node: r.offsetNode, offset: Math.min(xt(r.offsetNode), r.offset) }; } catch { } if (t.caretRangeFromPoint) { let r = t.caretRangeFromPoint(e, n); if (r) - return { node: r.startContainer, offset: Math.min(It(r.startContainer), r.startOffset) }; + return { node: r.startContainer, offset: Math.min(xt(r.startContainer), r.startOffset) }; } } -const tn = typeof navigator < "u" ? navigator : null, id = typeof document < "u" ? document : null, $n = tn && tn.userAgent || "", wl = /Edge\/(\d+)/.exec($n), Im = /MSIE \d/.exec($n), Ll = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($n), pt = !!(Im || Ll || wl), Fn = Im ? document.documentMode : Ll ? +Ll[1] : wl ? +wl[1] : 0, Gt = !pt && /gecko\/(\d+)/i.test($n); -Gt && +(/Firefox\/(\d+)/.exec($n) || [0, 0])[1]; -const kl = !pt && /Chrome\/(\d+)/.exec($n), rt = !!kl, xm = kl ? +kl[1] : 0, st = !pt && !!tn && /Apple Computer/.test(tn.vendor), ti = st && (/Mobile\/\w+/.test($n) || !!tn && tn.maxTouchPoints > 2), At = ti || (tn ? /Mac/.test(tn.platform) : !1), pS = tn ? /Win/.test(tn.platform) : !1, Ut = /Android \d/.test($n), po = !!id && "webkitFontSmoothing" in id.documentElement.style, _S = po ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0; -function mS(t) { +const tn = typeof navigator < "u" ? navigator : null, ld = typeof document < "u" ? document : null, qn = tn && tn.userAgent || "", kl = /Edge\/(\d+)/.exec(qn), km = /MSIE \d/.exec(qn), Pl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qn), pt = !!(km || Pl || kl), Bn = km ? document.documentMode : Pl ? +Pl[1] : kl ? +kl[1] : 0, Gt = !pt && /gecko\/(\d+)/i.test(qn); +Gt && +(/Firefox\/(\d+)/.exec(qn) || [0, 0])[1]; +const Fl = !pt && /Chrome\/(\d+)/.exec(qn), rt = !!Fl, Pm = Fl ? +Fl[1] : 0, st = !pt && !!tn && /Apple Computer/.test(tn.vendor), ti = st && (/Mobile\/\w+/.test(qn) || !!tn && tn.maxTouchPoints > 2), It = ti || (tn ? /Mac/.test(tn.platform) : !1), SS = tn ? /Win/.test(tn.platform) : !1, Ut = /Android \d/.test(qn), _o = !!ld && "webkitFontSmoothing" in ld.documentElement.style, bS = _o ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0; +function TS(t) { let e = t.defaultView && t.defaultView.visualViewport; return e ? { left: 0, @@ -5205,7 +5237,7 @@ function mS(t) { function ln(t, e) { return typeof t == "number" ? t : t[e]; } -function fS(t) { +function CS(t) { let e = t.getBoundingClientRect(), n = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1; return { left: e.left, @@ -5214,12 +5246,12 @@ function fS(t) { bottom: e.top + t.clientHeight * r }; } -function od(t, e, n) { +function cd(t, e, n) { let r = t.someProp("scrollThreshold") || 0, i = t.someProp("scrollMargin") || 5, o = t.dom.ownerDocument; - for (let a = n || t.dom; a; a = Yi(a)) { + for (let a = n || t.dom; a; a = zi(a)) { if (a.nodeType != 1) continue; - let s = a, l = s == o.body, c = l ? mS(o) : fS(s), u = 0, d = 0; + let s = a, l = s == o.body, c = l ? TS(o) : CS(s), u = 0, d = 0; if (e.top < c.top + ln(r, "top") ? d = -(c.top - e.top + ln(i, "top")) : e.bottom > c.bottom - ln(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + ln(i, "top") - c.top : e.bottom - c.bottom + ln(i, "bottom")), e.left < c.left + ln(r, "left") ? u = -(c.left - e.left + ln(i, "left")) : e.right > c.right - ln(r, "right") && (u = e.right - c.right + ln(i, "right")), u || d) if (l) o.defaultView.scrollBy(u, d); @@ -5233,7 +5265,7 @@ function od(t, e, n) { break; } } -function gS(t) { +function yS(t) { let e = t.dom.getBoundingClientRect(), n = Math.max(0, e.top), r, i; for (let o = (e.left + e.right) / 2, a = n + 1; a < Math.min(innerHeight, e.bottom); a += 5) { let s = t.root.elementFromPoint(o, a); @@ -5245,38 +5277,38 @@ function gS(t) { break; } } - return { refDOM: r, refTop: i, stack: Dm(t.dom) }; + return { refDOM: r, refTop: i, stack: Fm(t.dom) }; } -function Dm(t) { +function Fm(t) { let e = [], n = t.ownerDocument; - for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r = Yi(r)) + for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r = zi(r)) ; return e; } -function hS({ refDOM: t, refTop: e, stack: n }) { +function vS({ refDOM: t, refTop: e, stack: n }) { let r = t ? t.getBoundingClientRect().top : 0; - Mm(n, r == 0 ? 0 : r - e); + Bm(n, r == 0 ? 0 : r - e); } -function Mm(t, e) { +function Bm(t, e) { for (let n = 0; n < t.length; n++) { let { dom: r, top: i, left: o } = t[n]; r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != o && (r.scrollLeft = o); } } let Nr = null; -function ES(t) { +function RS(t) { if (t.setActive) return t.setActive(); if (Nr) return t.focus(Nr); - let e = Dm(t); + let e = Fm(t); t.focus(Nr == null ? { get preventScroll() { return Nr = { preventScroll: !0 }, !0; } - } : void 0), Nr || (Nr = !1, Mm(e, 0)); + } : void 0), Nr || (Nr = !1, Bm(e, 0)); } -function wm(t, e) { +function Um(t, e) { let n, r = 2e8, i, o = 0, a = e.top, s = e.top, l, c; for (let u = t.firstChild, d = 0; u; u = u.nextSibling, d++) { let p; @@ -5302,34 +5334,34 @@ function wm(t, e) { !n && (e.left >= m.right && e.top >= m.top || e.left >= m.left && e.top >= m.bottom) && (o = d + 1); } } - return !n && l && (n = l, i = c, r = 0), n && n.nodeType == 3 ? SS(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : wm(n, i); + return !n && l && (n = l, i = c, r = 0), n && n.nodeType == 3 ? OS(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : Um(n, i); } -function SS(t, e) { +function OS(t, e) { let n = t.nodeValue.length, r = document.createRange(); for (let i = 0; i < n; i++) { r.setEnd(t, i + 1), r.setStart(t, i); let o = Tn(r, 1); - if (o.top != o.bottom && Tc(e, o)) + if (o.top != o.bottom && vc(e, o)) return { node: t, offset: i + (e.left >= (o.left + o.right) / 2 ? 1 : 0) }; } return { node: t, offset: 0 }; } -function Tc(t, e) { +function vc(t, e) { return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1; } -function bS(t, e) { +function NS(t, e) { let n = t.parentNode; return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t; } -function TS(t, e, n) { - let { node: r, offset: i } = wm(e, n), o = -1; +function AS(t, e, n) { + let { node: r, offset: i } = Um(e, n), o = -1; if (r.nodeType == 1 && !r.firstChild) { let a = r.getBoundingClientRect(); o = a.left != a.right && n.left > (a.left + a.right) / 2 ? 1 : -1; } return t.docView.posFromDOM(r, i, o); } -function CS(t, e, n, r) { +function IS(t, e, n, r) { let i = -1; for (let o = e, a = !1; o != t.dom; ) { let s = t.docView.nearestDesc(o, !0); @@ -5344,7 +5376,7 @@ function CS(t, e, n, r) { } return i > -1 ? i : t.docView.posFromDOM(e, n, -1); } -function Lm(t, e, n) { +function Hm(t, e, n) { let r = t.childNodes.length; if (r && n.top < n.bottom) for (let i = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - n.top) / (n.bottom - n.top)) - 2)), o = i; ; ) { @@ -5353,8 +5385,8 @@ function Lm(t, e, n) { let s = a.getClientRects(); for (let l = 0; l < s.length; l++) { let c = s[l]; - if (Tc(e, c)) - return Lm(a, e, c); + if (vc(e, c)) + return Hm(a, e, c); } } if ((o = (o + 1) % r) == i) @@ -5362,47 +5394,47 @@ function Lm(t, e, n) { } return t; } -function yS(t, e) { - let n = t.dom.ownerDocument, r, i = 0, o = dS(n, e.left, e.top); +function xS(t, e) { + let n = t.dom.ownerDocument, r, i = 0, o = ES(n, e.left, e.top); o && ({ node: r, offset: i } = o); let a = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), s; if (!a || !t.dom.contains(a.nodeType != 1 ? a.parentNode : a)) { let c = t.dom.getBoundingClientRect(); - if (!Tc(e, c) || (a = Lm(t.dom, e, c), !a)) + if (!vc(e, c) || (a = Hm(t.dom, e, c), !a)) return null; } if (st) - for (let c = a; r && c; c = Yi(c)) + for (let c = a; r && c; c = zi(c)) c.draggable && (r = void 0); - if (a = bS(a, e), r) { + if (a = NS(a, e), r) { if (Gt && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) { let u = r.childNodes[i], d; u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && i++; } let c; - po && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? s = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (s = CS(t, r, i, e)); + _o && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? s = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (s = IS(t, r, i, e)); } - s == null && (s = TS(t, a, e)); + s == null && (s = AS(t, a, e)); let l = t.docView.nearestDesc(a, !0); return { pos: s, inside: l ? l.posAtStart - l.border : -1 }; } -function ad(t) { +function ud(t) { return t.top < t.bottom || t.left < t.right; } function Tn(t, e) { let n = t.getClientRects(); if (n.length) { let r = n[e < 0 ? 0 : n.length - 1]; - if (ad(r)) + if (ud(r)) return r; } - return Array.prototype.find.call(n, ad) || t.getBoundingClientRect(); + return Array.prototype.find.call(n, ud) || t.getBoundingClientRect(); } -const vS = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/; -function km(t, e, n) { - let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), a = po || Gt; +const DS = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/; +function Gm(t, e, n) { + let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), a = _o || Gt; if (r.nodeType == 3) - if (a && (vS.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) { + if (a && (DS.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) { let l = Tn(pn(r, i, i), n); if (Gt && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) { let c = Tn(pn(r, i - 1, i - 1), -1); @@ -5418,24 +5450,24 @@ function km(t, e, n) { return n < 0 && !i ? (c++, u = -1) : n >= 0 && i == r.nodeValue.length ? (l--, u = 1) : n < 0 ? l-- : c++, Si(Tn(pn(r, l, c), u), u < 0); } if (!t.state.doc.resolve(e - (o || 0)).parent.inlineContent) { - if (o == null && i && (n < 0 || i == It(r))) { + if (o == null && i && (n < 0 || i == xt(r))) { let l = r.childNodes[i - 1]; if (l.nodeType == 1) - return Us(l.getBoundingClientRect(), !1); + return Hs(l.getBoundingClientRect(), !1); } - if (o == null && i < It(r)) { + if (o == null && i < xt(r)) { let l = r.childNodes[i]; if (l.nodeType == 1) - return Us(l.getBoundingClientRect(), !0); + return Hs(l.getBoundingClientRect(), !0); } - return Us(r.getBoundingClientRect(), n >= 0); + return Hs(r.getBoundingClientRect(), n >= 0); } - if (o == null && i && (n < 0 || i == It(r))) { - let l = r.childNodes[i - 1], c = l.nodeType == 3 ? pn(l, It(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null; + if (o == null && i && (n < 0 || i == xt(r))) { + let l = r.childNodes[i - 1], c = l.nodeType == 3 ? pn(l, xt(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null; if (c) return Si(Tn(c, 1), !1); } - if (o == null && i < It(r)) { + if (o == null && i < xt(r)) { let l = r.childNodes[i]; for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; ) l = l.nextSibling; @@ -5451,13 +5483,13 @@ function Si(t, e) { let n = e ? t.left : t.right; return { top: t.top, bottom: t.bottom, left: n, right: n }; } -function Us(t, e) { +function Hs(t, e) { if (t.height == 0) return t; let n = e ? t.top : t.bottom; return { top: n, bottom: n, left: t.left, right: t.right }; } -function Pm(t, e, n) { +function Vm(t, e, n) { let r = t.state, i = t.root.activeElement; r != e && t.updateState(e), i != t.dom && t.focus(); try { @@ -5466,9 +5498,9 @@ function Pm(t, e, n) { r != e && t.updateState(r), i != t.dom && i && i.focus(); } } -function RS(t, e, n) { +function MS(t, e, n) { let r = e.selection, i = n == "up" ? r.$from : r.$to; - return Pm(t, e, () => { + return Vm(t, e, () => { let { node: o } = t.docView.domFromPos(i.pos, n == "up" ? -1 : 1); for (; ; ) { let s = t.docView.nearestDesc(o, !0); @@ -5480,7 +5512,7 @@ function RS(t, e, n) { } o = s.dom.parentNode; } - let a = km(t, i.pos, 1); + let a = Gm(t, i.pos, 1); for (let s = o.firstChild; s; s = s.nextSibling) { let l; if (s.nodeType == 1) @@ -5498,13 +5530,13 @@ function RS(t, e, n) { return !0; }); } -const OS = /[\u0590-\u08ac]/; -function NS(t, e, n) { +const wS = /[\u0590-\u08ac]/; +function LS(t, e, n) { let { $head: r } = e.selection; if (!r.parent.isTextblock) return !1; let i = r.parentOffset, o = !i, a = i == r.parent.content.size, s = t.domSelection(); - return s ? !OS.test(r.parent.textContent) || !s.modify ? n == "left" || n == "backward" ? o : a : Pm(t, e, () => { + return s ? !wS.test(r.parent.textContent) || !s.modify ? n == "left" || n == "backward" ? o : a : Vm(t, e, () => { let { focusNode: l, focusOffset: c, anchorNode: u, anchorOffset: d } = t.domSelectionRange(), p = s.caretBidiLevel; s.modify("move", n, "character"); let _ = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: m, focusOffset: f } = t.domSelectionRange(), g = m && !_.contains(m.nodeType == 1 ? m : m.parentNode) || l == m && c == f; @@ -5515,12 +5547,12 @@ function NS(t, e, n) { return p != null && (s.caretBidiLevel = p), g; }) : r.pos == r.start() || r.pos == r.end(); } -let sd = null, ld = null, cd = !1; -function AS(t, e, n) { - return sd == e && ld == n ? cd : (sd = e, ld = n, cd = n == "up" || n == "down" ? RS(t, e, n) : NS(t, e, n)); +let dd = null, pd = null, _d = !1; +function kS(t, e, n) { + return dd == e && pd == n ? _d : (dd = e, pd = n, _d = n == "up" || n == "down" ? MS(t, e, n) : LS(t, e, n)); } -const Mt = 0, ud = 1, nr = 2, nn = 3; -class _o { +const Mt = 0, md = 1, rr = 2, nn = 3; +class mo { constructor(e, n, r, i) { this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = Mt, r.pmViewDesc = this; } @@ -5685,7 +5717,7 @@ class _o { let r = 0, i = 0; for (let o = 0; r < this.children.length; r++) { let a = this.children[r], s = o + a.size; - if (s > e || a instanceof Bm) { + if (s > e || a instanceof zm) { i = e - o; break; } @@ -5693,7 +5725,7 @@ class _o { } if (i) return this.children[r].domFromPos(i - this.children[r].border, n); - for (let o; r && !(o = this.children[r - 1]).size && o instanceof Fm && o.side >= 0; r--) + for (let o; r && !(o = this.children[r - 1]).size && o instanceof Ym && o.side >= 0; r--) ; if (n <= 0) { let o, a = !0; @@ -5829,19 +5861,19 @@ class _o { if (r == a ? e <= a && n >= r : e < a && n > r) { let s = r + o.border, l = a - o.border; if (e >= s && n <= l) { - this.dirty = e == r || n == a ? nr : ud, e == s && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = nn : o.markDirty(e - s, n - s); + this.dirty = e == r || n == a ? rr : md, e == s && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = nn : o.markDirty(e - s, n - s); return; } else - o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? nr : nn; + o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? rr : nn; } r = a; } - this.dirty = nr; + this.dirty = rr; } markParentsDirty() { let e = 1; for (let n = this.parent; n; n = n.parent, e++) { - let r = e == 1 ? nr : ud; + let r = e == 1 ? rr : md; n.dirty < r && (n.dirty = r); } } @@ -5855,7 +5887,7 @@ class _o { return !1; } } -class Fm extends _o { +class Ym extends mo { constructor(e, n, r, i) { let o, a = n.type.toDOM; if (typeof a == "function" && (a = a(r, () => { @@ -5895,7 +5927,7 @@ class Fm extends _o { return this.widget.type.side; } } -class IS extends _o { +class PS extends mo { constructor(e, n, r, i) { super(e, [], n, null), this.textDOM = r, this.text = i; } @@ -5912,13 +5944,13 @@ class IS extends _o { return e.type === "characterData" && e.target.nodeValue == e.oldValue; } } -class gr extends _o { - constructor(e, n, r, i) { - super(e, [], r, i), this.mark = n; +class gr extends mo { + constructor(e, n, r, i, o) { + super(e, [], r, i), this.mark = n, this.spec = o; } static create(e, n, r, i) { let o = i.nodeViews[n.type.name], a = o && o(n, i, r); - return (!a || !a.dom) && (a = Cr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new gr(e, n, a.dom, a.contentDOM || a.dom); + return (!a || !a.dom) && (a = Cr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new gr(e, n, a.dom, a.contentDOM || a.dom, a); } parseRule() { return this.dirty & nn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM }; @@ -5936,13 +5968,16 @@ class gr extends _o { } slice(e, n, r) { let i = gr.create(this.parent, this.mark, !0, r), o = this.children, a = this.size; - n < a && (o = Fl(o, n, a, r)), e > 0 && (o = Fl(o, 0, e, r)); + n < a && (o = Ul(o, n, a, r)), e > 0 && (o = Ul(o, 0, e, r)); for (let s = 0; s < o.length; s++) o[s].parent = i; return i.children = o, i; } + destroy() { + this.spec.destroy && this.spec.destroy(), super.destroy(); + } } -class Bn extends _o { +class Un extends mo { constructor(e, n, r, i, o, a, s, l, c) { super(e, [], o, a), this.node = n, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = s; } @@ -5970,7 +6005,7 @@ class Bn extends _o { } else u || ({ dom: u, contentDOM: d } = Cr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs)); !d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0)); let p = u; - return u = Gm(u, r, n), c ? l = new xS(e, n, r, i, u, d || null, p, c, o, a + 1) : n.isText ? new is(e, n, r, i, u, p, o) : new Bn(e, n, r, i, u, d || null, p, o, a + 1); + return u = Wm(u, r, n), c ? l = new FS(e, n, r, i, u, d || null, p, c, o, a + 1) : n.isText ? new as(e, n, r, i, u, p, o) : new Un(e, n, r, i, u, d || null, p, o, a + 1); } parseRule() { if (this.node.type.spec.reparseInView) @@ -5988,12 +6023,12 @@ class Bn extends _o { break; } } - e.contentElement || (e.getContent = () => L.empty); + e.contentElement || (e.getContent = () => w.empty); } return e; } matchesNode(e, n, r) { - return this.dirty == Mt && e.eq(this.node) && pa(n, this.outerDeco) && r.eq(this.innerDeco); + return this.dirty == Mt && e.eq(this.node) && _a(n, this.outerDeco) && r.eq(this.innerDeco); } get size() { return this.node.nodeSize; @@ -6006,14 +6041,14 @@ class Bn extends _o { // separate step, syncs the DOM inside `this.contentDOM` to // `this.children`. updateChildren(e, n) { - let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, a = o && o.pos > -1 ? o : null, s = o && o.pos < 0, l = new MS(this, a && a.node, e); - kS(this.node, this.innerDeco, (c, u, d) => { + let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, a = o && o.pos > -1 ? o : null, s = o && o.pos < 0, l = new US(this, a && a.node, e); + VS(this.node, this.innerDeco, (c, u, d) => { c.spec.marks ? l.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && l.syncToMarks(u == this.node.childCount ? Re.none : this.node.child(u).marks, r, e), l.placeWidget(c, e, i); }, (c, u, d, p) => { l.syncToMarks(c.marks, r, e); let _; l.findNodeMatch(c, u, d, p) || s && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (_ = l.findIndexWithChild(o.node)) > -1 && l.updateNodeAt(c, u, d, _, e) || l.updateNextNode(c, u, d, e, p, i) || l.addNode(c, u, d, e, i), i += c.nodeSize; - }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == nr) && (a && this.protectLocalComposition(e, a), Um(this.contentDOM, this.children, e), ti && PS(this.dom)); + }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == rr) && (a && this.protectLocalComposition(e, a), $m(this.contentDOM, this.children, e), ti && YS(this.dom)); } localCompositionInfo(e, n) { let { from: r, to: i } = e.state.selection; @@ -6023,7 +6058,7 @@ class Bn extends _o { if (!o || !this.dom.contains(o.parentNode)) return null; if (this.node.inlineContent) { - let a = o.nodeValue, s = FS(this.node.content, a, r - n, i - n); + let a = o.nodeValue, s = zS(this.node.content, a, r - n, i - n); return s < 0 ? null : { node: o, pos: s, text: a }; } else return { node: o, pos: -1, text: "" }; @@ -6039,8 +6074,8 @@ class Bn extends _o { o.parentNode.removeChild(o.nextSibling); o.pmViewDesc && (o.pmViewDesc = void 0); } - let a = new IS(this, o, n, i); - e.input.compositionNodes.push(a), this.children = Fl(this.children, r, r + i.length, e, a); + let a = new PS(this, o, n, i); + e.input.compositionNodes.push(a), this.children = Ul(this.children, r, r + i.length, e, a); } // If this desc must be updated to match the given node decoration, // do so and return true. @@ -6051,10 +6086,10 @@ class Bn extends _o { this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Mt; } updateOuterDeco(e) { - if (pa(e, this.outerDeco)) + if (_a(e, this.outerDeco)) return; let n = this.nodeDOM.nodeType != 1, r = this.dom; - this.dom = Hm(this.dom, this.nodeDOM, Pl(this.outerDeco, this.node, n), Pl(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e; + this.dom = qm(this.dom, this.nodeDOM, Bl(this.outerDeco, this.node, n), Bl(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e; } // Mark this node as being the selected node. selectNode() { @@ -6068,12 +6103,12 @@ class Bn extends _o { return this.node.isAtom; } } -function dd(t, e, n, r, i) { - Gm(r, e, t); - let o = new Bn(void 0, t, e, n, r, r, r, i, 0); +function fd(t, e, n, r, i) { + Wm(r, e, t); + let o = new Un(void 0, t, e, n, r, r, r, i, 0); return o.contentDOM && o.updateChildren(i, 0), o; } -class is extends Bn { +class as extends Un { constructor(e, n, r, i, o, a, s) { super(e, n, r, i, o, null, a, s, 0); } @@ -6104,7 +6139,7 @@ class is extends Bn { } slice(e, n, r) { let i = this.node.cut(e, n), o = document.createTextNode(i.text); - return new is(this.parent, i, this.outerDeco, this.innerDeco, o, o, r); + return new as(this.parent, i, this.outerDeco, this.innerDeco, o, o, r); } markDirty(e, n) { super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = nn); @@ -6116,7 +6151,7 @@ class is extends Bn { return this.node.text == e; } } -class Bm extends _o { +class zm extends mo { parseRule() { return { ignore: !0 }; } @@ -6130,7 +6165,7 @@ class Bm extends _o { return this.dom.nodeName == "IMG"; } } -class xS extends Bn { +class FS extends Un { constructor(e, n, r, i, o, a, s, l, c, u) { super(e, n, r, i, o, a, s, c, u), this.spec = l; } @@ -6140,7 +6175,7 @@ class xS extends Bn { update(e, n, r, i) { if (this.dirty == nn) return !1; - if (this.spec.update) { + if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) { let o = this.spec.update(e, n, r); return o && this.updateInner(e, n, r, i), o; } else return !this.contentDOM && !e.isLeaf ? !1 : super.update(e, n, r, i); @@ -6164,61 +6199,61 @@ class xS extends Bn { return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e); } } -function Um(t, e, n) { +function $m(t, e, n) { let r = t.firstChild, i = !1; for (let o = 0; o < e.length; o++) { let a = e[o], s = a.dom; if (s.parentNode == t) { for (; s != r; ) - r = pd(r), i = !0; + r = gd(r), i = !0; r = r.nextSibling; } else i = !0, t.insertBefore(s, r); if (a instanceof gr) { let l = r ? r.previousSibling : t.lastChild; - Um(a.contentDOM, a.children, n), r = l ? l.nextSibling : t.firstChild; + $m(a.contentDOM, a.children, n), r = l ? l.nextSibling : t.firstChild; } } for (; r; ) - r = pd(r), i = !0; + r = gd(r), i = !0; i && n.trackWrites == t && (n.trackWrites = null); } -const Di = function(t) { +const Mi = function(t) { t && (this.nodeName = t); }; -Di.prototype = /* @__PURE__ */ Object.create(null); -const rr = [new Di()]; -function Pl(t, e, n) { +Mi.prototype = /* @__PURE__ */ Object.create(null); +const ir = [new Mi()]; +function Bl(t, e, n) { if (t.length == 0) - return rr; - let r = n ? rr[0] : new Di(), i = [r]; + return ir; + let r = n ? ir[0] : new Mi(), i = [r]; for (let o = 0; o < t.length; o++) { let a = t[o].type.attrs; if (a) { - a.nodeName && i.push(r = new Di(a.nodeName)); + a.nodeName && i.push(r = new Mi(a.nodeName)); for (let s in a) { let l = a[s]; - l != null && (n && i.length == 1 && i.push(r = new Di(e.isInline ? "span" : "div")), s == "class" ? r.class = (r.class ? r.class + " " : "") + l : s == "style" ? r.style = (r.style ? r.style + ";" : "") + l : s != "nodeName" && (r[s] = l)); + l != null && (n && i.length == 1 && i.push(r = new Mi(e.isInline ? "span" : "div")), s == "class" ? r.class = (r.class ? r.class + " " : "") + l : s == "style" ? r.style = (r.style ? r.style + ";" : "") + l : s != "nodeName" && (r[s] = l)); } } } return i; } -function Hm(t, e, n, r) { - if (n == rr && r == rr) +function qm(t, e, n, r) { + if (n == ir && r == ir) return e; let i = e; for (let o = 0; o < r.length; o++) { let a = r[o], s = n[o]; if (o) { let l; - s && s.nodeName == a.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == a.nodeName || (l = document.createElement(a.nodeName), l.pmIsDeco = !0, l.appendChild(i), s = rr[0]), i = l; + s && s.nodeName == a.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == a.nodeName || (l = document.createElement(a.nodeName), l.pmIsDeco = !0, l.appendChild(i), s = ir[0]), i = l; } - DS(i, s || rr[0], a); + BS(i, s || ir[0], a); } return i; } -function DS(t, e, n) { +function BS(t, e, n) { for (let r in e) r != "class" && r != "style" && r != "nodeName" && !(r in n) && t.removeAttribute(r); for (let r in n) @@ -6240,10 +6275,10 @@ function DS(t, e, n) { n.style && (t.style.cssText += n.style); } } -function Gm(t, e, n) { - return Hm(t, t, rr, Pl(e, n, t.nodeType != 1)); +function Wm(t, e, n) { + return qm(t, t, ir, Bl(e, n, t.nodeType != 1)); } -function pa(t, e) { +function _a(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -6251,13 +6286,13 @@ function pa(t, e) { return !1; return !0; } -function pd(t) { +function gd(t) { let e = t.nextSibling; return t.parentNode.removeChild(t), e; } -class MS { +class US { constructor(e, n, r) { - this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = wS(e.node.content, e); + this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = HS(e.node.content, e); } // Destroy and remove the children between the given indices in // `this.top`. @@ -6317,7 +6352,7 @@ class MS { } updateNodeAt(e, n, r, i, o) { let a = this.top.children[i]; - return a.dirty == nn && a.dom == a.contentDOM && (a.dirty = nr), a.update(e, n, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1; + return a.dirty == nn && a.dom == a.contentDOM && (a.dirty = rr), a.update(e, n, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1; } findIndexWithChild(e) { for (; ; ) { @@ -6341,15 +6376,15 @@ class MS { updateNextNode(e, n, r, i, o, a) { for (let s = this.index; s < this.top.children.length; s++) { let l = this.top.children[s]; - if (l instanceof Bn) { + if (l instanceof Un) { let c = this.preMatch.matched.get(l); if (c != null && c != o) return !1; - let u = l.dom, d, p = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != nn && pa(n, l.outerDeco)); + let u = l.dom, d, p = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != nn && _a(n, l.outerDeco)); if (!p && l.update(e, n, r, i)) return this.destroyBetween(this.index, s), l.dom != u && (this.changed = !0), this.index++, !0; if (!p && (d = this.recreateWrapper(l, e, n, r, i, a))) - return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = nr, d.updateChildren(i, a + 1), d.dirty = Mt), this.changed = !0, this.index++, !0; + return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = rr, d.updateChildren(i, a + 1), d.dirty = Mt), this.changed = !0, this.index++, !0; break; } } @@ -6358,9 +6393,9 @@ class MS { // When a node with content is replaced by a different node with // identical content, move over its children. recreateWrapper(e, n, r, i, o, a) { - if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !pa(r, e.outerDeco) || !i.eq(e.innerDeco)) + if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !_a(r, e.outerDeco) || !i.eq(e.innerDeco)) return null; - let s = Bn.create(this.top, n, r, i, o, a); + let s = Un.create(this.top, n, r, i, o, a); if (s.contentDOM) { s.children = e.children, e.children = []; for (let l of s.children) @@ -6370,7 +6405,7 @@ class MS { } // Insert the node as a newly created node desc. addNode(e, n, r, i, o) { - let a = Bn.create(this.top, e, n, r, i, o); + let a = Un.create(this.top, e, n, r, i, o); a.contentDOM && a.updateChildren(i, o + 1), this.top.children.splice(this.index++, 0, a), this.changed = !0; } placeWidget(e, n, r) { @@ -6378,7 +6413,7 @@ class MS { if (i && i.matchesWidget(e) && (e == i.widget || !i.widget.type.toDOM.parentNode)) this.index++; else { - let o = new Fm(this.top, e, n, r); + let o = new Ym(this.top, e, n, r); this.top.children.splice(this.index++, 0, o), this.changed = !0; } } @@ -6389,7 +6424,7 @@ class MS { for (; e instanceof gr; ) n = e, e = n.children[n.children.length - 1]; (!e || // Empty textblock - !(e instanceof is) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((st || rt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top)); + !(e instanceof as) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((st || rt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top)); } addHackNode(e, n) { if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e)) @@ -6397,7 +6432,7 @@ class MS { else { let r = document.createElement(e); e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak"); - let i = new Bm(this.top, [], r, null); + let i = new zm(this.top, [], r, null); n != this.top ? n.children.push(i) : n.children.splice(this.index++, 0, i), this.changed = !0; } } @@ -6405,7 +6440,7 @@ class MS { return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode)); } } -function wS(t, e) { +function HS(t, e) { let n = e, r = n.children.length, i = t.childCount, o = /* @__PURE__ */ new Map(), a = []; e: for (; i > 0; ) { let s; @@ -6432,10 +6467,10 @@ function wS(t, e) { } return { index: i, matched: o, matches: a.reverse() }; } -function LS(t, e) { +function GS(t, e) { return t.type.side - e.type.side; } -function kS(t, e, n, r) { +function VS(t, e, n, r) { let i = e.locals(t), o = 0; if (i.length == 0) { for (let c = 0; c < t.childCount; c++) { @@ -6453,7 +6488,7 @@ function kS(t, e, n, r) { } if (u) if (d) { - d.sort(LS); + d.sort(GS); for (let g = 0; g < d.length; g++) n(d[g], c, !!l); } else @@ -6473,8 +6508,8 @@ function kS(t, e, n, r) { if (p.isText) { let g = m; a < i.length && i[a].from < g && (g = i[a].from); - for (let E = 0; E < s.length; E++) - s[E].to < g && (g = s[E].to); + for (let S = 0; S < s.length; S++) + s[S].to < g && (g = s[S].to); g < m && (l = p.cut(g - o), p = p.cut(0, g - o), m = g, _ = -1); } else for (; a < i.length && i[a].to < m; ) @@ -6483,13 +6518,13 @@ function kS(t, e, n, r) { r(p, f, e.forChild(o, p), _), o = m; } } -function PS(t) { +function YS(t) { if (t.nodeName == "UL" || t.nodeName == "OL") { let e = t.style.cssText; t.style.cssText = e + "; list-style: square !important", window.getComputedStyle(t).listStyle, t.style.cssText = e; } } -function FS(t, e, n, r) { +function zS(t, e, n, r) { for (let i = 0, o = 0; i < t.childCount && o <= r; ) { let a = t.child(i++), s = o; if (o += a.nodeSize, !a.isText) @@ -6513,7 +6548,7 @@ function FS(t, e, n, r) { } return -1; } -function Fl(t, e, n, r, i) { +function Ul(t, e, n, r, i) { let o = []; for (let a = 0, s = 0; a < t.length; a++) { let l = t[a], c = s, u = s += l.size; @@ -6521,7 +6556,7 @@ function Fl(t, e, n, r, i) { } return o; } -function Cc(t, e = null) { +function Rc(t, e = null) { let n = t.domSelectionRange(), r = t.state.doc; if (!n.focusNode) return null; @@ -6529,11 +6564,11 @@ function Cc(t, e = null) { if (a < 0) return null; let s = r.resolve(a), l, c; - if (rs(n)) { + if (is(n)) { for (l = a; i && !i.node; ) i = i.parent; let d = i.node; - if (i && d.isAtom && ee.isSelectable(d) && i.parent && !(d.isInline && cS(n.focusNode, n.focusOffset, i.dom))) { + if (i && d.isAtom && ee.isSelectable(d) && i.parent && !(d.isInline && gS(n.focusNode, n.focusOffset, i.dom))) { let p = i.posBefore; c = new ee(a == p ? s : r.resolve(p)); } @@ -6555,16 +6590,16 @@ function Cc(t, e = null) { let u = r.resolve(l); if (!c) { let d = e == "pointer" || t.state.selection.head < s.pos && !o ? 1 : -1; - c = yc(t, u, s, d); + c = Oc(t, u, s, d); } return c; } -function Vm(t) { - return t.editable ? t.hasFocus() : zm(t) && document.activeElement && document.activeElement.contains(t.dom); +function Km(t) { + return t.editable ? t.hasFocus() : Zm(t) && document.activeElement && document.activeElement.contains(t.dom); } function gn(t, e = !1) { let n = t.state.selection; - if (Ym(t, n), !!Vm(t)) { + if (Qm(t, n), !!Km(t)) { if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && rt) { let r = t.domSelectionRange(), i = t.domObserver.currentSelection; if (r.anchorNode && i.anchorNode && fr(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) { @@ -6573,66 +6608,66 @@ function gn(t, e = !1) { } } if (t.domObserver.disconnectSelection(), t.cursorWrapper) - US(t); + qS(t); else { let { anchor: r, head: i } = n, o, a; - _d && !(n instanceof Z) && (n.$from.parent.inlineContent || (o = md(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (a = md(t, n.to))), t.docView.setSelection(r, i, t.root, e), _d && (o && fd(o), a && fd(a)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && BS(t)); + hd && !(n instanceof Z) && (n.$from.parent.inlineContent || (o = Ed(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (a = Ed(t, n.to))), t.docView.setSelection(r, i, t.root, e), hd && (o && Sd(o), a && Sd(a)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && $S(t)); } t.domObserver.setCurSelection(), t.domObserver.connectSelection(); } } -const _d = st || rt && xm < 63; -function md(t, e) { +const hd = st || rt && Pm < 63; +function Ed(t, e) { let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null; if (st && i && i.contentEditable == "false") - return Hs(i); + return Gs(i); if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) { if (i) - return Hs(i); + return Gs(i); if (o) - return Hs(o); + return Gs(o); } } -function Hs(t) { +function Gs(t) { return t.contentEditable = "true", st && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t; } -function fd(t) { +function Sd(t) { t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null); } -function BS(t) { +function $S(t) { let e = t.dom.ownerDocument; e.removeEventListener("selectionchange", t.input.hideSelectionGuard); let n = t.domSelectionRange(), r = n.anchorNode, i = n.anchorOffset; e.addEventListener("selectionchange", t.input.hideSelectionGuard = () => { (n.anchorNode != r || n.anchorOffset != i) && (e.removeEventListener("selectionchange", t.input.hideSelectionGuard), setTimeout(() => { - (!Vm(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection"); + (!Km(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection"); }, 20)); }); } -function US(t) { +function qS(t) { let e = t.domSelection(), n = document.createRange(); if (!e) return; let r = t.cursorWrapper.dom, i = r.nodeName == "IMG"; - i ? n.setStart(r.parentNode, Xe(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !i && !t.state.selection.visible && pt && Fn <= 11 && (r.disabled = !0, r.disabled = !1); + i ? n.setStart(r.parentNode, Xe(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !i && !t.state.selection.visible && pt && Bn <= 11 && (r.disabled = !0, r.disabled = !1); } -function Ym(t, e) { +function Qm(t, e) { if (e instanceof ee) { let n = t.docView.descAt(e.from); - n != t.lastSelectedViewDesc && (gd(t), n && n.selectNode(), t.lastSelectedViewDesc = n); + n != t.lastSelectedViewDesc && (bd(t), n && n.selectNode(), t.lastSelectedViewDesc = n); } else - gd(t); + bd(t); } -function gd(t) { +function bd(t) { t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0); } -function yc(t, e, n, r) { +function Oc(t, e, n, r) { return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || Z.between(e, n, r); } -function hd(t) { - return t.editable && !t.hasFocus() ? !1 : zm(t); +function Td(t) { + return t.editable && !t.hasFocus() ? !1 : Zm(t); } -function zm(t) { +function Zm(t) { let e = t.domSelectionRange(); if (!e.anchorNode) return !1; @@ -6642,18 +6677,18 @@ function zm(t) { return !1; } } -function HS(t) { +function WS(t) { let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange(); return fr(e.node, e.offset, n.anchorNode, n.anchorOffset); } -function Bl(t, e) { +function Hl(t, e) { let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i; return o && te.findFrom(o, e); } function Cn(t, e) { return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0; } -function Ed(t, e, n) { +function Cd(t, e, n) { let r = t.state.selection; if (r instanceof Z) if (n.indexOf("s") > -1) { @@ -6664,47 +6699,47 @@ function Ed(t, e, n) { return Cn(t, new Z(r.$anchor, a)); } else if (r.empty) { if (t.endOfTextblock(e > 0 ? "forward" : "backward")) { - let i = Bl(t.state, e); + let i = Hl(t.state, e); return i && i instanceof ee ? Cn(t, i) : !1; - } else if (!(At && n.indexOf("m") > -1)) { + } else if (!(It && n.indexOf("m") > -1)) { let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, a; if (!o || o.isText) return !1; let s = e < 0 ? i.pos - o.nodeSize : i.pos; - return o.isAtom || (a = t.docView.descAt(s)) && !a.contentDOM ? ee.isSelectable(o) ? Cn(t, new ee(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : po ? Cn(t, new Z(t.state.doc.resolve(e < 0 ? s : s + o.nodeSize))) : !1 : !1; + return o.isAtom || (a = t.docView.descAt(s)) && !a.contentDOM ? ee.isSelectable(o) ? Cn(t, new ee(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : _o ? Cn(t, new Z(t.state.doc.resolve(e < 0 ? s : s + o.nodeSize))) : !1 : !1; } } else return !1; else { if (r instanceof ee && r.node.isInline) return Cn(t, new Z(e > 0 ? r.$to : r.$from)); { - let i = Bl(t.state, e); + let i = Hl(t.state, e); return i ? Cn(t, i) : !1; } } } -function _a(t) { +function ma(t) { return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length; } -function Mi(t, e) { +function wi(t, e) { let n = t.pmViewDesc; return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR"); } function Ar(t, e) { - return e < 0 ? GS(t) : VS(t); + return e < 0 ? KS(t) : QS(t); } -function GS(t) { +function KS(t) { let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset; if (!n) return; let i, o, a = !1; - for (Gt && n.nodeType == 1 && r < _a(n) && Mi(n.childNodes[r], -1) && (a = !0); ; ) + for (Gt && n.nodeType == 1 && r < ma(n) && wi(n.childNodes[r], -1) && (a = !0); ; ) if (r > 0) { if (n.nodeType != 1) break; { let s = n.childNodes[r - 1]; - if (Mi(s, -1)) + if (wi(s, -1)) i = n, o = --r; else if (s.nodeType == 3) n = s, r = n.nodeValue.length; @@ -6712,14 +6747,14 @@ function GS(t) { break; } } else { - if ($m(n)) + if (Xm(n)) break; { let s = n.previousSibling; - for (; s && Mi(s, -1); ) + for (; s && wi(s, -1); ) i = n.parentNode, o = Xe(s), s = s.previousSibling; if (s) - n = s, r = _a(n); + n = s, r = ma(n); else { if (n = n.parentNode, n == t.dom) break; @@ -6727,31 +6762,31 @@ function GS(t) { } } } - a ? Ul(t, n, r) : i && Ul(t, i, o); + a ? Gl(t, n, r) : i && Gl(t, i, o); } -function VS(t) { +function QS(t) { let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset; if (!n) return; - let i = _a(n), o, a; + let i = ma(n), o, a; for (; ; ) if (r < i) { if (n.nodeType != 1) break; let s = n.childNodes[r]; - if (Mi(s, 1)) + if (wi(s, 1)) o = n, a = ++r; else break; } else { - if ($m(n)) + if (Xm(n)) break; { let s = n.nextSibling; - for (; s && Mi(s, 1); ) + for (; s && wi(s, 1); ) o = s.parentNode, a = Xe(s) + 1, s = s.nextSibling; if (s) - n = s, r = 0, i = _a(n); + n = s, r = 0, i = ma(n); else { if (n = n.parentNode, n == t.dom) break; @@ -6759,14 +6794,14 @@ function VS(t) { } } } - o && Ul(t, o, a); + o && Gl(t, o, a); } -function $m(t) { +function Xm(t) { let e = t.pmViewDesc; return e && e.node && e.node.isBlock; } -function YS(t, e) { - for (; t && e == t.childNodes.length && !uo(t); ) +function ZS(t, e) { + for (; t && e == t.childNodes.length && !po(t); ) e = Xe(t) + 1, t = t.parentNode; for (; t && e < t.childNodes.length; ) { let n = t.childNodes[e]; @@ -6777,8 +6812,8 @@ function YS(t, e) { t = n, e = 0; } } -function zS(t, e) { - for (; t && !e && !uo(t); ) +function XS(t, e) { + for (; t && !e && !po(t); ) e = Xe(t), t = t.parentNode; for (; t && e; ) { let n = t.childNodes[e - 1]; @@ -6789,15 +6824,15 @@ function zS(t, e) { t = n, e = t.childNodes.length; } } -function Ul(t, e, n) { +function Gl(t, e, n) { if (e.nodeType != 3) { let o, a; - (a = YS(e, n)) ? (e = a, n = 0) : (o = zS(e, n)) && (e = o, n = o.nodeValue.length); + (a = ZS(e, n)) ? (e = a, n = 0) : (o = XS(e, n)) && (e = o, n = o.nodeValue.length); } let r = t.domSelection(); if (!r) return; - if (rs(r)) { + if (is(r)) { let o = document.createRange(); o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o); } else r.extend && r.extend(e, n); @@ -6807,9 +6842,9 @@ function Ul(t, e, n) { t.state == i && gn(t); }, 50); } -function Sd(t, e) { +function yd(t, e) { let n = t.state.doc.resolve(e); - if (!(rt || pS) && n.parent.inlineContent) { + if (!(rt || SS) && n.parent.inlineContent) { let i = t.coordsAtPos(e); if (e > n.start()) { let o = t.coordsAtPos(e - 1), a = (o.top + o.bottom) / 2; @@ -6824,13 +6859,13 @@ function Sd(t, e) { } return getComputedStyle(t.dom).direction == "rtl" ? "rtl" : "ltr"; } -function bd(t, e, n) { +function vd(t, e, n) { let r = t.state.selection; - if (r instanceof Z && !r.empty || n.indexOf("s") > -1 || At && n.indexOf("m") > -1) + if (r instanceof Z && !r.empty || n.indexOf("s") > -1 || It && n.indexOf("m") > -1) return !1; let { $from: i, $to: o } = r; if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) { - let a = Bl(t.state, e); + let a = Hl(t.state, e); if (a && a instanceof ee) return Cn(t, a); } @@ -6840,7 +6875,7 @@ function bd(t, e, n) { } return !1; } -function Td(t, e) { +function Rd(t, e) { if (!(t.state.selection instanceof Z)) return !0; let { $head: n, $anchor: r, empty: i } = t.state.selection; @@ -6857,48 +6892,48 @@ function Td(t, e) { } return !1; } -function Cd(t, e, n) { +function Od(t, e, n) { t.domObserver.stop(), e.contentEditable = n, t.domObserver.start(); } -function $S(t) { +function jS(t) { if (!st || t.state.selection.$head.parentOffset > 0) return !1; let { focusNode: e, focusOffset: n } = t.domSelectionRange(); if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") { let r = e.firstChild; - Cd(t, r, "true"), setTimeout(() => Cd(t, r, "false"), 20); + Od(t, r, "true"), setTimeout(() => Od(t, r, "false"), 20); } return !1; } -function qS(t) { +function JS(t) { let e = ""; return t.ctrlKey && (e += "c"), t.metaKey && (e += "m"), t.altKey && (e += "a"), t.shiftKey && (e += "s"), e; } -function WS(t, e) { - let n = e.keyCode, r = qS(e); - if (n == 8 || At && n == 72 && r == "c") - return Td(t, -1) || Ar(t, -1); - if (n == 46 && !e.shiftKey || At && n == 68 && r == "c") - return Td(t, 1) || Ar(t, 1); +function eb(t, e) { + let n = e.keyCode, r = JS(e); + if (n == 8 || It && n == 72 && r == "c") + return Rd(t, -1) || Ar(t, -1); + if (n == 46 && !e.shiftKey || It && n == 68 && r == "c") + return Rd(t, 1) || Ar(t, 1); if (n == 13 || n == 27) return !0; - if (n == 37 || At && n == 66 && r == "c") { - let i = n == 37 ? Sd(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1; - return Ed(t, i, r) || Ar(t, i); - } else if (n == 39 || At && n == 70 && r == "c") { - let i = n == 39 ? Sd(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1; - return Ed(t, i, r) || Ar(t, i); + if (n == 37 || It && n == 66 && r == "c") { + let i = n == 37 ? yd(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1; + return Cd(t, i, r) || Ar(t, i); + } else if (n == 39 || It && n == 70 && r == "c") { + let i = n == 39 ? yd(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1; + return Cd(t, i, r) || Ar(t, i); } else { - if (n == 38 || At && n == 80 && r == "c") - return bd(t, -1, r) || Ar(t, -1); - if (n == 40 || At && n == 78 && r == "c") - return $S(t) || bd(t, 1, r) || Ar(t, 1); - if (r == (At ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90)) + if (n == 38 || It && n == 80 && r == "c") + return vd(t, -1, r) || Ar(t, -1); + if (n == 40 || It && n == 78 && r == "c") + return jS(t) || vd(t, 1, r) || Ar(t, 1); + if (r == (It ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90)) return !0; } return !1; } -function qm(t, e) { +function jm(t, e) { t.someProp("transformCopied", (_) => { e = _(e, t); }); @@ -6908,10 +6943,10 @@ function qm(t, e) { let _ = r.firstChild; n.push(_.type.name, _.attrs != _.type.defaultAttrs ? _.attrs : null), r = _.content; } - let a = t.someProp("clipboardSerializer") || Cr.fromSchema(t.state.schema), s = jm(), l = s.createElement("div"); + let a = t.someProp("clipboardSerializer") || Cr.fromSchema(t.state.schema), s = of(), l = s.createElement("div"); l.appendChild(a.serializeFragment(r, { document: s })); let c = l.firstChild, u, d = 0; - for (; c && c.nodeType == 1 && (u = Xm[c.nodeName.toLowerCase()]); ) { + for (; c && c.nodeType == 1 && (u = rf[c.nodeName.toLowerCase()]); ) { for (let _ = u.length - 1; _ >= 0; _--) { let m = s.createElement(u[_]); for (; l.firstChild; ) @@ -6926,7 +6961,7 @@ function qm(t, e) { `); return { dom: l, text: p, slice: e }; } -function Wm(t, e, n, r, i) { +function Jm(t, e, n, r, i) { let o = i.parent.type.spec.code, a, s; if (!n && !e) return null; @@ -6935,7 +6970,7 @@ function Wm(t, e, n, r, i) { if (t.someProp("transformPastedText", (p) => { e = p(e, o || r, t); }), o) - return e ? new H(L.from(t.state.schema.text(e.replace(/\r\n?/g, ` + return e ? new H(w.from(t.state.schema.text(e.replace(/\r\n?/g, ` `))), 0, 0) : H.empty; let d = t.someProp("clipboardTextParser", (p) => p(e, i, r, t)); if (d) @@ -6950,7 +6985,7 @@ function Wm(t, e, n, r, i) { } else t.someProp("transformPastedHTML", (d) => { n = d(n, t); - }), a = XS(n), po && jS(a); + }), a = ib(n), _o && ob(a); let c = a && a.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || ""); if (u && u[3]) for (let d = +u[3]; d > 0; d--) { @@ -6965,24 +7000,24 @@ function Wm(t, e, n, r, i) { preserveWhitespace: !!(l || u), context: i, ruleFromNode(p) { - return p.nodeName == "BR" && !p.nextSibling && p.parentNode && !KS.test(p.parentNode.nodeName) ? { ignore: !0 } : null; + return p.nodeName == "BR" && !p.nextSibling && p.parentNode && !tb.test(p.parentNode.nodeName) ? { ignore: !0 } : null; } })), u) - s = JS(yd(s, +u[1], +u[2]), u[4]); - else if (s = H.maxOpen(QS(s.content, i), !0), s.openStart || s.openEnd) { + s = ab(Nd(s, +u[1], +u[2]), u[4]); + else if (s = H.maxOpen(nb(s.content, i), !0), s.openStart || s.openEnd) { let d = 0, p = 0; for (let _ = s.content.firstChild; d < s.openStart && !_.type.spec.isolating; d++, _ = _.firstChild) ; for (let _ = s.content.lastChild; p < s.openEnd && !_.type.spec.isolating; p++, _ = _.lastChild) ; - s = yd(s, d, p); + s = Nd(s, d, p); } return t.someProp("transformPasted", (d) => { s = d(s, t); }), s; } -const KS = /^(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 QS(t, e) { +const tb = /^(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 nb(t, e) { if (t.childCount < 2) return t; for (let n = e.depth; n >= 0; n--) { @@ -6993,46 +7028,46 @@ function QS(t, e) { let l = i.findWrapping(s.type), c; if (!l) return a = null; - if (c = a.length && o.length && Qm(l, o, s, a[a.length - 1], 0)) + if (c = a.length && o.length && tf(l, o, s, a[a.length - 1], 0)) a[a.length - 1] = c; else { - a.length && (a[a.length - 1] = Zm(a[a.length - 1], o.length)); - let u = Km(s, l); + a.length && (a[a.length - 1] = nf(a[a.length - 1], o.length)); + let u = ef(s, l); a.push(u), i = i.matchType(u.type), o = l; } }), a) - return L.from(a); + return w.from(a); } return t; } -function Km(t, e, n = 0) { +function ef(t, e, n = 0) { for (let r = e.length - 1; r >= n; r--) - t = e[r].create(null, L.from(t)); + t = e[r].create(null, w.from(t)); return t; } -function Qm(t, e, n, r, i) { +function tf(t, e, n, r, i) { if (i < t.length && i < e.length && t[i] == e[i]) { - let o = Qm(t, e, n, r.lastChild, i + 1); + let o = tf(t, e, n, r.lastChild, i + 1); if (o) return r.copy(r.content.replaceChild(r.childCount - 1, o)); if (r.contentMatchAt(r.childCount).matchType(i == t.length - 1 ? n.type : t[i + 1])) - return r.copy(r.content.append(L.from(Km(n, t, i + 1)))); + return r.copy(r.content.append(w.from(ef(n, t, i + 1)))); } } -function Zm(t, e) { +function nf(t, e) { if (e == 0) return t; - let n = t.content.replaceChild(t.childCount - 1, Zm(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(L.empty, !0); + let n = t.content.replaceChild(t.childCount - 1, nf(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(w.empty, !0); return t.copy(n.append(r)); } -function Hl(t, e, n, r, i, o) { +function Vl(t, e, n, r, i, o) { let a = e < 0 ? t.firstChild : t.lastChild, s = a.content; - return t.childCount > 1 && (o = 0), i < r - 1 && (s = Hl(s, e, n, r, i + 1, o)), i >= n && (s = e < 0 ? a.contentMatchAt(0).fillBefore(s, o <= i).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(L.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, a.copy(s)); + return t.childCount > 1 && (o = 0), i < r - 1 && (s = Vl(s, e, n, r, i + 1, o)), i >= n && (s = e < 0 ? a.contentMatchAt(0).fillBefore(s, o <= i).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(w.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, a.copy(s)); } -function yd(t, e, n) { - return e < t.openStart && (t = new H(Hl(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new H(Hl(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t; +function Nd(t, e, n) { + return e < t.openStart && (t = new H(Vl(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new H(Vl(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t; } -const Xm = { +const rf = { thead: ["table"], tbody: ["table"], tfoot: ["table"], @@ -7043,31 +7078,32 @@ const Xm = { td: ["table", "tbody", "tr"], th: ["table", "tbody", "tr"] }; -let vd = null; -function jm() { - return vd || (vd = document.implementation.createHTMLDocument("title")); +let Ad = null; +function of() { + return Ad || (Ad = document.implementation.createHTMLDocument("title")); } -function ZS(t) { +let Vs = null; +function rb(t) { let e = window.trustedTypes; - return e ? e.createPolicy("detachedDocument", { createHTML: (n) => n }).createHTML(t) : t; + return e ? (Vs || (Vs = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), Vs.createHTML(t)) : t; } -function XS(t) { +function ib(t) { let e = /^(\s*]*>)*/.exec(t); e && (t = t.slice(e[0].length)); - let n = jm().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), i; - if ((i = r && Xm[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "").reverse().join("")), n.innerHTML = ZS(t), i) + let n = of().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), i; + if ((i = r && rf[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "").reverse().join("")), n.innerHTML = rb(t), i) for (let o = 0; o < i.length; o++) n = n.querySelector(i[o]) || n; return n; } -function jS(t) { +function ob(t) { let e = t.querySelectorAll(rt ? "span:not([class]):not([style])" : "span.Apple-converted-space"); for (let n = 0; n < e.length; n++) { let r = e[n]; r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r); } } -function JS(t, e) { +function ab(t, e) { if (!t.size) return t; let n = t.content.firstChild.type.schema, r; @@ -7081,47 +7117,47 @@ function JS(t, e) { let l = n.nodes[r[s]]; if (!l || l.hasRequiredAttrs()) break; - i = L.from(l.create(r[s + 1], i)), o++, a++; + i = w.from(l.create(r[s + 1], i)), o++, a++; } return new H(i, o, a); } -const lt = {}, ct = {}, eb = { touchstart: !0, touchmove: !0 }; -class tb { +const lt = {}, ct = {}, sb = { touchstart: !0, touchmove: !0 }; +class lb { 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.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null; } } -function nb(t) { +function cb(t) { for (let e in lt) { let n = lt[e]; t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => { - ib(t, r) && !vc(t, r) && (t.editable || !(r.type in ct)) && n(t, r); - }, eb[e] ? { passive: !0 } : void 0); + db(t, r) && !Nc(t, r) && (t.editable || !(r.type in ct)) && n(t, r); + }, sb[e] ? { passive: !0 } : void 0); } - st && t.dom.addEventListener("input", () => null), Gl(t); + st && t.dom.addEventListener("input", () => null), Yl(t); } function Mn(t, e) { t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now(); } -function rb(t) { +function ub(t) { t.domObserver.stop(); for (let e in t.input.eventHandlers) t.dom.removeEventListener(e, t.input.eventHandlers[e]); clearTimeout(t.input.composingTimeout), clearTimeout(t.input.lastIOSEnterFallbackTimeout); } -function Gl(t) { +function Yl(t) { t.someProp("handleDOMEvents", (e) => { for (let n in e) - t.input.eventHandlers[n] || t.dom.addEventListener(n, t.input.eventHandlers[n] = (r) => vc(t, r)); + t.input.eventHandlers[n] || t.dom.addEventListener(n, t.input.eventHandlers[n] = (r) => Nc(t, r)); }); } -function vc(t, e) { +function Nc(t, e) { return t.someProp("handleDOMEvents", (n) => { let r = n[e.type]; return r ? r(t, e) || e.defaultPrevented : !1; }); } -function ib(t, e) { +function db(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -7131,25 +7167,25 @@ function ib(t, e) { return !1; return !0; } -function ob(t, e) { - !vc(t, e) && lt[e.type] && (t.editable || !(e.type in ct)) && lt[e.type](t, e); +function pb(t, e) { + !Nc(t, e) && lt[e.type] && (t.editable || !(e.type in ct)) && lt[e.type](t, e); } ct.keydown = (t, e) => { let n = e; - if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !ef(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ut && rt && n.keyCode == 13))) - if (t.domObserver.selectionChanged(t.domSelectionRange()) ? t.domObserver.flush() : n.keyCode != 229 && t.domObserver.forceFlush(), ti && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) { + if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !sf(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ut && rt && n.keyCode == 13))) + if (n.keyCode != 229 && t.domObserver.forceFlush(), ti && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) { let r = Date.now(); t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => { - t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, jn(13, "Enter"))), t.input.lastIOSEnter = 0); + t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, Jn(13, "Enter"))), t.input.lastIOSEnter = 0); }, 200); - } else t.someProp("handleKeyDown", (r) => r(t, n)) || WS(t, n) ? n.preventDefault() : Mn(t, "key"); + } else t.someProp("handleKeyDown", (r) => r(t, n)) || eb(t, n) ? n.preventDefault() : Mn(t, "key"); }; ct.keyup = (t, e) => { e.keyCode == 16 && (t.input.shiftKey = !1); }; ct.keypress = (t, e) => { let n = e; - if (ef(t, n) || !n.charCode || n.ctrlKey && !n.altKey || At && n.metaKey) + if (sf(t, n) || !n.charCode || n.ctrlKey && !n.altKey || It && n.metaKey) return; if (t.someProp("handleKeyPress", (i) => i(t, n))) { n.preventDefault(); @@ -7161,14 +7197,14 @@ ct.keypress = (t, e) => { !/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault(); } }; -function as(t) { +function ss(t) { return { left: t.clientX, top: t.clientY }; } -function ab(t, e) { +function _b(t, e) { let n = e.x - t.clientX, r = e.y - t.clientY; return n * n + r * r < 100; } -function Rc(t, e, n, r, i) { +function Ac(t, e, n, r, i) { if (r == -1) return !1; let o = t.state.doc.resolve(r); @@ -7183,13 +7219,13 @@ function Xr(t, e, n) { let r = t.state.tr.setSelection(e); r.setMeta("pointer", !0), t.dispatch(r); } -function sb(t, e) { +function mb(t, e) { if (e == -1) return !1; let n = t.state.doc.resolve(e), r = n.nodeAfter; return r && r.isAtom && ee.isSelectable(r) ? (Xr(t, new ee(n)), !0) : !1; } -function lb(t, e) { +function fb(t, e) { if (e == -1) return !1; let n = t.state.selection, r, i; @@ -7204,16 +7240,16 @@ function lb(t, e) { } return i != null ? (Xr(t, ee.create(t.state.doc, i)), !0) : !1; } -function cb(t, e, n, r, i) { - return Rc(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? lb(t, n) : sb(t, n)); +function gb(t, e, n, r, i) { + return Ac(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? fb(t, n) : mb(t, n)); } -function ub(t, e, n, r) { - return Rc(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (i) => i(t, e, r)); +function hb(t, e, n, r) { + return Ac(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (i) => i(t, e, r)); } -function db(t, e, n, r) { - return Rc(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) || pb(t, n, r); +function Eb(t, e, n, r) { + return Ac(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) || Sb(t, n, r); } -function pb(t, e, n) { +function Sb(t, e, n) { if (n.button != 0) return !1; let r = t.state.doc; @@ -7231,21 +7267,21 @@ function pb(t, e, n) { return !0; } } -function Oc(t) { - return ma(t); +function Ic(t) { + return fa(t); } -const Jm = At ? "metaKey" : "ctrlKey"; +const af = It ? "metaKey" : "ctrlKey"; lt.mousedown = (t, e) => { let n = e; t.input.shiftKey = n.shiftKey; - let r = Oc(t), i = Date.now(), o = "singleClick"; - i - t.input.lastClick.time < 500 && ab(n, t.input.lastClick) && !n[Jm] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o }; - let a = t.posAtCoords(as(n)); - a && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new _b(t, a, n, !!r)) : (o == "doubleClick" ? ub : db)(t, a.pos, a.inside, n) ? n.preventDefault() : Mn(t, "pointer")); + let r = Ic(t), i = Date.now(), o = "singleClick"; + i - t.input.lastClick.time < 500 && _b(n, t.input.lastClick) && !n[af] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o }; + let a = t.posAtCoords(ss(n)); + a && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new bb(t, a, n, !!r)) : (o == "doubleClick" ? hb : Eb)(t, a.pos, a.inside, n) ? n.preventDefault() : Mn(t, "pointer")); }; -class _b { +class bb { constructor(e, n, r, i) { - this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Jm], this.allowDefault = r.shiftKey; + this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[af], this.allowDefault = r.shiftKey; let o, a; if (n.inside > -1) o = e.state.doc.nodeAt(n.inside), a = n.inside; @@ -7272,7 +7308,7 @@ class _b { if (this.done(), !this.view.dom.contains(e.target)) return; let n = this.pos; - this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(as(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Mn(this.view, "pointer") : cb(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements + this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(ss(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Mn(this.view, "pointer") : gb(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements st && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a // cursor, but still report that the node is selected // when asked through getSelection. You'll then get a @@ -7290,23 +7326,23 @@ class _b { } } lt.touchstart = (t) => { - t.input.lastTouch = Date.now(), Oc(t), Mn(t, "pointer"); + t.input.lastTouch = Date.now(), Ic(t), Mn(t, "pointer"); }; lt.touchmove = (t) => { t.input.lastTouch = Date.now(), Mn(t, "pointer"); }; -lt.contextmenu = (t) => Oc(t); -function ef(t, e) { +lt.contextmenu = (t) => Ic(t); +function sf(t, e) { return t.composing ? !0 : st && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1; } -const mb = Ut ? 5e3 : -1; +const Tb = Ut ? 5e3 : -1; ct.compositionstart = ct.compositionupdate = (t) => { if (!t.composing) { t.domObserver.flush(); let { state: e } = t, n = e.selection.$to; if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1))) - t.markCursor = t.state.storedMarks || n.marks(), ma(t, !0), t.markCursor = null; - else if (ma(t, !e.selection.empty), Gt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) { + t.markCursor = t.state.storedMarks || n.marks(), fa(t, !0), t.markCursor = null; + else if (fa(t, !e.selection.empty), Gt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) { let r = t.domSelectionRange(); for (let i = r.focusNode, o = r.focusOffset; i && i.nodeType == 1 && o != 0; ) { let a = o < 0 ? i.lastChild : i.childNodes[o - 1]; @@ -7322,23 +7358,23 @@ ct.compositionstart = ct.compositionupdate = (t) => { } t.input.composing = !0; } - tf(t, mb); + lf(t, Tb); }; ct.compositionend = (t, e) => { - t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, tf(t, 20)); + t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, lf(t, 20)); }; -function tf(t, e) { - clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => ma(t), e)); +function lf(t, e) { + clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => fa(t), e)); } -function nf(t) { - for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = gb()); t.input.compositionNodes.length > 0; ) +function cf(t) { + for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = yb()); t.input.compositionNodes.length > 0; ) t.input.compositionNodes.pop().markParentsDirty(); } -function fb(t) { +function Cb(t) { let e = t.domSelectionRange(); if (!e.focusNode) return null; - let n = sS(e.focusNode, e.focusOffset), r = lS(e.focusNode, e.focusOffset); + let n = mS(e.focusNode, e.focusOffset), r = fS(e.focusNode, e.focusOffset); if (n && r && n != r) { let i = r.pmViewDesc, o = t.domObserver.lastChangedTextNode; if (n == o || r == o) @@ -7353,20 +7389,20 @@ function fb(t) { } return n || r; } -function gb() { +function yb() { let t = document.createEvent("Event"); return t.initEvent("event", !0, !0), t.timeStamp; } -function ma(t, e = !1) { +function fa(t, e = !1) { if (!(Ut && t.domObserver.flushingSoon >= 0)) { - if (t.domObserver.forceFlush(), nf(t), e || t.docView && t.docView.dirty) { - let n = Cc(t); + if (t.domObserver.forceFlush(), cf(t), e || t.docView && t.docView.dirty) { + let n = Rc(t); return n && !n.eq(t.state.selection) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !t.state.selection.empty ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0; } return !1; } } -function hb(t, e) { +function vb(t, e) { if (!t.dom.parentNode) return; let n = t.dom.parentNode.appendChild(document.createElement("div")); @@ -7376,37 +7412,37 @@ function hb(t, e) { n.parentNode && n.parentNode.removeChild(n), t.focus(); }, 50); } -const zi = pt && Fn < 15 || ti && _S < 604; +const $i = pt && Bn < 15 || ti && bS < 604; lt.copy = ct.cut = (t, e) => { let n = e, r = t.state.selection, i = n.type == "cut"; if (r.empty) return; - let o = zi ? null : n.clipboardData, a = r.content(), { dom: s, text: l } = qm(t, a); - o ? (n.preventDefault(), o.clearData(), o.setData("text/html", s.innerHTML), o.setData("text/plain", l)) : hb(t, s), i && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut")); + let o = $i ? null : n.clipboardData, a = r.content(), { dom: s, text: l } = jm(t, a); + o ? (n.preventDefault(), o.clearData(), o.setData("text/html", s.innerHTML), o.setData("text/plain", l)) : vb(t, s), i && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut")); }; -function Eb(t) { +function Rb(t) { return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null; } -function Sb(t, e) { +function Ob(t, e) { if (!t.dom.parentNode) return; let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div")); n || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus(); let i = t.input.shiftKey && t.input.lastKeyCode != 45; setTimeout(() => { - t.focus(), r.parentNode && r.parentNode.removeChild(r), n ? $i(t, r.value, null, i, e) : $i(t, r.textContent, r.innerHTML, i, e); + t.focus(), r.parentNode && r.parentNode.removeChild(r), n ? qi(t, r.value, null, i, e) : qi(t, r.textContent, r.innerHTML, i, e); }, 50); } -function $i(t, e, n, r, i) { - let o = Wm(t, e, n, r, t.state.selection.$from); +function qi(t, e, n, r, i) { + let o = Jm(t, e, n, r, t.state.selection.$from); if (t.someProp("handlePaste", (l) => l(t, i, o || H.empty))) return !0; if (!o) return !1; - let a = Eb(o), s = a ? t.state.tr.replaceSelectionWith(a, r) : t.state.tr.replaceSelection(o); + let a = Rb(o), s = a ? t.state.tr.replaceSelectionWith(a, r) : t.state.tr.replaceSelection(o); return t.dispatch(s.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0; } -function rf(t) { +function uf(t) { let e = t.getData("text/plain") || t.getData("Text"); if (e) return e; @@ -7417,20 +7453,20 @@ ct.paste = (t, e) => { let n = e; if (t.composing && !Ut) return; - let r = zi ? null : n.clipboardData, i = t.input.shiftKey && t.input.lastKeyCode != 45; - r && $i(t, rf(r), r.getData("text/html"), i, n) ? n.preventDefault() : Sb(t, n); + let r = $i ? null : n.clipboardData, i = t.input.shiftKey && t.input.lastKeyCode != 45; + r && qi(t, uf(r), r.getData("text/html"), i, n) ? n.preventDefault() : Ob(t, n); }; -class of { +class df { constructor(e, n, r) { this.slice = e, this.move = n, this.node = r; } } -const af = At ? "altKey" : "ctrlKey"; +const pf = It ? "altKey" : "ctrlKey"; lt.dragstart = (t, e) => { let n = e, r = t.input.mouseDown; if (r && r.done(), !n.dataTransfer) return; - let i = t.state.selection, o = i.empty ? null : t.posAtCoords(as(n)), a; + let i = t.state.selection, o = i.empty ? null : t.posAtCoords(ss(n)), a; if (!(o && o.pos >= i.from && o.pos <= (i instanceof ee ? i.to - 1 : i.to))) { if (r && r.mightDrag) a = ee.create(t.state.doc, r.mightDrag.pos); @@ -7439,8 +7475,8 @@ lt.dragstart = (t, e) => { d && d.node.type.spec.draggable && d != t.docView && (a = ee.create(t.state.doc, d.posBefore)); } } - let s = (a || t.state.selection).content(), { dom: l, text: c, slice: u } = qm(t, s); - (!n.dataTransfer.files.length || !rt || xm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(zi ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", zi || n.dataTransfer.setData("text/plain", c), t.dragging = new of(u, !n[af], a); + let s = (a || t.state.selection).content(), { dom: l, text: c, slice: u } = jm(t, s); + (!n.dataTransfer.files.length || !rt || Pm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData($i ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", $i || n.dataTransfer.setData("text/plain", c), t.dragging = new df(u, !n[pf], a); }; lt.dragend = (t) => { let e = t.dragging; @@ -7453,14 +7489,14 @@ ct.drop = (t, e) => { let n = e, r = t.dragging; if (t.dragging = null, !n.dataTransfer) return; - let i = t.posAtCoords(as(n)); + let i = t.posAtCoords(ss(n)); if (!i) return; let o = t.state.doc.resolve(i.pos), a = r && r.slice; a ? t.someProp("transformPasted", (m) => { a = m(a, t); - }) : a = Wm(t, rf(n.dataTransfer), zi ? null : n.dataTransfer.getData("text/html"), !1, o); - let s = !!(r && !n[af]); + }) : a = Jm(t, uf(n.dataTransfer), $i ? null : n.dataTransfer.getData("text/html"), !1, o); + let s = !!(r && !n[pf]); if (t.someProp("handleDrop", (m) => m(t, n, a || H.empty, s))) { n.preventDefault(); return; @@ -7468,7 +7504,7 @@ ct.drop = (t, e) => { if (!a) return; n.preventDefault(); - let l = a ? Tm(t.state.doc, o.pos, a) : o.pos; + let l = a ? Nm(t.state.doc, o.pos, a) : o.pos; l == null && (l = o.pos); let c = t.state.tr; if (s) { @@ -7483,7 +7519,7 @@ ct.drop = (t, e) => { c.setSelection(new ee(_)); else { let m = c.mapping.map(l); - c.mapping.maps[c.mapping.maps.length - 1].forEach((f, g, E, S) => m = S), c.setSelection(yc(t, _, c.doc.resolve(m))); + c.mapping.maps[c.mapping.maps.length - 1].forEach((f, g, S, E) => m = E), c.setSelection(Oc(t, _, c.doc.resolve(m))); } t.focus(), t.dispatch(c.setMeta("uiEvent", "drop")); }; @@ -7501,7 +7537,7 @@ lt.beforeinput = (t, e) => { t.domObserver.flushSoon(); let { domChangeCount: r } = t.input; setTimeout(() => { - if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, jn(8, "Backspace"))))) + if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, Jn(8, "Backspace"))))) return; let { $cursor: i } = t.state.selection; i && i.pos > 0 && t.dispatch(t.state.tr.delete(i.pos - 1, i.pos).scrollIntoView()); @@ -7510,7 +7546,7 @@ lt.beforeinput = (t, e) => { }; for (let t in ct) lt[t] = ct[t]; -function qi(t, e) { +function Wi(t, e) { if (t == e) return !0; for (let n in t) @@ -7521,45 +7557,45 @@ function qi(t, e) { return !1; return !0; } -class fa { +class ga { constructor(e, n) { this.toDOM = e, this.spec = n || lr, this.side = this.spec.side || 0; } map(e, n, r, i) { let { pos: o, deleted: a } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1); - return a ? null : new Fe(o - r, o - r, this); + return a ? null : new ke(o - r, o - r, this); } valid() { return !0; } eq(e) { - return this == e || e instanceof fa && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && qi(this.spec, e.spec)); + return this == e || e instanceof ga && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Wi(this.spec, e.spec)); } destroy(e) { this.spec.destroy && this.spec.destroy(e); } } -class Un { +class Hn { constructor(e, n) { this.attrs = e, this.spec = n || lr; } map(e, n, r, i) { let o = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - r, a = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - r; - return o >= a ? null : new Fe(o, a, this); + return o >= a ? null : new ke(o, a, this); } valid(e, n) { return n.from < n.to; } eq(e) { - return this == e || e instanceof Un && qi(this.attrs, e.attrs) && qi(this.spec, e.spec); + return this == e || e instanceof Hn && Wi(this.attrs, e.attrs) && Wi(this.spec, e.spec); } static is(e) { - return e.type instanceof Un; + return e.type instanceof Hn; } destroy() { } } -class Nc { +class xc { constructor(e, n) { this.attrs = e, this.spec = n || lr; } @@ -7568,19 +7604,19 @@ class Nc { if (o.deleted) return null; let a = e.mapResult(n.to + i, -1); - return a.deleted || a.pos <= o.pos ? null : new Fe(o.pos - r, a.pos - r, this); + return a.deleted || a.pos <= o.pos ? null : new ke(o.pos - r, a.pos - r, this); } valid(e, n) { let { index: r, offset: i } = e.content.findIndex(n.from), o; return i == n.from && !(o = e.child(r)).isText && i + o.nodeSize == n.to; } eq(e) { - return this == e || e instanceof Nc && qi(this.attrs, e.attrs) && qi(this.spec, e.spec); + return this == e || e instanceof xc && Wi(this.attrs, e.attrs) && Wi(this.spec, e.spec); } destroy() { } } -class Fe { +class ke { /** @internal */ @@ -7591,7 +7627,7 @@ class Fe { @internal */ copy(e, n) { - return new Fe(e, n, this.type); + return new ke(e, n, this.type); } /** @internal @@ -7614,14 +7650,14 @@ class Fe { widget's current document position. */ static widget(e, n, r) { - return new Fe(e, e, new fa(n, r)); + return new ke(e, e, new ga(n, r)); } /** Creates an inline decoration, which adds the given attributes to each inline node between `from` and `to`. */ static inline(e, n, r, i) { - return new Fe(e, n, new Un(r, i)); + return new ke(e, n, new Hn(r, i)); } /** Creates a node decoration. `from` and `to` should point precisely @@ -7629,7 +7665,7 @@ class Fe { node, will receive the given attributes. */ static node(e, n, r, i) { - return new Fe(e, n, new Nc(r, i)); + return new ke(e, n, new xc(r, i)); } /** The spec provided when creating this decoration. Can be useful @@ -7642,17 +7678,17 @@ class Fe { @internal */ get inline() { - return this.type instanceof Un; + return this.type instanceof Hn; } /** @internal */ get widget() { - return this.type instanceof fa; + return this.type instanceof ga; } } const Fr = [], lr = {}; -class Se { +class be { /** @internal */ @@ -7665,7 +7701,7 @@ class Se { you must make a copy if you want need to preserve that. */ static create(e, n) { - return n.length ? ga(n, e, 0, lr) : nt; + return n.length ? ha(n, e, 0, lr) : nt; } /** Find all decorations in this set which touch the given range @@ -7706,7 +7742,7 @@ class Se { let l = this.local[s].map(e, r, i); l && l.type.valid(n, l) ? (a || (a = [])).push(l) : o.onRemove && o.onRemove(this.local[s].spec); } - return this.children.length ? bb(this.children, a || [], e, n, r, i, o) : a ? new Se(a.sort(cr), Fr) : nt; + return this.children.length ? Nb(this.children, a || [], e, n, r, i, o) : a ? new be(a.sort(cr), Fr) : nt; } /** Add the given array of decorations to the ones in the set, @@ -7715,22 +7751,22 @@ class Se { structure. */ add(e, n) { - return n.length ? this == nt ? Se.create(e, n) : this.addInner(e, n, 0) : this; + return n.length ? this == nt ? be.create(e, n) : this.addInner(e, n, 0) : this; } addInner(e, n, r) { let i, o = 0; e.forEach((s, l) => { let c = l + r, u; - if (u = lf(n, s, c)) { + if (u = mf(n, s, c)) { for (i || (i = this.children.slice()); o < i.length && i[o] < l; ) o += 3; - i[o] == l ? i[o + 2] = i[o + 2].addInner(s, u, c + 1) : i.splice(o, 0, l, l + s.nodeSize, ga(u, s, c + 1, lr)), o += 3; + i[o] == l ? i[o + 2] = i[o + 2].addInner(s, u, c + 1) : i.splice(o, 0, l, l + s.nodeSize, ha(u, s, c + 1, lr)), o += 3; } }); - let a = sf(o ? cf(n) : n, -r); + let a = _f(o ? ff(n) : n, -r); for (let s = 0; s < a.length; s++) a[s].type.valid(e, a[s]) || a.splice(s--, 1); - return new Se(a.length ? this.local.concat(a).sort(cr) : this.local, i || this.children); + return new be(a.length ? this.local.concat(a).sort(cr) : this.local, i || this.children); } /** Create a new set that contains the decorations in this set, minus @@ -7757,13 +7793,13 @@ class Se { for (let s = 0; s < i.length; s++) i[s].eq(a, n) && (i == this.local && (i = this.local.slice()), i.splice(s--, 1)); } - return r == this.children && i == this.local ? this : i.length || r.length ? new Se(i, r) : nt; + return r == this.children && i == this.local ? this : i.length || r.length ? new be(i, r) : nt; } forChild(e, n) { if (this == nt) return this; if (n.isLeaf) - return Se.empty; + return be.empty; let r, i; for (let s = 0; s < this.children.length; s += 3) if (this.children[s] >= e) { @@ -7773,13 +7809,13 @@ class Se { let o = e + 1, a = o + n.content.size; for (let s = 0; s < this.local.length; s++) { let l = this.local[s]; - if (l.from < a && l.to > o && l.type instanceof Un) { + if (l.from < a && l.to > o && l.type instanceof Hn) { let c = Math.max(o, l.from) - o, u = Math.min(a, l.to) - o; c < u && (i || (i = [])).push(l.copy(c, u)); } } if (i) { - let s = new Se(i.sort(cr), Fr); + let s = new be(i.sort(cr), Fr); return r ? new On([s, r]) : s; } return r || nt; @@ -7790,7 +7826,7 @@ class Se { eq(e) { if (this == e) return !0; - if (!(e instanceof Se) || this.local.length != e.local.length || this.children.length != e.children.length) + if (!(e instanceof be) || this.local.length != e.local.length || this.children.length != e.children.length) return !1; for (let n = 0; n < this.local.length; n++) if (!this.local[n].eq(e.local[n])) @@ -7804,7 +7840,7 @@ class Se { @internal */ locals(e) { - return Ac(this.localsInner(e)); + return Dc(this.localsInner(e)); } /** @internal @@ -7812,20 +7848,20 @@ class Se { localsInner(e) { if (this == nt) return Fr; - if (e.inlineContent || !this.local.some(Un.is)) + if (e.inlineContent || !this.local.some(Hn.is)) return this.local; let n = []; for (let r = 0; r < this.local.length; r++) - this.local[r].type instanceof Un || n.push(this.local[r]); + this.local[r].type instanceof Hn || n.push(this.local[r]); return n; } forEachSet(e) { e(this); } } -Se.empty = new Se([], []); -Se.removeOverlap = Ac; -const nt = Se.empty; +be.empty = new be([], []); +be.removeOverlap = Dc; +const nt = be.empty; class On { constructor(e) { this.members = e; @@ -7836,7 +7872,7 @@ class On { } forChild(e, n) { if (n.isLeaf) - return Se.empty; + return be.empty; let r = []; for (let i = 0; i < this.members.length; i++) { let o = this.members[i].forChild(e, n); @@ -7865,7 +7901,7 @@ class On { n.push(o[a]); } } - return n ? Ac(r ? n : n.sort(cr)) : Fr; + return n ? Dc(r ? n : n.sort(cr)) : Fr; } // Create a group for the given array of decoration sets, or return // a single set when possible. @@ -7876,7 +7912,7 @@ class On { case 1: return e[0]; default: - return new On(e.every((n) => n instanceof Se) ? e : e.reduce((n, r) => n.concat(r instanceof Se ? r : r.members), [])); + return new On(e.every((n) => n instanceof be) ? e : e.reduce((n, r) => n.concat(r instanceof be ? r : r.members), [])); } } forEachSet(e) { @@ -7884,18 +7920,18 @@ class On { this.members[n].forEachSet(e); } } -function bb(t, e, n, r, i, o, a) { +function Nb(t, e, n, r, i, o, a) { let s = t.slice(); for (let c = 0, u = o; c < n.maps.length; c++) { let d = 0; n.maps[c].forEach((p, _, m, f) => { let g = f - m - (_ - p); - for (let E = 0; E < s.length; E += 3) { - let S = s[E + 1]; - if (S < 0 || p > S + u - d) + for (let S = 0; S < s.length; S += 3) { + let E = s[S + 1]; + if (E < 0 || p > E + u - d) continue; - let b = s[E] + u - d; - _ >= b ? s[E + 1] = p <= b ? -2 : -1 : p >= u && g && (s[E] += g, s[E + 1] += g); + let b = s[S] + u - d; + _ >= b ? s[S + 1] = p <= b ? -2 : -1 : p >= u && g && (s[S] += g, s[S + 1] += g); } d += g; }), u = n.maps[c].map(u, -1); @@ -7914,13 +7950,13 @@ function bb(t, e, n, r, i, o, a) { } let p = n.map(t[c + 1] + o, -1), _ = p - i, { index: m, offset: f } = r.content.findIndex(d), g = r.maybeChild(m); if (g && f == d && f + g.nodeSize == _) { - let E = s[c + 2].mapInner(n, g, u + 1, t[c] + o + 1, a); - E != nt ? (s[c] = d, s[c + 1] = _, s[c + 2] = E) : (s[c + 1] = -2, l = !0); + let S = s[c + 2].mapInner(n, g, u + 1, t[c] + o + 1, a); + S != nt ? (s[c] = d, s[c + 1] = _, s[c + 2] = S) : (s[c + 1] = -2, l = !0); } else l = !0; } if (l) { - let c = Tb(s, t, e, n, i, o, a), u = ga(c, r, 0, a); + let c = Ab(s, t, e, n, i, o, a), u = ha(c, r, 0, a); e = u.local; for (let d = 0; d < s.length; d += 3) s[d + 1] < 0 && (s.splice(d, 3), d -= 3); @@ -7931,19 +7967,19 @@ function bb(t, e, n, r, i, o, a) { s.splice(p, 0, u.children[d], u.children[d + 1], u.children[d + 2]); } } - return new Se(e.sort(cr), s); + return new be(e.sort(cr), s); } -function sf(t, e) { +function _f(t, e) { if (!e || !t.length) return t; let n = []; for (let r = 0; r < t.length; r++) { let i = t[r]; - n.push(new Fe(i.from + e, i.to + e, i.type)); + n.push(new ke(i.from + e, i.to + e, i.type)); } return n; } -function Tb(t, e, n, r, i, o, a) { +function Ab(t, e, n, r, i, o, a) { function s(l, c) { for (let u = 0; u < l.local.length; u++) { let d = l.local[u].map(r, i, c); @@ -7956,7 +7992,7 @@ function Tb(t, e, n, r, i, o, a) { t[l + 1] == -1 && s(t[l + 2], e[l] + o + 1); return n; } -function lf(t, e, n) { +function mf(t, e, n) { if (e.isLeaf) return null; let r = n + e.nodeSize, i = null; @@ -7964,31 +8000,31 @@ function lf(t, e, n) { (a = t[o]) && a.from > n && a.to < r && ((i || (i = [])).push(a), t[o] = null); return i; } -function cf(t) { +function ff(t) { let e = []; for (let n = 0; n < t.length; n++) t[n] != null && e.push(t[n]); return e; } -function ga(t, e, n, r) { +function ha(t, e, n, r) { let i = [], o = !1; e.forEach((s, l) => { - let c = lf(t, s, l + n); + let c = mf(t, s, l + n); if (c) { o = !0; - let u = ga(c, s, n + l + 1, r); + let u = ha(c, s, n + l + 1, r); u != nt && i.push(l, l + s.nodeSize, u); } }); - let a = sf(o ? cf(t) : t, -n).sort(cr); + let a = _f(o ? ff(t) : t, -n).sort(cr); for (let s = 0; s < a.length; s++) a[s].type.valid(e, a[s]) || (r.onRemove && r.onRemove(a[s].spec), a.splice(s--, 1)); - return a.length || i.length ? new Se(a, i) : nt; + return a.length || i.length ? new be(a, i) : nt; } function cr(t, e) { return t.from - e.from || t.to - e.to; } -function Ac(t) { +function Dc(t) { let e = t; for (let n = 0; n < e.length - 1; n++) { let r = e[n]; @@ -7996,37 +8032,37 @@ function Ac(t) { for (let i = n + 1; i < e.length; i++) { let o = e[i]; if (o.from == r.from) { - o.to != r.to && (e == t && (e = t.slice()), e[i] = o.copy(o.from, r.to), Rd(e, i + 1, o.copy(r.to, o.to))); + o.to != r.to && (e == t && (e = t.slice()), e[i] = o.copy(o.from, r.to), Id(e, i + 1, o.copy(r.to, o.to))); continue; } else { - o.from < r.to && (e == t && (e = t.slice()), e[n] = r.copy(r.from, o.from), Rd(e, i, r.copy(o.from, r.to))); + o.from < r.to && (e == t && (e = t.slice()), e[n] = r.copy(r.from, o.from), Id(e, i, r.copy(o.from, r.to))); break; } } } return e; } -function Rd(t, e, n) { +function Id(t, e, n) { for (; e < t.length && cr(n, t[e]) > 0; ) e++; t.splice(e, 0, n); } -function Gs(t) { +function Ys(t) { let e = []; return t.someProp("decorations", (n) => { let r = n(t.state); r && r != nt && e.push(r); - }), t.cursorWrapper && e.push(Se.create(t.state.doc, [t.cursorWrapper.deco])), On.from(e); + }), t.cursorWrapper && e.push(be.create(t.state.doc, [t.cursorWrapper.deco])), On.from(e); } -const Cb = { +const Ib = { childList: !0, characterData: !0, characterDataOldValue: !0, attributes: !0, attributeOldValue: !0, subtree: !0 -}, yb = pt && Fn <= 11; -class vb { +}, xb = pt && Bn <= 11; +class Db { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -8040,13 +8076,13 @@ class vb { return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset; } } -class Rb { +class Mb { constructor(e, n) { - this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new vb(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => { + this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Db(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => { for (let i = 0; i < r.length; i++) this.queue.push(r[i]); - pt && Fn <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush(); - }), yb && (this.onCharData = (r) => { + pt && Bn <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush(); + }), xb && (this.onCharData = (r) => { this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon(); }), this.onSelectionChange = this.onSelectionChange.bind(this); } @@ -8059,7 +8095,7 @@ class Rb { this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush()); } start() { - this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, Cb)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection(); + this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, Ib)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection(); } stop() { if (this.observer) { @@ -8083,10 +8119,10 @@ class Rb { this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50); } onSelectionChange() { - if (hd(this.view)) { + if (Td(this.view)) { if (this.suppressingSelectionUpdates) return gn(this.view); - if (pt && Fn <= 11 && !this.view.state.selection.empty) { + if (pt && Bn <= 11 && !this.view.state.selection.empty) { let e = this.view.domSelectionRange(); if (e.focusNode && fr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset)) return this.flushSoon(); @@ -8101,9 +8137,9 @@ class Rb { if (!e.focusNode) return !0; let n = /* @__PURE__ */ new Set(), r; - for (let o = e.focusNode; o; o = Yi(o)) + for (let o = e.focusNode; o; o = zi(o)) n.add(o); - for (let o = e.anchorNode; o; o = Yi(o)) + for (let o = e.anchorNode; o; o = zi(o)) if (n.has(o)) { r = o; break; @@ -8121,16 +8157,13 @@ class Rb { this.queue.push(e); return this.queue; } - selectionChanged(e) { - return !this.suppressingSelectionUpdates && !this.currentSelection.eq(e) && hd(this.view) && !this.ignoreSelectionChange(e); - } flush() { let { view: e } = this; if (!e.docView || this.flushingSoon > -1) return; let n = this.pendingRecords(); n.length && (this.queue = []); - let r = e.domSelectionRange(), i = this.selectionChanged(r), o = -1, a = -1, s = !1, l = []; + let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && Td(e) && !this.ignoreSelectionChange(r), o = -1, a = -1, s = !1, l = []; if (e.editable) for (let u = 0; u < n.length; u++) { let d = this.registerMutation(n[u], l); @@ -8145,12 +8178,12 @@ class Rb { let { focusNode: d } = this.currentSelection; for (let p of u) { let _ = p.parentNode; - _ && _.nodeName == "LI" && (!d || Ab(e, d) != _) && p.remove(); + _ && _.nodeName == "LI" && (!d || kb(e, d) != _) && p.remove(); } } } let c = null; - o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && rs(r) && (c = Cc(e)) && c.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, a), Ob(e)), this.handleDOMChange(o, a, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gn(e), this.currentSelection.set(r)); + o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && is(r) && (c = Rc(e)) && c.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, a), wb(e)), this.handleDOMChange(o, a, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gn(e), this.currentSelection.set(r)); } registerMutation(e, n) { if (n.indexOf(e.target) > -1) @@ -8167,7 +8200,7 @@ class Rb { if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(e.target)) return { from: r.posBefore, to: r.posAfter }; let i = e.previousSibling, o = e.nextSibling; - if (pt && Fn <= 11 && e.addedNodes.length) + if (pt && Bn <= 11 && e.addedNodes.length) for (let u = 0; u < e.addedNodes.length; u++) { let { previousSibling: d, nextSibling: p } = e.addedNodes[u]; (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (i = d), (!p || Array.prototype.indexOf.call(e.addedNodes, p) < 0) && (o = p); @@ -8185,31 +8218,31 @@ class Rb { }); } } -let Od = /* @__PURE__ */ new WeakMap(), Nd = !1; -function Ob(t) { - if (!Od.has(t) && (Od.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) { - if (t.requiresGeckoHackNode = Gt, Nd) +let xd = /* @__PURE__ */ new WeakMap(), Dd = !1; +function wb(t) { + if (!xd.has(t) && (xd.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) { + if (t.requiresGeckoHackNode = Gt, Dd) 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."), Nd = !0; + 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."), Dd = !0; } } -function Ad(t, e) { +function Md(t, e) { let n = e.startContainer, r = e.startOffset, i = e.endContainer, o = e.endOffset, a = t.domAtPos(t.state.selection.anchor); return fr(a.node, a.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o }; } -function Nb(t, e) { +function Lb(t, e) { if (e.getComposedRanges) { let i = e.getComposedRanges(t.root)[0]; if (i) - return Ad(t, i); + return Md(t, i); } let n; function r(i) { i.preventDefault(), i.stopImmediatePropagation(), n = i.getTargetRanges()[0]; } - return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ? Ad(t, n) : null; + return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ? Md(t, n) : null; } -function Ab(t, e) { +function kb(t, e) { for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) { let r = t.docView.nearestDesc(n, !0); if (r && r.node.isBlock) @@ -8217,16 +8250,16 @@ function Ab(t, e) { } return null; } -function Ib(t, e, n) { +function Pb(t, e, n) { let { node: r, fromOffset: i, toOffset: o, from: a, to: s } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode; - if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], rs(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), rt && t.input.lastKeyCode === 8) + if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], is(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), rt && t.input.lastKeyCode === 8) for (let g = o; g > i; g--) { - let E = r.childNodes[g - 1], S = E.pmViewDesc; - if (E.nodeName == "BR" && !S) { + let S = r.childNodes[g - 1], E = S.pmViewDesc; + if (S.nodeName == "BR" && !E) { o = g; break; } - if (!S || S.size) + if (!E || E.size) break; } let d = t.state.doc, p = t.someProp("domParser") || Wr.fromSchema(t.state.schema), _ = d.resolve(a), m = null, f = p.parse(r, { @@ -8237,16 +8270,16 @@ function Ib(t, e, n) { to: o, preserveWhitespace: _.parent.type.whitespace == "pre" ? "full" : !0, findPositions: c, - ruleFromNode: xb, + ruleFromNode: Fb, context: _ }); if (c && c[0].pos != null) { - let g = c[0].pos, E = c[1] && c[1].pos; - E == null && (E = g), m = { anchor: g + a, head: E + a }; + let g = c[0].pos, S = c[1] && c[1].pos; + S == null && (S = g), m = { anchor: g + a, head: S + a }; } return { doc: f, sel: m, from: a, to: s }; } -function xb(t) { +function Fb(t) { let e = t.pmViewDesc; if (e) return e.parseRule(); @@ -8260,13 +8293,13 @@ function xb(t) { return { ignore: !0 }; return null; } -const Db = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i; -function Mb(t, e, n, r, i) { +const Bb = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i; +function Ub(t, e, n, r, i) { let o = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0); if (t.input.compositionPendingChanges = 0, e < 0) { - let O = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, M = Cc(t, O); + let O = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, M = Rc(t, O); if (M && !t.state.selection.eq(M)) { - if (rt && Ut && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Y) => Y(t, jn(13, "Enter")))) + if (rt && Ut && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Y) => Y(t, Jn(13, "Enter")))) return; let B = t.state.tr.setSelection(M); O == "pointer" ? B.setMeta("pointer", !0) : O == "key" && B.scrollIntoView(), o && B.setMeta("composition", o), t.dispatch(B); @@ -8275,10 +8308,10 @@ function Mb(t, e, n, r, i) { } let a = t.state.doc.resolve(e), s = a.sharedDepth(n); e = a.before(s + 1), n = t.state.doc.resolve(n).after(s + 1); - let l = t.state.selection, c = Ib(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), p, _; + let l = t.state.selection, c = Pb(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), p, _; t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (p = t.state.selection.to, _ = "end") : (p = t.state.selection.from, _ = "start"), t.input.lastKeyCode = null; - let m = kb(d.content, c.doc.content, c.from, p, _); - if (m && t.input.domChangeCount++, (ti && t.input.lastIOSEnter > Date.now() - 225 || Ut) && i.some((O) => O.nodeType == 1 && !Db.test(O.nodeName)) && (!m || m.endA >= m.endB) && t.someProp("handleKeyDown", (O) => O(t, jn(13, "Enter")))) { + let m = Vb(d.content, c.doc.content, c.from, p, _); + if (m && t.input.domChangeCount++, (ti && t.input.lastIOSEnter > Date.now() - 225 || Ut) && i.some((O) => O.nodeType == 1 && !Bb.test(O.nodeName)) && (!m || m.endA >= m.endB) && t.someProp("handleKeyDown", (O) => O(t, Jn(13, "Enter")))) { t.input.lastIOSEnter = 0; return; } @@ -8287,7 +8320,7 @@ function Mb(t, e, n, r, i) { m = { start: l.from, endA: l.to, endB: l.to }; else { if (c.sel) { - let O = Id(t, t.state.doc, c.sel); + let O = wd(t, t.state.doc, c.sel); if (O && !O.eq(t.state.selection)) { let M = t.state.tr.setSelection(O); o && M.setMeta("composition", o), t.dispatch(M); @@ -8295,28 +8328,28 @@ function Mb(t, e, n, r, i) { } return; } - t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Z && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), pt && Fn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == "  " && (m.start--, m.endA--, m.endB--); - let f = c.doc.resolveNoCache(m.start - c.from), g = c.doc.resolveNoCache(m.endB - c.from), E = u.resolve(m.start), S = f.sameParent(g) && f.parent.inlineContent && E.end() >= m.endA, b; - if ((ti && t.input.lastIOSEnter > Date.now() - 225 && (!S || i.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !S && f.pos < c.doc.content.size && !f.sameParent(g) && (b = te.findFrom(c.doc.resolve(f.pos + 1), 1, !0)) && b.head == g.pos) && t.someProp("handleKeyDown", (O) => O(t, jn(13, "Enter")))) { + t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Z && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), pt && Bn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == "  " && (m.start--, m.endA--, m.endB--); + let f = c.doc.resolveNoCache(m.start - c.from), g = c.doc.resolveNoCache(m.endB - c.from), S = u.resolve(m.start), E = f.sameParent(g) && f.parent.inlineContent && S.end() >= m.endA, b; + if ((ti && t.input.lastIOSEnter > Date.now() - 225 && (!E || i.some((O) => O.nodeName == "DIV" || O.nodeName == "P")) || !E && f.pos < c.doc.content.size && !f.sameParent(g) && (b = te.findFrom(c.doc.resolve(f.pos + 1), 1, !0)) && b.head == g.pos) && t.someProp("handleKeyDown", (O) => O(t, Jn(13, "Enter")))) { t.input.lastIOSEnter = 0; return; } - if (t.state.selection.anchor > m.start && Lb(u, m.start, m.endA, f, g) && t.someProp("handleKeyDown", (O) => O(t, jn(8, "Backspace")))) { + if (t.state.selection.anchor > m.start && Gb(u, m.start, m.endA, f, g) && t.someProp("handleKeyDown", (O) => O(t, Jn(8, "Backspace")))) { Ut && rt && t.domObserver.suppressSelectionUpdates(); return; } - rt && Ut && m.endB == m.start && (t.input.lastAndroidDelete = Date.now()), Ut && !S && f.start() != g.start() && g.parentOffset == 0 && f.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, g = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => { + rt && Ut && m.endB == m.start && (t.input.lastAndroidDelete = Date.now()), Ut && !E && f.start() != g.start() && g.parentOffset == 0 && f.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, g = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => { t.someProp("handleKeyDown", function(O) { - return O(t, jn(13, "Enter")); + return O(t, Jn(13, "Enter")); }); }, 20)); let h = m.start, C = m.endA, T, R, x; - if (S) { + if (E) { if (f.pos == g.pos) - pt && Fn <= 11 && f.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => gn(t), 20)), T = t.state.tr.delete(h, C), R = u.resolve(m.start).marksAcross(u.resolve(m.endA)); + pt && Bn <= 11 && f.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => gn(t), 20)), T = t.state.tr.delete(h, C), R = u.resolve(m.start).marksAcross(u.resolve(m.endA)); else if ( // Adding or removing a mark - m.endA == m.endB && (x = wb(f.parent.content.cut(f.parentOffset, g.parentOffset), E.parent.content.cut(E.parentOffset, m.endA - E.start()))) + m.endA == m.endB && (x = Hb(f.parent.content.cut(f.parentOffset, g.parentOffset), S.parent.content.cut(S.parentOffset, m.endA - S.start()))) ) T = t.state.tr, x.type == "add" ? T.addMark(h, C, x.mark) : T.removeMark(h, C, x.mark); else if (f.parent.child(f.index()).isText && f.index() == g.index() - (g.textOffset ? 0 : 1)) { @@ -8327,15 +8360,15 @@ function Mb(t, e, n, r, i) { } } if (T || (T = t.state.tr.replace(h, C, c.doc.slice(m.start - c.from, m.endB - c.from))), c.sel) { - let O = Id(t, T.doc, c.sel); + let O = wd(t, T.doc, c.sel); O && !(rt && Ut && t.composing && O.empty && (m.start != m.endB || t.input.lastAndroidDelete < Date.now() - 100) && (O.head == h || O.head == T.mapping.map(C) - 1) || pt && O.empty && O.head == h) && T.setSelection(O); } R && T.ensureMarks(R), o && T.setMeta("composition", o), t.dispatch(T.scrollIntoView()); } -function Id(t, e, n) { - return Math.max(n.anchor, n.head) > e.content.size ? null : yc(t, e.resolve(n.anchor), e.resolve(n.head)); +function wd(t, e, n) { + return Math.max(n.anchor, n.head) > e.content.size ? null : Oc(t, e.resolve(n.anchor), e.resolve(n.head)); } -function wb(t, e) { +function Hb(t, e) { let n = t.firstChild.marks, r = e.firstChild.marks, i = n, o = r, a, s, l; for (let u = 0; u < r.length; u++) i = r[u].removeFromSet(i); @@ -8350,14 +8383,14 @@ function wb(t, e) { let c = []; for (let u = 0; u < e.childCount; u++) c.push(l(e.child(u))); - if (L.from(c).eq(t)) + if (w.from(c).eq(t)) return { mark: s, type: a }; } -function Lb(t, e, n, r, i) { +function Gb(t, e, n, r, i) { if ( // The content must have shrunk n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into - Vs(r, !0, !1) < i.pos + zs(r, !0, !1) < i.pos ) return !1; let o = t.resolve(e); @@ -8367,10 +8400,10 @@ function Lb(t, e, n, r, i) { } if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock) return !1; - let a = t.resolve(Vs(o, !0, !0)); - return !a.parent.isTextblock || a.pos > n || Vs(a, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content); + let a = t.resolve(zs(o, !0, !0)); + return !a.parent.isTextblock || a.pos > n || zs(a, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content); } -function Vs(t, e, n) { +function zs(t, e, n) { let r = t.depth, i = e ? t.end() : t.pos; for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); ) r--, i++, e = !1; @@ -8381,7 +8414,7 @@ function Vs(t, e, n) { } return i; } -function kb(t, e, n, r, i) { +function Vb(t, e, n, r, i) { let o = t.findDiffStart(e, n); if (o == null) return null; @@ -8392,20 +8425,20 @@ function kb(t, e, n, r, i) { } if (a < o && t.size < e.size) { let l = r <= o && r >= a ? o - r : 0; - o -= l, o && o < e.size && xd(e.textBetween(o - 1, o + 1)) && (o += l ? 1 : -1), s = o + (s - a), a = o; + o -= l, o && o < e.size && Ld(e.textBetween(o - 1, o + 1)) && (o += l ? 1 : -1), s = o + (s - a), a = o; } else if (s < o) { let l = r <= o && r >= s ? o - r : 0; - o -= l, o && o < t.size && xd(t.textBetween(o - 1, o + 1)) && (o += l ? 1 : -1), a = o + (a - s), s = o; + o -= l, o && o < t.size && Ld(t.textBetween(o - 1, o + 1)) && (o += l ? 1 : -1), a = o + (a - s), s = o; } return { start: o, endA: a, endB: s }; } -function xd(t) { +function Ld(t) { if (t.length != 2) return !1; let e = t.charCodeAt(0), n = t.charCodeAt(1); return e >= 56320 && e <= 57343 && n >= 55296 && n <= 56319; } -class Pb { +class Yb { /** Create a view. `place` may be a DOM node that the editor should be appended to, a function that will place it into the document, @@ -8414,7 +8447,7 @@ class Pb { added to the document. */ constructor(e, n) { - this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new tb(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(kd), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = wd(this), Md(this), this.nodeViews = Ld(this), this.docView = dd(this.state.doc, Dd(this), Gs(this), this.dom, this), this.domObserver = new Rb(this, (r, i, o, a) => Mb(this, r, i, o, a)), this.domObserver.start(), nb(this), this.updatePluginViews(); + 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 lb(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Ud), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Fd(this), Pd(this), this.nodeViews = Bd(this), this.docView = fd(this.state.doc, kd(this), Ys(this), this.dom, this), this.domObserver = new Mb(this, (r, i, o, a) => Ub(this, r, i, o, a)), this.domObserver.start(), cb(this), this.updatePluginViews(); } /** Holds `true` when a @@ -8442,9 +8475,9 @@ class Pb { the DOM. */ update(e) { - e.handleDOMEvents != this._props.handleDOMEvents && Gl(this); + e.handleDOMEvents != this._props.handleDOMEvents && Yl(this); let n = this._props; - this._props = e, e.plugins && (e.plugins.forEach(kd), this.directPlugins = e.plugins), this.updateStateInner(e.state, n); + this._props = e, e.plugins && (e.plugins.forEach(Ud), this.directPlugins = e.plugins), this.updateStateInner(e.state, n); } /** Update the view by updating existing props object with the object @@ -8470,26 +8503,26 @@ class Pb { updateStateInner(e, n) { var r; let i = this.state, o = !1, a = !1; - e.storedMarks && this.composing && (nf(this), a = !0), this.state = e; + e.storedMarks && this.composing && (cf(this), a = !0), this.state = e; let s = i.plugins != e.plugins || this._props.plugins != n.plugins; if (s || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) { - let _ = Ld(this); - Bb(_, this.nodeViews) && (this.nodeViews = _, o = !0); + let _ = Bd(this); + $b(_, this.nodeViews) && (this.nodeViews = _, o = !0); } - (s || n.handleDOMEvents != this._props.handleDOMEvents) && Gl(this), this.editable = wd(this), Md(this); - let l = Gs(this), c = Dd(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l); + (s || n.handleDOMEvents != this._props.handleDOMEvents) && Yl(this), this.editable = Fd(this), Pd(this); + let l = Ys(this), c = kd(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l); (d || !e.selection.eq(i.selection)) && (a = !0); - let p = u == "preserve" && a && this.dom.style.overflowAnchor == null && gS(this); + let p = u == "preserve" && a && this.dom.style.overflowAnchor == null && yS(this); if (a) { this.domObserver.stop(); - let _ = d && (pt || rt) && !this.composing && !i.selection.empty && !e.selection.empty && Fb(i.selection, e.selection); + let _ = d && (pt || rt) && !this.composing && !i.selection.empty && !e.selection.empty && zb(i.selection, e.selection); if (d) { let m = rt ? this.trackWrites = this.domSelectionRange().focusNode : null; - this.composing && (this.input.compositionNode = fb(this)), (o || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = dd(e.doc, c, l, this.dom, this)), m && !this.trackWrites && (_ = !0); + this.composing && (this.input.compositionNode = Cb(this)), (o || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = fd(e.doc, c, l, this.dom, this)), m && !this.trackWrites && (_ = !0); } - _ || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && HS(this)) ? gn(this, _) : (Ym(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start(); + _ || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && WS(this)) ? gn(this, _) : (Qm(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start(); } - this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : p && hS(p); + this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : p && vS(p); } /** @internal @@ -8498,9 +8531,9 @@ class Pb { let e = this.domSelectionRange().focusNode; if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof ee) { let n = this.docView.domAfterPos(this.state.selection.from); - n.nodeType == 1 && od(this, n.getBoundingClientRect(), e); + n.nodeType == 1 && cd(this, n.getBoundingClientRect(), e); } else - od(this, this.coordsAtPos(this.state.selection.head, 1), e); + cd(this, this.coordsAtPos(this.state.selection.head, 1), e); } destroyPluginViews() { let e; @@ -8532,7 +8565,7 @@ class Pb { let o = r.from + (this.state.doc.content.size - n.doc.content.size); (o > 0 && this.state.doc.nodeAt(o)) == r.node && (i = o); } - this.dragging = new of(e.slice, e.move, i < 0 ? void 0 : ee.create(this.state.doc, i)); + this.dragging = new df(e.slice, e.move, i < 0 ? void 0 : ee.create(this.state.doc, i)); } someProp(e, n) { let r = this._props && this._props[e], i; @@ -8574,7 +8607,7 @@ class Pb { Focus the editor. */ focus() { - this.domObserver.stop(), this.editable && ES(this.dom), gn(this), this.domObserver.start(); + this.domObserver.stop(), this.editable && RS(this.dom), gn(this), this.domObserver.start(); } /** Get the document root in which the editor exists. This will @@ -8608,7 +8641,7 @@ class Pb { the top level, not in any node. */ posAtCoords(e) { - return yS(this, e); + return xS(this, e); } /** Returns the viewport rectangle at a given document position. @@ -8619,7 +8652,7 @@ class Pb { otherwise the element after. */ coordsAtPos(e, n = 1) { - return km(this, e, n); + return Gm(this, e, n); } /** Find the DOM position that corresponds to the given document @@ -8673,7 +8706,7 @@ class Pb { pass a different state. */ endOfTextblock(e, n) { - return AS(this, n || this.state, e); + return kS(this, n || this.state, e); } /** Run the editor's paste logic with the given HTML string. The @@ -8681,20 +8714,20 @@ class Pb { [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook. */ pasteHTML(e, n) { - return $i(this, "", e, !1, n || new ClipboardEvent("paste")); + return qi(this, "", e, !1, n || new ClipboardEvent("paste")); } /** Run the editor's paste logic with the given plain-text input. */ pasteText(e, n) { - return $i(this, e, null, !0, n || new ClipboardEvent("paste")); + return qi(this, e, null, !0, n || new ClipboardEvent("paste")); } /** Removes the editor from the DOM and destroys all [node views](https://prosemirror.net/docs/ref/#view.NodeView). */ destroy() { - this.docView && (rb(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Gs(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, oS()); + this.docView && (ub(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Ys(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, pS()); } /** This is true when the view has been @@ -8708,7 +8741,7 @@ class Pb { Used for testing. */ dispatchEvent(e) { - return ob(this, e); + return pb(this, e); } /** Dispatch a transaction. Will call @@ -8728,7 +8761,7 @@ class Pb { */ domSelectionRange() { let e = this.domSelection(); - return e ? st && this.root.nodeType === 11 && uS(this.dom.ownerDocument) == this.dom && Nb(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 }; + return e ? st && this.root.nodeType === 11 && hS(this.dom.ownerDocument) == this.dom && Lb(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 }; } /** @internal @@ -8737,29 +8770,29 @@ class Pb { return this.root.getSelection(); } } -function Dd(t) { +function kd(t) { let e = /* @__PURE__ */ Object.create(null); return e.class = "ProseMirror", e.contenteditable = String(t.editable), t.someProp("attributes", (n) => { if (typeof n == "function" && (n = n(t.state)), n) for (let r in n) r == "class" ? e.class += " " + n[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + n[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(n[r])); - }), e.translate || (e.translate = "no"), [Fe.node(0, t.state.doc.content.size, e)]; + }), e.translate || (e.translate = "no"), [ke.node(0, t.state.doc.content.size, e)]; } -function Md(t) { +function Pd(t) { if (t.markCursor) { let e = document.createElement("img"); - e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: Fe.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) }; + e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: ke.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) }; } else t.cursorWrapper = null; } -function wd(t) { +function Fd(t) { return !t.someProp("editable", (e) => e(t.state) === !1); } -function Fb(t, e) { +function zb(t, e) { let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head)); return t.$anchor.start(n) != e.$anchor.start(n); } -function Ld(t) { +function Bd(t) { let e = /* @__PURE__ */ Object.create(null); function n(r) { for (let i in r) @@ -8767,7 +8800,7 @@ function Ld(t) { } return t.someProp("nodeViews", n), t.someProp("markViews", n), e; } -function Bb(t, e) { +function $b(t, e) { let n = 0, r = 0; for (let i in t) { if (t[i] != e[i]) @@ -8778,11 +8811,11 @@ function Bb(t, e) { r++; return n != r; } -function kd(t) { +function Ud(t) { if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction) throw new RangeError("Plugins passed directly to the view must not have a state component"); } -var Hn = { +var Gn = { 8: "Backspace", 9: "Tab", 10: "Enter", @@ -8835,7 +8868,7 @@ var Hn = { 220: "\\", 221: "]", 222: "'" -}, ha = { +}, Ea = { 48: ")", 49: "!", 50: "@", @@ -8860,18 +8893,18 @@ var Hn = { 220: "|", 221: "}", 222: '"' -}, Ub = typeof navigator < "u" && /Mac/.test(navigator.platform), Hb = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); -for (var je = 0; je < 10; je++) Hn[48 + je] = Hn[96 + je] = String(je); -for (var je = 1; je <= 24; je++) Hn[je + 111] = "F" + je; +}, qb = typeof navigator < "u" && /Mac/.test(navigator.platform), Wb = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +for (var je = 0; je < 10; je++) Gn[48 + je] = Gn[96 + je] = String(je); +for (var je = 1; je <= 24; je++) Gn[je + 111] = "F" + je; for (var je = 65; je <= 90; je++) - Hn[je] = String.fromCharCode(je + 32), ha[je] = String.fromCharCode(je); -for (var Ys in Hn) ha.hasOwnProperty(Ys) || (ha[Ys] = Hn[Ys]); -function Gb(t) { - var e = Ub && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Hb && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? ha : Hn)[t.keyCode] || t.key || "Unidentified"; + Gn[je] = String.fromCharCode(je + 32), Ea[je] = String.fromCharCode(je); +for (var $s in Gn) Ea.hasOwnProperty($s) || (Ea[$s] = Gn[$s]); +function Kb(t) { + var e = qb && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Wb && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Ea : Gn)[t.keyCode] || t.key || "Unidentified"; return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n; } -const Vb = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1; -function Yb(t) { +const Qb = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1; +function Zb(t) { let e = t.split(/-(?!$)/), n = e[e.length - 1]; n == "Space" && (n = " "); let r, i, o, a; @@ -8886,38 +8919,38 @@ function Yb(t) { else if (/^s(hift)?$/i.test(l)) o = !0; else if (/^mod$/i.test(l)) - Vb ? a = !0 : i = !0; + Qb ? a = !0 : i = !0; else throw new Error("Unrecognized modifier name: " + l); } return r && (n = "Alt-" + n), i && (n = "Ctrl-" + n), a && (n = "Meta-" + n), o && (n = "Shift-" + n), n; } -function zb(t) { +function Xb(t) { let e = /* @__PURE__ */ Object.create(null); for (let n in t) - e[Yb(n)] = t[n]; + e[Zb(n)] = t[n]; return e; } -function zs(t, e, n = !0) { +function qs(t, e, n = !0) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t; } -function $b(t) { - return new be({ props: { handleKeyDown: Ic(t) } }); +function jb(t) { + return new Se({ props: { handleKeyDown: Mc(t) } }); } -function Ic(t) { - let e = zb(t); +function Mc(t) { + let e = Xb(t); return function(n, r) { - let i = Gb(r), o, a = e[zs(i, r)]; + let i = Kb(r), o, a = e[qs(i, r)]; if (a && a(n.state, n.dispatch, n)) return !0; if (i.length == 1 && i != " ") { if (r.shiftKey) { - let s = e[zs(i, r, !1)]; + let s = e[qs(i, r, !1)]; if (s && s(n.state, n.dispatch, n)) return !0; } - if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Hn[r.keyCode]) && o != i) { - let s = e[zs(o, r)]; + if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Gn[r.keyCode]) && o != i) { + let s = e[qs(o, r)]; if (s && s(n.state, n.dispatch, n)) return !0; } @@ -8925,26 +8958,26 @@ function Ic(t) { return !1; }; } -const qb = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0); -function uf(t, e) { +const Jb = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0); +function gf(t, e) { let { $cursor: n } = t.selection; return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n; } -const Wb = (t, e, n) => { - let r = uf(t, n); +const e0 = (t, e, n) => { + let r = gf(t, n); if (!r) return !1; - let i = xc(r); + let i = wc(r); if (!i) { let a = r.blockRange(), s = a && _i(a); return s == null ? !1 : (e && e(t.tr.lift(a, s).scrollIntoView()), !0); } let o = i.nodeBefore; - if (mf(t, i, e, -1)) + if (bf(t, i, e, -1)) return !0; if (r.parent.content.size == 0 && (ni(o, "end") || ee.isSelectable(o))) for (let a = r.depth; ; a--) { - let s = ts(t.doc, r.before(a), r.after(a), H.empty); + let s = ns(t.doc, r.before(a), r.after(a), H.empty); if (s && s.slice.size < s.to - s.from) { if (e) { let l = t.tr.step(s); @@ -8956,20 +8989,20 @@ const Wb = (t, e, n) => { break; } return o.isAtom && i.depth == r.depth - 1 ? (e && e(t.tr.delete(i.pos - o.nodeSize, i.pos).scrollIntoView()), !0) : !1; -}, Kb = (t, e, n) => { - let r = uf(t, n); +}, t0 = (t, e, n) => { + let r = gf(t, n); if (!r) return !1; - let i = xc(r); - return i ? df(t, i, e) : !1; -}, Qb = (t, e, n) => { - let r = pf(t, n); + let i = wc(r); + return i ? hf(t, i, e) : !1; +}, n0 = (t, e, n) => { + let r = Ef(t, n); if (!r) return !1; - let i = Dc(r); - return i ? df(t, i, e) : !1; + let i = Lc(r); + return i ? hf(t, i, e) : !1; }; -function df(t, e, n) { +function hf(t, e, n) { let r = e.nodeBefore, i = r, o = e.pos - 1; for (; !i.isTextblock; o--) { if (i.type.spec.isolating) @@ -8988,7 +9021,7 @@ function df(t, e, n) { return !1; s = u; } - let c = ts(t.doc, o, l, H.empty); + let c = ns(t.doc, o, l, H.empty); if (!c || c.from != o || c instanceof Ue && c.slice.size >= l - o) return !1; if (n) { @@ -9006,19 +9039,19 @@ function ni(t, e, n = !1) { } return !1; } -const Zb = (t, e, n) => { +const r0 = (t, e, n) => { let { $head: r, empty: i } = t.selection, o = r; if (!i) return !1; if (r.parent.isTextblock) { if (n ? !n.endOfTextblock("backward", t) : r.parentOffset > 0) return !1; - o = xc(r); + o = wc(r); } let a = o && o.nodeBefore; return !a || !ee.isSelectable(a) ? !1 : (e && e(t.tr.setSelection(ee.create(t.doc, o.pos - a.nodeSize)).scrollIntoView()), !0); }; -function xc(t) { +function wc(t) { if (!t.parent.type.spec.isolating) for (let e = t.depth - 1; e >= 0; e--) { if (t.index(e) > 0) @@ -9028,22 +9061,22 @@ function xc(t) { } return null; } -function pf(t, e) { +function Ef(t, e) { let { $cursor: n } = t.selection; return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n; } -const Xb = (t, e, n) => { - let r = pf(t, n); +const i0 = (t, e, n) => { + let r = Ef(t, n); if (!r) return !1; - let i = Dc(r); + let i = Lc(r); if (!i) return !1; let o = i.nodeAfter; - if (mf(t, i, e, 1)) + if (bf(t, i, e, 1)) return !0; if (r.parent.content.size == 0 && (ni(o, "start") || ee.isSelectable(o))) { - let a = ts(t.doc, r.before(), r.after(), H.empty); + let a = ns(t.doc, r.before(), r.after(), H.empty); if (a && a.slice.size < a.to - a.from) { if (e) { let s = t.tr.step(a); @@ -9053,19 +9086,19 @@ const Xb = (t, e, n) => { } } return o.isAtom && i.depth == r.depth - 1 ? (e && e(t.tr.delete(i.pos, i.pos + o.nodeSize).scrollIntoView()), !0) : !1; -}, jb = (t, e, n) => { +}, o0 = (t, e, n) => { let { $head: r, empty: i } = t.selection, o = r; if (!i) return !1; if (r.parent.isTextblock) { if (n ? !n.endOfTextblock("forward", t) : r.parentOffset < r.parent.content.size) return !1; - o = Dc(r); + o = Lc(r); } let a = o && o.nodeAfter; return !a || !ee.isSelectable(a) ? !1 : (e && e(t.tr.setSelection(ee.create(t.doc, o.pos)).scrollIntoView()), !0); }; -function Dc(t) { +function Lc(t) { if (!t.parent.type.spec.isolating) for (let e = t.depth - 1; e >= 0; e--) { let n = t.node(e); @@ -9076,37 +9109,37 @@ function Dc(t) { } return null; } -const Jb = (t, e) => { +const a0 = (t, e) => { let n = t.selection, r = n instanceof ee, i; if (r) { - if (n.node.isTextblock || !zn(t.doc, n.from)) + if (n.node.isTextblock || !$n(t.doc, n.from)) return !1; i = n.from; - } else if (i = es(t.doc, n.from, -1), i == null) + } else if (i = ts(t.doc, n.from, -1), i == null) return !1; if (e) { let o = t.tr.join(i); r && o.setSelection(ee.create(o.doc, i - t.doc.resolve(i).nodeBefore.nodeSize)), e(o.scrollIntoView()); } return !0; -}, e0 = (t, e) => { +}, s0 = (t, e) => { let n = t.selection, r; if (n instanceof ee) { - if (n.node.isTextblock || !zn(t.doc, n.to)) + if (n.node.isTextblock || !$n(t.doc, n.to)) return !1; r = n.to; - } else if (r = es(t.doc, n.to, 1), r == null) + } else if (r = ts(t.doc, n.to, 1), r == null) return !1; return e && e(t.tr.join(r).scrollIntoView()), !0; -}, t0 = (t, e) => { +}, l0 = (t, e) => { let { $from: n, $to: r } = t.selection, i = n.blockRange(r), o = i && _i(i); return o == null ? !1 : (e && e(t.tr.lift(i, o).scrollIntoView()), !0); -}, n0 = (t, e) => { +}, c0 = (t, e) => { let { $head: n, $anchor: r } = t.selection; return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(` `).scrollIntoView()), !0); }; -function _f(t) { +function Sf(t) { for (let e = 0; e < t.edgeCount; e++) { let { type: n } = t.edge(e); if (n.isTextblock && !n.hasRequiredAttrs()) @@ -9114,11 +9147,11 @@ function _f(t) { } return null; } -const r0 = (t, e) => { +const u0 = (t, e) => { let { $head: n, $anchor: r } = t.selection; if (!n.parent.type.spec.code || !n.sameParent(r)) return !1; - let i = n.node(-1), o = n.indexAfter(-1), a = _f(i.contentMatchAt(o)); + let i = n.node(-1), o = n.indexAfter(-1), a = Sf(i.contentMatchAt(o)); if (!a || !i.canReplaceWith(o, o, a)) return !1; if (e) { @@ -9126,11 +9159,11 @@ const r0 = (t, e) => { l.setSelection(te.near(l.doc.resolve(s), 1)), e(l.scrollIntoView()); } return !0; -}, i0 = (t, e) => { +}, d0 = (t, e) => { let n = t.selection, { $from: r, $to: i } = n; if (n instanceof Dt || r.parent.inlineContent || i.parent.inlineContent) return !1; - let o = _f(i.parent.contentMatchAt(i.indexAfter())); + let o = Sf(i.parent.contentMatchAt(i.indexAfter())); if (!o || !o.isTextblock) return !1; if (e) { @@ -9138,7 +9171,7 @@ const r0 = (t, e) => { s.setSelection(Z.create(s.doc, a + 1)), e(s.scrollIntoView()); } return !0; -}, o0 = (t, e) => { +}, p0 = (t, e) => { let { $cursor: n } = t.selection; if (!n || n.parent.content.size) return !1; @@ -9149,27 +9182,27 @@ const r0 = (t, e) => { } let r = n.blockRange(), i = r && _i(r); return i == null ? !1 : (e && e(t.tr.lift(r, i).scrollIntoView()), !0); -}, a0 = (t, e) => { +}, _0 = (t, e) => { let { $from: n, to: r } = t.selection, i, o = n.sharedDepth(r); return o == 0 ? !1 : (i = n.before(o), e && e(t.tr.setSelection(ee.create(t.doc, i))), !0); }; -function s0(t, e, n) { +function m0(t, e, n) { let r = e.nodeBefore, i = e.nodeAfter, o = e.index(); - return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || zn(t.doc, e.pos)) ? !1 : (n && n(t.tr.clearIncompatible(e.pos, r.type, r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()), !0); + return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || $n(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0); } -function mf(t, e, n, r) { +function bf(t, e, n, r) { let i = e.nodeBefore, o = e.nodeAfter, a, s, l = i.type.spec.isolating || o.type.spec.isolating; - if (!l && s0(t, e, n)) + if (!l && m0(t, e, n)) return !0; let c = !l && e.parent.canReplace(e.index(), e.index() + 1); if (c && (a = (s = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && s.matchType(a[0] || o.type).validEnd) { if (n) { - let _ = e.pos + o.nodeSize, m = L.empty; - for (let E = a.length - 1; E >= 0; E--) - m = L.from(a[E].create(null, m)); - m = L.from(i.copy(m)); - let f = t.tr.step(new ze(e.pos - 1, _, e.pos, _, new H(m, 1, 0), a.length, !0)), g = _ + 2 * a.length; - zn(f.doc, g) && f.join(g), n(f.scrollIntoView()); + let _ = e.pos + o.nodeSize, m = w.empty; + for (let S = a.length - 1; S >= 0; S--) + m = w.from(a[S].create(null, m)); + m = w.from(i.copy(m)); + let f = t.tr.step(new ze(e.pos - 1, _, e.pos, _, new H(m, 1, 0), a.length, !0)), g = f.doc.resolve(_ + 2 * a.length); + g.nodeAfter && g.nodeAfter.type == i.type && $n(f.doc, g.pos) && f.join(g.pos), n(f.scrollIntoView()); } return !0; } @@ -9185,18 +9218,18 @@ function mf(t, e, n, r) { g++; if (_.canReplace(_.childCount, _.childCount, f.content)) { if (n) { - let E = L.empty; + let S = w.empty; for (let b = m.length - 1; b >= 0; b--) - E = L.from(m[b].copy(E)); - let S = t.tr.step(new ze(e.pos - m.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new H(E, m.length, 0), 0, !0)); - n(S.scrollIntoView()); + S = w.from(m[b].copy(S)); + let E = t.tr.step(new ze(e.pos - m.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new H(S, m.length, 0), 0, !0)); + n(E.scrollIntoView()); } return !0; } } return !1; } -function ff(t) { +function Tf(t) { return function(e, n) { let r = e.selection, i = t < 0 ? r.$from : r.$to, o = i.depth; for (; i.node(o).isInline; ) { @@ -9207,14 +9240,14 @@ function ff(t) { return i.node(o).isTextblock ? (n && n(e.tr.setSelection(Z.create(e.doc, t < 0 ? i.start(o) : i.end(o)))), !0) : !1; }; } -const l0 = ff(-1), c0 = ff(1); -function u0(t, e = null) { +const f0 = Tf(-1), g0 = Tf(1); +function h0(t, e = null) { return function(n, r) { - let { $from: i, $to: o } = n.selection, a = i.blockRange(o), s = a && Ec(a, t, e); + let { $from: i, $to: o } = n.selection, a = i.blockRange(o), s = a && Tc(a, t, e); return s ? (r && r(n.tr.wrap(a, s).scrollIntoView()), !0) : !1; }; } -function Pd(t, e = null) { +function Hd(t, e = null) { return function(n, r) { let i = !1; for (let o = 0; o < n.selection.ranges.length && !i; o++) { @@ -9245,7 +9278,7 @@ function Pd(t, e = null) { }; } typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin"; -function d0(t, e = null) { +function E0(t, e = null) { return function(n, r) { let { $from: i, $to: o } = n.selection, a = i.blockRange(o), s = !1, l = a; if (!a) @@ -9254,16 +9287,16 @@ function d0(t, e = null) { if (i.index(a.depth - 1) == 0) return !1; let u = n.doc.resolve(a.start - 2); - l = new la(u, u, a.depth), a.endIndex < a.parent.childCount && (a = new la(i, n.doc.resolve(o.end(a.depth)), a.depth)), s = !0; + l = new ca(u, u, a.depth), a.endIndex < a.parent.childCount && (a = new ca(i, n.doc.resolve(o.end(a.depth)), a.depth)), s = !0; } - let c = Ec(l, t, e, a); - return c ? (r && r(p0(n.tr, a, c, s, t).scrollIntoView()), !0) : !1; + let c = Tc(l, t, e, a); + return c ? (r && r(S0(n.tr, a, c, s, t).scrollIntoView()), !0) : !1; }; } -function p0(t, e, n, r, i) { - let o = L.empty; +function S0(t, e, n, r, i) { + let o = w.empty; for (let u = n.length - 1; u >= 0; u--) - o = L.from(n[u].type.create(n[u].attrs, o)); + o = w.from(n[u].type.create(n[u].attrs, o)); t.step(new ze(e.start - (r ? 2 : 0), e.end, e.start, e.end, new H(o, 0, 0), n.length, !0)); let a = 0; for (let u = 0; u < n.length; u++) @@ -9273,23 +9306,23 @@ function p0(t, e, n, r, i) { !p && Qr(t.doc, l, s) && (t.split(l, s), l += 2 * s), l += c.child(u).nodeSize; return t; } -function _0(t) { +function b0(t) { return function(e, n) { let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (a) => a.childCount > 0 && a.firstChild.type == t); - return o ? n ? r.node(o.depth - 1).type == t ? m0(e, n, t, o) : f0(e, n, o) : !0 : !1; + return o ? n ? r.node(o.depth - 1).type == t ? T0(e, n, t, o) : C0(e, n, o) : !0 : !1; }; } -function m0(t, e, n, r) { +function T0(t, e, n, r) { let i = t.tr, o = r.end, a = r.$to.end(r.depth); - o < a && (i.step(new ze(o - 1, a, o, a, new H(L.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new la(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth)); + o < a && (i.step(new ze(o - 1, a, o, a, new H(w.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new ca(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth)); const s = _i(r); if (s == null) return !1; i.lift(r, s); let l = i.mapping.map(o, -1) - 1; - return zn(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0; + return $n(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0; } -function f0(t, e, n) { +function C0(t, e, n) { let r = t.tr, i = n.parent; for (let _ = n.end, m = n.endIndex - 1, f = n.startIndex; m > f; m--) _ -= i.child(m).nodeSize, r.delete(_ - 1, _ + 1); @@ -9297,12 +9330,12 @@ function f0(t, e, n) { if (r.mapping.map(n.end) != n.start + o.nodeAfter.nodeSize) return !1; let s = n.startIndex == 0, l = n.endIndex == i.childCount, c = o.node(-1), u = o.index(-1); - if (!c.canReplace(u + (s ? 0 : 1), u + 1, a.content.append(l ? L.empty : L.from(i)))) + if (!c.canReplace(u + (s ? 0 : 1), u + 1, a.content.append(l ? w.empty : w.from(i)))) return !1; let d = o.pos, p = d + a.nodeSize; - return r.step(new ze(d - (s ? 1 : 0), p + (l ? 1 : 0), d + 1, p - 1, new H((s ? L.empty : L.from(i.copy(L.empty))).append(l ? L.empty : L.from(i.copy(L.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0; + return r.step(new ze(d - (s ? 1 : 0), p + (l ? 1 : 0), d + 1, p - 1, new H((s ? w.empty : w.from(i.copy(w.empty))).append(l ? w.empty : w.from(i.copy(w.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0; } -function g0(t) { +function y0(t) { return function(e, n) { let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (c) => c.childCount > 0 && c.firstChild.type == t); if (!o) @@ -9314,13 +9347,13 @@ function g0(t) { if (l.type != t) return !1; if (n) { - let c = l.lastChild && l.lastChild.type == s.type, u = L.from(c ? t.create() : null), d = new H(L.from(t.create(null, L.from(s.type.create(null, u)))), c ? 3 : 1, 0), p = o.start, _ = o.end; + let c = l.lastChild && l.lastChild.type == s.type, u = w.from(c ? t.create() : null), d = new H(w.from(t.create(null, w.from(s.type.create(null, u)))), c ? 3 : 1, 0), p = o.start, _ = o.end; n(e.tr.step(new ze(p - (c ? 3 : 1), _, p, _, d, 1, !0)).scrollIntoView()); } return !0; }; } -function ss(t) { +function ls(t) { const { state: e, transaction: n } = t; let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n; return { @@ -9345,7 +9378,7 @@ function ss(t) { } }; } -class ls { +class cs { constructor(e) { this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state; } @@ -9371,8 +9404,8 @@ class ls { createChain(e, n = !0) { const { rawCommands: r, editor: i, state: o } = this, { view: a } = i, s = [], l = !!e, c = e || o.tr, u = () => (!l && n && !c.getMeta("preventDispatch") && !this.hasCustomState && a.dispatch(c), s.every((p) => p === !0)), d = { ...Object.fromEntries(Object.entries(r).map(([p, _]) => [p, (...f) => { - const g = this.buildProps(c, n), E = _(...f)(g); - return s.push(E), d; + const g = this.buildProps(c, n), S = _(...f)(g); + return s.push(S), d; }])), run: u }; @@ -9390,7 +9423,7 @@ class ls { tr: e, editor: i, view: a, - state: ss({ + state: ls({ state: o, transaction: e }), @@ -9405,7 +9438,7 @@ class ls { return s; } } -let h0 = class { +let v0 = class { constructor() { this.callbacks = {}; } @@ -9420,6 +9453,12 @@ let h0 = class { const r = this.callbacks[e]; return r && (n ? this.callbacks[e] = r.filter((i) => i !== n) : delete this.callbacks[e]), this; } + once(e, n) { + const r = (...i) => { + this.off(e, r), n.apply(this, i); + }; + return this.on(e, r); + } removeAllListeners() { this.callbacks = {}; } @@ -9430,7 +9469,7 @@ function W(t, e, n) { parent: t.parent ? W(t.parent, e, n) : null }) : t.config[e]; } -function cs(t) { +function us(t) { const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark"); return { baseExtensions: e, @@ -9438,8 +9477,8 @@ function cs(t) { markExtensions: r }; } -function gf(t) { - const e = [], { nodeExtensions: n, markExtensions: r } = cs(t), i = [...n, ...r], o = { +function Cf(t) { + const e = [], { nodeExtensions: n, markExtensions: r } = us(t), i = [...n, ...r], o = { default: null, rendered: !0, renderHTML: null, @@ -9525,24 +9564,24 @@ function pe(...t) { }), r; }, {}); } -function Vl(t, e) { +function zl(t, e) { return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : { [n.name]: t.attrs[n.name] }).reduce((n, r) => pe(n, r), {}); } -function hf(t) { +function yf(t) { return typeof t == "function"; } function le(t, e = void 0, ...n) { - return hf(t) ? e ? t.bind(e)(...n) : t(...n) : t; + return yf(t) ? e ? t.bind(e)(...n) : t(...n) : t; } -function E0(t = {}) { +function R0(t = {}) { return Object.keys(t).length === 0 && t.constructor === Object; } -function S0(t) { +function O0(t) { return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t; } -function Fd(t, e) { +function Gd(t, e) { return "style" in t ? t : { ...t, getAttrs: (n) => { @@ -9550,7 +9589,7 @@ function Fd(t, e) { if (r === !1) return !1; const i = e.reduce((o, a) => { - const s = a.attribute.parseHTML ? a.attribute.parseHTML(n) : S0(n.getAttribute(a.name)); + const s = a.attribute.parseHTML ? a.attribute.parseHTML(n) : O0(n.getAttribute(a.name)); return s == null ? o : { ...o, [a.name]: s @@ -9560,27 +9599,27 @@ function Fd(t, e) { } }; } -function Bd(t) { +function Vd(t) { return Object.fromEntries( // @ts-ignore - Object.entries(t).filter(([e, n]) => e === "attrs" && E0(n) ? !1 : n != null) + Object.entries(t).filter(([e, n]) => e === "attrs" && R0(n) ? !1 : n != null) ); } -function b0(t, e) { +function N0(t, e) { var n; - const r = gf(t), { nodeExtensions: i, markExtensions: o } = cs(t), a = (n = i.find((c) => W(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, s = Object.fromEntries(i.map((c) => { - const u = r.filter((E) => E.type === c.name), d = { + const r = Cf(t), { nodeExtensions: i, markExtensions: o } = us(t), a = (n = i.find((c) => W(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, s = Object.fromEntries(i.map((c) => { + const u = r.filter((S) => S.type === c.name), d = { name: c.name, options: c.options, storage: c.storage, editor: e - }, p = t.reduce((E, S) => { - const b = W(S, "extendNodeSchema", d); + }, p = t.reduce((S, E) => { + const b = W(E, "extendNodeSchema", d); return { - ...E, + ...S, ...b ? b(c) : {} }; - }, {}), _ = Bd({ + }, {}), _ = Vd({ ...p, content: le(W(c, "content", d)), marks: le(W(c, "marks", d)), @@ -9591,18 +9630,19 @@ function b0(t, e) { draggable: le(W(c, "draggable", d)), code: le(W(c, "code", d)), whitespace: le(W(c, "whitespace", d)), + linebreakReplacement: le(W(c, "linebreakReplacement", d)), defining: le(W(c, "defining", d)), isolating: le(W(c, "isolating", d)), - attrs: Object.fromEntries(u.map((E) => { - var S; - return [E.name, { default: (S = E == null ? void 0 : E.attribute) === null || S === void 0 ? void 0 : S.default }]; + attrs: Object.fromEntries(u.map((S) => { + var E; + return [S.name, { default: (E = S == null ? void 0 : S.attribute) === null || E === void 0 ? void 0 : E.default }]; })) }), m = le(W(c, "parseHTML", d)); - m && (_.parseDOM = m.map((E) => Fd(E, u))); + m && (_.parseDOM = m.map((S) => Gd(S, u))); const f = W(c, "renderHTML", d); - f && (_.toDOM = (E) => f({ - node: E, - HTMLAttributes: Vl(E, u) + f && (_.toDOM = (S) => f({ + node: S, + HTMLAttributes: zl(S, u) })); const g = W(c, "renderText", d); return g && (_.toText = g), [c.name, _]; @@ -9612,13 +9652,13 @@ function b0(t, e) { options: c.options, storage: c.storage, editor: e - }, p = t.reduce((g, E) => { - const S = W(E, "extendMarkSchema", d); + }, p = t.reduce((g, S) => { + const E = W(S, "extendMarkSchema", d); return { ...g, - ...S ? S(c) : {} + ...E ? E(c) : {} }; - }, {}), _ = Bd({ + }, {}), _ = Vd({ ...p, inclusive: le(W(c, "inclusive", d)), excludes: le(W(c, "excludes", d)), @@ -9626,30 +9666,34 @@ function b0(t, e) { spanning: le(W(c, "spanning", d)), code: le(W(c, "code", d)), attrs: Object.fromEntries(u.map((g) => { - var E; - return [g.name, { default: (E = g == null ? void 0 : g.attribute) === null || E === void 0 ? void 0 : E.default }]; + var S; + return [g.name, { default: (S = g == null ? void 0 : g.attribute) === null || S === void 0 ? void 0 : S.default }]; })) }), m = le(W(c, "parseHTML", d)); - m && (_.parseDOM = m.map((g) => Fd(g, u))); + m && (_.parseDOM = m.map((g) => Gd(g, u))); const f = W(c, "renderHTML", d); return f && (_.toDOM = (g) => f({ mark: g, - HTMLAttributes: Vl(g, u) + HTMLAttributes: zl(g, u) })), [c.name, _]; })); - return new dm({ + return new gm({ topNode: a, nodes: s, marks: l }); } -function $s(t, e) { +function Ws(t, e) { return e.nodes[t] || e.marks[t] || null; } -function Ud(t, e) { +function Yd(t, e) { return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e; } -const T0 = (t, e = 500) => { +function kc(t, e) { + const n = Cr.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div"); + return i.appendChild(n), i.innerHTML; +} +const A0 = (t, e = 500) => { let n = ""; const r = t.parentOffset; return t.parent.nodesBetween(Math.max(0, r - e), r, (i, o, a, s) => { @@ -9663,16 +9707,16 @@ const T0 = (t, e = 500) => { n += i.isAtom && !i.isText ? u : u.slice(0, Math.max(0, r - o)); }), n; }; -function Mc(t) { +function Pc(t) { return Object.prototype.toString.call(t) === "[object RegExp]"; } -class mo { +class fo { constructor(e) { this.find = e.find, this.handler = e.handler; } } -const C0 = (t, e) => { - if (Mc(e)) +const I0 = (t, e) => { + if (Pc(e)) return e.exec(t); const n = e(t); if (!n) @@ -9680,7 +9724,7 @@ const C0 = (t, e) => { const r = [n.text]; return r.index = n.index, r.input = t, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(n.replaceWith)), r; }; -function No(t) { +function Ao(t) { var e; const { editor: n, from: r, to: i, text: o, rules: a, plugin: s } = t, { view: l } = n; if (l.composing) @@ -9692,20 +9736,20 @@ function No(t) { ) return !1; let u = !1; - const d = T0(c) + o; + const d = A0(c) + o; return a.forEach((p) => { if (u) return; - const _ = C0(d, p.find); + const _ = I0(d, p.find); if (!_) return; - const m = l.state.tr, f = ss({ + const m = l.state.tr, f = ls({ state: l.state, transaction: m }), g = { from: r - (_[0].length - o.length), to: i - }, { commands: E, chain: S, can: b } = new ls({ + }, { commands: S, chain: E, can: b } = new cs({ editor: n, state: f }); @@ -9713,8 +9757,8 @@ function No(t) { state: f, range: g, match: _, - commands: E, - chain: S, + commands: S, + chain: E, can: b }) === null || !m.steps.length || (m.setMeta(s, { transform: m, @@ -9724,23 +9768,25 @@ function No(t) { }), l.dispatch(m), u = !0); }), u; } -function y0(t) { - const { editor: e, rules: n } = t, r = new be({ +function x0(t) { + const { editor: e, rules: n } = t, r = new Se({ state: { init() { return null; }, - apply(i, o) { - const a = i.getMeta(r); - if (a) - return a; - const s = i.getMeta("applyInputRules"); - return !!s && setTimeout(() => { - const { from: c, text: u } = s, d = c + u.length; - No({ + apply(i, o, a) { + const s = i.getMeta(r); + if (s) + return s; + const l = i.getMeta("applyInputRules"); + return !!l && setTimeout(() => { + let { text: u } = l; + typeof u == "string" ? u = u : u = kc(w.from(u), a.schema); + const { from: d } = l, p = d + u.length; + Ao({ editor: e, - from: c, - to: d, + from: d, + to: p, text: u, rules: n, plugin: r @@ -9750,7 +9796,7 @@ function y0(t) { }, props: { handleTextInput(i, o, a, s) { - return No({ + return Ao({ editor: e, from: o, to: a, @@ -9762,7 +9808,7 @@ function y0(t) { handleDOMEvents: { compositionend: (i) => (setTimeout(() => { const { $cursor: o } = i.state.selection; - o && No({ + o && Ao({ editor: e, from: o.pos, to: o.pos, @@ -9778,7 +9824,7 @@ function y0(t) { if (o.key !== "Enter") return !1; const { $cursor: a } = i.state.selection; - return a ? No({ + return a ? Ao({ editor: e, from: a.pos, to: a.pos, @@ -9794,16 +9840,16 @@ function y0(t) { }); return r; } -function v0(t) { +function D0(t) { return Object.prototype.toString.call(t).slice(8, -1); } -function Ao(t) { - return v0(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype; +function Io(t) { + return D0(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype; } -function us(t, e) { +function ds(t, e) { const n = { ...t }; - return Ao(t) && Ao(e) && Object.keys(e).forEach((r) => { - Ao(e[r]) && Ao(t[r]) ? n[r] = us(t[r], e[r]) : n[r] = e[r]; + return Io(t) && Io(e) && Object.keys(e).forEach((r) => { + Io(e[r]) && Io(t[r]) ? n[r] = ds(t[r], e[r]) : n[r] = e[r]; }), n; } class ft { @@ -9827,7 +9873,7 @@ class ft { configure(e = {}) { const n = this.extend({ ...this.config, - addOptions: () => us(this.options, e) + addOptions: () => ds(this.options, e) }); return n.name = this.name, n.parent = this.parent, n; } @@ -9852,16 +9898,16 @@ class ft { return !1; } } -function R0(t) { +function M0(t) { return typeof t == "number"; } -class O0 { +class w0 { constructor(e) { this.find = e.find, this.handler = e.handler; } } -const N0 = (t, e, n) => { - if (Mc(e)) +const L0 = (t, e, n) => { + if (Pc(e)) return [...t.matchAll(e)]; const r = e(t, n); return r ? r.map((i) => { @@ -9869,16 +9915,16 @@ const N0 = (t, e, n) => { return o.index = i.index, o.input = t, o.data = i.data, i.replaceWith && (i.text.includes(i.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), o.push(i.replaceWith)), o; }) : []; }; -function A0(t) { - const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: a, dropEvent: s } = t, { commands: l, chain: c, can: u } = new ls({ +function k0(t) { + const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: a, dropEvent: s } = t, { commands: l, chain: c, can: u } = new cs({ editor: e, state: n }), d = []; return n.doc.nodesBetween(r, i, (_, m) => { if (!_.isTextblock || _.type.spec.code) return; - const f = Math.max(r, m), g = Math.min(i, m + _.content.size), E = _.textBetween(f - m, g - m, void 0, ""); - N0(E, o.find, a).forEach((b) => { + const f = Math.max(r, m), g = Math.min(i, m + _.content.size), S = _.textBetween(f - m, g - m, void 0, ""); + L0(S, o.find, a).forEach((b) => { if (b.index === void 0) return; const h = f + b.index + 1, C = h + b[0].length, T = { @@ -9898,22 +9944,27 @@ function A0(t) { }); }), d.every((_) => _ !== null); } -const I0 = (t) => { +const P0 = (t) => { var e; const n = new ClipboardEvent("paste", { clipboardData: new DataTransfer() }); return (e = n.clipboardData) === null || e === void 0 || e.setData("text/html", t), n; }; -function x0(t) { +function F0(t) { const { editor: e, rules: n } = t; - let r = null, i = !1, o = !1, a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, s = typeof DragEvent < "u" ? new DragEvent("drop") : null; + let r = null, i = !1, o = !1, a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, s; + try { + s = typeof DragEvent < "u" ? new DragEvent("drop") : null; + } catch { + s = null; + } const l = ({ state: u, from: d, to: p, rule: _, pasteEvt: m }) => { - const f = u.tr, g = ss({ + const f = u.tr, g = ls({ state: u, transaction: f }); - if (!(!A0({ + if (!(!k0({ editor: e, state: g, from: Math.max(d - 1, 0), @@ -9921,10 +9972,16 @@ function x0(t) { rule: _, pasteEvent: m, dropEvent: s - }) || !f.steps.length)) - return s = typeof DragEvent < "u" ? new DragEvent("drop") : null, a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, f; + }) || !f.steps.length)) { + try { + s = typeof DragEvent < "u" ? new DragEvent("drop") : null; + } catch { + s = null; + } + return a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, f; + } }; - return n.map((u) => new be({ + return n.map((u) => new Se({ // we register a global drag handler to track the current drag source element view(d) { const p = (_) => { @@ -9948,21 +10005,23 @@ function x0(t) { } }, appendTransaction: (d, p, _) => { - const m = d[0], f = m.getMeta("uiEvent") === "paste" && !i, g = m.getMeta("uiEvent") === "drop" && !o, E = m.getMeta("applyPasteRules"), S = !!E; - if (!f && !g && !S) + const m = d[0], f = m.getMeta("uiEvent") === "paste" && !i, g = m.getMeta("uiEvent") === "drop" && !o, S = m.getMeta("applyPasteRules"), E = !!S; + if (!f && !g && !E) return; - if (S) { - const { from: C, text: T } = E, R = C + T.length, x = I0(T); + if (E) { + let { text: C } = S; + typeof C == "string" ? C = C : C = kc(w.from(C), _.schema); + const { from: T } = S, R = T + C.length, x = P0(C); return l({ rule: u, state: _, - from: C, + from: T, to: { b: R }, pasteEvt: x }); } const b = p.doc.content.findDiffStart(_.doc.content), h = p.doc.content.findDiffEnd(_.doc.content); - if (!(!R0(b) || !h || b === h.b)) + if (!(!M0(b) || !h || b === h.b)) return l({ rule: u, state: _, @@ -9973,13 +10032,13 @@ function x0(t) { } })); } -function D0(t) { +function B0(t) { const e = t.filter((n, r) => t.indexOf(n) !== r); return Array.from(new Set(e)); } class Yr { constructor(e, n) { - this.splittableMarks = [], this.editor = n, this.extensions = Yr.resolve(e), this.schema = b0(this.extensions, n), this.setupExtensions(); + this.splittableMarks = [], this.editor = n, this.extensions = Yr.resolve(e), this.schema = N0(this.extensions, n), this.setupExtensions(); } /** * Returns a flattened and sorted extension list while @@ -9988,7 +10047,7 @@ class Yr { * @returns An flattened and sorted array of Tiptap extensions */ static resolve(e) { - const n = Yr.sort(Yr.flatten(e)), r = D0(n.map((i) => i.name)); + const n = Yr.sort(Yr.flatten(e)), r = B0(n.map((i) => i.name)); return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n; } /** @@ -10028,7 +10087,7 @@ class Yr { options: n.options, storage: n.storage, editor: this.editor, - type: $s(n.name, this.schema) + type: Ws(n.name, this.schema) }, i = W(n, "addCommands", r); return i ? { ...e, @@ -10047,19 +10106,19 @@ class Yr { options: a.options, storage: a.storage, editor: e, - type: $s(a.name, this.schema) + type: Ws(a.name, this.schema) }, l = [], c = W(a, "addKeyboardShortcuts", s); let u = {}; if (a.type === "mark" && W(a, "exitable", s) && (u.ArrowRight = () => ft.handleExit({ editor: e, mark: a })), c) { - const f = Object.fromEntries(Object.entries(c()).map(([g, E]) => [g, () => E({ editor: e })])); + const f = Object.fromEntries(Object.entries(c()).map(([g, S]) => [g, () => S({ editor: e })])); u = { ...u, ...f }; } - const d = $b(u); + const d = jb(u); l.push(d); const p = W(a, "addInputRules", s); - Ud(a, e.options.enableInputRules) && p && r.push(...p()); + Yd(a, e.options.enableInputRules) && p && r.push(...p()); const _ = W(a, "addPasteRules", s); - Ud(a, e.options.enablePasteRules) && _ && i.push(..._()); + Yd(a, e.options.enablePasteRules) && _ && i.push(..._()); const m = W(a, "addProseMirrorPlugins", s); if (m) { const f = m(); @@ -10068,11 +10127,11 @@ class Yr { return l; }).flat(); return [ - y0({ + x0({ editor: e, rules: r }), - ...x0({ + ...F0({ editor: e, rules: i }), @@ -10084,14 +10143,14 @@ class Yr { * @returns An array of attributes */ get attributes() { - return gf(this.extensions); + return Cf(this.extensions); } /** * Get all node views from the extensions. * @returns An object with all node views where the key is the node name and the value is the node view function */ get nodeViews() { - const { editor: e } = this, { nodeExtensions: n } = cs(this.extensions); + const { editor: e } = this, { nodeExtensions: n } = us(this.extensions); return Object.fromEntries(n.filter((r) => !!W(r, "addNodeView")).map((r) => { const i = this.attributes.filter((l) => l.type === r.name), o = { name: r.name, @@ -10103,7 +10162,7 @@ class Yr { if (!a) return []; const s = (l, c, u, d, p) => { - const _ = Vl(l, i); + const _ = zl(l, i); return a()({ // pass-through node: l, @@ -10133,7 +10192,7 @@ class Yr { options: e.options, storage: e.storage, editor: this.editor, - type: $s(e.name, this.schema) + type: Ws(e.name, this.schema) }; e.type === "mark" && (!((n = le(W(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name); const i = W(e, "onBeforeCreate", r), o = W(e, "onCreate", r), a = W(e, "onUpdate", r), s = W(e, "onSelectionUpdate", r), l = W(e, "onTransaction", r), c = W(e, "onFocus", r), u = W(e, "onBlur", r), d = W(e, "onDestroy", r); @@ -10162,7 +10221,7 @@ class ge { configure(e = {}) { const n = this.extend({ ...this.config, - addOptions: () => us(this.options, e) + addOptions: () => ds(this.options, e) }); return n.name = this.name, n.parent = this.parent, n; } @@ -10176,7 +10235,7 @@ class ge { })), n; } } -function ds(t, e, n) { +function ps(t, e, n) { const { from: r, to: i } = e, { blockSeparator: o = ` `, textSerializers: a = {} } = n || {}; @@ -10196,10 +10255,10 @@ function ds(t, e, n) { l.isText && (s += (p = l == null ? void 0 : l.text) === null || p === void 0 ? void 0 : p.slice(Math.max(r, c) - c, i - c)); }), s; } -function Ef(t) { +function vf(t) { return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText])); } -const M0 = ge.create({ +const U0 = ge.create({ name: "clipboardTextSerializer", addOptions() { return { @@ -10208,12 +10267,12 @@ const M0 = ge.create({ }, addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("clipboardTextSerializer"), props: { clipboardTextSerializer: () => { - const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, a = Math.min(...o.map((u) => u.$from.pos)), s = Math.max(...o.map((u) => u.$to.pos)), l = Ef(n); - return ds(r, { from: a, to: s }, { + const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, a = Math.min(...o.map((u) => u.$from.pos)), s = Math.max(...o.map((u) => u.$to.pos)), l = vf(n); + return ps(r, { from: a, to: s }, { ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {}, textSerializers: l }); @@ -10222,10 +10281,10 @@ const M0 = ge.create({ }) ]; } -}), w0 = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => { +}), H0 = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => { var n; t.isDestroyed || (e.dom.blur(), (n = window == null ? void 0 : window.getSelection()) === null || n === void 0 || n.removeAllRanges()); -}), !0), L0 = (t = !1) => ({ commands: e }) => e.setContent("", t), k0 = () => ({ state: t, tr: e, dispatch: n }) => { +}), !0), G0 = (t = !1) => ({ commands: e }) => e.setContent("", t), V0 = () => ({ state: t, tr: e, dispatch: n }) => { const { selection: r } = e, { ranges: i } = r; return n && i.forEach(({ $from: o, $to: a }) => { t.doc.nodesBetween(o.pos, a.pos, (s, l) => { @@ -10242,12 +10301,12 @@ const M0 = ge.create({ (m || m === 0) && e.lift(_, m); }); }), !0; -}, P0 = (t) => (e) => t(e), F0 = () => ({ state: t, dispatch: e }) => i0(t, e), B0 = (t, e) => ({ editor: n, tr: r }) => { +}, Y0 = (t) => (e) => t(e), z0 = () => ({ state: t, dispatch: e }) => d0(t, e), $0 = (t, e) => ({ editor: n, tr: r }) => { const { state: i } = n, o = i.doc.slice(t.from, t.to); r.deleteRange(t.from, t.to); const a = r.mapping.map(e); return r.insert(a, o.content), r.setSelection(new Z(r.doc.resolve(a - 1))), !0; -}, U0 = () => ({ tr: t, dispatch: e }) => { +}, q0 = () => ({ tr: t, dispatch: e }) => { const { selection: n } = t, r = n.$anchor.node(); if (r.content.size > 0) return !1; @@ -10261,7 +10320,7 @@ const M0 = ge.create({ return !0; } return !1; -}, H0 = (t) => ({ tr: e, state: n, dispatch: r }) => { +}, W0 = (t) => ({ tr: e, state: n, dispatch: r }) => { const i = qe(t, n.schema), o = e.selection.$anchor; for (let a = o.depth; a > 0; a -= 1) if (o.node(a).type === i) { @@ -10272,37 +10331,39 @@ const M0 = ge.create({ return !0; } return !1; -}, G0 = (t) => ({ tr: e, dispatch: n }) => { +}, K0 = (t) => ({ tr: e, dispatch: n }) => { const { from: r, to: i } = t; return n && e.delete(r, i), !0; -}, V0 = () => ({ state: t, dispatch: e }) => qb(t, e), Y0 = () => ({ commands: t }) => t.keyboardShortcut("Enter"), z0 = () => ({ state: t, dispatch: e }) => r0(t, e); +}, Q0 = () => ({ state: t, dispatch: e }) => Jb(t, e), Z0 = () => ({ commands: t }) => t.keyboardShortcut("Enter"), X0 = () => ({ state: t, dispatch: e }) => u0(t, e); function ri(t, e, n = { strict: !0 }) { const r = Object.keys(e); - return r.length ? r.every((i) => n.strict ? e[i] === t[i] : Mc(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0; + return r.length ? r.every((i) => n.strict ? e[i] === t[i] : Pc(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0; } -function Yl(t, e, n = {}) { - return t.find((r) => r.type === e && ri(r.attrs, n)); +function Rf(t, e, n = {}) { + return t.find((r) => r.type === e && ri( + // Only check equality for the attributes that are provided + Object.fromEntries(Object.keys(n).map((i) => [i, r.attrs[i]])), + n + )); } -function $0(t, e, n = {}) { - return !!Yl(t, e, n); +function zd(t, e, n = {}) { + return !!Rf(t, e, n); } -function wc(t, e, n = {}) { +function Fc(t, e, n) { + var r; if (!t || !e) return; - let r = t.parent.childAfter(t.parentOffset); - if ((!r.node || !r.node.marks.some((c) => c.type === e)) && (r = t.parent.childBefore(t.parentOffset)), !r.node || !r.node.marks.some((c) => c.type === e)) - return; - const i = Yl([...r.node.marks], e, n); - if (!i) + let i = t.parent.childAfter(t.parentOffset); + if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = t.parent.childBefore(t.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (n = n || ((r = i.node.marks[0]) === null || r === void 0 ? void 0 : r.attrs), !Rf([...i.node.marks], e, n))) return; - let o = r.index, a = t.start() + r.offset, s = o + 1, l = a + r.node.nodeSize; - for (Yl([...r.node.marks], e, n); o > 0 && i.isInSet(t.parent.child(o - 1).marks); ) - o -= 1, a -= t.parent.child(o).nodeSize; - for (; s < t.parent.childCount && $0([...t.parent.child(s).marks], e, n); ) - l += t.parent.child(s).nodeSize, s += 1; + let a = i.index, s = t.start() + i.offset, l = a + 1, c = s + i.node.nodeSize; + for (; a > 0 && zd([...t.parent.child(a - 1).marks], e, n); ) + a -= 1, s -= t.parent.child(a).nodeSize; + for (; l < t.parent.childCount && zd([...t.parent.child(l).marks], e, n); ) + c += t.parent.child(l).nodeSize, l += 1; return { - from: a, - to: l + from: s, + to: c }; } function En(t, e) { @@ -10313,30 +10374,30 @@ function En(t, e) { } return t; } -const q0 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { +const j0 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { const o = En(t, r.schema), { doc: a, selection: s } = n, { $from: l, from: c, to: u } = s; if (i) { - const d = wc(l, o, e); + const d = Fc(l, o, e); if (d && d.from <= c && d.to >= u) { const p = Z.create(a, d.from, d.to); n.setSelection(p); } } return !0; -}, W0 = (t) => (e) => { +}, J0 = (t) => (e) => { const n = typeof t == "function" ? t(e) : t; for (let r = 0; r < n.length; r += 1) if (n[r](e)) return !0; return !1; }; -function Lc(t) { +function Bc(t) { return t instanceof Z; } function fn(t = 0, e = 0, n = 0) { return Math.min(Math.max(t, e), n); } -function Sf(t, e = null) { +function Of(t, e = null) { if (!e) return null; const n = te.atStart(t), r = te.atEnd(t); @@ -10347,7 +10408,7 @@ function Sf(t, e = null) { const i = n.from, o = r.to; return e === "all" ? Z.create(t, fn(0, i, o), fn(t.content.size, i, o)) : Z.create(t, fn(e, i, o), fn(e, i, o)); } -function kc() { +function Uc() { return [ "iPad Simulator", "iPhone Simulator", @@ -10357,35 +10418,37 @@ function kc() { "iPod" ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document; } -const K0 = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => { +const eT = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => { e = { scrollIntoView: !0, ...e }; const a = () => { - kc() && r.dom.focus(), requestAnimationFrame(() => { + Uc() && r.dom.focus(), requestAnimationFrame(() => { n.isDestroyed || (r.focus(), e != null && e.scrollIntoView && n.commands.scrollIntoView()); }); }; if (r.hasFocus() && t === null || t === !1) return !0; - if (o && t === null && !Lc(n.state.selection)) + if (o && t === null && !Bc(n.state.selection)) return a(), !0; - const s = Sf(i.doc, t) || n.state.selection, l = n.state.selection.eq(s); + const s = Of(i.doc, t) || n.state.selection, l = n.state.selection.eq(s); return o && (l || i.setSelection(s), l && i.storedMarks && i.setStoredMarks(i.storedMarks), a()), !0; -}, Q0 = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), Z0 = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bf = (t) => { +}, tT = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), nT = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Nf = (t) => { const e = t.childNodes; for (let n = e.length - 1; n >= 0; n -= 1) { const r = e[n]; - r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? t.removeChild(r) : r.nodeType === 1 && bf(r); + r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? t.removeChild(r) : r.nodeType === 1 && Nf(r); } return t; }; -function Io(t) { +function xo(t) { const e = `${t}`, n = new window.DOMParser().parseFromString(e, "text/html").body; - return bf(n); + return Nf(n); } -function Ea(t, e, n) { +function Sa(t, e, n) { + if (t instanceof Fn || t instanceof w) + return t; n = { slice: !0, parseOptions: {}, @@ -10395,18 +10458,18 @@ function Ea(t, e, n) { if (r) try { if (Array.isArray(t) && t.length > 0) - return L.fromArray(t.map((s) => e.nodeFromJSON(s))); + return w.fromArray(t.map((s) => e.nodeFromJSON(s))); const a = e.nodeFromJSON(t); return n.errorOnInvalidContent && a.check(), a; } catch (o) { if (n.errorOnInvalidContent) throw new Error("[tiptap error]: Invalid JSON content", { cause: o }); - return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", o), Ea("", e, n); + return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", o), Sa("", e, n); } if (i) { if (n.errorOnInvalidContent) { let a = !1, s = ""; - const l = new dm({ + const l = new gm({ topNode: e.spec.topNode, marks: e.spec.marks, // Prosemirror's schemas are executed such that: the last to execute, matches last @@ -10424,15 +10487,15 @@ function Ea(t, e, n) { } }) }); - if (n.slice ? Wr.fromSchema(l).parseSlice(Io(t), n.parseOptions) : Wr.fromSchema(l).parse(Io(t), n.parseOptions), n.errorOnInvalidContent && a) + if (n.slice ? Wr.fromSchema(l).parseSlice(xo(t), n.parseOptions) : Wr.fromSchema(l).parse(xo(t), n.parseOptions), n.errorOnInvalidContent && a) throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${s}`) }); } const o = Wr.fromSchema(e); - return n.slice ? o.parseSlice(Io(t), n.parseOptions).content : o.parse(Io(t), n.parseOptions); + return n.slice ? o.parseSlice(xo(t), n.parseOptions).content : o.parse(xo(t), n.parseOptions); } - return Ea("", e, n); + return Sa("", e, n); } -function X0(t, e, n) { +function rT(t, e, n) { const r = t.steps.length - 1; if (r < e) return; @@ -10445,7 +10508,7 @@ function X0(t, e, n) { a === 0 && (a = u); }), t.setSelection(te.near(t.doc.resolve(a), n)); } -const j0 = (t) => !("type" in t), J0 = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => { +const iT = (t) => !("type" in t), oT = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => { var a; if (i) { n = { @@ -10457,7 +10520,7 @@ const j0 = (t) => !("type" in t), J0 = (t, e, n) => ({ tr: r, dispatch: i, edito }; let s; try { - s = Ea(e, o.schema, { + s = Sa(e, o.schema, { parseOptions: { preserveWhitespace: "full", ...n.parseOptions @@ -10474,35 +10537,47 @@ const j0 = (t) => !("type" in t), J0 = (t, e, n) => ({ tr: r, dispatch: i, edito }), !1; } let { from: l, to: c } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, u = !0, d = !0; - if ((j0(s) ? s : [s]).forEach((m) => { + if ((iT(s) ? s : [s]).forEach((m) => { m.check(), u = u ? m.isText && m.marks.length === 0 : !1, d = d ? m.isBlock : !1; }), l === c && d) { const { parent: m } = r.doc.resolve(l); m.isTextblock && !m.type.spec.code && !m.childCount && (l -= 1, c += 1); } let _; - u ? (Array.isArray(e) ? _ = e.map((m) => m.text || "").join("") : typeof e == "object" && e && e.text ? _ = e.text : _ = e, r.insertText(_, l, c)) : (_ = s, r.replaceWith(l, c, _)), n.updateSelection && X0(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: l, text: _ }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: _ }); + if (u) { + if (Array.isArray(e)) + _ = e.map((m) => m.text || "").join(""); + else if (e instanceof w) { + let m = ""; + e.forEach((f) => { + f.text && (m += f.text); + }), _ = m; + } else typeof e == "object" && e && e.text ? _ = e.text : _ = e; + r.insertText(_, l, c); + } else + _ = s, r.replaceWith(l, c, _); + n.updateSelection && rT(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: l, text: _ }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: _ }); } return !0; -}, eT = () => ({ state: t, dispatch: e }) => Jb(t, e), tT = () => ({ state: t, dispatch: e }) => e0(t, e), nT = () => ({ state: t, dispatch: e }) => Wb(t, e), rT = () => ({ state: t, dispatch: e }) => Xb(t, e), iT = () => ({ state: t, dispatch: e, tr: n }) => { +}, aT = () => ({ state: t, dispatch: e }) => a0(t, e), sT = () => ({ state: t, dispatch: e }) => s0(t, e), lT = () => ({ state: t, dispatch: e }) => e0(t, e), cT = () => ({ state: t, dispatch: e }) => i0(t, e), uT = () => ({ state: t, dispatch: e, tr: n }) => { try { - const r = es(t.doc, t.selection.$from.pos, -1); + const r = ts(t.doc, t.selection.$from.pos, -1); return r == null ? !1 : (n.join(r, 2), e && e(n), !0); } catch { return !1; } -}, oT = () => ({ state: t, dispatch: e, tr: n }) => { +}, dT = () => ({ state: t, dispatch: e, tr: n }) => { try { - const r = es(t.doc, t.selection.$from.pos, 1); + const r = ts(t.doc, t.selection.$from.pos, 1); return r == null ? !1 : (n.join(r, 2), e && e(n), !0); } catch { return !1; } -}, aT = () => ({ state: t, dispatch: e }) => Kb(t, e), sT = () => ({ state: t, dispatch: e }) => Qb(t, e); -function Tf() { +}, pT = () => ({ state: t, dispatch: e }) => t0(t, e), _T = () => ({ state: t, dispatch: e }) => n0(t, e); +function Af() { return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1; } -function lT(t) { +function mT(t) { const e = t.split(/-(?!$)/); let n = e[e.length - 1]; n === "Space" && (n = " "); @@ -10518,14 +10593,14 @@ function lT(t) { else if (/^s(hift)?$/i.test(l)) o = !0; else if (/^mod$/i.test(l)) - kc() || Tf() ? a = !0 : i = !0; + Uc() || Af() ? a = !0 : i = !0; else throw new Error(`Unrecognized modifier name: ${l}`); } return r && (n = `Alt-${n}`), i && (n = `Ctrl-${n}`), a && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n; } -const cT = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => { - const o = lT(t).split(/-(?!$)/), a = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), s = new KeyboardEvent("keydown", { +const fT = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => { + const o = mT(t).split(/-(?!$)/), a = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), s = new KeyboardEvent("keydown", { key: a === "Space" ? " " : a, altKey: o.includes("Alt"), ctrlKey: o.includes("Ctrl"), @@ -10556,46 +10631,46 @@ function hr(t, e, n = {}) { const l = i - r, c = s.filter((d) => a ? a.name === d.node.type.name : !0).filter((d) => ri(d.node.attrs, n, { strict: !1 })); return o ? !!c.length : c.reduce((d, p) => d + p.to - p.from, 0) >= l; } -const uT = (t, e = {}) => ({ state: n, dispatch: r }) => { +const gT = (t, e = {}) => ({ state: n, dispatch: r }) => { const i = qe(t, n.schema); - return hr(n, i, e) ? t0(n, r) : !1; -}, dT = () => ({ state: t, dispatch: e }) => o0(t, e), pT = (t) => ({ state: e, dispatch: n }) => { + return hr(n, i, e) ? l0(n, r) : !1; +}, hT = () => ({ state: t, dispatch: e }) => p0(t, e), ET = (t) => ({ state: e, dispatch: n }) => { const r = qe(t, e.schema); - return _0(r)(e, n); -}, _T = () => ({ state: t, dispatch: e }) => n0(t, e); -function ps(t, e) { + return b0(r)(e, n); +}, ST = () => ({ state: t, dispatch: e }) => c0(t, e); +function _s(t, e) { return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null; } -function Hd(t, e) { +function $d(t, e) { const n = typeof e == "string" ? [e] : e; return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {}); } -const mT = (t, e) => ({ tr: n, state: r, dispatch: i }) => { +const bT = (t, e) => ({ tr: n, state: r, dispatch: i }) => { let o = null, a = null; - const s = ps(typeof t == "string" ? t : t.name, r.schema); + const s = _s(typeof t == "string" ? t : t.name, r.schema); return s ? (s === "node" && (o = qe(t, r.schema)), s === "mark" && (a = En(t, r.schema)), i && n.selection.ranges.forEach((l) => { r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => { - o && o === c.type && n.setNodeMarkup(u, void 0, Hd(c.attrs, e)), a && c.marks.length && c.marks.forEach((d) => { - a === d.type && n.addMark(u, u + c.nodeSize, a.create(Hd(d.attrs, e))); + o && o === c.type && n.setNodeMarkup(u, void 0, $d(c.attrs, e)), a && c.marks.length && c.marks.forEach((d) => { + a === d.type && n.addMark(u, u + c.nodeSize, a.create($d(d.attrs, e))); }); }); }), !0) : !1; -}, fT = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), gT = () => ({ tr: t, commands: e }) => e.setTextSelection({ +}, TT = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), CT = () => ({ tr: t, commands: e }) => e.setTextSelection({ from: 0, to: t.doc.content.size -}), hT = () => ({ state: t, dispatch: e }) => Zb(t, e), ET = () => ({ state: t, dispatch: e }) => jb(t, e), ST = () => ({ state: t, dispatch: e }) => a0(t, e), bT = () => ({ state: t, dispatch: e }) => c0(t, e), TT = () => ({ state: t, dispatch: e }) => l0(t, e); -function zl(t, e, n = {}, r = {}) { - return Ea(t, e, { +}), yT = () => ({ state: t, dispatch: e }) => r0(t, e), vT = () => ({ state: t, dispatch: e }) => o0(t, e), RT = () => ({ state: t, dispatch: e }) => _0(t, e), OT = () => ({ state: t, dispatch: e }) => g0(t, e), NT = () => ({ state: t, dispatch: e }) => f0(t, e); +function $l(t, e, n = {}, r = {}) { + return Sa(t, e, { slice: !1, parseOptions: n, errorOnInvalidContent: r.errorOnInvalidContent }); } -const CT = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, commands: s }) => { +const AT = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, commands: s }) => { var l, c; const { doc: u } = o; if (n.preserveWhitespace !== "full") { - const d = zl(t, i.schema, n, { + const d = $l(t, i.schema, n, { errorOnInvalidContent: (l = r.errorOnInvalidContent) !== null && l !== void 0 ? l : i.options.enableContentCheck }); return a && o.replaceWith(0, u.content.size, d).setMeta("preventUpdate", !e), !0; @@ -10605,7 +10680,7 @@ const CT = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, comm errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck }); }; -function Pc(t, e) { +function Hc(t, e) { const n = En(e, t.schema), { from: r, to: i, empty: o } = t.selection, a = []; o ? (t.storedMarks && a.push(...t.storedMarks), a.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (l) => { a.push(...l.marks); @@ -10613,15 +10688,15 @@ function Pc(t, e) { const s = a.find((l) => l.type.name === n.name); return s ? { ...s.attrs } : {}; } -function yT(t, e) { - const n = new Sc(t); +function IT(t, e) { + const n = new Cc(t); return e.forEach((r) => { r.steps.forEach((i) => { n.step(i); }); }), n; } -function vT(t) { +function xT(t) { for (let e = 0; e < t.edgeCount; e += 1) { const { type: n } = t.edge(e); if (n.isTextblock && !n.hasRequiredAttrs()) @@ -10629,7 +10704,7 @@ function vT(t) { } return null; } -function $l(t, e) { +function ql(t, e) { const n = []; return t.descendants((r, i) => { e(r) && n.push({ @@ -10638,7 +10713,7 @@ function $l(t, e) { }); }), n; } -function RT(t, e, n) { +function DT(t, e, n) { const r = []; return t.nodesBetween(e.from, e.to, (i, o) => { n(i) && r.push({ @@ -10647,7 +10722,7 @@ function RT(t, e, n) { }); }), r; } -function Cf(t, e) { +function If(t, e) { for (let n = t.depth; n > 0; n -= 1) { const r = t.node(n); if (e(r)) @@ -10659,21 +10734,17 @@ function Cf(t, e) { }; } } -function _s(t) { - return (e) => Cf(e.$from, t); -} -function OT(t, e) { - const n = Cr.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div"); - return i.appendChild(n), i.innerHTML; +function ms(t) { + return (e) => If(e.$from, t); } -function NT(t, e) { +function MT(t, e) { const n = { from: 0, to: t.content.size }; - return ds(t, n, e); + return ps(t, n, e); } -function AT(t, e) { +function wT(t, e) { const n = qe(e, t.schema), { from: r, to: i } = t.selection, o = []; t.doc.nodesBetween(r, i, (s) => { o.push(s); @@ -10681,22 +10752,22 @@ function AT(t, e) { const a = o.reverse().find((s) => s.type.name === n.name); return a ? { ...a.attrs } : {}; } -function yf(t, e) { - const n = ps(typeof e == "string" ? e : e.name, t.schema); - return n === "node" ? AT(t, e) : n === "mark" ? Pc(t, e) : {}; +function xf(t, e) { + const n = _s(typeof e == "string" ? e : e.name, t.schema); + return n === "node" ? wT(t, e) : n === "mark" ? Hc(t, e) : {}; } -function IT(t, e = JSON.stringify) { +function LT(t, e = JSON.stringify) { const n = {}; return t.filter((r) => { const i = e(r); return Object.prototype.hasOwnProperty.call(n, i) ? !1 : n[i] = !0; }); } -function xT(t) { - const e = IT(t); +function kT(t) { + const e = LT(t); return e.length === 1 ? e : e.filter((n, r) => !e.filter((o, a) => a !== r).some((o) => n.oldRange.from >= o.oldRange.from && n.oldRange.to <= o.oldRange.to && n.newRange.from >= o.newRange.from && n.newRange.to <= o.newRange.to)); } -function DT(t) { +function PT(t) { const { mapping: e, steps: n } = t, r = []; return e.maps.forEach((i, o) => { const a = []; @@ -10723,12 +10794,12 @@ function DT(t) { } }); }); - }), xT(r); + }), kT(r); } -function Fc(t, e, n) { +function Gc(t, e, n) { const r = []; return t === e ? n.resolve(t).marks().forEach((i) => { - const o = n.resolve(t), a = wc(o, i.type); + const o = n.resolve(t), a = Fc(o, i.type); a && r.push({ mark: i, ...a @@ -10741,13 +10812,13 @@ function Fc(t, e, n) { }))); }), r; } -function jo(t, e, n) { +function Jo(t, e, n) { return Object.fromEntries(Object.entries(n).filter(([r]) => { const i = t.find((o) => o.type === e && o.name === r); return i ? i.attribute.keepOnSplit : !1; })); } -function ql(t, e, n = {}) { +function Wl(t, e, n = {}) { const { empty: r, ranges: i } = t.selection, o = e ? En(e, t.schema) : null; if (r) return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => ri(d.attrs, n, { strict: !1 })); @@ -10758,11 +10829,11 @@ function ql(t, e, n = {}) { t.doc.nodesBetween(_, m, (f, g) => { if (!f.isText && !f.marks.length) return; - const E = Math.max(_, g), S = Math.min(m, g + f.nodeSize), b = S - E; + const S = Math.max(_, g), E = Math.min(m, g + f.nodeSize), b = E - S; a += b, s.push(...f.marks.map((h) => ({ mark: h, - from: E, - to: S + from: S, + to: E }))); }); }), a === 0) @@ -10770,14 +10841,14 @@ function ql(t, e, n = {}) { const l = s.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) => ri(d.mark.attrs, n, { strict: !1 })).reduce((d, p) => d + p.to - p.from, 0), c = s.filter((d) => o ? d.mark.type !== o && d.mark.type.excludes(o) : !0).reduce((d, p) => d + p.to - p.from, 0); return (l > 0 ? l + c : l) >= a; } -function MT(t, e, n = {}) { +function FT(t, e, n = {}) { if (!e) - return hr(t, null, n) || ql(t, null, n); - const r = ps(e, t.schema); - return r === "node" ? hr(t, e, n) : r === "mark" ? ql(t, e, n) : !1; + return hr(t, null, n) || Wl(t, null, n); + const r = _s(e, t.schema); + return r === "node" ? hr(t, e, n) : r === "mark" ? Wl(t, e, n) : !1; } -function Gd(t, e) { - const { nodeExtensions: n } = cs(e), r = n.find((a) => a.name === t); +function qd(t, e) { + const { nodeExtensions: n } = us(e), r = n.find((a) => a.name === t); if (!r) return !1; const i = { @@ -10787,7 +10858,7 @@ function Gd(t, e) { }, o = le(W(r, "group", i)); return typeof o != "string" ? !1 : o.split(" ").includes("list"); } -function ms(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) { +function fs(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) { var r; if (n) { if (t.type.name === "hardBreak") @@ -10804,16 +10875,16 @@ function ms(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) { if (e) { let i = !0; return t.content.forEach((o) => { - i !== !1 && (ms(o, { ignoreWhitespace: n, checkChildren: e }) || (i = !1)); + i !== !1 && (fs(o, { ignoreWhitespace: n, checkChildren: e }) || (i = !1)); }), i; } return !1; } -function vf(t) { +function Df(t) { return t instanceof ee; } -function Wi(t, e, n) { - const i = t.state.doc.content.size, o = fn(e, 0, i), a = fn(n, 0, i), s = t.coordsAtPos(o), l = t.coordsAtPos(a, -1), c = Math.min(s.top, l.top), u = Math.max(s.bottom, l.bottom), d = Math.min(s.left, l.left), p = Math.max(s.right, l.right), _ = p - d, m = u - c, E = { +function Ki(t, e, n) { + const i = t.state.doc.content.size, o = fn(e, 0, i), a = fn(n, 0, i), s = t.coordsAtPos(o), l = t.coordsAtPos(a, -1), c = Math.min(s.top, l.top), u = Math.max(s.bottom, l.bottom), d = Math.min(s.left, l.left), p = Math.max(s.right, l.right), _ = p - d, m = u - c, S = { top: c, bottom: u, left: d, @@ -10824,15 +10895,15 @@ function Wi(t, e, n) { y: c }; return { - ...E, - toJSON: () => E + ...S, + toJSON: () => S }; } -function wT(t, e, n) { +function BT(t, e, n) { var r; const { selection: i } = e; let o = null; - if (Lc(i) && (o = i.$cursor), o) { + if (Bc(i) && (o = i.$cursor), o) { const s = (r = t.storedMarks) !== null && r !== void 0 ? r : o.marks(); return !!n.isInSet(s) || !s.some((l) => l.type.excludes(n)); } @@ -10850,11 +10921,11 @@ function wT(t, e, n) { }), c; }); } -const LT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { +const UT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { const { selection: o } = n, { empty: a, ranges: s } = o, l = En(t, r.schema); if (i) if (a) { - const c = Pc(r, l); + const c = Hc(r, l); n.addStoredMark(l.create({ ...c, ...e @@ -10864,48 +10935,49 @@ const LT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { const u = c.$from.pos, d = c.$to.pos; r.doc.nodesBetween(u, d, (p, _) => { const m = Math.max(_, u), f = Math.min(_ + p.nodeSize, d); - p.marks.find((E) => E.type === l) ? p.marks.forEach((E) => { - l === E.type && n.addMark(m, f, l.create({ - ...E.attrs, + p.marks.find((S) => S.type === l) ? p.marks.forEach((S) => { + l === S.type && n.addMark(m, f, l.create({ + ...S.attrs, ...e })); }) : n.addMark(m, f, l.create(e)); }); }); - return wT(r, n, l); -}, kT = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), PT = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => { + return BT(r, n, l); +}, HT = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), GT = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => { const o = qe(t, n.schema); - return o.isTextblock ? i().command(({ commands: a }) => Pd(o, e)(n) ? !0 : a.clearNodes()).command(({ state: a }) => Pd(o, e)(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1); -}, FT = (t) => ({ tr: e, dispatch: n }) => { + let a; + return n.selection.$anchor.sameParent(n.selection.$head) && (a = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: s }) => Hd(o, { ...a, ...e })(n) ? !0 : s.clearNodes()).command(({ state: s }) => Hd(o, { ...a, ...e })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1); +}, VT = (t) => ({ tr: e, dispatch: n }) => { if (n) { const { doc: r } = e, i = fn(t, 0, r.content.size), o = ee.create(r, i); e.setSelection(o); } return !0; -}, BT = (t) => ({ tr: e, dispatch: n }) => { +}, YT = (t) => ({ tr: e, dispatch: n }) => { if (n) { const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, a = Z.atStart(r).from, s = Z.atEnd(r).to, l = fn(i, a, s), c = fn(o, a, s), u = Z.create(r, l, c); e.setSelection(u); } return !0; -}, UT = (t) => ({ state: e, dispatch: n }) => { +}, zT = (t) => ({ state: e, dispatch: n }) => { const r = qe(t, e.schema); - return g0(r)(e, n); + return y0(r)(e, n); }; -function Vd(t, e) { +function Wd(t, e) { const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks(); if (n) { const r = n.filter((i) => e == null ? void 0 : e.includes(i.type.name)); t.tr.ensureMarks(r); } } -const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => { - const { selection: o, doc: a } = e, { $from: s, $to: l } = o, c = i.extensionManager.attributes, u = jo(c, s.node().type.name, s.node().attrs); +const $T = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => { + const { selection: o, doc: a } = e, { $from: s, $to: l } = o, c = i.extensionManager.attributes, u = Jo(c, s.node().type.name, s.node().attrs); if (o instanceof ee && o.node.isBlock) - return !s.parentOffset || !Qr(a, s.pos) ? !1 : (r && (t && Vd(n, i.extensionManager.splittableMarks), e.split(s.pos).scrollIntoView()), !0); + return !s.parentOffset || !Qr(a, s.pos) ? !1 : (r && (t && Wd(n, i.extensionManager.splittableMarks), e.split(s.pos).scrollIntoView()), !0); if (!s.parent.isBlock) return !1; - const d = l.parentOffset === l.parent.content.size, p = s.depth === 0 ? void 0 : vT(s.node(-1).contentMatchAt(s.indexAfter(-1))); + const d = l.parentOffset === l.parent.content.size, p = s.depth === 0 ? void 0 : xT(s.node(-1).contentMatchAt(s.indexAfter(-1))); let _ = d && p ? [ { type: p, @@ -10922,10 +10994,10 @@ const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit const f = e.mapping.map(s.before()), g = e.doc.resolve(f); s.node(-1).canReplaceWith(g.index(), g.index() + 1, p) && e.setNodeMarkup(e.mapping.map(s.before()), p); } - t && Vd(n, i.extensionManager.splittableMarks), e.scrollIntoView(); + t && Wd(n, i.extensionManager.splittableMarks), e.scrollIntoView(); } return m; -}, GT = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => { +}, qT = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => { var a; const s = qe(t, r.schema), { $from: l, $to: c } = r.selection, u = r.selection.node; if (u && u.isBlock || l.depth < 2 || !l.sameParent(c)) @@ -10938,17 +11010,17 @@ const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit if (l.depth === 2 || l.node(-3).type !== s || l.index(-2) !== l.node(-2).childCount - 1) return !1; if (i) { - let E = L.empty; - const S = l.index(-1) ? 1 : l.index(-2) ? 2 : 3; - for (let x = l.depth - S; x >= l.depth - 3; x -= 1) - E = L.from(l.node(x).copy(E)); + let S = w.empty; + const E = l.index(-1) ? 1 : l.index(-2) ? 2 : 3; + for (let x = l.depth - E; x >= l.depth - 3; x -= 1) + S = w.from(l.node(x).copy(S)); const b = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, h = { - ...jo(p, l.node().type.name, l.node().attrs), + ...Jo(p, l.node().type.name, l.node().attrs), ...e }, C = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(h)) || void 0; - E = E.append(L.from(s.createAndFill(null, C) || void 0)); - const T = l.before(l.depth - (S - 1)); - n.replace(T, l.after(-b), new H(E, 4 - S, 0)); + S = S.append(w.from(s.createAndFill(null, C) || void 0)); + const T = l.before(l.depth - (E - 1)); + n.replace(T, l.after(-b), new H(S, 4 - E, 0)); let R = -1; n.doc.nodesBetween(T, n.doc.content.size, (x, O) => { if (R > -1) @@ -10959,10 +11031,10 @@ const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit return !0; } const _ = c.pos === l.end() ? d.contentMatchAt(0).defaultType : null, m = { - ...jo(p, d.type.name, d.attrs), + ...Jo(p, d.type.name, d.attrs), ...e }, f = { - ...jo(p, l.node().type.name, l.node().attrs), + ...Jo(p, l.node().type.name, l.node().attrs), ...e }; n.delete(l.pos, c.pos); @@ -10973,57 +11045,57 @@ const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit if (!Qr(n.doc, l.pos, 2)) return !1; if (i) { - const { selection: E, storedMarks: S } = r, { splittableMarks: b } = o.extensionManager, h = S || E.$to.parentOffset && E.$from.marks(); + const { selection: S, storedMarks: E } = r, { splittableMarks: b } = o.extensionManager, h = E || S.$to.parentOffset && S.$from.marks(); if (n.split(l.pos, 2, g).scrollIntoView(), !h || !i) return !0; const C = h.filter((T) => b.includes(T.type.name)); n.ensureMarks(C); } return !0; -}, qs = (t, e) => { - const n = _s((a) => a.type === e)(t.selection); +}, Ks = (t, e) => { + const n = ms((a) => a.type === e)(t.selection); if (!n) return !0; const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth); if (r === void 0) return !0; const i = t.doc.nodeAt(r); - return n.node.type === (i == null ? void 0 : i.type) && zn(t.doc, n.pos) && t.join(n.pos), !0; -}, Ws = (t, e) => { - const n = _s((a) => a.type === e)(t.selection); + return n.node.type === (i == null ? void 0 : i.type) && $n(t.doc, n.pos) && t.join(n.pos), !0; +}, Qs = (t, e) => { + const n = ms((a) => a.type === e)(t.selection); if (!n) return !0; const r = t.doc.resolve(n.start).after(n.depth); if (r === void 0) return !0; const i = t.doc.nodeAt(r); - return n.node.type === (i == null ? void 0 : i.type) && zn(t.doc, r) && t.join(r), !0; -}, VT = (t, e, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: u }) => { - const { extensions: d, splittableMarks: p } = i.extensionManager, _ = qe(t, a.schema), m = qe(e, a.schema), { selection: f, storedMarks: g } = a, { $from: E, $to: S } = f, b = E.blockRange(S), h = g || f.$to.parentOffset && f.$from.marks(); + return n.node.type === (i == null ? void 0 : i.type) && $n(t.doc, r) && t.join(r), !0; +}, WT = (t, e, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: u }) => { + const { extensions: d, splittableMarks: p } = i.extensionManager, _ = qe(t, a.schema), m = qe(e, a.schema), { selection: f, storedMarks: g } = a, { $from: S, $to: E } = f, b = S.blockRange(E), h = g || f.$to.parentOffset && f.$from.marks(); if (!b) return !1; - const C = _s((T) => Gd(T.type.name, d))(f); + const C = ms((T) => qd(T.type.name, d))(f); if (b.depth >= 1 && C && b.depth - C.depth <= 1) { if (C.node.type === _) return c.liftListItem(m); - if (Gd(C.node.type.name, d) && _.validContent(C.node.content) && s) - return l().command(() => (o.setNodeMarkup(C.pos, _), !0)).command(() => qs(o, _)).command(() => Ws(o, _)).run(); + if (qd(C.node.type.name, d) && _.validContent(C.node.content) && s) + return l().command(() => (o.setNodeMarkup(C.pos, _), !0)).command(() => Ks(o, _)).command(() => Qs(o, _)).run(); } - return !n || !h || !s ? l().command(() => u().wrapInList(_, r) ? !0 : c.clearNodes()).wrapInList(_, r).command(() => qs(o, _)).command(() => Ws(o, _)).run() : l().command(() => { + return !n || !h || !s ? l().command(() => u().wrapInList(_, r) ? !0 : c.clearNodes()).wrapInList(_, r).command(() => Ks(o, _)).command(() => Qs(o, _)).run() : l().command(() => { const T = u().wrapInList(_, r), R = h.filter((x) => p.includes(x.type.name)); return o.ensureMarks(R), T ? !0 : c.clearNodes(); - }).wrapInList(_, r).command(() => qs(o, _)).command(() => Ws(o, _)).run(); -}, YT = (t, e = {}, n = {}) => ({ state: r, commands: i }) => { + }).wrapInList(_, r).command(() => Ks(o, _)).command(() => Qs(o, _)).run(); +}, KT = (t, e = {}, n = {}) => ({ state: r, commands: i }) => { const { extendEmptyMarkRange: o = !1 } = n, a = En(t, r.schema); - return ql(r, a, e) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, e); -}, zT = (t, e, n = {}) => ({ state: r, commands: i }) => { + return Wl(r, a, e) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, e); +}, QT = (t, e, n = {}) => ({ state: r, commands: i }) => { const o = qe(t, r.schema), a = qe(e, r.schema), s = hr(r, o, n); let l; return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), s ? i.setNode(a, l) : i.setNode(o, { ...l, ...n }); -}, $T = (t, e = {}) => ({ state: n, commands: r }) => { +}, ZT = (t, e = {}) => ({ state: n, commands: r }) => { const i = qe(t, n.schema); return hr(n, i, e) ? r.lift(i) : r.wrapIn(i, e); -}, qT = () => ({ state: t, dispatch: e }) => { +}, XT = () => ({ state: t, dispatch: e }) => { const n = t.plugins; for (let r = 0; r < n.length; r += 1) { const i = n[r]; @@ -11043,125 +11115,136 @@ const HT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit } } return !1; -}, WT = () => ({ tr: t, dispatch: e }) => { +}, jT = () => ({ tr: t, dispatch: e }) => { const { selection: n } = t, { empty: r, ranges: i } = n; return r || e && i.forEach((o) => { t.removeMark(o.$from.pos, o.$to.pos); }), !0; -}, KT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { +}, JT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { var o; const { extendEmptyMarkRange: a = !1 } = e, { selection: s } = n, l = En(t, r.schema), { $from: c, empty: u, ranges: d } = s; if (!i) return !0; if (u && a) { let { from: p, to: _ } = s; - const m = (o = c.marks().find((g) => g.type === l)) === null || o === void 0 ? void 0 : o.attrs, f = wc(c, l, m); + const m = (o = c.marks().find((g) => g.type === l)) === null || o === void 0 ? void 0 : o.attrs, f = Fc(c, l, m); f && (p = f.from, _ = f.to), n.removeMark(p, _, l); } else d.forEach((p) => { n.removeMark(p.$from.pos, p.$to.pos, l); }); return n.removeStoredMark(l), !0; -}, QT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { +}, eC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => { let o = null, a = null; - const s = ps(typeof t == "string" ? t : t.name, r.schema); + const s = _s(typeof t == "string" ? t : t.name, r.schema); return s ? (s === "node" && (o = qe(t, r.schema)), s === "mark" && (a = En(t, r.schema)), i && n.selection.ranges.forEach((l) => { const c = l.$from.pos, u = l.$to.pos; - r.doc.nodesBetween(c, u, (d, p) => { - o && o === d.type && n.setNodeMarkup(p, void 0, { - ...d.attrs, + let d, p, _, m; + n.selection.empty ? r.doc.nodesBetween(c, u, (f, g) => { + o && o === f.type && (_ = Math.max(g, c), m = Math.min(g + f.nodeSize, u), d = g, p = f); + }) : r.doc.nodesBetween(c, u, (f, g) => { + g < c && o && o === f.type && (_ = Math.max(g, c), m = Math.min(g + f.nodeSize, u), d = g, p = f), g >= c && g <= u && (o && o === f.type && n.setNodeMarkup(g, void 0, { + ...f.attrs, ...e - }), a && d.marks.length && d.marks.forEach((_) => { - if (a === _.type) { - const m = Math.max(p, c), f = Math.min(p + d.nodeSize, u); - n.addMark(m, f, a.create({ - ..._.attrs, + }), a && f.marks.length && f.marks.forEach((S) => { + if (a === S.type) { + const E = Math.max(g, c), b = Math.min(g + f.nodeSize, u); + n.addMark(E, b, a.create({ + ...S.attrs, ...e })); } - }); - }); + })); + }), p && (d !== void 0 && n.setNodeMarkup(d, void 0, { + ...p.attrs, + ...e + }), a && p.marks.length && p.marks.forEach((f) => { + a === f.type && n.addMark(_, m, a.create({ + ...f.attrs, + ...e + })); + })); }), !0) : !1; -}, ZT = (t, e = {}) => ({ state: n, dispatch: r }) => { +}, tC = (t, e = {}) => ({ state: n, dispatch: r }) => { const i = qe(t, n.schema); - return u0(i, e)(n, r); -}, XT = (t, e = {}) => ({ state: n, dispatch: r }) => { + return h0(i, e)(n, r); +}, nC = (t, e = {}) => ({ state: n, dispatch: r }) => { const i = qe(t, n.schema); - return d0(i, e)(n, r); + return E0(i, e)(n, r); }; -var jT = /* @__PURE__ */ Object.freeze({ +var rC = /* @__PURE__ */ Object.freeze({ __proto__: null, - blur: w0, - clearContent: L0, - clearNodes: k0, - command: P0, - createParagraphNear: F0, - cut: B0, - deleteCurrentNode: U0, - deleteNode: H0, - deleteRange: G0, - deleteSelection: V0, - enter: Y0, - exitCode: z0, - extendMarkRange: q0, - first: W0, - focus: K0, - forEach: Q0, - insertContent: Z0, - insertContentAt: J0, - joinBackward: nT, - joinDown: tT, - joinForward: rT, - joinItemBackward: iT, - joinItemForward: oT, - joinTextblockBackward: aT, - joinTextblockForward: sT, - joinUp: eT, - keyboardShortcut: cT, - lift: uT, - liftEmptyBlock: dT, - liftListItem: pT, - newlineInCode: _T, - resetAttributes: mT, - scrollIntoView: fT, - selectAll: gT, - selectNodeBackward: hT, - selectNodeForward: ET, - selectParentNode: ST, - selectTextblockEnd: bT, - selectTextblockStart: TT, - setContent: CT, - setMark: LT, - setMeta: kT, - setNode: PT, - setNodeSelection: FT, - setTextSelection: BT, - sinkListItem: UT, - splitBlock: HT, - splitListItem: GT, - toggleList: VT, - toggleMark: YT, - toggleNode: zT, - toggleWrap: $T, - undoInputRule: qT, - unsetAllMarks: WT, - unsetMark: KT, - updateAttributes: QT, - wrapIn: ZT, - wrapInList: XT + blur: H0, + clearContent: G0, + clearNodes: V0, + command: Y0, + createParagraphNear: z0, + cut: $0, + deleteCurrentNode: q0, + deleteNode: W0, + deleteRange: K0, + deleteSelection: Q0, + enter: Z0, + exitCode: X0, + extendMarkRange: j0, + first: J0, + focus: eT, + forEach: tT, + insertContent: nT, + insertContentAt: oT, + joinBackward: lT, + joinDown: sT, + joinForward: cT, + joinItemBackward: uT, + joinItemForward: dT, + joinTextblockBackward: pT, + joinTextblockForward: _T, + joinUp: aT, + keyboardShortcut: fT, + lift: gT, + liftEmptyBlock: hT, + liftListItem: ET, + newlineInCode: ST, + resetAttributes: bT, + scrollIntoView: TT, + selectAll: CT, + selectNodeBackward: yT, + selectNodeForward: vT, + selectParentNode: RT, + selectTextblockEnd: OT, + selectTextblockStart: NT, + setContent: AT, + setMark: UT, + setMeta: HT, + setNode: GT, + setNodeSelection: VT, + setTextSelection: YT, + sinkListItem: zT, + splitBlock: $T, + splitListItem: qT, + toggleList: WT, + toggleMark: KT, + toggleNode: QT, + toggleWrap: ZT, + undoInputRule: XT, + unsetAllMarks: jT, + unsetMark: JT, + updateAttributes: eC, + wrapIn: tC, + wrapInList: nC }); -const JT = ge.create({ +const iC = ge.create({ name: "commands", addCommands() { return { - ...jT + ...rC }; } -}), eC = ge.create({ +}), oC = ge.create({ name: "drop", addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("tiptapDrop"), props: { handleDrop: (t, e, n, r) => { @@ -11176,11 +11259,11 @@ const JT = ge.create({ }) ]; } -}), tC = ge.create({ +}), aC = ge.create({ name: "editable", addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("editable"), props: { editable: () => this.editor.options.editable @@ -11188,12 +11271,12 @@ const JT = ge.create({ }) ]; } -}), nC = ge.create({ +}), sC = ge.create({ name: "focusEvents", addProseMirrorPlugins() { const { editor: t } = this; return [ - new be({ + new Se({ key: new ve("focusEvents"), props: { handleDOMEvents: { @@ -11212,15 +11295,15 @@ const JT = ge.create({ }) ]; } -}), rC = ge.create({ +}), lC = ge.create({ name: "keymap", addKeyboardShortcuts() { const t = () => this.editor.commands.first(({ commands: a }) => [ () => a.undoInputRule(), // maybe convert first text block node to default node () => a.command(({ tr: s }) => { - const { selection: l, doc: c } = s, { empty: u, $anchor: d } = l, { pos: p, parent: _ } = d, m = d.parent.isTextblock && p > 0 ? s.doc.resolve(p - 1) : d, f = m.parent.type.spec.isolating, g = d.pos - d.parentOffset, E = f && m.parent.childCount === 1 ? g === d.pos : te.atStart(c).from === p; - return !u || !_.type.isTextblock || _.textContent.length || !E || E && d.parent.type.name === "paragraph" ? !1 : a.clearNodes(); + const { selection: l, doc: c } = s, { empty: u, $anchor: d } = l, { pos: p, parent: _ } = d, m = d.parent.isTextblock && p > 0 ? s.doc.resolve(p - 1) : d, f = m.parent.type.spec.isolating, g = d.pos - d.parentOffset, S = f && m.parent.childCount === 1 ? g === d.pos : te.atStart(c).from === p; + return !u || !_.type.isTextblock || _.textContent.length || !S || S && d.parent.type.name === "paragraph" ? !1 : a.clearNodes(); }), () => a.deleteSelection(), () => a.joinBackward(), @@ -11257,7 +11340,7 @@ const JT = ge.create({ "Ctrl-a": () => this.editor.commands.selectTextblockStart(), "Ctrl-e": () => this.editor.commands.selectTextblockEnd() }; - return kc() || Tf() ? o : i; + return Uc() || Af() ? o : i; }, addProseMirrorPlugins() { return [ @@ -11266,19 +11349,19 @@ const JT = ge.create({ // to a paragraph if necessary. // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well // with many other commands. - new be({ + new Se({ key: new ve("clearDocument"), appendTransaction: (t, e, n) => { const r = t.some((f) => f.docChanged) && !e.doc.eq(n.doc), i = t.some((f) => f.getMeta("preventClearDocument")); if (!r || i) return; const { empty: o, from: a, to: s } = e.selection, l = te.atStart(e.doc).from, c = te.atEnd(e.doc).to; - if (o || !(a === l && s === c) || !ms(n.doc)) + if (o || !(a === l && s === c) || !fs(n.doc)) return; - const p = n.tr, _ = ss({ + const p = n.tr, _ = ls({ state: n, transaction: p - }), { commands: m } = new ls({ + }), { commands: m } = new cs({ editor: this.editor, state: _ }); @@ -11288,11 +11371,11 @@ const JT = ge.create({ }) ]; } -}), iC = ge.create({ +}), cC = ge.create({ name: "paste", addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("tiptapPaste"), props: { handlePaste: (t, e, n) => { @@ -11306,11 +11389,11 @@ const JT = ge.create({ }) ]; } -}), oC = ge.create({ +}), uC = ge.create({ name: "tabindex", addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("tabindex"), props: { attributes: () => this.editor.isEditable ? { tabindex: "0" } : {} @@ -11319,7 +11402,7 @@ const JT = ge.create({ ]; } }); -class Jn { +class er { get name() { return this.node.type.name; } @@ -11378,15 +11461,15 @@ class Jn { if (this.depth === 0) return null; const e = this.resolvedPos.start(this.resolvedPos.depth - 1), n = this.resolvedPos.doc.resolve(e); - return new Jn(n, this.editor); + return new er(n, this.editor); } get before() { let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2)); - return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new Jn(e, this.editor); + return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new er(e, this.editor); } get after() { let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1)); - return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new Jn(e, this.editor); + return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new er(e, this.editor); } get children() { const e = []; @@ -11394,8 +11477,8 @@ class Jn { const i = n.isBlock && !n.isTextblock, o = n.isAtom && !n.isText, a = this.pos + r + (o ? 0 : 1), s = this.resolvedPos.doc.resolve(a); if (!i && s.depth <= this.depth) return; - const l = new Jn(s, this.editor, i, i ? n : null); - i && (l.actualDepth = this.depth + 1), e.push(new Jn(s, this.editor, i, i ? n : null)); + const l = new er(s, this.editor, i, i ? n : null); + i && (l.actualDepth = this.depth + 1), e.push(new er(s, this.editor, i, i ? n : null)); }), e; } get firstChild() { @@ -11442,7 +11525,7 @@ class Jn { }), this.editor.view.dispatch(n); } } -const aC = `.ProseMirror { +const dC = `.ProseMirror { position: relative; } @@ -11517,14 +11600,14 @@ img.ProseMirror-separator { .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 }`; -function sC(t, e, n) { +function pC(t, e, n) { const r = document.querySelector("style[data-tiptap-style]"); if (r !== null) return r; const i = document.createElement("style"); return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(i), i; } -class lC extends h0 { +class _C extends v0 { constructor(e = {}) { super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = { element: document.createElement("div"), @@ -11586,7 +11669,7 @@ class lC extends h0 { * Inject CSS styles. */ injectCSS() { - this.options.injectCSS && document && (this.css = sC(aC, this.options.injectNonce)); + this.options.injectCSS && document && (this.css = pC(dC, this.options.injectNonce)); } /** * Update editor options. @@ -11625,7 +11708,7 @@ class lC extends h0 { * @returns The new editor state */ registerPlugin(e, n) { - const r = hf(n) ? n(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r }); + const r = yf(n) ? n(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r }); return this.view.updateState(i), i; } /** @@ -11655,16 +11738,16 @@ class lC extends h0 { createExtensionManager() { var e, n; const i = [...this.options.enableCoreExtensions ? [ - tC, - M0.configure({ + aC, + U0.configure({ blockSeparator: (n = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator }), - JT, - nC, - rC, + iC, + sC, + lC, + uC, oC, - eC, - iC + cC ].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type)); this.extensionManager = new Yr(i, this); } @@ -11672,7 +11755,7 @@ class lC extends h0 { * Creates an command manager. */ createCommandManager() { - this.commandManager = new ls({ + this.commandManager = new cs({ editor: this }); } @@ -11686,35 +11769,41 @@ class lC extends h0 { * Creates a ProseMirror view. */ createView() { - let e; + var e; + let n; try { - e = zl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck }); - } catch (o) { - if (!(o instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(o.message)) - throw o; + n = $l(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck }); + } catch (a) { + if (!(a instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(a.message)) + throw a; this.emit("contentError", { editor: this, - error: o, + error: a, disableCollaboration: () => { - this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((a) => a.name !== "collaboration"), this.createExtensionManager(); + this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((s) => s.name !== "collaboration"), this.createExtensionManager(); } - }), e = zl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 }); + }), n = $l(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 }); } - const n = Sf(e, this.options.autofocus); - this.view = new Pb(this.options.element, { + const r = Of(n, this.options.autofocus); + this.view = new Yb(this.options.element, { ...this.options.editorProps, + attributes: { + // add `role="textbox"` to the editor element + role: "textbox", + ...(e = this.options.editorProps) === null || e === void 0 ? void 0 : e.attributes + }, dispatchTransaction: this.dispatchTransaction.bind(this), state: Vr.create({ - doc: e, - selection: n || void 0 + doc: n, + selection: r || void 0 }) - }), this.view.dom.setAttribute("role", "textbox"), this.view.dom.getAttribute("aria-label") || this.view.dom.setAttribute("aria-label", "Rich-Text Editor"); - const r = this.state.reconfigure({ + }); + const i = this.state.reconfigure({ plugins: this.extensionManager.plugins }); - this.view.updateState(r), this.createNodeViews(), this.prependClass(); - const i = this.view.dom; - i.editor = this; + this.view.updateState(i), this.createNodeViews(), this.prependClass(); + const o = this.view.dom; + o.editor = this; } /** * Creates all node views. @@ -11784,11 +11873,11 @@ class lC extends h0 { * Get attributes of the currently selected node or mark. */ getAttributes(e) { - return yf(this.state, e); + return xf(this.state, e); } isActive(e, n) { const r = typeof e == "string" ? e : null, i = typeof e == "string" ? n : e; - return MT(this.state, r, i); + return FT(this.state, r, i); } /** * Get the document as JSON. @@ -11800,7 +11889,7 @@ class lC extends h0 { * Get the document as HTML. */ getHTML() { - return OT(this.state.doc.content, this.schema); + return kc(this.state.doc.content, this.schema); } /** * Get the document as text. @@ -11809,10 +11898,10 @@ class lC extends h0 { const { blockSeparator: n = ` `, textSerializers: r = {} } = e || {}; - return NT(this.state.doc, { + return MT(this.state.doc, { blockSeparator: n, textSerializers: { - ...Ef(this.schema), + ...vf(this.schema), ...r } }); @@ -11821,7 +11910,7 @@ class lC extends h0 { * Check if there is no content. */ get isEmpty() { - return ms(this.state.doc); + return fs(this.state.doc); } /** * Get the number of characters for the current document. @@ -11858,14 +11947,14 @@ class lC extends h0 { } $pos(e) { const n = this.state.doc.resolve(e); - return new Jn(n, this); + return new er(n, this); } get $doc() { return this.$pos(0); } } function Er(t) { - return new mo({ + return new fo({ find: t.find, handler: ({ state: e, range: n, match: r }) => { const i = le(t.getAttributes, void 0, r); @@ -11874,7 +11963,7 @@ function Er(t) { const { tr: o } = e, a = r[r.length - 1], s = r[0]; if (a) { const l = s.search(/\S/), c = n.from + s.indexOf(a), u = c + a.length; - if (Fc(n.from, n.to, e.doc).filter((_) => _.mark.type.excluded.find((f) => f === t.type && f !== _.mark.type)).filter((_) => _.to > c).length) + if (Gc(n.from, n.to, e.doc).filter((_) => _.mark.type.excluded.find((f) => f === t.type && f !== _.mark.type)).filter((_) => _.to > c).length) return null; u < n.to && o.delete(u, n.to), c > n.from && o.delete(n.from + l, c); const p = n.from + l + a.length; @@ -11883,8 +11972,8 @@ function Er(t) { } }); } -function Bc(t) { - return new mo({ +function Vc(t) { + return new fo({ find: t.find, handler: ({ state: e, range: n, match: r }) => { const i = le(t.getAttributes, void 0, r) || {}, { tr: o } = e, a = n.from; @@ -11904,8 +11993,8 @@ function Bc(t) { } }); } -function Wl(t) { - return new mo({ +function Kl(t) { + return new fo({ find: t.find, handler: ({ state: e, range: n, match: r }) => { const i = e.doc.resolve(n.from), o = le(t.getAttributes, void 0, r) || {}; @@ -11916,10 +12005,10 @@ function Wl(t) { }); } function Sr(t) { - return new mo({ + return new fo({ find: t.find, handler: ({ state: e, range: n, match: r, chain: i }) => { - const o = le(t.getAttributes, void 0, r) || {}, a = e.tr.delete(n.from, n.to), l = a.doc.resolve(n.from).blockRange(), c = l && Ec(l, t.type, o); + const o = le(t.getAttributes, void 0, r) || {}, a = e.tr.delete(n.from, n.to), l = a.doc.resolve(n.from).blockRange(), c = l && Tc(l, t.type, o); if (!c) return null; if (a.wrap(l, c), t.keepMarks && t.editor) { @@ -11934,11 +12023,11 @@ function Sr(t) { i().updateAttributes(d, o).run(); } const u = a.doc.resolve(n.from - 1).nodeBefore; - u && u.type === t.type && zn(a.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, u)) && a.join(n.from - 1); + u && u.type === t.type && $n(a.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, u)) && a.join(n.from - 1); } }); } -let Ne = class Kl { +let Ne = class Ql { constructor(e = {}) { this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = { name: this.name, @@ -11954,17 +12043,17 @@ let Ne = class Kl { })) || {}; } static create(e = {}) { - return new Kl(e); + return new Ql(e); } configure(e = {}) { const n = this.extend({ ...this.config, - addOptions: () => us(this.options, e) + addOptions: () => ds(this.options, e) }); return n.name = this.name, n.parent = this.parent, n; } extend(e = {}) { - const n = new Kl(e); + const n = new Ql(e); return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = le(W(n, "addOptions", { name: n.name })), n.storage = le(W(n, "addStorage", { @@ -11973,8 +12062,8 @@ let Ne = class Kl { })), n; } }; -function Gn(t) { - return new O0({ +function Vn(t) { + return new w0({ find: t.find, handler: ({ state: e, range: n, match: r, pasteEvent: i }) => { const o = le(t.getAttributes, void 0, r, i); @@ -11984,22 +12073,22 @@ function Gn(t) { let c = n.to; if (s) { const u = l.search(/\S/), d = n.from + l.indexOf(s), p = d + s.length; - if (Fc(n.from, n.to, e.doc).filter((m) => m.mark.type.excluded.find((g) => g === t.type && g !== m.mark.type)).filter((m) => m.to > d).length) + if (Gc(n.from, n.to, e.doc).filter((m) => m.mark.type.excluded.find((g) => g === t.type && g !== m.mark.type)).filter((m) => m.to > d).length) return null; p < n.to && a.delete(p, n.to), d > n.from && a.delete(n.from + u, d), c = n.from + u + s.length, a.addMark(n.from + u, c, t.type.create(o || {})), a.removeStoredMark(t.type); } } }); } -function cC(t) { +function mC(t) { return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"); } class me extends HTMLElement { constructor() { super(); - w(this, "template", ""); - w(this, "editor"); - w(this, "options"); + L(this, "template", ""); + L(this, "editor"); + L(this, "options"); } registerClickListener() { this.addEventListener("click", () => { @@ -12030,7 +12119,7 @@ class me extends HTMLElement { n ? (this.style.pointerEvents = "", this.style.opacity = "") : (this.style.pointerEvents = "none", this.style.opacity = "0.5"); } } -class Rf extends me { +class Mf extends me { constructor() { super(), this.template = `
@@ -12043,7 +12132,7 @@ class Rf extends me { e.undo(); } } -class uC extends me { +class fC extends me { constructor() { super(), this.template = `
@@ -12056,15 +12145,15 @@ class uC extends me { e.redo(); } } -var _t = "top", Lt = "bottom", kt = "right", mt = "left", Uc = "auto", fo = [_t, Lt, kt, mt], ii = "start", Ki = "end", dC = "clippingParents", Of = "viewport", bi = "popper", pC = "reference", Yd = /* @__PURE__ */ fo.reduce(function(t, e) { - return t.concat([e + "-" + ii, e + "-" + Ki]); -}, []), Nf = /* @__PURE__ */ [].concat(fo, [Uc]).reduce(function(t, e) { - return t.concat([e, e + "-" + ii, e + "-" + Ki]); -}, []), _C = "beforeRead", mC = "read", fC = "afterRead", gC = "beforeMain", hC = "main", EC = "afterMain", SC = "beforeWrite", bC = "write", TC = "afterWrite", CC = [_C, mC, fC, gC, hC, EC, SC, bC, TC]; +var _t = "top", Lt = "bottom", kt = "right", mt = "left", Yc = "auto", go = [_t, Lt, kt, mt], ii = "start", Qi = "end", gC = "clippingParents", wf = "viewport", bi = "popper", hC = "reference", Kd = /* @__PURE__ */ go.reduce(function(t, e) { + return t.concat([e + "-" + ii, e + "-" + Qi]); +}, []), Lf = /* @__PURE__ */ [].concat(go, [Yc]).reduce(function(t, e) { + return t.concat([e, e + "-" + ii, e + "-" + Qi]); +}, []), EC = "beforeRead", SC = "read", bC = "afterRead", TC = "beforeMain", CC = "main", yC = "afterMain", vC = "beforeWrite", RC = "write", OC = "afterWrite", NC = [EC, SC, bC, TC, CC, yC, vC, RC, OC]; function rn(t) { return t ? (t.nodeName || "").toLowerCase() : null; } -function vt(t) { +function Rt(t) { if (t == null) return window; if (t.toString() !== "[object Window]") { @@ -12074,20 +12163,20 @@ function vt(t) { return t; } function br(t) { - var e = vt(t).Element; + var e = Rt(t).Element; return t instanceof e || t instanceof Element; } function wt(t) { - var e = vt(t).HTMLElement; + var e = Rt(t).HTMLElement; return t instanceof e || t instanceof HTMLElement; } -function Hc(t) { +function zc(t) { if (typeof ShadowRoot > "u") return !1; - var e = vt(t).ShadowRoot; + var e = Rt(t).ShadowRoot; return t instanceof e || t instanceof ShadowRoot; } -function yC(t) { +function AC(t) { var e = t.state; Object.keys(e.elements).forEach(function(n) { var r = e.styles[n] || {}, i = e.attributes[n] || {}, o = e.elements[n]; @@ -12097,7 +12186,7 @@ function yC(t) { })); }); } -function vC(t) { +function IC(t) { var e = t.state, n = { popper: { position: e.options.strategy, @@ -12121,32 +12210,32 @@ function vC(t) { }); }; } -const Af = { +const kf = { name: "applyStyles", enabled: !0, phase: "write", - fn: yC, - effect: vC, + fn: AC, + effect: IC, requires: ["computeStyles"] }; function en(t) { return t.split("-")[0]; } -var ur = Math.max, Sa = Math.min, oi = Math.round; -function Ql() { +var ur = Math.max, ba = Math.min, oi = Math.round; +function Zl() { var t = navigator.userAgentData; return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) { return e.brand + "/" + e.version; }).join(" ") : navigator.userAgent; } -function If() { - return !/^((?!chrome|android).)*safari/i.test(Ql()); +function Pf() { + return !/^((?!chrome|android).)*safari/i.test(Zl()); } function ai(t, e, n) { e === void 0 && (e = !1), n === void 0 && (n = !1); var r = t.getBoundingClientRect(), i = 1, o = 1; e && wt(t) && (i = t.offsetWidth > 0 && oi(r.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && oi(r.height) / t.offsetHeight || 1); - var a = br(t) ? vt(t) : window, s = a.visualViewport, l = !If() && n, c = (r.left + (l && s ? s.offsetLeft : 0)) / i, u = (r.top + (l && s ? s.offsetTop : 0)) / o, d = r.width / i, p = r.height / o; + var a = br(t) ? Rt(t) : window, s = a.visualViewport, l = !Pf() && n, c = (r.left + (l && s ? s.offsetLeft : 0)) / i, u = (r.top + (l && s ? s.offsetTop : 0)) / o, d = r.width / i, p = r.height / o; return { width: d, height: p, @@ -12158,7 +12247,7 @@ function ai(t, e, n) { y: u }; } -function Gc(t) { +function $c(t) { var e = ai(t), n = t.offsetWidth, r = t.offsetHeight; return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, @@ -12167,11 +12256,11 @@ function Gc(t) { height: r }; } -function xf(t, e) { +function Ff(t, e) { var n = e.getRootNode && e.getRootNode(); if (t.contains(e)) return !0; - if (n && Hc(n)) { + if (n && zc(n)) { var r = e; do { if (r && t.isSameNode(r)) @@ -12182,42 +12271,42 @@ function xf(t, e) { return !1; } function hn(t) { - return vt(t).getComputedStyle(t); + return Rt(t).getComputedStyle(t); } -function RC(t) { +function xC(t) { return ["table", "td", "th"].indexOf(rn(t)) >= 0; } -function qn(t) { +function Wn(t) { return ((br(t) ? t.ownerDocument : ( // $FlowFixMe[prop-missing] t.document )) || window.document).documentElement; } -function fs(t) { +function gs(t) { return rn(t) === "html" ? t : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] t.assignedSlot || // step into the shadow DOM of the parent of a slotted node t.parentNode || // DOM Element detected - (Hc(t) ? t.host : null) || // ShadowRoot detected + (zc(t) ? t.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node - qn(t) + Wn(t) ); } -function zd(t) { +function Qd(t) { return !wt(t) || // https://github.com/popperjs/popper-core/issues/837 hn(t).position === "fixed" ? null : t.offsetParent; } -function OC(t) { - var e = /firefox/i.test(Ql()), n = /Trident/i.test(Ql()); +function DC(t) { + var e = /firefox/i.test(Zl()), n = /Trident/i.test(Zl()); if (n && wt(t)) { var r = hn(t); if (r.position === "fixed") return null; } - var i = fs(t); - for (Hc(i) && (i = i.host); wt(i) && ["html", "body"].indexOf(rn(i)) < 0; ) { + var i = gs(t); + for (zc(i) && (i = i.host); wt(i) && ["html", "body"].indexOf(rn(i)) < 0; ) { var o = hn(i); if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none") return i; @@ -12225,22 +12314,22 @@ function OC(t) { } return null; } -function go(t) { - for (var e = vt(t), n = zd(t); n && RC(n) && hn(n).position === "static"; ) - n = zd(n); - return n && (rn(n) === "html" || rn(n) === "body" && hn(n).position === "static") ? e : n || OC(t) || e; +function ho(t) { + for (var e = Rt(t), n = Qd(t); n && xC(n) && hn(n).position === "static"; ) + n = Qd(n); + return n && (rn(n) === "html" || rn(n) === "body" && hn(n).position === "static") ? e : n || DC(t) || e; } -function Vc(t) { +function qc(t) { return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y"; } -function wi(t, e, n) { - return ur(t, Sa(e, n)); +function Li(t, e, n) { + return ur(t, ba(e, n)); } -function NC(t, e, n) { - var r = wi(t, e, n); +function MC(t, e, n) { + var r = Li(t, e, n); return r > n ? n : r; } -function Df() { +function Bf() { return { top: 0, right: 0, @@ -12248,56 +12337,56 @@ function Df() { left: 0 }; } -function Mf(t) { - return Object.assign({}, Df(), t); +function Uf(t) { + return Object.assign({}, Bf(), t); } -function wf(t, e) { +function Hf(t, e) { return e.reduce(function(n, r) { return n[r] = t, n; }, {}); } -var AC = function(e, n) { +var wC = function(e, n) { return e = typeof e == "function" ? e(Object.assign({}, n.rects, { placement: n.placement - })) : e, Mf(typeof e != "number" ? e : wf(e, fo)); + })) : e, Uf(typeof e != "number" ? e : Hf(e, go)); }; -function IC(t) { - var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, a = n.modifiersData.popperOffsets, s = en(n.placement), l = Vc(s), c = [mt, kt].indexOf(s) >= 0, u = c ? "height" : "width"; +function LC(t) { + var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, a = n.modifiersData.popperOffsets, s = en(n.placement), l = qc(s), c = [mt, kt].indexOf(s) >= 0, u = c ? "height" : "width"; if (!(!o || !a)) { - var d = AC(i.padding, n), p = Gc(o), _ = l === "y" ? _t : mt, m = l === "y" ? Lt : kt, f = n.rects.reference[u] + n.rects.reference[l] - a[l] - n.rects.popper[u], g = a[l] - n.rects.reference[l], E = go(o), S = E ? l === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, b = f / 2 - g / 2, h = d[_], C = S - p[u] - d[m], T = S / 2 - p[u] / 2 + b, R = wi(h, T, C), x = l; + var d = wC(i.padding, n), p = $c(o), _ = l === "y" ? _t : mt, m = l === "y" ? Lt : kt, f = n.rects.reference[u] + n.rects.reference[l] - a[l] - n.rects.popper[u], g = a[l] - n.rects.reference[l], S = ho(o), E = S ? l === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0, b = f / 2 - g / 2, h = d[_], C = E - p[u] - d[m], T = E / 2 - p[u] / 2 + b, R = Li(h, T, C), x = l; n.modifiersData[r] = (e = {}, e[x] = R, e.centerOffset = R - T, e); } } -function xC(t) { +function kC(t) { var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r; - i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || xf(e.elements.popper, i) && (e.elements.arrow = i)); + i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ff(e.elements.popper, i) && (e.elements.arrow = i)); } -const DC = { +const PC = { name: "arrow", enabled: !0, phase: "main", - fn: IC, - effect: xC, + fn: LC, + effect: kC, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function si(t) { return t.split("-")[1]; } -var MC = { +var FC = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; -function wC(t, e) { +function BC(t, e) { var n = t.x, r = t.y, i = e.devicePixelRatio || 1; return { x: oi(n * i) / i || 0, y: oi(r * i) / i || 0 }; } -function $d(t) { +function Zd(t) { var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, a = t.offsets, s = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, d = t.isFixed, p = a.x, _ = p === void 0 ? 0 : p, m = a.y, f = m === void 0 ? 0 : m, g = typeof u == "function" ? u({ x: _, y: f @@ -12306,10 +12395,10 @@ function $d(t) { y: f }; _ = g.x, f = g.y; - var E = a.hasOwnProperty("x"), S = a.hasOwnProperty("y"), b = mt, h = _t, C = window; + var S = a.hasOwnProperty("x"), E = a.hasOwnProperty("y"), b = mt, h = _t, C = window; if (c) { - var T = go(n), R = "clientHeight", x = "clientWidth"; - if (T === vt(n) && (T = qn(n), hn(T).position !== "static" && s === "absolute" && (R = "scrollHeight", x = "scrollWidth")), T = T, i === _t || (i === mt || i === kt) && o === Ki) { + var T = ho(n), R = "clientHeight", x = "clientWidth"; + if (T === Rt(n) && (T = Wn(n), hn(T).position !== "static" && s === "absolute" && (R = "scrollHeight", x = "scrollWidth")), T = T, i === _t || (i === mt || i === kt) && o === Qi) { h = Lt; var O = d && T === C && C.visualViewport ? C.visualViewport.height : ( // $FlowFixMe[prop-missing] @@ -12317,7 +12406,7 @@ function $d(t) { ); f -= O - r.height, f *= l ? 1 : -1; } - if (i === mt || (i === _t || i === Lt) && o === Ki) { + if (i === mt || (i === _t || i === Lt) && o === Qi) { b = kt; var M = d && T === C && C.visualViewport ? C.visualViewport.width : ( // $FlowFixMe[prop-missing] @@ -12328,20 +12417,20 @@ function $d(t) { } var B = Object.assign({ position: s - }, c && MC), Y = u === !0 ? wC({ + }, c && FC), Y = u === !0 ? BC({ x: _, y: f - }, vt(n)) : { + }, Rt(n)) : { x: _, y: f }; if (_ = Y.x, f = Y.y, l) { var $; - return Object.assign({}, B, ($ = {}, $[h] = S ? "0" : "", $[b] = E ? "0" : "", $.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + _ + "px, " + f + "px)" : "translate3d(" + _ + "px, " + f + "px, 0)", $)); + return Object.assign({}, B, ($ = {}, $[h] = E ? "0" : "", $[b] = S ? "0" : "", $.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + _ + "px, " + f + "px)" : "translate3d(" + _ + "px, " + f + "px, 0)", $)); } - return Object.assign({}, B, (e = {}, e[h] = S ? f + "px" : "", e[b] = E ? _ + "px" : "", e.transform = "", e)); + return Object.assign({}, B, (e = {}, e[h] = E ? f + "px" : "", e[b] = S ? _ + "px" : "", e.transform = "", e)); } -function LC(t) { +function UC(t) { var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, a = o === void 0 ? !0 : o, s = n.roundOffsets, l = s === void 0 ? !0 : s, c = { placement: en(e.placement), variation: si(e.placement), @@ -12350,12 +12439,12 @@ function LC(t) { gpuAcceleration: i, isFixed: e.options.strategy === "fixed" }; - e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, $d(Object.assign({}, c, { + e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Zd(Object.assign({}, c, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: a, roundOffsets: l - })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, $d(Object.assign({}, c, { + })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Zd(Object.assign({}, c, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, @@ -12364,81 +12453,81 @@ function LC(t) { "data-popper-placement": e.placement }); } -const kC = { +const HC = { name: "computeStyles", enabled: !0, phase: "beforeWrite", - fn: LC, + fn: UC, data: {} }; -var xo = { +var Do = { passive: !0 }; -function PC(t) { - var e = t.state, n = t.instance, r = t.options, i = r.scroll, o = i === void 0 ? !0 : i, a = r.resize, s = a === void 0 ? !0 : a, l = vt(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper); +function GC(t) { + var e = t.state, n = t.instance, r = t.options, i = r.scroll, o = i === void 0 ? !0 : i, a = r.resize, s = a === void 0 ? !0 : a, l = Rt(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper); return o && c.forEach(function(u) { - u.addEventListener("scroll", n.update, xo); - }), s && l.addEventListener("resize", n.update, xo), function() { + u.addEventListener("scroll", n.update, Do); + }), s && l.addEventListener("resize", n.update, Do), function() { o && c.forEach(function(u) { - u.removeEventListener("scroll", n.update, xo); - }), s && l.removeEventListener("resize", n.update, xo); + u.removeEventListener("scroll", n.update, Do); + }), s && l.removeEventListener("resize", n.update, Do); }; } -const FC = { +const VC = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, - effect: PC, + effect: GC, data: {} }; -var BC = { +var YC = { left: "right", right: "left", bottom: "top", top: "bottom" }; -function Jo(t) { +function ea(t) { return t.replace(/left|right|bottom|top/g, function(e) { - return BC[e]; + return YC[e]; }); } -var UC = { +var zC = { start: "end", end: "start" }; -function qd(t) { +function Xd(t) { return t.replace(/start|end/g, function(e) { - return UC[e]; + return zC[e]; }); } -function Yc(t) { - var e = vt(t), n = e.pageXOffset, r = e.pageYOffset; +function Wc(t) { + var e = Rt(t), n = e.pageXOffset, r = e.pageYOffset; return { scrollLeft: n, scrollTop: r }; } -function zc(t) { - return ai(qn(t)).left + Yc(t).scrollLeft; +function Kc(t) { + return ai(Wn(t)).left + Wc(t).scrollLeft; } -function HC(t, e) { - var n = vt(t), r = qn(t), i = n.visualViewport, o = r.clientWidth, a = r.clientHeight, s = 0, l = 0; +function $C(t, e) { + var n = Rt(t), r = Wn(t), i = n.visualViewport, o = r.clientWidth, a = r.clientHeight, s = 0, l = 0; if (i) { o = i.width, a = i.height; - var c = If(); + var c = Pf(); (c || !c && e === "fixed") && (s = i.offsetLeft, l = i.offsetTop); } return { width: o, height: a, - x: s + zc(t), + x: s + Kc(t), y: l }; } -function GC(t) { - var e, n = qn(t), r = Yc(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, o = ur(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = ur(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + zc(t), l = -r.scrollTop; +function qC(t) { + var e, n = Wn(t), r = Wc(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, o = ur(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = ur(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + Kc(t), l = -r.scrollTop; return hn(i || n).direction === "rtl" && (s += ur(n.clientWidth, i ? i.clientWidth : 0) - o), { width: o, height: a, @@ -12446,23 +12535,23 @@ function GC(t) { y: l }; } -function $c(t) { +function Qc(t) { var e = hn(t), n = e.overflow, r = e.overflowX, i = e.overflowY; return /auto|scroll|overlay|hidden/.test(n + i + r); } -function Lf(t) { - return ["html", "body", "#document"].indexOf(rn(t)) >= 0 ? t.ownerDocument.body : wt(t) && $c(t) ? t : Lf(fs(t)); +function Gf(t) { + return ["html", "body", "#document"].indexOf(rn(t)) >= 0 ? t.ownerDocument.body : wt(t) && Qc(t) ? t : Gf(gs(t)); } -function Li(t, e) { +function ki(t, e) { var n; e === void 0 && (e = []); - var r = Lf(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = vt(r), a = i ? [o].concat(o.visualViewport || [], $c(r) ? r : []) : r, s = e.concat(a); + var r = Gf(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = Rt(r), a = i ? [o].concat(o.visualViewport || [], Qc(r) ? r : []) : r, s = e.concat(a); return i ? s : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - s.concat(Li(fs(a))) + s.concat(ki(gs(a))) ); } -function Zl(t) { +function Xl(t) { return Object.assign({}, t, { left: t.x, top: t.y, @@ -12470,27 +12559,27 @@ function Zl(t) { bottom: t.y + t.height }); } -function VC(t, e) { +function WC(t, e) { var n = ai(t, !1, e === "fixed"); return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n; } -function Wd(t, e, n) { - return e === Of ? Zl(HC(t, n)) : br(e) ? VC(e, n) : Zl(GC(qn(t))); +function jd(t, e, n) { + return e === wf ? Xl($C(t, n)) : br(e) ? WC(e, n) : Xl(qC(Wn(t))); } -function YC(t) { - var e = Li(fs(t)), n = ["absolute", "fixed"].indexOf(hn(t).position) >= 0, r = n && wt(t) ? go(t) : t; +function KC(t) { + var e = ki(gs(t)), n = ["absolute", "fixed"].indexOf(hn(t).position) >= 0, r = n && wt(t) ? ho(t) : t; return br(r) ? e.filter(function(i) { - return br(i) && xf(i, r) && rn(i) !== "body"; + return br(i) && Ff(i, r) && rn(i) !== "body"; }) : []; } -function zC(t, e, n, r) { - var i = e === "clippingParents" ? YC(t) : [].concat(e), o = [].concat(i, [n]), a = o[0], s = o.reduce(function(l, c) { - var u = Wd(t, c, r); - return l.top = ur(u.top, l.top), l.right = Sa(u.right, l.right), l.bottom = Sa(u.bottom, l.bottom), l.left = ur(u.left, l.left), l; - }, Wd(t, a, r)); +function QC(t, e, n, r) { + var i = e === "clippingParents" ? KC(t) : [].concat(e), o = [].concat(i, [n]), a = o[0], s = o.reduce(function(l, c) { + var u = jd(t, c, r); + return l.top = ur(u.top, l.top), l.right = ba(u.right, l.right), l.bottom = ba(u.bottom, l.bottom), l.left = ur(u.left, l.left), l; + }, jd(t, a, r)); return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s; } -function kf(t) { +function Vf(t) { var e = t.reference, n = t.element, r = t.placement, i = r ? en(r) : null, o = r ? si(r) : null, a = e.x + e.width / 2 - n.width / 2, s = e.y + e.height / 2 - n.height / 2, l; switch (i) { case _t: @@ -12523,32 +12612,32 @@ function kf(t) { y: e.y }; } - var c = i ? Vc(i) : null; + var c = i ? qc(i) : null; if (c != null) { var u = c === "y" ? "height" : "width"; switch (o) { case ii: l[c] = l[c] - (e[u] / 2 - n[u] / 2); break; - case Ki: + case Qi: l[c] = l[c] + (e[u] / 2 - n[u] / 2); break; } } return l; } -function Qi(t, e) { +function Zi(t, e) { e === void 0 && (e = {}); - var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, a = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? dC : s, c = n.rootBoundary, u = c === void 0 ? Of : c, d = n.elementContext, p = d === void 0 ? bi : d, _ = n.altBoundary, m = _ === void 0 ? !1 : _, f = n.padding, g = f === void 0 ? 0 : f, E = Mf(typeof g != "number" ? g : wf(g, fo)), S = p === bi ? pC : bi, b = t.rects.popper, h = t.elements[m ? S : p], C = zC(br(h) ? h : h.contextElement || qn(t.elements.popper), l, u, a), T = ai(t.elements.reference), R = kf({ + var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, a = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? gC : s, c = n.rootBoundary, u = c === void 0 ? wf : c, d = n.elementContext, p = d === void 0 ? bi : d, _ = n.altBoundary, m = _ === void 0 ? !1 : _, f = n.padding, g = f === void 0 ? 0 : f, S = Uf(typeof g != "number" ? g : Hf(g, go)), E = p === bi ? hC : bi, b = t.rects.popper, h = t.elements[m ? E : p], C = QC(br(h) ? h : h.contextElement || Wn(t.elements.popper), l, u, a), T = ai(t.elements.reference), R = Vf({ reference: T, element: b, strategy: "absolute", placement: i - }), x = Zl(Object.assign({}, b, R)), O = p === bi ? x : T, M = { - top: C.top - O.top + E.top, - bottom: O.bottom - C.bottom + E.bottom, - left: C.left - O.left + E.left, - right: O.right - C.right + E.right + }), x = Xl(Object.assign({}, b, R)), O = p === bi ? x : T, M = { + top: C.top - O.top + S.top, + bottom: O.bottom - C.bottom + S.bottom, + left: C.left - O.left + S.left, + right: O.right - C.right + S.right }, B = t.modifiersData.offset; if (p === bi && B) { var Y = B[i]; @@ -12559,16 +12648,16 @@ function Qi(t, e) { } return M; } -function $C(t, e) { +function ZC(t, e) { e === void 0 && (e = {}); - var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, a = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Nf : l, u = si(r), d = u ? s ? Yd : Yd.filter(function(m) { + var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, a = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Lf : l, u = si(r), d = u ? s ? Kd : Kd.filter(function(m) { return si(m) === u; - }) : fo, p = d.filter(function(m) { + }) : go, p = d.filter(function(m) { return c.indexOf(m) >= 0; }); p.length === 0 && (p = d); var _ = p.reduce(function(m, f) { - return m[f] = Qi(t, { + return m[f] = Zi(t, { placement: f, boundary: i, rootBoundary: o, @@ -12579,17 +12668,17 @@ function $C(t, e) { return _[m] - _[f]; }); } -function qC(t) { - if (en(t) === Uc) +function XC(t) { + if (en(t) === Yc) return []; - var e = Jo(t); - return [qd(t), e, qd(e)]; + var e = ea(t); + return [Xd(t), e, Xd(e)]; } -function WC(t) { +function jC(t) { var e = t.state, n = t.options, r = t.name; if (!e.modifiersData[r]._skip) { - for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, p = n.altBoundary, _ = n.flipVariations, m = _ === void 0 ? !0 : _, f = n.allowedAutoPlacements, g = e.options.placement, E = en(g), S = E === g, b = l || (S || !m ? [Jo(g)] : qC(g)), h = [g].concat(b).reduce(function(Ce, ie) { - return Ce.concat(en(ie) === Uc ? $C(e, { + for (var i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !0 : a, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, p = n.altBoundary, _ = n.flipVariations, m = _ === void 0 ? !0 : _, f = n.allowedAutoPlacements, g = e.options.placement, S = en(g), E = S === g, b = l || (E || !m ? [ea(g)] : XC(g)), h = [g].concat(b).reduce(function(Ce, ie) { + return Ce.concat(en(ie) === Yc ? ZC(e, { placement: ie, boundary: u, rootBoundary: d, @@ -12598,15 +12687,15 @@ function WC(t) { allowedAutoPlacements: f }) : ie); }, []), C = e.rects.reference, T = e.rects.popper, R = /* @__PURE__ */ new Map(), x = !0, O = h[0], M = 0; M < h.length; M++) { - var B = h[M], Y = en(B), $ = si(B) === ii, q = [_t, Lt].indexOf(Y) >= 0, V = q ? "width" : "height", J = Qi(e, { + var B = h[M], Y = en(B), $ = si(B) === ii, q = [_t, Lt].indexOf(Y) >= 0, V = q ? "width" : "height", J = Zi(e, { placement: B, boundary: u, rootBoundary: d, altBoundary: p, padding: c }), y = q ? $ ? kt : mt : $ ? Lt : _t; - C[V] > T[V] && (y = Jo(y)); - var v = Jo(y), A = []; + C[V] > T[V] && (y = ea(y)); + var v = ea(y), A = []; if (o && A.push(J[Y] <= 0), s && A.push(J[y] <= 0, J[v] <= 0), A.every(function(Ce) { return Ce; })) { @@ -12633,17 +12722,17 @@ function WC(t) { e.placement !== O && (e.modifiersData[r]._skip = !0, e.placement = O, e.reset = !0); } } -const KC = { +const JC = { name: "flip", enabled: !0, phase: "main", - fn: WC, + fn: jC, requiresIfExists: ["offset"], data: { _skip: !1 } }; -function Kd(t, e, n) { +function Jd(t, e, n) { return n === void 0 && (n = { x: 0, y: 0 @@ -12654,17 +12743,17 @@ function Kd(t, e, n) { left: t.left - e.width - n.x }; } -function Qd(t) { +function ep(t) { return [_t, kt, Lt, mt].some(function(e) { return t[e] >= 0; }); } -function QC(t) { - var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, o = e.modifiersData.preventOverflow, a = Qi(e, { +function e1(t) { + var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, o = e.modifiersData.preventOverflow, a = Zi(e, { elementContext: "reference" - }), s = Qi(e, { + }), s = Zi(e, { altBoundary: !0 - }), l = Kd(a, r), c = Kd(s, i, o), u = Qd(l), d = Qd(c); + }), l = Jd(a, r), c = Jd(s, i, o), u = ep(l), d = ep(c); e.modifiersData[n] = { referenceClippingOffsets: l, popperEscapeOffsets: c, @@ -12675,14 +12764,14 @@ function QC(t) { "data-popper-escaped": d }); } -const ZC = { +const t1 = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], - fn: QC + fn: e1 }; -function XC(t, e, n) { +function n1(t, e, n) { var r = en(t), i = [mt, _t].indexOf(r) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, { placement: t })) : n, a = o[0], s = o[1]; @@ -12694,45 +12783,45 @@ function XC(t, e, n) { y: s }; } -function jC(t) { - var e = t.state, n = t.options, r = t.name, i = n.offset, o = i === void 0 ? [0, 0] : i, a = Nf.reduce(function(u, d) { - return u[d] = XC(d, e.rects, o), u; +function r1(t) { + var e = t.state, n = t.options, r = t.name, i = n.offset, o = i === void 0 ? [0, 0] : i, a = Lf.reduce(function(u, d) { + return u[d] = n1(d, e.rects, o), u; }, {}), s = a[e.placement], l = s.x, c = s.y; e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = a; } -const JC = { +const i1 = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], - fn: jC + fn: r1 }; -function e1(t) { +function o1(t) { var e = t.state, n = t.name; - e.modifiersData[n] = kf({ + e.modifiersData[n] = Vf({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement }); } -const t1 = { +const a1 = { name: "popperOffsets", enabled: !0, phase: "read", - fn: e1, + fn: o1, data: {} }; -function n1(t) { +function s1(t) { return t === "x" ? "y" : "x"; } -function r1(t) { - var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !1 : a, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, p = n.tether, _ = p === void 0 ? !0 : p, m = n.tetherOffset, f = m === void 0 ? 0 : m, g = Qi(e, { +function l1(t) { + var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, a = n.altAxis, s = a === void 0 ? !1 : a, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, p = n.tether, _ = p === void 0 ? !0 : p, m = n.tetherOffset, f = m === void 0 ? 0 : m, g = Zi(e, { boundary: l, rootBoundary: c, padding: d, altBoundary: u - }), E = en(e.placement), S = si(e.placement), b = !S, h = Vc(E), C = n1(h), T = e.modifiersData.popperOffsets, R = e.rects.reference, x = e.rects.popper, O = typeof f == "function" ? f(Object.assign({}, e.rects, { + }), S = en(e.placement), E = si(e.placement), b = !E, h = qc(S), C = s1(h), T = e.modifiersData.popperOffsets, R = e.rects.reference, x = e.rects.popper, O = typeof f == "function" ? f(Object.assign({}, e.rects, { placement: e.placement })) : f, M = typeof O == "number" ? { mainAxis: O, @@ -12746,42 +12835,42 @@ function r1(t) { }; if (T) { if (o) { - var $, q = h === "y" ? _t : mt, V = h === "y" ? Lt : kt, J = h === "y" ? "height" : "width", y = T[h], v = y + g[q], A = y - g[V], k = _ ? -x[J] / 2 : 0, G = S === ii ? R[J] : x[J], z = S === ii ? -x[J] : -R[J], ae = e.elements.arrow, Ce = _ && ae ? Gc(ae) : { + var $, q = h === "y" ? _t : mt, V = h === "y" ? Lt : kt, J = h === "y" ? "height" : "width", y = T[h], v = y + g[q], A = y - g[V], k = _ ? -x[J] / 2 : 0, G = E === ii ? R[J] : x[J], z = E === ii ? -x[J] : -R[J], ae = e.elements.arrow, Ce = _ && ae ? $c(ae) : { width: 0, height: 0 - }, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Df(), ue = ie[q], Be = ie[V], Le = wi(0, R[J], Ce[J]), We = b ? R[J] / 2 - k - Le - ue - M.mainAxis : G - Le - ue - M.mainAxis, Ke = b ? -R[J] / 2 + k + Le + Be + M.mainAxis : z + Le + Be + M.mainAxis, ht = e.elements.arrow && go(e.elements.arrow), Ft = ht ? h === "y" ? ht.clientTop || 0 : ht.clientLeft || 0 : 0, de = ($ = B == null ? void 0 : B[h]) != null ? $ : 0, ke = y + We - de - Ft, Qe = y + Ke - de, he = wi(_ ? Sa(v, ke) : v, y, _ ? ur(A, Qe) : A); + }, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bf(), ue = ie[q], Be = ie[V], Le = Li(0, R[J], Ce[J]), We = b ? R[J] / 2 - k - Le - ue - M.mainAxis : G - Le - ue - M.mainAxis, Ke = b ? -R[J] / 2 + k + Le + Be + M.mainAxis : z + Le + Be + M.mainAxis, ht = e.elements.arrow && ho(e.elements.arrow), Ft = ht ? h === "y" ? ht.clientTop || 0 : ht.clientLeft || 0 : 0, de = ($ = B == null ? void 0 : B[h]) != null ? $ : 0, Pe = y + We - de - Ft, Qe = y + Ke - de, he = Li(_ ? ba(v, Pe) : v, y, _ ? ur(A, Qe) : A); T[h] = he, Y[h] = he - y; } if (s) { - var zt, Et = h === "x" ? _t : mt, P = h === "x" ? Lt : kt, et = T[C], oe = C === "y" ? "height" : "width", X = et + g[Et], He = et - g[P], xe = [_t, mt].indexOf(E) !== -1, St = (zt = B == null ? void 0 : B[C]) != null ? zt : 0, bt = xe ? X : et - R[oe] - x[oe] - St + M.altAxis, N = xe ? et + R[oe] + x[oe] - St - M.altAxis : He, D = _ && xe ? NC(bt, et, N) : wi(_ ? bt : X, et, _ ? N : He); + var zt, Et = h === "x" ? _t : mt, P = h === "x" ? Lt : kt, et = T[C], oe = C === "y" ? "height" : "width", X = et + g[Et], He = et - g[P], xe = [_t, mt].indexOf(S) !== -1, St = (zt = B == null ? void 0 : B[C]) != null ? zt : 0, bt = xe ? X : et - R[oe] - x[oe] - St + M.altAxis, N = xe ? et + R[oe] + x[oe] - St - M.altAxis : He, D = _ && xe ? MC(bt, et, N) : Li(_ ? bt : X, et, _ ? N : He); T[C] = D, Y[C] = D - et; } e.modifiersData[r] = Y; } } -const i1 = { +const c1 = { name: "preventOverflow", enabled: !0, phase: "main", - fn: r1, + fn: l1, requiresIfExists: ["offset"] }; -function o1(t) { +function u1(t) { return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop }; } -function a1(t) { - return t === vt(t) || !wt(t) ? Yc(t) : o1(t); +function d1(t) { + return t === Rt(t) || !wt(t) ? Wc(t) : u1(t); } -function s1(t) { +function p1(t) { var e = t.getBoundingClientRect(), n = oi(e.width) / t.offsetWidth || 1, r = oi(e.height) / t.offsetHeight || 1; return n !== 1 || r !== 1; } -function l1(t, e, n) { +function _1(t, e, n) { n === void 0 && (n = !1); - var r = wt(e), i = wt(e) && s1(e), o = qn(e), a = ai(t, i, n), s = { + var r = wt(e), i = wt(e) && p1(e), o = Wn(e), a = ai(t, i, n), s = { scrollLeft: 0, scrollTop: 0 }, l = { @@ -12789,14 +12878,14 @@ function l1(t, e, n) { y: 0 }; return (r || !r && !n) && ((rn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - $c(o)) && (s = a1(e)), wt(e) ? (l = ai(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = zc(o))), { + Qc(o)) && (s = d1(e)), wt(e) ? (l = ai(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Kc(o))), { x: a.left + s.scrollLeft - l.x, y: a.top + s.scrollTop - l.y, width: a.width, height: a.height }; } -function c1(t) { +function m1(t) { var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = []; t.forEach(function(o) { e.set(o.name, o); @@ -12815,15 +12904,15 @@ function c1(t) { n.has(o.name) || i(o); }), r; } -function u1(t) { - var e = c1(t); - return CC.reduce(function(n, r) { +function f1(t) { + var e = m1(t); + return NC.reduce(function(n, r) { return n.concat(e.filter(function(i) { return i.phase === r; })); }, []); } -function d1(t) { +function g1(t) { var e; return function() { return e || (e = new Promise(function(n) { @@ -12833,7 +12922,7 @@ function d1(t) { })), e; }; } -function p1(t) { +function h1(t) { var e = t.reduce(function(n, r) { var i = n[r.name]; return n[r.name] = i ? Object.assign({}, i, r, { @@ -12845,27 +12934,27 @@ function p1(t) { return e[n]; }); } -var Zd = { +var tp = { placement: "bottom", modifiers: [], strategy: "absolute" }; -function Xd() { +function np() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; return !e.some(function(r) { return !(r && typeof r.getBoundingClientRect == "function"); }); } -function _1(t) { +function E1(t) { t === void 0 && (t = {}); - var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, i = e.defaultOptions, o = i === void 0 ? Zd : i; + var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, i = e.defaultOptions, o = i === void 0 ? tp : i; return function(s, l, c) { c === void 0 && (c = o); var u = { placement: "bottom", orderedModifiers: [], - options: Object.assign({}, Zd, o), + options: Object.assign({}, tp, o), modifiersData: {}, elements: { reference: s, @@ -12875,13 +12964,13 @@ function _1(t) { styles: {} }, d = [], p = !1, _ = { state: u, - setOptions: function(E) { - var S = typeof E == "function" ? E(u.options) : E; - f(), u.options = Object.assign({}, o, u.options, S), u.scrollParents = { - reference: br(s) ? Li(s) : s.contextElement ? Li(s.contextElement) : [], - popper: Li(l) + setOptions: function(S) { + var E = typeof S == "function" ? S(u.options) : S; + f(), u.options = Object.assign({}, o, u.options, E), u.scrollParents = { + reference: br(s) ? ki(s) : s.contextElement ? ki(s.contextElement) : [], + popper: ki(l) }; - var b = u1(p1([].concat(r, u.options.modifiers))); + var b = f1(h1([].concat(r, u.options.modifiers))); return u.orderedModifiers = b.filter(function(h) { return h.enabled; }), m(), _.update(); @@ -12893,11 +12982,11 @@ function _1(t) { // prefer the async Popper#update method forceUpdate: function() { if (!p) { - var E = u.elements, S = E.reference, b = E.popper; - if (Xd(S, b)) { + var S = u.elements, E = S.reference, b = S.popper; + if (np(E, b)) { u.rects = { - reference: l1(S, go(b), u.options.strategy === "fixed"), - popper: Gc(b) + reference: _1(E, ho(b), u.options.strategy === "fixed"), + popper: $c(b) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(M) { return u.modifiersData[M.name] = Object.assign({}, M.data); }); @@ -12919,7 +13008,7 @@ function _1(t) { }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) - update: d1(function() { + update: g1(function() { return new Promise(function(g) { _.forceUpdate(), g(u); }); @@ -12928,18 +13017,18 @@ function _1(t) { f(), p = !0; } }; - if (!Xd(s, l)) + if (!np(s, l)) return _; _.setOptions(c).then(function(g) { !p && c.onFirstUpdate && c.onFirstUpdate(g); }); function m() { u.orderedModifiers.forEach(function(g) { - var E = g.name, S = g.options, b = S === void 0 ? {} : S, h = g.effect; + var S = g.name, E = g.options, b = E === void 0 ? {} : E, h = g.effect; if (typeof h == "function") { var C = h({ state: u, - name: E, + name: S, instance: _, options: b }), T = function() { @@ -12956,32 +13045,32 @@ function _1(t) { return _; }; } -var m1 = [FC, t1, kC, Af, JC, KC, i1, DC, ZC], f1 = /* @__PURE__ */ _1({ - defaultModifiers: m1 -}), Nt = {}, g1 = "tippy-box", Pf = "tippy-content", h1 = "tippy-backdrop", Ff = "tippy-arrow", Bf = "tippy-svg-arrow", Xn = { +var S1 = [VC, a1, HC, kf, i1, JC, c1, PC, t1], b1 = /* @__PURE__ */ E1({ + defaultModifiers: S1 +}), At = {}, T1 = "tippy-box", Yf = "tippy-content", C1 = "tippy-backdrop", zf = "tippy-arrow", $f = "tippy-svg-arrow", jn = { passive: !0, capture: !0 -}, Uf = function() { +}, qf = function() { return document.body; }; -function E1(t, e) { +function y1(t, e) { return {}.hasOwnProperty.call(t, e); } -function Ks(t, e, n) { +function Zs(t, e, n) { if (Array.isArray(t)) { var r = t[e]; return r ?? (Array.isArray(n) ? n[e] : n); } return t; } -function qc(t, e) { +function Zc(t, e) { var n = {}.toString.call(t); return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1; } -function Hf(t, e) { +function Wf(t, e) { return typeof t == "function" ? t.apply(void 0, e) : t; } -function jd(t, e) { +function rp(t, e) { if (e === 0) return t; var n; @@ -12991,88 +13080,88 @@ function jd(t, e) { }, e); }; } -function S1(t, e) { +function v1(t, e) { var n = Object.assign({}, t); return e.forEach(function(r) { delete n[r]; }), n; } -function b1(t) { +function R1(t) { return t.split(/\s+/).filter(Boolean); } function Br(t) { return [].concat(t); } -function Jd(t, e) { +function ip(t, e) { t.indexOf(e) === -1 && t.push(e); } -function T1(t) { +function O1(t) { return t.filter(function(e, n) { return t.indexOf(e) === n; }); } -function C1(t) { +function N1(t) { return t.split("-")[0]; } -function ba(t) { +function Ta(t) { return [].slice.call(t); } -function ep(t) { +function op(t) { return Object.keys(t).reduce(function(e, n) { return t[n] !== void 0 && (e[n] = t[n]), e; }, {}); } -function ki() { +function Pi() { return document.createElement("div"); } -function Zi(t) { +function Xi(t) { return ["Element", "Fragment"].some(function(e) { - return qc(t, e); + return Zc(t, e); }); } -function y1(t) { - return qc(t, "NodeList"); +function A1(t) { + return Zc(t, "NodeList"); } -function v1(t) { - return qc(t, "MouseEvent"); +function I1(t) { + return Zc(t, "MouseEvent"); } -function R1(t) { +function x1(t) { return !!(t && t._tippy && t._tippy.reference === t); } -function O1(t) { - return Zi(t) ? [t] : y1(t) ? ba(t) : Array.isArray(t) ? t : ba(document.querySelectorAll(t)); +function D1(t) { + return Xi(t) ? [t] : A1(t) ? Ta(t) : Array.isArray(t) ? t : Ta(document.querySelectorAll(t)); } -function Qs(t, e) { +function Xs(t, e) { t.forEach(function(n) { n && (n.style.transitionDuration = e + "ms"); }); } -function tp(t, e) { +function ap(t, e) { t.forEach(function(n) { n && n.setAttribute("data-state", e); }); } -function N1(t) { +function M1(t) { var e, n = Br(t), r = n[0]; return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document; } -function A1(t, e) { +function w1(t, e) { var n = e.clientX, r = e.clientY; return t.every(function(i) { - var o = i.popperRect, a = i.popperState, s = i.props, l = s.interactiveBorder, c = C1(a.placement), u = a.modifiersData.offset; + var o = i.popperRect, a = i.popperState, s = i.props, l = s.interactiveBorder, c = N1(a.placement), u = a.modifiersData.offset; if (!u) return !0; - var d = c === "bottom" ? u.top.y : 0, p = c === "top" ? u.bottom.y : 0, _ = c === "right" ? u.left.x : 0, m = c === "left" ? u.right.x : 0, f = o.top - r + d > l, g = r - o.bottom - p > l, E = o.left - n + _ > l, S = n - o.right - m > l; - return f || g || E || S; + var d = c === "bottom" ? u.top.y : 0, p = c === "top" ? u.bottom.y : 0, _ = c === "right" ? u.left.x : 0, m = c === "left" ? u.right.x : 0, f = o.top - r + d > l, g = r - o.bottom - p > l, S = o.left - n + _ > l, E = n - o.right - m > l; + return f || g || S || E; }); } -function Zs(t, e, n) { +function js(t, e, n) { var r = e + "EventListener"; ["transitionend", "webkitTransitionEnd"].forEach(function(i) { t[r](i, n); }); } -function np(t, e) { +function sp(t, e) { for (var n = e; n; ) { var r; if (t.contains(n)) @@ -13083,25 +13172,25 @@ function np(t, e) { } var Qt = { isTouch: !1 -}, rp = 0; -function I1() { - Qt.isTouch || (Qt.isTouch = !0, window.performance && document.addEventListener("mousemove", Gf)); +}, lp = 0; +function L1() { + Qt.isTouch || (Qt.isTouch = !0, window.performance && document.addEventListener("mousemove", Kf)); } -function Gf() { +function Kf() { var t = performance.now(); - t - rp < 20 && (Qt.isTouch = !1, document.removeEventListener("mousemove", Gf)), rp = t; + t - lp < 20 && (Qt.isTouch = !1, document.removeEventListener("mousemove", Kf)), lp = t; } -function x1() { +function k1() { var t = document.activeElement; - if (R1(t)) { + if (x1(t)) { var e = t._tippy; t.blur && !e.state.isVisible && t.blur(); } } -function D1() { - document.addEventListener("touchstart", I1, Xn), window.addEventListener("blur", x1); +function P1() { + document.addEventListener("touchstart", L1, jn), window.addEventListener("blur", k1); } -var M1 = typeof window < "u" && typeof document < "u", w1 = M1 ? ( +var F1 = typeof window < "u" && typeof document < "u", B1 = F1 ? ( // @ts-ignore !!window.msCrypto ) : !1; @@ -13109,22 +13198,22 @@ function Ir(t) { var e = t === "destroy" ? "n already-" : " "; return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" "); } -function ip(t) { +function cp(t) { var e = /[ \t]{2,}/g, n = /^[ \t]*/gm; return t.replace(e, " ").replace(n, "").trim(); } -function L1(t) { - return ip(` +function U1(t) { + return cp(` %ctippy.js - %c` + ip(t) + ` + %c` + cp(t) + ` %c👷‍ This is a development-only message. It will be removed in production. `); } -function Vf(t) { +function Qf(t) { return [ - L1(t), + U1(t), // title "color: #00C584; font-size: 1.3em; font-weight: bold;", // message @@ -13133,33 +13222,33 @@ function Vf(t) { "color: #a6a095;" ]; } -var Xi; -Nt.NODE_ENV !== "production" && k1(); -function k1() { - Xi = /* @__PURE__ */ new Set(); +var ji; +At.NODE_ENV !== "production" && H1(); +function H1() { + ji = /* @__PURE__ */ new Set(); } function _n(t, e) { - if (t && !Xi.has(e)) { + if (t && !ji.has(e)) { var n; - Xi.add(e), (n = console).warn.apply(n, Vf(e)); + ji.add(e), (n = console).warn.apply(n, Qf(e)); } } -function Xl(t, e) { - if (t && !Xi.has(e)) { +function jl(t, e) { + if (t && !ji.has(e)) { var n; - Xi.add(e), (n = console).error.apply(n, Vf(e)); + ji.add(e), (n = console).error.apply(n, Qf(e)); } } -function P1(t) { +function G1(t) { var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener; - Xl(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Xl(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" ")); + jl(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), jl(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" ")); } -var Yf = { +var Zf = { animateFill: !1, followCursor: !1, inlinePositioning: !1, sticky: !1 -}, F1 = { +}, V1 = { allowHTML: !1, animation: "fade", arrow: !0, @@ -13170,7 +13259,7 @@ var Yf = { theme: "", zIndex: 9999 }, yt = Object.assign({ - appendTo: Uf, + appendTo: qf, aria: { content: "auto", expanded: "auto" @@ -13217,14 +13306,14 @@ var Yf = { touch: !0, trigger: "mouseenter focus", triggerTarget: null -}, Yf, F1), B1 = Object.keys(yt), U1 = function(e) { - Nt.NODE_ENV !== "production" && $f(e, []); +}, Zf, V1), Y1 = Object.keys(yt), z1 = function(e) { + At.NODE_ENV !== "production" && jf(e, []); var n = Object.keys(e); n.forEach(function(r) { yt[r] = e[r]; }); }; -function zf(t) { +function Xf(t) { var e = t.plugins || [], n = e.reduce(function(r, i) { var o = i.name, a = i.defaultValue; if (o) { @@ -13235,10 +13324,10 @@ function zf(t) { }, {}); return Object.assign({}, t, n); } -function H1(t, e) { - var n = e ? Object.keys(zf(Object.assign({}, yt, { +function $1(t, e) { + var n = e ? Object.keys(Xf(Object.assign({}, yt, { plugins: e - }))) : B1, r = n.reduce(function(i, o) { + }))) : Y1, r = n.reduce(function(i, o) { var a = (t.getAttribute("data-tippy-" + o) || "").trim(); if (!a) return i; @@ -13254,20 +13343,20 @@ function H1(t, e) { }, {}); return r; } -function op(t, e) { +function up(t, e) { var n = Object.assign({}, e, { - content: Hf(e.content, [t]) - }, e.ignoreAttributes ? {} : H1(t, e.plugins)); + content: Wf(e.content, [t]) + }, e.ignoreAttributes ? {} : $1(t, e.plugins)); return n.aria = Object.assign({}, yt.aria, n.aria), n.aria = { expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded, content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content }, n; } -function $f(t, e) { +function jf(t, e) { t === void 0 && (t = {}), e === void 0 && (e = []); var n = Object.keys(t); n.forEach(function(r) { - var i = S1(yt, Object.keys(Yf)), o = !E1(i, r); + var i = v1(yt, Object.keys(Zf)), o = !y1(i, r); o && (o = e.filter(function(a) { return a.name === r; }).length === 0), _n(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", ` @@ -13276,52 +13365,52 @@ function $f(t, e) { `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" ")); }); } -var G1 = function() { +var q1 = function() { return "innerHTML"; }; -function jl(t, e) { - t[G1()] = e; +function Jl(t, e) { + t[q1()] = e; } -function ap(t) { - var e = ki(); - return t === !0 ? e.className = Ff : (e.className = Bf, Zi(t) ? e.appendChild(t) : jl(e, t)), e; +function dp(t) { + var e = Pi(); + return t === !0 ? e.className = zf : (e.className = $f, Xi(t) ? e.appendChild(t) : Jl(e, t)), e; } -function sp(t, e) { - Zi(e.content) ? (jl(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? jl(t, e.content) : t.textContent = e.content); +function pp(t, e) { + Xi(e.content) ? (Jl(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Jl(t, e.content) : t.textContent = e.content); } -function Jl(t) { - var e = t.firstElementChild, n = ba(e.children); +function ec(t) { + var e = t.firstElementChild, n = Ta(e.children); return { box: e, content: n.find(function(r) { - return r.classList.contains(Pf); + return r.classList.contains(Yf); }), arrow: n.find(function(r) { - return r.classList.contains(Ff) || r.classList.contains(Bf); + return r.classList.contains(zf) || r.classList.contains($f); }), backdrop: n.find(function(r) { - return r.classList.contains(h1); + return r.classList.contains(C1); }) }; } -function qf(t) { - var e = ki(), n = ki(); - n.className = g1, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1"); - var r = ki(); - r.className = Pf, r.setAttribute("data-state", "hidden"), sp(r, t.props), e.appendChild(n), n.appendChild(r), i(t.props, t.props); +function Jf(t) { + var e = Pi(), n = Pi(); + n.className = T1, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1"); + var r = Pi(); + r.className = Yf, r.setAttribute("data-state", "hidden"), pp(r, t.props), e.appendChild(n), n.appendChild(r), i(t.props, t.props); function i(o, a) { - var s = Jl(e), l = s.box, c = s.content, u = s.arrow; - a.theme ? l.setAttribute("data-theme", a.theme) : l.removeAttribute("data-theme"), typeof a.animation == "string" ? l.setAttribute("data-animation", a.animation) : l.removeAttribute("data-animation"), a.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof a.maxWidth == "number" ? a.maxWidth + "px" : a.maxWidth, a.role ? l.setAttribute("role", a.role) : l.removeAttribute("role"), (o.content !== a.content || o.allowHTML !== a.allowHTML) && sp(c, t.props), a.arrow ? u ? o.arrow !== a.arrow && (l.removeChild(u), l.appendChild(ap(a.arrow))) : l.appendChild(ap(a.arrow)) : u && l.removeChild(u); + var s = ec(e), l = s.box, c = s.content, u = s.arrow; + a.theme ? l.setAttribute("data-theme", a.theme) : l.removeAttribute("data-theme"), typeof a.animation == "string" ? l.setAttribute("data-animation", a.animation) : l.removeAttribute("data-animation"), a.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof a.maxWidth == "number" ? a.maxWidth + "px" : a.maxWidth, a.role ? l.setAttribute("role", a.role) : l.removeAttribute("role"), (o.content !== a.content || o.allowHTML !== a.allowHTML) && pp(c, t.props), a.arrow ? u ? o.arrow !== a.arrow && (l.removeChild(u), l.appendChild(dp(a.arrow))) : l.appendChild(dp(a.arrow)) : u && l.removeChild(u); } return { popper: e, onUpdate: i }; } -qf.$$tippy = !0; -var V1 = 1, Do = [], Xs = []; -function Y1(t, e) { - var n = op(t, Object.assign({}, yt, zf(ep(e)))), r, i, o, a = !1, s = !1, l = !1, c = !1, u, d, p, _ = [], m = jd(ke, n.interactiveDebounce), f, g = V1++, E = null, S = T1(n.plugins), b = { +Jf.$$tippy = !0; +var W1 = 1, Mo = [], Js = []; +function K1(t, e) { + var n = up(t, Object.assign({}, yt, Xf(op(e)))), r, i, o, a = !1, s = !1, l = !1, c = !1, u, d, p, _ = [], m = rp(Pe, n.interactiveDebounce), f, g = W1++, S = null, E = O1(n.plugins), b = { // Is the instance currently enabled? isEnabled: !0, // Is the tippy currently showing and not transitioning out? @@ -13336,11 +13425,11 @@ function Y1(t, e) { // properties id: g, reference: t, - popper: ki(), - popperInstance: E, + popper: Pi(), + popperInstance: S, props: n, state: b, - plugins: S, + plugins: E, // methods clearDelayTimeouts: bt, setProps: N, @@ -13354,10 +13443,10 @@ function Y1(t, e) { destroy: Rr }; if (!n.render) - return Nt.NODE_ENV !== "production" && Xl(!0, "render() function has not been supplied."), h; + return At.NODE_ENV !== "production" && jl(!0, "render() function has not been supplied."), h; var C = n.render(h), T = C.popper, R = C.onUpdate; T.setAttribute("data-tippy-root", ""), T.id = "tippy-" + h.id, h.popper = T, t._tippy = h, T._tippy = h; - var x = S.map(function(I) { + var x = E.map(function(I) { return I.fn(h); }), O = t.hasAttribute("aria-expanded"); return ht(), k(), y(), v("onCreate", [h]), n.showOnCreate && X(), T.addEventListener("mouseenter", function() { @@ -13381,13 +13470,13 @@ function Y1(t, e) { } function q() { var I = $().parentNode; - return I ? N1(I) : document; + return I ? M1(I) : document; } function V() { - return Jl(T); + return ec(T); } function J(I) { - return h.state.isMounted && !h.state.isVisible || Qt.isTouch || u && u.type === "focus" ? 0 : Ks(h.props.delay, I ? 0 : 1, yt.delay); + return h.state.isMounted && !h.state.isVisible || Qt.isTouch || u && u.type === "focus" ? 0 : Zs(h.props.delay, I ? 0 : 1, yt.delay); } function y(I) { I === void 0 && (I = !1), T.style.pointerEvents = h.props.interactive && !I ? "" : "none", T.style.zIndex = "" + h.props.zIndex; @@ -13424,16 +13513,16 @@ function Y1(t, e) { } } function G() { - q().removeEventListener("mousemove", m), Do = Do.filter(function(I) { + q().removeEventListener("mousemove", m), Mo = Mo.filter(function(I) { return I !== m; }); } function z(I) { if (!(Qt.isTouch && (l || I.type === "mousedown"))) { var Q = I.composedPath && I.composedPath()[0] || I.target; - if (!(h.props.interactive && np(T, Q))) { + if (!(h.props.interactive && sp(T, Q))) { if (Br(h.props.triggerTarget || t).some(function(ne) { - return np(ne, Q); + return sp(ne, Q); })) { if (Qt.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0) return; @@ -13453,11 +13542,11 @@ function Y1(t, e) { } function ie() { var I = q(); - I.addEventListener("mousedown", z, !0), I.addEventListener("touchend", z, Xn), I.addEventListener("touchstart", Ce, Xn), I.addEventListener("touchmove", ae, Xn); + I.addEventListener("mousedown", z, !0), I.addEventListener("touchend", z, jn), I.addEventListener("touchstart", Ce, jn), I.addEventListener("touchmove", ae, jn); } function ue() { var I = q(); - I.removeEventListener("mousedown", z, !0), I.removeEventListener("touchend", z, Xn), I.removeEventListener("touchstart", Ce, Xn), I.removeEventListener("touchmove", ae, Xn); + I.removeEventListener("mousedown", z, !0), I.removeEventListener("touchend", z, jn), I.removeEventListener("touchstart", Ce, jn), I.removeEventListener("touchmove", ae, jn); } function Be(I, Q) { We(I, function() { @@ -13470,11 +13559,11 @@ function Y1(t, e) { function We(I, Q) { var ne = V().box; function Ee(fe) { - fe.target === ne && (Zs(ne, "remove", Ee), Q()); + fe.target === ne && (js(ne, "remove", Ee), Q()); } if (I === 0) return Q(); - Zs(ne, "remove", d), Zs(ne, "add", Ee), d = Ee; + js(ne, "remove", d), js(ne, "add", Ee), d = Ee; } function Ke(I, Q, ne) { ne === void 0 && (ne = !1); @@ -13493,14 +13582,14 @@ function Y1(t, e) { passive: !0 }), Ke("touchend", Qe, { passive: !0 - })), b1(h.props.trigger).forEach(function(I) { + })), R1(h.props.trigger).forEach(function(I) { if (I !== "manual") switch (Ke(I, de), I) { case "mouseenter": Ke("mouseleave", Qe); break; case "focus": - Ke(w1 ? "focusout" : "blur", he); + Ke(B1 ? "focusout" : "blur", he); break; case "focusin": Ke("focusout", he); @@ -13518,23 +13607,23 @@ function Y1(t, e) { var Q, ne = !1; if (!(!h.state.isEnabled || zt(I) || s)) { var Ee = ((Q = u) == null ? void 0 : Q.type) === "focus"; - u = I, f = I.currentTarget, k(), !h.state.isVisible && v1(I) && Do.forEach(function(fe) { + u = I, f = I.currentTarget, k(), !h.state.isVisible && I1(I) && Mo.forEach(function(fe) { return fe(I); }), I.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || a) && h.props.hideOnClick !== !1 && h.state.isVisible ? ne = !0 : X(I), I.type === "click" && (a = !ne), ne && !Ee && He(I); } } - function ke(I) { + function Pe(I) { var Q = I.target, ne = $().contains(Q) || T.contains(Q); if (!(I.type === "mousemove" && ne)) { var Ee = oe().concat(T).map(function(fe) { - var tt, Tt = fe._tippy, Wn = (tt = Tt.popperInstance) == null ? void 0 : tt.state; - return Wn ? { + var tt, Tt = fe._tippy, Kn = (tt = Tt.popperInstance) == null ? void 0 : tt.state; + return Kn ? { popperRect: fe.getBoundingClientRect(), - popperState: Wn, + popperState: Kn, props: n } : null; }).filter(Boolean); - A1(Ee, I) && (G(), He(I)); + w1(Ee, I) && (G(), He(I)); } } function Qe(I) { @@ -13555,21 +13644,21 @@ function Y1(t, e) { } function Et() { P(); - var I = h.props, Q = I.popperOptions, ne = I.placement, Ee = I.offset, fe = I.getReferenceClientRect, tt = I.moveTransition, Tt = Y() ? Jl(T).arrow : null, Wn = fe ? { + var I = h.props, Q = I.popperOptions, ne = I.placement, Ee = I.offset, fe = I.getReferenceClientRect, tt = I.moveTransition, Tt = Y() ? ec(T).arrow : null, Kn = fe ? { getBoundingClientRect: fe, contextElement: fe.contextElement || $() - } : t, Is = { + } : t, xs = { name: "$$tippy", enabled: !0, phase: "beforeWrite", requires: ["computeStyles"], fn: function(hi) { - var Kn = hi.state; + var Qn = hi.state; if (Y()) { - var Ou = V(), Co = Ou.box; + var xu = V(), yo = xu.box; ["placement", "reference-hidden", "escaped"].forEach(function(Ei) { - Ei === "placement" ? Co.setAttribute("data-placement", Kn.placement) : Kn.attributes.popper["data-popper-" + Ei] ? Co.setAttribute("data-" + Ei, "") : Co.removeAttribute("data-" + Ei); - }), Kn.attributes.popper = {}; + Ei === "placement" ? yo.setAttribute("data-placement", Qn.placement) : Qn.attributes.popper["data-popper-" + Ei] ? yo.setAttribute("data-" + Ei, "") : yo.removeAttribute("data-" + Ei); + }), Qn.attributes.popper = {}; } } }, Sn = [{ @@ -13597,14 +13686,14 @@ function Y1(t, e) { options: { adaptive: !tt } - }, Is]; + }, xs]; Y() && Tt && Sn.push({ name: "arrow", options: { element: Tt, padding: 3 } - }), Sn.push.apply(Sn, (Q == null ? void 0 : Q.modifiers) || []), h.popperInstance = f1(Wn, T, Object.assign({}, Q, { + }), Sn.push.apply(Sn, (Q == null ? void 0 : Q.modifiers) || []), h.popperInstance = b1(Kn, T, Object.assign({}, Q, { placement: ne, onFirstUpdate: p, modifiers: Sn @@ -13615,7 +13704,7 @@ function Y1(t, e) { } function et() { var I = h.props.appendTo, Q, ne = $(); - h.props.interactive && I === Uf || I === "parent" ? Q = ne.parentNode : Q = Hf(I, [ne]), Q.contains(T) || Q.appendChild(T), h.state.isMounted = !0, Et(), Nt.NODE_ENV !== "production" && _n(h.props.interactive && I === yt.appendTo && ne.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", ` + h.props.interactive && I === qf || I === "parent" ? Q = ne.parentNode : Q = Wf(I, [ne]), Q.contains(T) || Q.appendChild(T), h.state.isMounted = !0, Et(), At.NODE_ENV !== "production" && _n(h.props.interactive && I === yt.appendTo && ne.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", ` `, "Using a wrapper
or tag around the reference element", "solves this by creating a new parentNode context.", ` @@ -13624,7 +13713,7 @@ function Y1(t, e) { `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")); } function oe() { - return ba(T.querySelectorAll("[data-tippy-root]")); + return Ta(T.querySelectorAll("[data-tippy-root]")); } function X(I) { h.clearDelayTimeouts(), I && v("onTrigger", [h, I]), ie(); @@ -13657,12 +13746,12 @@ function Y1(t, e) { clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o); } function N(I) { - if (Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("setProps")), !h.state.isDestroyed) { + if (At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("setProps")), !h.state.isDestroyed) { v("onBeforeUpdate", [h, I]), Ft(); - var Q = h.props, ne = op(t, Object.assign({}, Q, ep(I), { + var Q = h.props, ne = up(t, Object.assign({}, Q, op(I), { ignoreAttributes: !0 })); - h.props = ne, ht(), Q.interactiveDebounce !== ne.interactiveDebounce && (G(), m = jd(ke, ne.interactiveDebounce)), Q.triggerTarget && !ne.triggerTarget ? Br(Q.triggerTarget).forEach(function(Ee) { + h.props = ne, ht(), Q.interactiveDebounce !== ne.interactiveDebounce && (G(), m = rp(Pe, ne.interactiveDebounce)), Q.triggerTarget && !ne.triggerTarget ? Br(Q.triggerTarget).forEach(function(Ee) { Ee.removeAttribute("aria-expanded"); }) : ne.triggerTarget && t.removeAttribute("aria-expanded"), k(), y(), R && R(Q, ne), h.popperInstance && (Et(), oe().forEach(function(Ee) { requestAnimationFrame(Ee._tippy.popperInstance.forceUpdate); @@ -13675,21 +13764,21 @@ function Y1(t, e) { }); } function U() { - Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("show")); - var I = h.state.isVisible, Q = h.state.isDestroyed, ne = !h.state.isEnabled, Ee = Qt.isTouch && !h.props.touch, fe = Ks(h.props.duration, 0, yt.duration); + At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("show")); + var I = h.state.isVisible, Q = h.state.isDestroyed, ne = !h.state.isEnabled, Ee = Qt.isTouch && !h.props.touch, fe = Zs(h.props.duration, 0, yt.duration); if (!(I || Q || ne || Ee) && !$().hasAttribute("disabled") && (v("onShow", [h], !1), h.props.onShow(h) !== !1)) { if (h.state.isVisible = !0, Y() && (T.style.visibility = "visible"), y(), ie(), h.state.isMounted || (T.style.transition = "none"), Y()) { - var tt = V(), Tt = tt.box, Wn = tt.content; - Qs([Tt, Wn], 0); + var tt = V(), Tt = tt.box, Kn = tt.content; + Xs([Tt, Kn], 0); } p = function() { var Sn; if (!(!h.state.isVisible || c)) { if (c = !0, T.offsetHeight, T.style.transition = h.props.moveTransition, Y() && h.props.animation) { - var To = V(), hi = To.box, Kn = To.content; - Qs([hi, Kn], fe), tp([hi, Kn], "visible"); + var Co = V(), hi = Co.box, Qn = Co.content; + Xs([hi, Qn], fe), ap([hi, Qn], "visible"); } - A(), k(), Jd(Xs, h), (Sn = h.popperInstance) == null || Sn.forceUpdate(), v("onMount", [h]), h.props.animation && Y() && Le(fe, function() { + A(), k(), ip(Js, h), (Sn = h.popperInstance) == null || Sn.forceUpdate(), v("onMount", [h]), h.props.animation && Y() && Le(fe, function() { h.state.isShown = !0, v("onShown", [h]); }); } @@ -13697,39 +13786,39 @@ function Y1(t, e) { } } function K() { - Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("hide")); - var I = !h.state.isVisible, Q = h.state.isDestroyed, ne = !h.state.isEnabled, Ee = Ks(h.props.duration, 1, yt.duration); + At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("hide")); + var I = !h.state.isVisible, Q = h.state.isDestroyed, ne = !h.state.isEnabled, Ee = Zs(h.props.duration, 1, yt.duration); if (!(I || Q || ne) && (v("onHide", [h], !1), h.props.onHide(h) !== !1)) { if (h.state.isVisible = !1, h.state.isShown = !1, c = !1, a = !1, Y() && (T.style.visibility = "hidden"), G(), ue(), y(!0), Y()) { var fe = V(), tt = fe.box, Tt = fe.content; - h.props.animation && (Qs([tt, Tt], Ee), tp([tt, Tt], "hidden")); + h.props.animation && (Xs([tt, Tt], Ee), ap([tt, Tt], "hidden")); } A(), k(), h.props.animation ? Y() && Be(Ee, h.unmount) : h.unmount(); } } function _e(I) { - Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("hideWithInteractivity")), q().addEventListener("mousemove", m), Jd(Do, m), m(I); + At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("hideWithInteractivity")), q().addEventListener("mousemove", m), ip(Mo, m), m(I); } function De() { - Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (P(), oe().forEach(function(I) { + At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (P(), oe().forEach(function(I) { I._tippy.unmount(); - }), T.parentNode && T.parentNode.removeChild(T), Xs = Xs.filter(function(I) { + }), T.parentNode && T.parentNode.removeChild(T), Js = Js.filter(function(I) { return I !== h; }), h.state.isMounted = !1, v("onHidden", [h])); } function Rr() { - Nt.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), Ft(), delete t._tippy, h.state.isDestroyed = !0, v("onDestroy", [h])); + At.NODE_ENV !== "production" && _n(h.state.isDestroyed, Ir("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), Ft(), delete t._tippy, h.state.isDestroyed = !0, v("onDestroy", [h])); } } function we(t, e) { e === void 0 && (e = {}); var n = yt.plugins.concat(e.plugins || []); - Nt.NODE_ENV !== "production" && (P1(t), $f(e, n)), D1(); + At.NODE_ENV !== "production" && (G1(t), jf(e, n)), P1(); var r = Object.assign({}, e, { plugins: n - }), i = O1(t); - if (Nt.NODE_ENV !== "production") { - var o = Zi(r.content), a = i.length > 1; + }), i = D1(t); + if (At.NODE_ENV !== "production") { + var o = Xi(r.content), a = i.length > 1; _n(o && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", ` `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", ` @@ -13738,15 +13827,15 @@ function we(t, e) { `, "2) content: () => element.cloneNode(true)"].join(" ")); } var s = i.reduce(function(l, c) { - var u = c && Y1(c, r); + var u = c && K1(c, r); return u && l.push(u), l; }, []); - return Zi(t) ? s[0] : s; + return Xi(t) ? s[0] : s; } we.defaultProps = yt; -we.setDefaultProps = U1; +we.setDefaultProps = z1; we.currentInput = Qt; -Object.assign({}, Af, { +Object.assign({}, kf, { effect: function(e) { var n = e.state, r = { popper: { @@ -13764,22 +13853,22 @@ Object.assign({}, Af, { } }); we.setDefaultProps({ - render: qf + render: Jf }); class mi extends me { constructor() { super(...arguments); - w(this, "tippyInstance"); - w(this, "tippyEl"); - w(this, "textEl"); - w(this, "menuData", []); - w(this, "menuTextWidth", "fit-content"); - w(this, "defaultMenuIndex", 0); - w(this, "refreshMenuText", !0); - w(this, "width", "fit-content"); - w(this, "dropDivWith", "fit-content"); - w(this, "dropDivHeight", "fit-content"); - w(this, "showItemsTip", !1); + L(this, "tippyInstance"); + L(this, "tippyEl"); + L(this, "textEl"); + L(this, "menuData", []); + L(this, "menuTextWidth", "fit-content"); + L(this, "defaultMenuIndex", 0); + L(this, "refreshMenuText", !0); + L(this, "width", "fit-content"); + L(this, "dropDivWith", "fit-content"); + L(this, "dropDivHeight", "fit-content"); + L(this, "showItemsTip", !1); } renderTemplate() { this.template = ` @@ -13856,57 +13945,57 @@ const se = (t) => typeof t == "string", Ti = () => { t = r, e = i; }); return n.resolve = t, n.reject = e, n; -}, lp = (t) => t == null ? "" : "" + t, z1 = (t, e, n) => { +}, _p = (t) => t == null ? "" : "" + t, Q1 = (t, e, n) => { t.forEach((r) => { e[r] && (n[r] = e[r]); }); -}, $1 = /###/g, cp = (t) => t && t.indexOf("###") > -1 ? t.replace($1, ".") : t, up = (t) => !t || se(t), Pi = (t, e, n) => { +}, Z1 = /###/g, mp = (t) => t && t.indexOf("###") > -1 ? t.replace(Z1, ".") : t, fp = (t) => !t || se(t), Fi = (t, e, n) => { const r = se(e) ? e.split(".") : e; let i = 0; for (; i < r.length - 1; ) { - if (up(t)) return {}; - const o = cp(r[i]); + if (fp(t)) return {}; + const o = mp(r[i]); !t[o] && n && (t[o] = new n()), Object.prototype.hasOwnProperty.call(t, o) ? t = t[o] : t = {}, ++i; } - return up(t) ? {} : { + return fp(t) ? {} : { obj: t, - k: cp(r[i]) + k: mp(r[i]) }; -}, dp = (t, e, n) => { +}, gp = (t, e, n) => { const { obj: r, k: i - } = Pi(t, e, Object); + } = Fi(t, e, Object); if (r !== void 0 || e.length === 1) { r[i] = n; return; } - let o = e[e.length - 1], a = e.slice(0, e.length - 1), s = Pi(t, a, Object); + let o = e[e.length - 1], a = e.slice(0, e.length - 1), s = Fi(t, a, Object); for (; s.obj === void 0 && a.length; ) - o = `${a[a.length - 1]}.${o}`, a = a.slice(0, a.length - 1), s = Pi(t, a, Object), s && s.obj && typeof s.obj[`${s.k}.${o}`] < "u" && (s.obj = void 0); + o = `${a[a.length - 1]}.${o}`, a = a.slice(0, a.length - 1), s = Fi(t, a, Object), s && s.obj && typeof s.obj[`${s.k}.${o}`] < "u" && (s.obj = void 0); s.obj[`${s.k}.${o}`] = n; -}, q1 = (t, e, n, r) => { +}, X1 = (t, e, n, r) => { const { obj: i, k: o - } = Pi(t, e, Object); + } = Fi(t, e, Object); i[o] = i[o] || [], i[o].push(n); -}, Ta = (t, e) => { +}, Ca = (t, e) => { const { obj: n, k: r - } = Pi(t, e); + } = Fi(t, e); if (n) return n[r]; -}, W1 = (t, e, n) => { - const r = Ta(t, n); - return r !== void 0 ? r : Ta(e, n); -}, Wf = (t, e, n) => { +}, j1 = (t, e, n) => { + const r = Ca(t, n); + return r !== void 0 ? r : Ca(e, n); +}, eg = (t, e, n) => { for (const r in e) - r !== "__proto__" && r !== "constructor" && (r in t ? se(t[r]) || t[r] instanceof String || se(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : Wf(t[r], e[r], n) : t[r] = e[r]); + r !== "__proto__" && r !== "constructor" && (r in t ? se(t[r]) || t[r] instanceof String || se(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : eg(t[r], e[r], n) : t[r] = e[r]); return t; }, xr = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); -var K1 = { +var J1 = { "&": "&", "<": "<", ">": ">", @@ -13914,8 +14003,8 @@ var K1 = { "'": "'", "/": "/" }; -const Q1 = (t) => se(t) ? t.replace(/[&<>"'\/]/g, (e) => K1[e]) : t; -class Z1 { +const ey = (t) => se(t) ? t.replace(/[&<>"'\/]/g, (e) => J1[e]) : t; +class ty { constructor(e) { this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = []; } @@ -13927,18 +14016,18 @@ class Z1 { return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r; } } -const X1 = [" ", ",", "?", "!", ";"], j1 = new Z1(20), J1 = (t, e, n) => { +const ny = [" ", ",", "?", "!", ";"], ry = new ty(20), iy = (t, e, n) => { e = e || "", n = n || ""; - const r = X1.filter((a) => e.indexOf(a) < 0 && n.indexOf(a) < 0); + const r = ny.filter((a) => e.indexOf(a) < 0 && n.indexOf(a) < 0); if (r.length === 0) return !0; - const i = j1.getRegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`); + const i = ry.getRegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`); let o = !i.test(t); if (!o) { const a = t.indexOf(n); a > 0 && !i.test(t.substring(0, a)) && (o = !0); } return o; -}, ec = function(t, e) { +}, tc = function(t, e) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "."; if (!t) return; if (t[e]) return t[e]; @@ -13958,7 +14047,7 @@ const X1 = [" ", ",", "?", "!", ";"], j1 = new Z1(20), J1 = (t, e, n) => { i = a; } return i; -}, Ca = (t) => t && t.replace("_", "-"), ey = { +}, ya = (t) => t && t.replace("_", "-"), oy = { type: "logger", log(t) { this.output("log", t); @@ -13973,14 +14062,14 @@ const X1 = [" ", ",", "?", "!", ";"], j1 = new Z1(20), J1 = (t, e, n) => { console && console[t] && console[t].apply(console, e); } }; -class ya { +class va { constructor(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; this.init(e, n); } init(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - this.prefix = n.prefix || "i18next:", this.logger = e || ey, this.options = n, this.debug = n.debug; + this.prefix = n.prefix || "i18next:", this.logger = e || oy, this.options = n, this.debug = n.debug; } log() { for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) @@ -14006,17 +14095,17 @@ class ya { return i && !this.debug ? null : (se(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[n](e)); } create(e) { - return new ya(this.logger, { + return new va(this.logger, { prefix: `${this.prefix}:${e}:`, ...this.options }); } clone(e) { - return e = e || this.options, e.prefix = e.prefix || this.prefix, new ya(this.logger, e); + return e = e || this.options, e.prefix = e.prefix || this.prefix, new va(this.logger, e); } } -var Xt = new ya(); -class gs { +var Xt = new va(); +class hs { constructor() { this.observers = {}; } @@ -14050,7 +14139,7 @@ class gs { }); } } -class pp extends gs { +class hp extends hs { constructor(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { ns: ["translation"], @@ -14070,8 +14159,8 @@ class pp extends gs { const o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure; let s; e.indexOf(".") > -1 ? s = e.split(".") : (s = [e, n], r && (Array.isArray(r) ? s.push(...r) : se(r) && o ? s.push(...r.split(o)) : s.push(r))); - const l = Ta(this.data, s); - return !l && !n && !r && e.indexOf(".") > -1 && (e = s[0], n = s[1], r = s.slice(2).join(".")), l || !a || !se(r) ? l : ec(this.data && this.data[e] && this.data[e][n], r, o); + const l = Ca(this.data, s); + return !l && !n && !r && e.indexOf(".") > -1 && (e = s[0], n = s[1], r = s.slice(2).join(".")), l || !a || !se(r) ? l : tc(this.data && this.data[e] && this.data[e][n], r, o); } addResource(e, n, r, i) { let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { @@ -14079,7 +14168,7 @@ class pp extends gs { }; const a = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator; let s = [e, n]; - r && (s = s.concat(a ? r.split(a) : r)), e.indexOf(".") > -1 && (s = e.split("."), i = n, n = s[1]), this.addNamespaces(n), dp(this.data, s, i), o.silent || this.emit("added", e, n, r, i); + r && (s = s.concat(a ? r.split(a) : r)), e.indexOf(".") > -1 && (s = e.split("."), i = n, n = s[1]), this.addNamespaces(n), gp(this.data, s, i), o.silent || this.emit("added", e, n, r, i); } addResources(e, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { @@ -14097,11 +14186,11 @@ class pp extends gs { skipCopy: !1 }, s = [e, n]; e.indexOf(".") > -1 && (s = e.split("."), i = r, r = n, n = s[1]), this.addNamespaces(n); - let l = Ta(this.data, s) || {}; - a.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? Wf(l, r, o) : l = { + let l = Ca(this.data, s) || {}; + a.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? eg(l, r, o) : l = { ...l, ...r - }, dp(this.data, s, l), a.silent || this.emit("added", e, n, r); + }, gp(this.data, s, l), a.silent || this.emit("added", e, n, r); } removeResourceBundle(e, n) { this.hasResourceBundle(e, n) && delete this.data[e][n], this.removeNamespaces(n), this.emit("removed", e, n); @@ -14125,7 +14214,7 @@ class pp extends gs { return this.data; } } -var Kf = { +var tg = { processors: {}, addPostProcessor(t) { this.processors[t.name] = t; @@ -14136,11 +14225,11 @@ var Kf = { }), e; } }; -const _p = {}; -class va extends gs { +const Ep = {}; +class Ra extends hs { constructor(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - super(), z1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Xt.create("translator"); + super(), Q1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Xt.create("translator"); } changeLanguage(e) { e && (this.language = e); @@ -14159,7 +14248,7 @@ class va extends gs { r === void 0 && (r = ":"); const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator; let o = n.ns || this.options.defaultNS || []; - const a = r && e.indexOf(r) > -1, s = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !J1(e, r, i); + const a = r && e.indexOf(r) > -1, s = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !iy(e, r, i); if (a && !s) { const l = e.match(this.interpolator.nestingRegexp); if (l && l.length > 0) @@ -14207,8 +14296,8 @@ class va extends gs { } const d = this.resolve(e, n); let p = d && d.res; - const _ = d && d.usedKey || a, m = d && d.exactUsedKey || a, f = Object.prototype.toString.apply(p), g = ["[object Number]", "[object Function]", "[object RegExp]"], E = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, b = !se(p) && typeof p != "boolean" && typeof p != "number"; - if (S && p && b && g.indexOf(f) < 0 && !(se(E) && Array.isArray(p))) { + const _ = d && d.usedKey || a, m = d && d.exactUsedKey || a, f = Object.prototype.toString.apply(p), g = ["[object Number]", "[object Function]", "[object RegExp]"], S = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, b = !se(p) && typeof p != "boolean" && typeof p != "number"; + if (E && p && b && g.indexOf(f) < 0 && !(se(S) && Array.isArray(p))) { if (!n.returnObjects && !this.options.returnObjects) { this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!"); const h = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(_, p, { @@ -14230,11 +14319,11 @@ class va extends gs { } p = C; } - } else if (S && se(E) && Array.isArray(p)) - p = p.join(E), p && (p = this.extendTranslation(p, e, n, r)); + } else if (E && se(S) && Array.isArray(p)) + p = p.join(S), p && (p = this.extendTranslation(p, e, n, r)); else { let h = !1, C = !1; - const T = n.count !== void 0 && !se(n.count), R = va.hasDefaultValue(n), x = T ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && T ? this.pluralResolver.getSuffix(c, n.count, { + const T = n.count !== void 0 && !se(n.count), R = Ra.hasDefaultValue(n), x = T ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && T ? this.pluralResolver.getSuffix(c, n.count, { ordinal: !1 }) : "", M = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), B = M && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${x}`] || n[`defaultValue${O}`] || n.defaultValue; !this.isValidLookup(p) && R && (h = !0, p = B), this.isValidLookup(p) || (C = !0, p = a); @@ -14306,7 +14395,7 @@ class va extends gs { }, r)), r.interpolation && this.interpolator.reset(); } const s = r.postProcess || this.options.postProcess, l = se(s) ? [s] : s; - return e != null && l && l.length && r.applyPostProcessor !== !1 && (e = Kf.handle(l, e, n, this.options && this.options.postProcessPassResolved ? { + return e != null && l && l.length && r.applyPostProcessor !== !1 && (e = tg.handle(l, e, n, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...i, usedParams: this.getUsedParamsDetails(r) @@ -14324,24 +14413,24 @@ class va extends gs { this.options.fallbackNS && (d = d.concat(this.options.fallbackNS)); const p = n.count !== void 0 && !se(n.count), _ = p && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = n.context !== void 0 && (se(n.context) || typeof n.context == "number") && n.context !== "", f = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng); d.forEach((g) => { - this.isValidLookup(r) || (s = g, !_p[`${f[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(s) && (_p[`${f[0]}-${g}`] = !0, this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((E) => { + this.isValidLookup(r) || (s = g, !Ep[`${f[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(s) && (Ep[`${f[0]}-${g}`] = !0, this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((S) => { if (this.isValidLookup(r)) return; - a = E; - const S = [u]; + a = S; + const E = [u]; if (this.i18nFormat && this.i18nFormat.addLookupKeys) - this.i18nFormat.addLookupKeys(S, u, E, g, n); + this.i18nFormat.addLookupKeys(E, u, S, g, n); else { let h; - p && (h = this.pluralResolver.getSuffix(E, n.count, n)); + p && (h = this.pluralResolver.getSuffix(S, n.count, n)); const C = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`; - if (p && (S.push(u + h), n.ordinal && h.indexOf(T) === 0 && S.push(u + h.replace(T, this.options.pluralSeparator)), _ && S.push(u + C)), m) { + if (p && (E.push(u + h), n.ordinal && h.indexOf(T) === 0 && E.push(u + h.replace(T, this.options.pluralSeparator)), _ && E.push(u + C)), m) { const R = `${u}${this.options.contextSeparator}${n.context}`; - S.push(R), p && (S.push(R + h), n.ordinal && h.indexOf(T) === 0 && S.push(R + h.replace(T, this.options.pluralSeparator)), _ && S.push(R + C)); + E.push(R), p && (E.push(R + h), n.ordinal && h.indexOf(T) === 0 && E.push(R + h.replace(T, this.options.pluralSeparator)), _ && E.push(R + C)); } } let b; - for (; b = S.pop(); ) - this.isValidLookup(r) || (o = b, r = this.getResource(E, g, b, n)); + for (; b = E.pop(); ) + this.isValidLookup(r) || (o = b, r = this.getResource(S, g, b, n)); })); }); }), { @@ -14383,18 +14472,18 @@ class va extends gs { return !1; } } -const js = (t) => t.charAt(0).toUpperCase() + t.slice(1); -class mp { +const el = (t) => t.charAt(0).toUpperCase() + t.slice(1); +class Sp { constructor(e) { this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Xt.create("languageUtils"); } getScriptPartFromCode(e) { - if (e = Ca(e), !e || e.indexOf("-") < 0) return null; + if (e = ya(e), !e || e.indexOf("-") < 0) return null; const n = e.split("-"); return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-")); } getLanguagePartFromCode(e) { - if (e = Ca(e), !e || e.indexOf("-") < 0) return e; + if (e = ya(e), !e || e.indexOf("-") < 0) return e; const n = e.split("-"); return this.formatLanguageCode(n[0]); } @@ -14408,7 +14497,7 @@ class mp { } const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"]; let r = e.split("-"); - return this.options.lowerCaseLng ? r = r.map((i) => i.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = js(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = js(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = js(r[2].toLowerCase()))), r.join("-"); + return this.options.lowerCaseLng ? r = r.map((i) => i.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = el(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = el(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = el(r[2].toLowerCase()))), r.join("-"); } return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e; } @@ -14449,7 +14538,7 @@ class mp { }), i; } } -let ty = [{ +let ay = [{ lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"], nr: [1, 2], fc: 1 @@ -14541,7 +14630,7 @@ let ty = [{ lngs: ["he", "iw"], nr: [1, 2, 20, 21], fc: 22 -}], ny = { +}], sy = { 1: (t) => +(t > 1), 2: (t) => +(t != 1), 3: (t) => 0, @@ -14565,28 +14654,28 @@ let ty = [{ 21: (t) => t % 100 == 1 ? 1 : t % 100 == 2 ? 2 : t % 100 == 3 || t % 100 == 4 ? 3 : 0, 22: (t) => t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3 }; -const ry = ["v1", "v2", "v3"], iy = ["v4"], fp = { +const ly = ["v1", "v2", "v3"], cy = ["v4"], bp = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 -}, oy = () => { +}, uy = () => { const t = {}; - return ty.forEach((e) => { + return ay.forEach((e) => { e.lngs.forEach((n) => { t[n] = { numbers: e.nr, - plurals: ny[e.fc] + plurals: sy[e.fc] }; }); }), t; }; -class ay { +class dy { constructor(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - this.languageUtils = e, this.options = n, this.logger = Xt.create("pluralResolver"), (!this.options.compatibilityJSON || iy.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = oy(), this.pluralRulesCache = {}; + this.languageUtils = e, this.options = n, this.logger = Xt.create("pluralResolver"), (!this.options.compatibilityJSON || cy.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = uy(), this.pluralRulesCache = {}; } addRule(e, n) { this.rules[e] = n; @@ -14598,7 +14687,7 @@ class ay { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (this.shouldUseIntlApi()) try { - const r = Ca(e === "dev" ? "en" : e), i = n.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({ + const r = ya(e === "dev" ? "en" : e), i = n.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({ cleanedCode: r, type: i }); @@ -14625,7 +14714,7 @@ class ay { getSuffixes(e) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const r = this.getRule(e, n); - return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((i, o) => fp[i] - fp[o]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : r.numbers.map((i) => this.getSuffix(e, i, n)) : []; + return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((i, o) => bp[i] - bp[o]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : r.numbers.map((i) => this.getSuffix(e, i, n)) : []; } getSuffix(e, n) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; @@ -14640,14 +14729,14 @@ class ay { return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? o() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString(); } shouldUseIntlApi() { - return !ry.includes(this.options.compatibilityJSON); + return !ly.includes(this.options.compatibilityJSON); } } -const gp = function(t, e, n) { - let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = W1(t, e, n); - return !o && i && se(n) && (o = ec(t, n, r), o === void 0 && (o = ec(e, n, r))), o; -}, Js = (t) => t.replace(/\$/g, "$$$$"); -class sy { +const Tp = function(t, e, n) { + let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = j1(t, e, n); + return !o && i && se(n) && (o = tc(t, n, r), o === void 0 && (o = tc(e, n, r))), o; +}, tl = (t) => t.replace(/\$/g, "$$$$"); +class py { constructor() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; this.logger = Xt.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((n) => n), this.init(e); @@ -14673,10 +14762,10 @@ class sy { nestingSuffix: m, nestingSuffixEscaped: f, nestingOptionsSeparator: g, - maxReplaces: E, - alwaysFormat: S + maxReplaces: S, + alwaysFormat: E } = e.interpolation; - this.escape = n !== void 0 ? n : Q1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? xr(o) : a || "{{", this.suffix = s ? xr(s) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = p ? xr(p) : _ || xr("$t("), this.nestingSuffix = m ? xr(m) : f || xr(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp(); + this.escape = n !== void 0 ? n : ey, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? xr(o) : a || "{{", this.suffix = s ? xr(s) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = p ? xr(p) : _ || xr("$t("), this.nestingSuffix = m ? xr(m) : f || xr(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp(); } reset() { this.options && this.init(this.options); @@ -14689,15 +14778,15 @@ class sy { let o, a, s; const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (_) => { if (_.indexOf(this.formatSeparator) < 0) { - const E = gp(n, l, _, this.options.keySeparator, this.options.ignoreJSONStructure); - return this.alwaysFormat ? this.format(E, void 0, r, { + const S = Tp(n, l, _, this.options.keySeparator, this.options.ignoreJSONStructure); + return this.alwaysFormat ? this.format(S, void 0, r, { ...i, ...n, interpolationkey: _ - }) : E; + }) : S; } const m = _.split(this.formatSeparator), f = m.shift().trim(), g = m.join(this.formatSeparator).trim(); - return this.format(gp(n, l, f, this.options.keySeparator, this.options.ignoreJSONStructure), g, r, { + return this.format(Tp(n, l, f, this.options.keySeparator, this.options.ignoreJSONStructure), g, r, { ...i, ...n, interpolationkey: f @@ -14707,10 +14796,10 @@ class sy { const u = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, d = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables; return [{ regex: this.regexpUnescape, - safeValue: (_) => Js(_) + safeValue: (_) => tl(_) }, { regex: this.regexp, - safeValue: (_) => this.escapeValue ? Js(this.escape(_)) : Js(_) + safeValue: (_) => this.escapeValue ? tl(this.escape(_)) : tl(_) }].forEach((_) => { for (s = 0; o = _.regex.exec(e); ) { const m = o[1].trim(); @@ -14725,7 +14814,7 @@ class sy { continue; } else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), a = ""; - else !se(a) && !this.useRawValueToEscape && (a = lp(a)); + else !se(a) && !this.useRawValueToEscape && (a = _p(a)); const f = _.safeValue(a); if (e = e.replace(o[0], f), d ? (_.regex.lastIndex += a.length, _.regex.lastIndex -= o[0].length) : _.regex.lastIndex = 0, s++, s >= this.maxReplaces) break; @@ -14763,7 +14852,7 @@ class sy { i[1] = u.shift(), l = u, c = !0; } if (o = n(s.call(this, i[1].trim(), a), a), o && i[0] === e && !se(o)) return o; - se(o) || (o = lp(o)), o || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), o = ""), c && (o = l.reduce((u, d) => this.format(u, d, r.lng, { + se(o) || (o = _p(o)), o || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), o = ""), c && (o = l.reduce((u, d) => this.format(u, d, r.lng, { ...r, interpolationkey: i[1].trim() }), o.trim())), e = e.replace(i[0], o), this.regexp.lastIndex = 0; @@ -14771,7 +14860,7 @@ class sy { return e; } } -const ly = (t) => { +const _y = (t) => { let e = t.toLowerCase().trim(); const n = {}; if (t.indexOf("(") > -1) { @@ -14799,10 +14888,10 @@ const ly = (t) => { }); const a = r + JSON.stringify(o); let s = e[a]; - return s || (s = t(Ca(r), i), e[a] = s), s(n); + return s || (s = t(ya(r), i), e[a] = s), s(n); }; }; -class cy { +class my { constructor() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; this.logger = Xt.create("formatter"), this.options = e, this.formats = { @@ -14847,7 +14936,7 @@ class cy { const { formatName: c, formatOptions: u - } = ly(l); + } = _y(l); if (this.formats[c]) { let d = s; try { @@ -14867,10 +14956,10 @@ class cy { }, e); } } -const uy = (t, e) => { +const fy = (t, e) => { t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--); }; -class dy extends gs { +class gy extends hs { constructor(e, n, r) { let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; super(), this.backend = e, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = Xt.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, i.backend, i); @@ -14903,7 +14992,7 @@ class dy extends gs { }), this.state[e] = n ? -1 : 2, n && r && (this.state[e] = 0); const s = {}; this.queue.forEach((l) => { - q1(l.loaded, [o], a), uy(l, e), n && l.errors.push(n), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => { + X1(l.loaded, [o], a), fy(l, e), n && l.errors.push(n), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => { s[c] || (s[c] = {}); const u = l.loaded[c]; u.length && u.forEach((d) => { @@ -15005,7 +15094,7 @@ class dy extends gs { } } } -const hp = () => ({ +const Cp = () => ({ debug: !1, initImmediate: !0, ns: ["translation"], @@ -15061,18 +15150,18 @@ const hp = () => ({ maxReplaces: 1e3, skipOnVariables: !0 } -}), Ep = (t) => (se(t.ns) && (t.ns = [t.ns]), se(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), se(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs && t.supportedLngs.indexOf("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), t), Mo = () => { -}, py = (t) => { +}), yp = (t) => (se(t.ns) && (t.ns = [t.ns]), se(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), se(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs && t.supportedLngs.indexOf("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), t), wo = () => { +}, hy = (t) => { Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n) => { typeof t[n] == "function" && (t[n] = t[n].bind(t)); }); }; -class ji extends gs { +class Ji extends hs { constructor() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0; - if (super(), this.options = Ep(e), this.services = {}, this.logger = Xt, this.modules = { + if (super(), this.options = yp(e), this.services = {}, this.logger = Xt, this.modules = { external: [] - }, py(this), n && !this.isInitialized && !e.isClone) { + }, hy(this), n && !this.isInitialized && !e.isClone) { if (!this.options.initImmediate) return this.init(e, n), this; setTimeout(() => { @@ -15084,11 +15173,11 @@ class ji extends gs { var e = this; let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0; this.isInitializing = !0, typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (se(n.ns) ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0])); - const i = hp(); + const i = Cp(); this.options = { ...i, ...this.options, - ...Ep(n) + ...yp(n) }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = { ...i.interpolation, ...this.options.interpolation @@ -15097,21 +15186,21 @@ class ji extends gs { if (!this.options.isClone) { this.modules.logger ? Xt.init(o(this.modules.logger), this.options) : Xt.init(null, this.options); let u; - this.modules.formatter ? u = this.modules.formatter : typeof Intl < "u" && (u = cy); - const d = new mp(this.options); - this.store = new pp(this.options.resources, this.options); + this.modules.formatter ? u = this.modules.formatter : typeof Intl < "u" && (u = my); + const d = new Sp(this.options); + this.store = new hp(this.options.resources, this.options); const p = this.services; - p.logger = Xt, p.resourceStore = this.store, p.languageUtils = d, p.pluralResolver = new ay(d, { + p.logger = Xt, p.resourceStore = this.store, p.languageUtils = d, p.pluralResolver = new dy(d, { prepend: this.options.pluralSeparator, compatibilityJSON: this.options.compatibilityJSON, simplifyPluralSuffix: this.options.simplifyPluralSuffix - }), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (p.formatter = o(u), p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new sy(this.options), p.utils = { + }), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (p.formatter = o(u), p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new py(this.options), p.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) - }, p.backendConnector = new dy(o(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", function(_) { + }, p.backendConnector = new gy(o(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", function(_) { for (var m = arguments.length, f = new Array(m > 1 ? m - 1 : 0), g = 1; g < m; g++) f[g - 1] = arguments[g]; e.emit(_, ...f); - }), this.modules.languageDetector && (p.languageDetector = o(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = o(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new va(this.services, this.options), this.translator.on("*", function(_) { + }), this.modules.languageDetector && (p.languageDetector = o(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = o(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Ra(this.services, this.options), this.translator.on("*", function(_) { for (var m = arguments.length, f = new Array(m > 1 ? m - 1 : 0), g = 1; g < m; g++) f[g - 1] = arguments[g]; e.emit(_, ...f); @@ -15119,7 +15208,7 @@ class ji extends gs { _.init && _.init(this); }); } - if (this.format = this.options.interpolation.format, r || (r = Mo), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) { + if (this.format = this.options.interpolation.format, r || (r = wo), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) { const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng); u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]); } @@ -15142,7 +15231,7 @@ class ji extends gs { return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), l; } loadResources(e) { - let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo; + let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : wo; const i = se(e) ? e : this.language; if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) { if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r(); @@ -15160,14 +15249,14 @@ class ji extends gs { } reloadResources(e, n, r) { const i = Ti(); - return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = Mo), this.services.backendConnector.reload(e, n, (o) => { + return typeof e == "function" && (r = e, e = void 0), typeof n == "function" && (r = n, n = void 0), e || (e = this.languages), n || (n = this.options.ns), r || (r = wo), this.services.backendConnector.reload(e, n, (o) => { i.resolve(), r(o); }), i; } use(e) { if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); - return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Kf.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this; + return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && tg.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this; } setResolvedLanguage(e) { if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) @@ -15265,29 +15354,29 @@ class ji extends gs { } dir(e) { if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl"; - const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new mp(hp()); + const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new Sp(Cp()); return n.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr"; } static createInstance() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0; - return new ji(e, n); + return new Ji(e, n); } cloneInstance() { - let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mo; + let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : wo; const r = e.forkResourceStore; r && delete e.forkResourceStore; const i = { ...this.options, ...e, isClone: !0 - }, o = new ji(i); + }, o = new Ji(i); return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((s) => { o[s] = this[s]; }), o.services = { ...this.services }, o.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) - }, r && (o.store = new pp(this.store.data, i), o.services.resourceStore = o.store), o.translator = new va(o.services, i), o.translator.on("*", function(s) { + }, r && (o.store = new hp(this.store.data, i), o.services.resourceStore = o.store), o.translator = new Ra(o.services, i), o.translator.on("*", function(s) { for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0), u = 1; u < l; u++) c[u - 1] = arguments[u]; o.emit(s, ...c); @@ -15305,8 +15394,8 @@ class ji extends gs { }; } } -const Je = ji.createInstance(); -Je.createInstance = ji.createInstance; +const Je = Ji.createInstance(); +Je.createInstance = Ji.createInstance; Je.createInstance; Je.dir; Je.init; @@ -15321,10 +15410,10 @@ Je.setDefaultNamespace; Je.hasLoadedNamespace; Je.loadNamespaces; Je.loadLanguages; -const _y = ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]; -let my = class extends mi { +const Ey = ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]; +let Sy = class extends mi { constructor() { - super(), this.menuData = _y.map((e) => ce(e)), this.dropDivHeight = "265px", this.dropDivWith = "fit-content"; + super(), this.menuData = Ey.map((e) => ce(e)), this.dropDivHeight = "265px", this.dropDivWith = "fit-content"; } onDropdownActive(e, n) { return n == 0 ? e.isActive("paragraph") : e.isActive("heading", { level: n }); @@ -15339,7 +15428,7 @@ let my = class extends mi { return this.menuData[e].replace(" ", ""); } }; -const fy = [ +const by = [ { name: "宋体", value: "SimSun" }, { name: "仿宋", value: "FangSong" }, { name: "黑体", value: "SimHei" }, @@ -15348,13 +15437,13 @@ const fy = [ { name: "方正仿宋简体_GBK", value: "FangSong_GB2312" }, { name: "Arial", value: "Arial" } ]; -let gy = class extends mi { +let Ty = class extends mi { constructor() { super(), this.width = "72px", this.menuTextWidth = "60px", this.dropDivWith = "150px"; } onCreate(e, n) { var r; - super.onCreate(e, n), this.menuData = ((r = n.fontFamily) == null ? void 0 : r.values) || fy, this.menuData = [ + super.onCreate(e, n), this.menuData = ((r = n.fontFamily) == null ? void 0 : r.values) || by, this.menuData = [ { name: ce("default-font-family"), value: "" } ].concat(this.menuData); } @@ -15372,7 +15461,7 @@ let gy = class extends mi { return this.menuData[e].name; } }; -const hy = [ +const Cy = [ { name: "9", value: 9 }, { name: "10", value: 10 }, { name: "11", value: 11 }, @@ -15391,14 +15480,14 @@ const hy = [ { name: "56", value: 56 }, { name: "72", value: 72 } ]; -class Ey extends mi { +class yy extends mi { constructor() { super(); - w(this, "defaultValue", 14); + L(this, "defaultValue", 14); } onCreate(n, r) { var i, o; - super.onCreate(n, r), this.menuData = ((i = r.fontSize) == null ? void 0 : i.values) || hy, this.defaultValue = ((o = r.fontSize) == null ? void 0 : o.defaultValue) || this.defaultValue; + super.onCreate(n, r), this.menuData = ((i = r.fontSize) == null ? void 0 : i.values) || Cy, this.defaultValue = ((o = r.fontSize) == null ? void 0 : o.defaultValue) || this.defaultValue; for (let a = 0; a < this.menuData.length; a++) if (this.menuData[a].value == this.defaultValue) { this.defaultMenuIndex = a, this.menuData[a].name = `${this.defaultValue}(${ce("default")})`; @@ -15421,7 +15510,7 @@ class Ey extends mi { return r.value == this.defaultValue ? ce("default-font-size") : r.name; } } -let Sy = class extends me { +let vy = class extends me { constructor() { super(), this.template = `
@@ -15436,7 +15525,7 @@ let Sy = class extends me { onActive(e) { return e.isActive("bold"); } -}, by = class extends me { +}, Ry = class extends me { constructor() { super(), this.template = `
@@ -15451,7 +15540,7 @@ let Sy = class extends me { onActive(e) { return e.isActive("italic"); } -}, Ty = class extends me { +}, Oy = class extends me { constructor() { super(), this.template = `
@@ -15466,7 +15555,7 @@ let Sy = class extends me { onActive(e) { return e.isActive("underline"); } -}, Cy = class extends me { +}, Ny = class extends me { constructor() { super(), this.template = `
@@ -15481,7 +15570,7 @@ let Sy = class extends me { onActive(e) { return e.isActive("strike"); } -}, yy = class extends me { +}, Ay = class extends me { constructor() { super(), this.template = `
@@ -15496,7 +15585,7 @@ let Sy = class extends me { onActive(e) { return e.isActive("subscript"); } -}, vy = class extends me { +}, Iy = class extends me { constructor() { super(), this.template = `
@@ -15512,7 +15601,7 @@ let Sy = class extends me { return e.isActive("superscript"); } }; -const Ry = [ +const xy = [ "ffffff", "000000", "e9d989", @@ -15573,16 +15662,16 @@ const Ry = [ "3f3151", "205867", "974806" -], Oy = ["c00000", "ff0000", "ffc000", "ffff00", "92d050", "00b050", "00b0f0", "0070c0", "002060", "7030a0"]; -class Qf extends me { +], Dy = ["c00000", "ff0000", "ffc000", "ffff00", "92d050", "00b050", "00b0f0", "0070c0", "002060", "7030a0"]; +class ng extends me { constructor() { super(); - w(this, "historyColorsKey", "historyColors"); - w(this, "historyColors", []); - w(this, "iconSvg"); - w(this, "menuColorEL"); - w(this, "onColorItemClick"); - w(this, "onDefaultColorClick"); + L(this, "historyColorsKey", "historyColors"); + L(this, "historyColors", []); + L(this, "iconSvg"); + L(this, "menuColorEL"); + L(this, "onColorItemClick"); + L(this, "onDefaultColorClick"); } connectedCallback() { this.template = ` @@ -15613,11 +15702,11 @@ class Qf extends me {
${ce("default")}
- ${Ry.map((r, i) => `
`).join(" ")} + ${xy.map((r, i) => `
`).join(" ")}
${ce("standardColors")}
- ${Oy.map((r) => `
`).join(" ")} + ${Dy.map((r) => `
`).join(" ")}
${ce("historyColors")}
@@ -15647,7 +15736,7 @@ class Qf extends me { `, localStorage.setItem(this.historyColorsKey, JSON.stringify(this.historyColors)), this.menuColorEL.style.background = i, this.onColorItemClick(i); } } -let Ny = class extends Qf { +let My = class extends ng { constructor() { super(), this.historyColorsKey = "highlightHistoryColors", this.iconSvg = '', this.onDefaultColorClick = () => { var e; @@ -15661,7 +15750,7 @@ let Ny = class extends Qf { return e.isActive("highlight"); } }; -class Ay extends Qf { +class wy extends ng { constructor() { super(), this.historyColorsKey = "fontHistoryColors", this.iconSvg = '', this.onDefaultColorClick = () => { var e; @@ -15675,12 +15764,12 @@ class Ay extends Qf { return e.isActive("textStyle"); } } -class Iy extends me { +class Ly extends me { constructor() { super(), this.template = '
'; } } -let xy = class extends me { +let ky = class extends me { constructor() { super(), this.template = `
@@ -15695,7 +15784,7 @@ let xy = class extends me { onActive(e) { return e.isActive("bulletList"); } -}, Dy = class extends me { +}, Py = class extends me { constructor() { super(), this.template = `
@@ -15711,7 +15800,7 @@ let xy = class extends me { return e.isActive("orderedList"); } }; -class My extends me { +class Fy extends me { constructor() { super(), this.template = `
@@ -15724,7 +15813,7 @@ class My extends me { e.outdent(); } } -class wy extends me { +class By extends me { constructor() { super(), this.template = `
@@ -15737,7 +15826,7 @@ class wy extends me { e.indent(); } } -const Ly = [ +const Uy = [ { icon: '', title: "align-left", @@ -15759,9 +15848,9 @@ const Ly = [ value: "justify" } ]; -class ky extends mi { +class Hy extends mi { constructor() { - super(), this.menuData = Ly.map((e) => ({ ...e, title: ce(e.title) })), this.showItemsTip = !0; + super(), this.menuData = Uy.map((e) => ({ ...e, title: ce(e.title) })), this.showItemsTip = !0; } onDropdownActive(e, n) { return e.isActive({ textAlign: this.menuData[n].value }); @@ -15776,12 +15865,12 @@ class ky extends mi { return this.menuData[e].icon; } } -class Wc { +class Xc { constructor() { - w(this, "tippyInstance"); - w(this, "content"); - w(this, "onConfirmClickFunc"); - w(this, "onShowFunc"); + L(this, "tippyInstance"); + L(this, "content"); + L(this, "onConfirmClickFunc"); + L(this, "onShowFunc"); } setContent(e) { this.content = e; @@ -15832,7 +15921,7 @@ class Wc { }), n; } } -let Py = class extends me { +let Gy = class extends me { constructor() { super(), this.template = `
@@ -15842,7 +15931,7 @@ let Py = class extends me { } connectedCallback() { super.connectedCallback(); - const e = new Wc(); + const e = new Xc(); e.setContent(`
${ce("link-address")}
@@ -15879,7 +15968,7 @@ let Py = class extends me { return e.isActive("link"); } }; -class Fy extends me { +class Vy extends me { constructor() { super(), this.template = `
@@ -15889,7 +15978,7 @@ class Fy extends me { } connectedCallback() { super.connectedCallback(); - const e = new Wc(); + const e = new Xc(); e.setContent(`
@@ -15904,7 +15993,7 @@ class Fy extends me { }), e.setTrigger(this.querySelector("div"), "bottom"); } } -class By extends me { +class Yy extends me { constructor() { super(), this.template = `
@@ -15920,14 +16009,14 @@ class By extends me { return e.isActive("taskList"); } } -const Uy = ["1.0", "1.25", "1.5", "2.0", "2.5", "3.0"]; -class Hy extends mi { +const zy = ["1.0", "1.25", "1.5", "2.0", "2.5", "3.0"]; +class $y extends mi { constructor() { super(), this.refreshMenuText = !1, this.dropDivWith = "70px", this.width = "36px", this.menuTextWidth = "20px"; } onCreate(e, n) { var r; - super.onCreate(e, n), this.menuData = ((r = n.lineHeight) == null ? void 0 : r.values) || Uy; + super.onCreate(e, n), this.menuData = ((r = n.lineHeight) == null ? void 0 : r.values) || zy; } onDropdownActive(e, n) { let r = null; @@ -15948,7 +16037,7 @@ class Hy extends mi { `; } } -class Gy extends me { +class qy extends me { constructor() { super(), this.template = `
@@ -15964,10 +16053,10 @@ class Gy extends me { return e.isActive("blockquote"); } } -let Vy = class extends me { +let Wy = class extends me { constructor() { super(); - w(this, "fileInput"); + L(this, "fileInput"); this.template = `
@@ -15992,10 +16081,10 @@ let Vy = class extends me { (i = (r = this.options) == null ? void 0 : r.image) != null && i.customMenuInvoke ? this.options.image.customMenuInvoke(this.editor.aiEditor) : (o = this.fileInput) == null || o.click(); } }; -class Yy extends me { +class Ky extends me { constructor() { super(); - w(this, "fileInput"); + L(this, "fileInput"); this.template = `
@@ -16020,7 +16109,7 @@ class Yy extends me { (i = (r = this.options) == null ? void 0 : r.video) != null && i.customMenuInvoke ? this.options.video.customMenuInvoke(this.editor.aiEditor) : (o = this.fileInput) == null || o.click(); } } -let zy = class extends me { +let Qy = class extends me { constructor() { super(), this.template = `
@@ -16035,7 +16124,7 @@ let zy = class extends me { onActive(e) { return e.isActive("code"); } -}, $y = class extends me { +}, Zy = class extends me { constructor() { super(), this.template = `
@@ -16051,7 +16140,7 @@ let zy = class extends me { return e.isActive("codeBlock"); } }; -class qy extends me { +class Xy extends me { constructor() { super(), this.template = `
@@ -16064,7 +16153,7 @@ class qy extends me { e.unsetAllMarks(); } } -class Wy extends me { +class jy extends me { constructor() { super(), this.template = `
@@ -16077,10 +16166,10 @@ class Wy extends me { e.setHorizontalRule(); } } -let Ky = class extends me { +let Jy = class extends me { constructor() { super(); - w(this, "instance"); + L(this, "instance"); this.template = `
@@ -16134,7 +16223,7 @@ let Ky = class extends me { }), n; } }; -class Qy extends me { +class ev extends me { constructor() { super(), this.template = `
@@ -16147,10 +16236,10 @@ class Qy extends me { e.setHardBreak(); } } -class Zy extends me { +class tv extends me { constructor() { super(); - w(this, "fileInput"); + L(this, "fileInput"); this.template = `
@@ -16175,12 +16264,12 @@ class Zy extends me { (i = (r = this.options) == null ? void 0 : r.attachment) != null && i.customMenuInvoke ? this.options.attachment.customMenuInvoke(this.editor.aiEditor) : (o = this.fileInput) == null || o.click(); } } -class Xy extends me { +class nv extends me { constructor() { super(); - w(this, "fullscreenSvg", ''); - w(this, "fullscreenExitSvg", ''); - w(this, "isFullscreen", !1); + L(this, "fullscreenSvg", ''); + L(this, "fullscreenExitSvg", ''); + L(this, "isFullscreen", !1); this.template = `
${this.fullscreenSvg} @@ -16193,7 +16282,7 @@ class Xy extends me { this.isFullscreen ? (r.style.height = "100%", r.style.width = "", r.style.background = "", r.style.position = "", r.style.top = "", r.style.left = "", r.style.zIndex = "") : (r.style.height = "calc(100vh - 2px)", r.style.width = "calc(100% - 2px)", r.style.position = "fixed", r.style.top = "0", r.style.left = "0", r.style.zIndex = "9999"), this.isFullscreen = !this.isFullscreen, this.querySelector("div").innerHTML = this.isFullscreen ? this.fullscreenExitSvg : this.fullscreenSvg; } } -class jy extends me { +class rv extends me { constructor() { super(), this.template = `
@@ -16228,7 +16317,7 @@ class jy extends me { }); } } -const Sp = [ +const vp = [ "😀", "😃", "😄", @@ -16368,11 +16457,11 @@ const Sp = [ "💨", "💤" ]; -class Jy extends me { +class iv extends me { constructor() { super(); - w(this, "emojis", Sp); - w(this, "tippy"); + L(this, "emojis", vp); + L(this, "tippy"); this.template = `
@@ -16381,7 +16470,7 @@ class Jy extends me { } onCreate(n, r) { var i; - super.onCreate(n, r), this.emojis = ((i = r.emoji) == null ? void 0 : i.values) || Sp; + super.onCreate(n, r), this.emojis = ((i = r.emoji) == null ? void 0 : i.values) || vp; } connectedCallback() { super.connectedCallback(), this.tippy = we(this.querySelector("svg"), { @@ -16406,7 +16495,7 @@ class Jy extends me { }), n; } } -class ev extends me { +class ov extends me { constructor() { super(), this.template = '
', this.registerClickListener(); } @@ -16416,12 +16505,12 @@ class ev extends me { e.setPainter((n = this.editor) == null ? void 0 : n.state.selection.$head.marks()); } } -class ho { +class Eo { constructor(e, n, r) { - w(this, "editor"); - w(this, "globalConfig"); - w(this, "aiModelName"); - w(this, "aiModelConfig"); + L(this, "editor"); + L(this, "globalConfig"); + L(this, "aiModelName"); + L(this, "aiModelConfig"); this.editor = e, this.globalConfig = n, this.aiModelName = r, this.aiModelConfig = n.models[r]; } chatWithPayload(e, n) { @@ -16443,14 +16532,14 @@ class ho { this.globalConfig.onCreateClientUrl ? this.globalConfig.onCreateClientUrl(this.aiModelName, this.aiModelConfig, i, o) : i(this.createAiClientUrl()); } } -class Zf { +class rg { constructor(e, n) { - w(this, "isStop", !1); - w(this, "url"); - w(this, "webSocket"); - w(this, "isOpen", !1); - w(this, "payload"); - w(this, "listener"); + L(this, "isStop", !1); + L(this, "url"); + L(this, "webSocket"); + L(this, "isOpen", !1); + L(this, "payload"); + L(this, "listener"); this.url = e, this.listener = n; } start(e) { @@ -16476,10 +16565,10 @@ class Zf { } } var wn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Kc(t) { +function jc(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function tv(t) { +function av(t) { if (t.__esModule) return t; var e = t.default; if (typeof e == "function") { @@ -16498,26 +16587,26 @@ function tv(t) { }); }), n; } -var Xf = { exports: {} }; -function nv(t) { +var ig = { exports: {} }; +function sv(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var el = { exports: {} }; -const rv = {}, iv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var nl = { exports: {} }; +const lv = {}, cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: rv -}, Symbol.toStringTag, { value: "Module" })), ov = /* @__PURE__ */ tv(iv); -var bp; -function hs() { - return bp || (bp = 1, function(t, e) { + default: lv +}, Symbol.toStringTag, { value: "Module" })), uv = /* @__PURE__ */ av(cv); +var Rp; +function Es() { + return Rp || (Rp = 1, function(t, e) { (function(n, r) { t.exports = r(); })(wn, function() { var n = n || function(r, i) { var o; - if (typeof window < "u" && window.crypto && (o = window.crypto), typeof self < "u" && self.crypto && (o = self.crypto), typeof globalThis < "u" && globalThis.crypto && (o = globalThis.crypto), !o && typeof window < "u" && window.msCrypto && (o = window.msCrypto), !o && typeof wn < "u" && wn.crypto && (o = wn.crypto), !o && typeof nv == "function") + if (typeof window < "u" && window.crypto && (o = window.crypto), typeof self < "u" && self.crypto && (o = self.crypto), typeof globalThis < "u" && globalThis.crypto && (o = globalThis.crypto), !o && typeof window < "u" && window.msCrypto && (o = window.msCrypto), !o && typeof wn < "u" && wn.crypto && (o = wn.crypto), !o && typeof sv == "function") try { - o = ov; + o = uv; } catch { } var a = function() { @@ -16535,11 +16624,11 @@ function hs() { } throw new Error("Native crypto module could not be used to get secure random number."); }, s = Object.create || /* @__PURE__ */ function() { - function S() { + function E() { } return function(b) { var h; - return S.prototype = b, h = new S(), S.prototype = null, h; + return E.prototype = b, h = new E(), E.prototype = null, h; }; }(), l = {}, c = l.lib = {}, u = c.Base = /* @__PURE__ */ function() { return { @@ -16561,9 +16650,9 @@ function hs() { * } * }); */ - extend: function(S) { + extend: function(E) { var b = s(this); - return S && b.mixIn(S), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() { + return E && b.mixIn(E), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() { b.$super.init.apply(this, arguments); }), b.init.prototype = b, b.$super = this, b; }, @@ -16580,8 +16669,8 @@ function hs() { * var instance = MyType.create(); */ create: function() { - var S = this.extend(); - return S.init.apply(S, arguments), S; + var E = this.extend(); + return E.init.apply(E, arguments), E; }, /** * Initializes a newly created object. @@ -16608,10 +16697,10 @@ function hs() { * field: 'value' * }); */ - mixIn: function(S) { - for (var b in S) - S.hasOwnProperty(b) && (this[b] = S[b]); - S.hasOwnProperty("toString") && (this.toString = S.toString); + mixIn: function(E) { + for (var b in E) + E.hasOwnProperty(b) && (this[b] = E[b]); + E.hasOwnProperty("toString") && (this.toString = E.toString); }, /** * Creates a copy of this object. @@ -16639,8 +16728,8 @@ function hs() { * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); */ - init: function(S, b) { - S = this.words = S || [], b != i ? this.sigBytes = b : this.sigBytes = S.length * 4; + init: function(E, b) { + E = this.words = E || [], b != i ? this.sigBytes = b : this.sigBytes = E.length * 4; }, /** * Converts this word array to a string. @@ -16655,8 +16744,8 @@ function hs() { * var string = wordArray.toString(); * var string = wordArray.toString(CryptoJS.enc.Utf8); */ - toString: function(S) { - return (S || _).stringify(this); + toString: function(E) { + return (E || _).stringify(this); }, /** * Concatenates a word array to this word array. @@ -16669,8 +16758,8 @@ function hs() { * * wordArray1.concat(wordArray2); */ - concat: function(S) { - var b = this.words, h = S.words, C = this.sigBytes, T = S.sigBytes; + concat: function(E) { + var b = this.words, h = E.words, C = this.sigBytes, T = E.sigBytes; if (this.clamp(), C % 4) for (var R = 0; R < T; R++) { var x = h[R >>> 2] >>> 24 - R % 4 * 8 & 255; @@ -16689,8 +16778,8 @@ function hs() { * wordArray.clamp(); */ clamp: function() { - var S = this.words, b = this.sigBytes; - S[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, S.length = r.ceil(b / 4); + var E = this.words, b = this.sigBytes; + E[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, E.length = r.ceil(b / 4); }, /** * Creates a copy of this word array. @@ -16702,8 +16791,8 @@ function hs() { * var clone = wordArray.clone(); */ clone: function() { - var S = u.clone.call(this); - return S.words = this.words.slice(0), S; + var E = u.clone.call(this); + return E.words = this.words.slice(0), E; }, /** * Creates a word array filled with random bytes. @@ -16718,10 +16807,10 @@ function hs() { * * var wordArray = CryptoJS.lib.WordArray.random(16); */ - random: function(S) { - for (var b = [], h = 0; h < S; h += 4) + random: function(E) { + for (var b = [], h = 0; h < E; h += 4) b.push(a()); - return new d.init(b, S); + return new d.init(b, E); } }), p = l.enc = {}, _ = p.Hex = { /** @@ -16737,8 +16826,8 @@ function hs() { * * var hexString = CryptoJS.enc.Hex.stringify(wordArray); */ - stringify: function(S) { - for (var b = S.words, h = S.sigBytes, C = [], T = 0; T < h; T++) { + stringify: function(E) { + for (var b = E.words, h = E.sigBytes, C = [], T = 0; T < h; T++) { var R = b[T >>> 2] >>> 24 - T % 4 * 8 & 255; C.push((R >>> 4).toString(16)), C.push((R & 15).toString(16)); } @@ -16757,9 +16846,9 @@ function hs() { * * var wordArray = CryptoJS.enc.Hex.parse(hexString); */ - parse: function(S) { - for (var b = S.length, h = [], C = 0; C < b; C += 2) - h[C >>> 3] |= parseInt(S.substr(C, 2), 16) << 24 - C % 8 * 4; + parse: function(E) { + for (var b = E.length, h = [], C = 0; C < b; C += 2) + h[C >>> 3] |= parseInt(E.substr(C, 2), 16) << 24 - C % 8 * 4; return new d.init(h, b / 2); } }, m = p.Latin1 = { @@ -16776,8 +16865,8 @@ function hs() { * * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); */ - stringify: function(S) { - for (var b = S.words, h = S.sigBytes, C = [], T = 0; T < h; T++) { + stringify: function(E) { + for (var b = E.words, h = E.sigBytes, C = [], T = 0; T < h; T++) { var R = b[T >>> 2] >>> 24 - T % 4 * 8 & 255; C.push(String.fromCharCode(R)); } @@ -16796,9 +16885,9 @@ function hs() { * * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); */ - parse: function(S) { - for (var b = S.length, h = [], C = 0; C < b; C++) - h[C >>> 2] |= (S.charCodeAt(C) & 255) << 24 - C % 4 * 8; + parse: function(E) { + for (var b = E.length, h = [], C = 0; C < b; C++) + h[C >>> 2] |= (E.charCodeAt(C) & 255) << 24 - C % 4 * 8; return new d.init(h, b); } }, f = p.Utf8 = { @@ -16815,9 +16904,9 @@ function hs() { * * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); */ - stringify: function(S) { + stringify: function(E) { try { - return decodeURIComponent(escape(m.stringify(S))); + return decodeURIComponent(escape(m.stringify(E))); } catch { throw new Error("Malformed UTF-8 data"); } @@ -16835,8 +16924,8 @@ function hs() { * * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); */ - parse: function(S) { - return m.parse(unescape(encodeURIComponent(S))); + parse: function(E) { + return m.parse(unescape(encodeURIComponent(E))); } }, g = c.BufferedBlockAlgorithm = u.extend({ /** @@ -16859,8 +16948,8 @@ function hs() { * bufferedBlockAlgorithm._append('data'); * bufferedBlockAlgorithm._append(wordArray); */ - _append: function(S) { - typeof S == "string" && (S = f.parse(S)), this._data.concat(S), this._nDataBytes += S.sigBytes; + _append: function(E) { + typeof E == "string" && (E = f.parse(E)), this._data.concat(E), this._nDataBytes += E.sigBytes; }, /** * Processes available data blocks. @@ -16876,9 +16965,9 @@ function hs() { * var processedData = bufferedBlockAlgorithm._process(); * var processedData = bufferedBlockAlgorithm._process(!!'flush'); */ - _process: function(S) { + _process: function(E) { var b, h = this._data, C = h.words, T = h.sigBytes, R = this.blockSize, x = R * 4, O = T / x; - S ? O = r.ceil(O) : O = r.max((O | 0) - this._minBufferSize, 0); + E ? O = r.ceil(O) : O = r.max((O | 0) - this._minBufferSize, 0); var M = O * R, B = r.min(M * 4, T); if (M) { for (var Y = 0; Y < M; Y += R) @@ -16897,8 +16986,8 @@ function hs() { * var clone = bufferedBlockAlgorithm.clone(); */ clone: function() { - var S = u.clone.call(this); - return S._data = this._data.clone(), S; + var E = u.clone.call(this); + return E._data = this._data.clone(), E; }, _minBufferSize: 0 }); @@ -16916,8 +17005,8 @@ function hs() { * * var hasher = CryptoJS.algo.SHA256.create(); */ - init: function(S) { - this.cfg = this.cfg.extend(S), this.reset(); + init: function(E) { + this.cfg = this.cfg.extend(E), this.reset(); }, /** * Resets this hasher to its initial state. @@ -16941,8 +17030,8 @@ function hs() { * hasher.update('message'); * hasher.update(wordArray); */ - update: function(S) { - return this._append(S), this._process(), this; + update: function(E) { + return this._append(E), this._process(), this; }, /** * Finalizes the hash computation. @@ -16958,8 +17047,8 @@ function hs() { * var hash = hasher.finalize('message'); * var hash = hasher.finalize(wordArray); */ - finalize: function(S) { - S && this._append(S); + finalize: function(E) { + E && this._append(E); var b = this._doFinalize(); return b; }, @@ -16977,9 +17066,9 @@ function hs() { * * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); */ - _createHelper: function(S) { + _createHelper: function(E) { return function(b, h) { - return new S.init(h).finalize(b); + return new E.init(h).finalize(b); }; }, /** @@ -16995,36 +17084,36 @@ function hs() { * * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); */ - _createHmacHelper: function(S) { + _createHmacHelper: function(E) { return function(b, h) { - return new E.HMAC.init(S, h).finalize(b); + return new S.HMAC.init(E, h).finalize(b); }; } }); - var E = l.algo = {}; + var S = l.algo = {}; return l; }(Math); return n; }); - }(el)), el.exports; + }(nl)), nl.exports; } -var tl = { exports: {} }, Tp; -function av() { - return Tp || (Tp = 1, function(t, e) { +var rl = { exports: {} }, Op; +function dv() { + return Op || (Op = 1, function(t, e) { (function(n, r) { - t.exports = r(hs()); + t.exports = r(Es()); })(wn, function(n) { return function(r) { var i = n, o = i.lib, a = o.WordArray, s = o.Hasher, l = i.algo, c = [], u = []; (function() { - function _(E) { - for (var S = r.sqrt(E), b = 2; b <= S; b++) - if (!(E % b)) + function _(S) { + for (var E = r.sqrt(S), b = 2; b <= E; b++) + if (!(S % b)) return !1; return !0; } - function m(E) { - return (E - (E | 0)) * 4294967296 | 0; + function m(S) { + return (S - (S | 0)) * 4294967296 | 0; } for (var f = 2, g = 0; g < 64; ) _(f) && (g < 8 && (c[g] = m(r.pow(f, 1 / 2))), u[g] = m(r.pow(f, 1 / 3)), g++), f++; @@ -17034,17 +17123,17 @@ function av() { this._hash = new a.init(c.slice(0)); }, _doProcessBlock: function(_, m) { - for (var f = this._hash.words, g = f[0], E = f[1], S = f[2], b = f[3], h = f[4], C = f[5], T = f[6], R = f[7], x = 0; x < 64; x++) { + for (var f = this._hash.words, g = f[0], S = f[1], E = f[2], b = f[3], h = f[4], C = f[5], T = f[6], R = f[7], x = 0; x < 64; x++) { if (x < 16) d[x] = _[m + x] | 0; else { var O = d[x - 15], M = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3, B = d[x - 2], Y = (B << 15 | B >>> 17) ^ (B << 13 | B >>> 19) ^ B >>> 10; d[x] = M + d[x - 7] + Y + d[x - 16]; } - var $ = h & C ^ ~h & T, q = g & E ^ g & S ^ E & S, V = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), J = (h << 26 | h >>> 6) ^ (h << 21 | h >>> 11) ^ (h << 7 | h >>> 25), y = R + J + $ + u[x] + d[x], v = V + q; - R = T, T = C, C = h, h = b + y | 0, b = S, S = E, E = g, g = y + v | 0; + var $ = h & C ^ ~h & T, q = g & S ^ g & E ^ S & E, V = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), J = (h << 26 | h >>> 6) ^ (h << 21 | h >>> 11) ^ (h << 7 | h >>> 25), y = R + J + $ + u[x] + d[x], v = V + q; + R = T, T = C, C = h, h = b + y | 0, b = E, E = S, S = g, g = y + v | 0; } - f[0] = f[0] + g | 0, f[1] = f[1] + E | 0, f[2] = f[2] + S | 0, f[3] = f[3] + b | 0, f[4] = f[4] + h | 0, f[5] = f[5] + C | 0, f[6] = f[6] + T | 0, f[7] = f[7] + R | 0; + f[0] = f[0] + g | 0, f[1] = f[1] + S | 0, f[2] = f[2] + E | 0, f[3] = f[3] + b | 0, f[4] = f[4] + h | 0, f[5] = f[5] + C | 0, f[6] = f[6] + T | 0, f[7] = f[7] + R | 0; }, _doFinalize: function() { var _ = this._data, m = _.words, f = this._nDataBytes * 8, g = _.sigBytes * 8; @@ -17058,13 +17147,13 @@ function av() { i.SHA256 = s._createHelper(p), i.HmacSHA256 = s._createHmacHelper(p); }(Math), n.SHA256; }); - }(tl)), tl.exports; + }(rl)), rl.exports; } -var nl = { exports: {} }, Cp; -function sv() { - return Cp || (Cp = 1, function(t, e) { +var il = { exports: {} }, Np; +function pv() { + return Np || (Np = 1, function(t, e) { (function(n, r) { - t.exports = r(hs()); + t.exports = r(Es()); })(wn, function(n) { (function() { var r = n, i = r.lib, o = i.Base, a = r.enc, s = a.Utf8, l = r.algo; @@ -17083,8 +17172,8 @@ function sv() { c = this._hasher = new c.init(), typeof u == "string" && (u = s.parse(u)); var d = c.blockSize, p = d * 4; u.sigBytes > p && (u = c.finalize(u)), u.clamp(); - for (var _ = this._oKey = u.clone(), m = this._iKey = u.clone(), f = _.words, g = m.words, E = 0; E < d; E++) - f[E] ^= 1549556828, g[E] ^= 909522486; + for (var _ = this._oKey = u.clone(), m = this._iKey = u.clone(), f = _.words, g = m.words, S = 0; S < d; S++) + f[S] ^= 1549556828, g[S] ^= 909522486; _.sigBytes = m.sigBytes = p, this.reset(); }, /** @@ -17136,21 +17225,21 @@ function sv() { }); })(); }); - }(nl)), nl.exports; + }(il)), il.exports; } (function(t, e) { (function(n, r, i) { - t.exports = r(hs(), av(), sv()); + t.exports = r(Es(), dv(), pv()); })(wn, function(n) { return n.HmacSHA256; }); -})(Xf); -var lv = Xf.exports; -const cv = /* @__PURE__ */ Kc(lv); -var jf = { exports: {} }; +})(ig); +var _v = ig.exports; +const mv = /* @__PURE__ */ jc(_v); +var og = { exports: {} }; (function(t, e) { (function(n, r) { - t.exports = r(hs()); + t.exports = r(Es()); })(wn, function(n) { return function() { var r = n, i = r.lib, o = i.WordArray, a = r.enc; @@ -17172,8 +17261,8 @@ var jf = { exports: {} }; var c = l.words, u = l.sigBytes, d = this._map; l.clamp(); for (var p = [], _ = 0; _ < u; _ += 3) - for (var m = c[_ >>> 2] >>> 24 - _ % 4 * 8 & 255, f = c[_ + 1 >>> 2] >>> 24 - (_ + 1) % 4 * 8 & 255, g = c[_ + 2 >>> 2] >>> 24 - (_ + 2) % 4 * 8 & 255, E = m << 16 | f << 8 | g, S = 0; S < 4 && _ + S * 0.75 < u; S++) - p.push(d.charAt(E >>> 6 * (3 - S) & 63)); + for (var m = c[_ >>> 2] >>> 24 - _ % 4 * 8 & 255, f = c[_ + 1 >>> 2] >>> 24 - (_ + 1) % 4 * 8 & 255, g = c[_ + 2 >>> 2] >>> 24 - (_ + 2) % 4 * 8 & 255, S = m << 16 | f << 8 | g, E = 0; E < 4 && _ + E * 0.75 < u; E++) + p.push(d.charAt(S >>> 6 * (3 - E) & 63)); var b = d.charAt(64); if (b) for (; p.length % 4; ) @@ -17219,13 +17308,13 @@ var jf = { exports: {} }; } }(), n.enc.Base64; }); -})(jf); -var uv = jf.exports; -const dv = /* @__PURE__ */ Kc(uv), Es = () => "10000000-1000-4000-8000-100000000000".replace( +})(og); +var fv = og.exports; +const gv = /* @__PURE__ */ jc(fv), Ss = () => "10000000-1000-4000-8000-100000000000".replace( /[018]/g, (t) => (t ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t / 4).toString(16) ); -class pv extends ho { +class hv extends Eo { constructor(e, n) { super(e, n, "spark"), this.aiModelConfig = { version: "v3.5", @@ -17234,7 +17323,7 @@ class pv extends ho { }; } createAiClient(e, n) { - return new Zf(e, { + return new rg(e, { onStart: n.onStart, onStop: n.onStop, // 星火内容解析 https://www.xfyun.cn/doc/spark/Web.html#_1-%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E @@ -17252,7 +17341,7 @@ class pv extends ho { const n = this.aiModelConfig, r = { header: { app_id: n.appId, - uid: Es().replace(/-/g, "") + uid: Ss().replace(/-/g, "") }, parameter: { chat: { @@ -17281,6 +17370,8 @@ class pv extends ho { return "generalv3"; case "v2.1": return "generalv2"; + case "v1.1": + return "lite"; default: return "general"; } @@ -17291,18 +17382,18 @@ class pv extends ho { `; r += "date: " + n + ` `, r += `GET /${e.version}/chat HTTP/1.1`; - const i = cv(r, e.apiSecret), o = dv.stringify(i), a = `api_key="${e.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`, s = btoa(a); + const i = mv(r, e.apiSecret), o = gv.stringify(i), a = `api_key="${e.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`, s = btoa(a); return `${e.protocol}://spark-api.xf-yun.com/${e.version}/chat?authorization=${s}&date=${encodeURIComponent(n)}&host=spark-api.xf-yun.com`; } } -class Jf { +class ag { constructor(e, n) { - w(this, "isStop", !1); - w(this, "config"); - w(this, "fetch"); - w(this, "isOpen", !1); - w(this, "payload"); - w(this, "listener"); + L(this, "isStop", !1); + L(this, "config"); + L(this, "fetch"); + L(this, "isOpen", !1); + L(this, "payload"); + L(this, "listener"); this.config = e, this.listener = n; } start(e) { @@ -17342,14 +17433,14 @@ class Jf { this.isOpen = !1, this.isStop || (this.listener.onStop(), this.isStop = !0); } } -class _v extends ho { +class Ev extends Eo { constructor(e, n) { super(e, n, "wenxin"), this.aiModelConfig = { ...n.models.wenxin }; } createAiClient(e, n) { - return new Jf({ url: e, method: "POST" }, { + return new ag({ url: e, method: "POST" }, { onStart: n.onStart, onStop: n.onStop, onMessage: (r) => { @@ -17384,7 +17475,7 @@ class _v extends ho { } } var mn; -class mv extends TransformStream { +class Sv extends TransformStream { /** Constructs a new instance. */ constructor(n = { allowCR: !1 }) { super({ @@ -17401,7 +17492,7 @@ class mv extends TransformStream { const s = r[o - 1] === "\r" ? o - 1 : o; i.enqueue(r.slice(0, s)), r = r.slice(o + 1); } - Fu(this, mn, r); + Gu(this, mn, r); }, flush: (r) => { if (Or(this, mn) === "") @@ -17410,15 +17501,15 @@ class mv extends TransformStream { r.enqueue(i); } }); - Pu(this, mn, ""); + Hu(this, mn, ""); } } mn = new WeakMap(); -function fv(t) { - let e = new TextDecoderStream(), n = new mv({ allowCR: !0 }); +function bv(t) { + let e = new TextDecoderStream(), n = new Sv({ allowCR: !0 }); return t.pipeThrough(e).pipeThrough(n); } -function gv(t) { +function Tv(t) { let n = /[:]\s*/.exec(t), r = n && n.index; if (r) return [ @@ -17426,10 +17517,10 @@ function gv(t) { t.substring(r + n[0].length) ]; } -async function* hv(t, e) { +async function* Cv(t, e) { if (!t.body) return; - let n = fv(t.body), r, i = n.getReader(), o; + let n = bv(t.body), r, i = n.getReader(), o; for (; ; ) { if (e && e.aborted) return i.cancel(); @@ -17439,20 +17530,20 @@ async function* hv(t, e) { o && (yield o), o = void 0; continue; } - let [a, s] = gv(r.value) || []; + let [a, s] = Tv(r.value) || []; a && (a === "data" ? (o || (o = {}), o[a] = o[a] ? o[a] + ` ` + s : s) : a === "event" ? (o || (o = {}), o[a] = s) : a === "id" ? (o || (o = {}), o[a] = +s || s) : a === "retry" && (o || (o = {}), o[a] = +s || void 0)); } } -class Qc { +class Jc { constructor(e, n) { - w(this, "isStop", !1); - w(this, "config"); - w(this, "fetch"); - w(this, "isOpen", !1); - w(this, "payload"); - w(this, "listener"); - w(this, "ctrl", new AbortController()); + L(this, "isStop", !1); + L(this, "config"); + L(this, "fetch"); + L(this, "isOpen", !1); + L(this, "payload"); + L(this, "listener"); + L(this, "ctrl", new AbortController()); this.config = e, this.listener = n; } start(e) { @@ -17473,7 +17564,7 @@ class Qc { return; } try { - let r = hv(n, this.ctrl.signal); + let r = Cv(n, this.ctrl.signal); for await (let i of r) i.data && i.data.trim() !== "[DONE]" && this.onMessage(i.data); } catch (r) { @@ -17495,7 +17586,7 @@ class Qc { this.isOpen = !1, this.isStop || (this.listener.onStop(), this.isStop = !0); } } -class Ev extends ho { +class yv extends Eo { constructor(e, n) { super(e, n, "custom"), this.aiModelConfig = { protocol: "sse", @@ -17517,7 +17608,7 @@ class Ev extends ho { method: r.method || "post", headers: (a = r.headers) == null ? void 0 : a.call(r) }; - return r.protocol === "sse" ? new Qc(o, i) : r.protocol === "http" ? new Jf(o, i) : new Zf(e, i); + return r.protocol === "sse" ? new Jc(o, i) : r.protocol === "http" ? new ag(o, i) : new rg(e, i); } wrapPayload(e) { var r; @@ -17530,47 +17621,46 @@ class Ev extends ho { return typeof e.url == "string" ? e.url : (n = e.url) == null ? void 0 : n.call(e); } } -class Sv extends ho { +class vv extends Eo { constructor(e, n) { super(e, n, "openai"), this.aiModelConfig = { endpoint: "https://api.openai.com", - model: "gpt-3.5-turbo", + // model: "gpt-3.5-turbo", ...n.models.openai }; } createAiClient(e, n) { - const r = this.aiModelConfig; - return new Qc({ + const r = this.aiModelConfig, i = { + "Content-Type": "application/json" + }; + return r.apiKey && (i.Authorization = `Bearer ${r.apiKey}`), new Jc({ url: e, method: "post", - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${r.apiKey}` - } + headers: i }, { onStart: n.onStart, onStop: n.onStop, - onMessage: (i) => { - var a, s; - let o = null; + onMessage: (o) => { + var s, l; + let a = null; try { - o = JSON.parse(i); - } catch (l) { - console.error("error", l, i); + a = JSON.parse(o); + } catch (c) { + console.error("error", c, o); return; } - n.onMessage({ - status: o.choices[0].finish_reason === "stop" ? 2 : 1, + !a.choices || a.choices.length === 0 || (n.onMessage({ + status: a.choices[0].finish_reason === "stop" ? 2 : 1, role: "assistant", - content: ((a = o.choices[0].delta) == null ? void 0 : a.content) || "", - index: o.choices[0].index - }), this.globalConfig.onTokenConsume && ((s = o.choices[0].usage) != null && s.total_tokens) && this.globalConfig.onTokenConsume(this.aiModelName, this.aiModelConfig, o.choices[0].usage.total_tokens); + content: ((s = a.choices[0].delta) == null ? void 0 : s.content) || "", + index: a.choices[0].index + }), this.globalConfig.onTokenConsume && ((l = a.choices[0].usage) != null && l.total_tokens) && this.globalConfig.onTokenConsume(this.aiModelName, this.aiModelConfig, a.choices[0].usage.total_tokens)); } }); } wrapPayload(e) { const n = this.aiModelConfig, r = { - model: n.model, + // "model": config.model, messages: [ { role: "user", @@ -17581,13 +17671,20 @@ class Sv extends ho { temperature: n.temperature || null, stream: !0 }; - return JSON.stringify(r); + return n.model && (r.model = n.model), JSON.stringify(r); } createAiClientUrl() { - return `${this.aiModelConfig.endpoint}/v1/chat/completions`; + const e = this.aiModelConfig; + if (e.customUrl) { + if (typeof e.customUrl == "string") + return e.customUrl; + if (typeof e.customUrl == "function") + return e.customUrl(); + } + return `${e.endpoint}/v1/chat/completions`; } } -class bv extends ho { +class Rv extends Eo { constructor(e, n) { super(e, n, "gitee"), this.aiModelConfig = { top_p: 0.7, @@ -17597,7 +17694,7 @@ class bv extends ho { } createAiClient(e, n) { const r = this.aiModelConfig; - return new Qc({ + return new Jc({ url: e, method: "post", headers: { @@ -17646,26 +17743,26 @@ class bv extends ho { return e; } } -class Vn { +class Yn { static init(e, n) { var r; if (n && n.models) for (let i of Object.keys(n.models)) switch (i) { case "spark": - this.set(i, new pv(e, n)); + this.set(i, new hv(e, n)); break; case "wenxin": - this.set(i, new _v(e, n)); + this.set(i, new Ev(e, n)); break; case "openai": - this.set(i, new Sv(e, n)); + this.set(i, new vv(e, n)); break; case "gitee": - this.set(i, new bv(e, n)); + this.set(i, new Rv(e, n)); break; case "custom": - this.set(i, new Ev(e, n)); + this.set(i, new yv(e, n)); break; default: const o = (r = n.modelFactory) == null ? void 0 : r.create(i, e, n); @@ -17679,18 +17776,18 @@ class Vn { this.models[e] = n; } } -w(Vn, "models", {}); -const Tv = (t) => { +L(Yn, "models", {}); +const Ov = (t) => { let e = ""; return t.descendants((n) => { n.text && (e += n.text); }), e; }; -class Ra { +class Oa { constructor(e, n) { - w(this, "editor"); - w(this, "from"); - w(this, "options"); + L(this, "editor"); + L(this, "from"); + L(this, "options"); this.editor = e, this.from = e.view.state.selection.from, this.options = n || { markdownParseEnable: !0 }; @@ -17704,7 +17801,7 @@ class Ra { if (r.dispatch(n.insertText(e.content)), e.status == 2 && this.options.markdownParseEnable) { const i = this.editor.state.selection.to, o = this.editor.state.doc.textBetween(this.from, i), { state: { tr: a }, view: s } = this.editor, l = this.editor.parseMarkdown(o); if (this.options.useMarkdownTextOnly) { - const c = Tv(l), u = this.editor.schema.text(c); + const c = Ov(l), u = this.editor.schema.text(c); s.dispatch(a.replaceWith(this.from, i, u).scrollIntoView()); } else s.dispatch(a.replaceWith(this.from, i, l).scrollIntoView()); @@ -17712,7 +17809,7 @@ class Ra { this.editor.commands.scrollIntoView(); } } -const Cv = [ +const Nv = [ { icon: '', name: "ai-continuation", @@ -17748,10 +17845,10 @@ const Cv = [ model: "auto" } ]; -class yv extends mi { +class Av extends mi { constructor() { super(); - w(this, "aiMenus", Cv.map((n) => ({ + L(this, "aiMenus", Nv.map((n) => ({ ...n, name: `${ce(n.name)}` }))); @@ -17802,8 +17899,8 @@ class yv extends mi { onDropdownItemClick(n) { const r = this.menuData[n], i = this.getSelectedText(r.text); if (i) { - const o = Vn.get(r.model); - o ? o == null || o.chat(i, r.prompt, new Ra(this.editor)) : console.error("Ai model config error."); + const o = Yn.get(r.model); + o ? o == null || o.chat(i, r.prompt, new Oa(this.editor)) : console.error("Ai model config error."); } else console.error("Can not get selected text."); } @@ -17814,7 +17911,7 @@ class yv extends mi { return this.menuData[n].icon; } } -class vv extends me { +class Iv extends me { constructor() { super(), this.template = `
@@ -17831,10 +17928,10 @@ class vv extends me { return e.isActive("container"); } } -class Rv extends me { +class xv extends me { constructor() { super(); - w(this, "config"); + L(this, "config"); } onConfig(n) { this.config = n, n.html ? this.template = n.html : n.icon && (this.template = `
${n.icon}
`), this.addEventListener("click", (r) => { @@ -17844,7 +17941,7 @@ class Rv extends me { } const re = (t, e) => { window.customElements.get(t) || window.customElements.define(t, e); -}, eg = (t, e, n, r) => { +}, sg = (t, e, n, r) => { for (let i of r) if (i) try { @@ -17865,16 +17962,18 @@ const re = (t, e) => { n.push(o); } else if (i.toolbarKeys) { const o = i, a = document.createElement("aie-group"); - a.classList.add("aie-menu-item"), e.editable === !1 && (a.style.pointerEvents = "none", a.style.opacity = "0.5"), a.onCreate(t, e), a.init(t, e, o); - const s = ce(o.title || "menu-group"); - s && we(a, { - appendTo: () => t.editor.view.dom.closest(".aie-container"), - content: s, - theme: "aietip", - arrow: !0 - // trigger:"click", - // interactive:true, - }), n.push(a); + if (a.classList.add("aie-menu-item"), e.editable === !1 && (a.style.pointerEvents = "none", a.style.opacity = "0.5"), a.onCreate(t, e), a.init(t, e, o), o.title) { + const s = ce(o.title); + s && we(a, { + appendTo: () => t.editor.view.dom.closest(".aie-container"), + content: s, + theme: "aietip", + arrow: !0 + // trigger:"click", + // interactive:true, + }); + } + n.push(a); } else { const o = i, a = document.createElement("aie-custom"); if (a.classList.add("aie-menu-item"), e.editable === !1 && (a.style.pointerEvents = "none", a.style.opacity = "0.5"), o.id && a.setAttribute("id", o.id), o.className && a.classList.add(o.className), a.onCreate(t, e), a.onConfig(o), o.tip) { @@ -17894,19 +17993,19 @@ const re = (t, e) => { console.error(o, "Can not create toolbar by key: " + i); } }; -class Ov extends me { +class Dv extends me { constructor() { super(); - w(this, "menuButtons", []); - w(this, "tippyInstance"); - w(this, "tippyEl"); - w(this, "iconSvg", ''); + L(this, "menuButtons", []); + L(this, "tippyInstance"); + L(this, "tippyEl"); + L(this, "iconSvg", ''); } onCreate(n, r) { super.onCreate(n, r); } init(n, r, i) { - eg(n, r, this.menuButtons, i.toolbarKeys), this.iconSvg = i.icon || this.iconSvg; + sg(n, r, this.menuButtons, i.toolbarKeys), this.iconSvg = i.icon || this.iconSvg; } renderTemplate() { this.template = `
${this.iconSvg}
`; @@ -17951,7 +18050,7 @@ class Ov extends me { return this.tippyEl = n, n; } } -const Nv = [ +const Mv = [ "undo", "redo", "brush", @@ -17998,53 +18097,53 @@ const Nv = [ "fullscreen", "ai" ]; -re("aie-undo", Rf); -re("aie-undo", Rf); -re("aie-redo", uC); -re("aie-brush", ev); -re("aie-container", vv); -re("aie-custom", Rv); -re("aie-eraser", qy); -re("aie-heading", my); -re("aie-font-family", gy); -re("aie-font-size", Ey); -re("aie-bold", Sy); -re("aie-italic", by); -re("aie-underline", Ty); -re("aie-strike", Cy); -re("aie-link", Py); -re("aie-source-code", Fy); -re("aie-code", zy); -re("aie-subscript", yy); -re("aie-superscript", vy); -re("aie-highlight", Ny); -re("aie-font-color", Ay); -re("aie-divider", Iy); -re("aie-bullet-list", xy); -re("aie-ordered-list", Dy); -re("aie-indent-decrease", My); -re("aie-indent-increase", wy); -re("aie-align", ky); -re("aie-todo", By); -re("aie-line-height", Hy); -re("aie-break", Qy); -re("aie-quote", Gy); -re("aie-image", Vy); -re("aie-video", Yy); -re("aie-code-block", $y); -re("aie-hr", Wy); -re("aie-table", Ky); -re("aie-attachment", Zy); -re("aie-fullscreen", Xy); -re("aie-printer", jy); -re("aie-emoji", Jy); -re("aie-ai", yv); -re("aie-group", Ov); -class tg extends HTMLElement { +re("aie-undo", Mf); +re("aie-undo", Mf); +re("aie-redo", fC); +re("aie-brush", ov); +re("aie-container", Iv); +re("aie-custom", xv); +re("aie-eraser", Xy); +re("aie-heading", Sy); +re("aie-font-family", Ty); +re("aie-font-size", yy); +re("aie-bold", vy); +re("aie-italic", Ry); +re("aie-underline", Oy); +re("aie-strike", Ny); +re("aie-link", Gy); +re("aie-source-code", Vy); +re("aie-code", Qy); +re("aie-subscript", Ay); +re("aie-superscript", Iy); +re("aie-highlight", My); +re("aie-font-color", wy); +re("aie-divider", Ly); +re("aie-bullet-list", ky); +re("aie-ordered-list", Py); +re("aie-indent-decrease", Fy); +re("aie-indent-increase", By); +re("aie-align", Hy); +re("aie-todo", Yy); +re("aie-line-height", $y); +re("aie-break", ev); +re("aie-quote", qy); +re("aie-image", Wy); +re("aie-video", Ky); +re("aie-code-block", Zy); +re("aie-hr", jy); +re("aie-table", Jy); +re("aie-attachment", tv); +re("aie-fullscreen", nv); +re("aie-printer", rv); +re("aie-emoji", iv); +re("aie-ai", Av); +re("aie-group", Dv); +class lg extends HTMLElement { constructor() { super(); // template:string; - w(this, "menuButtons", []); + L(this, "menuButtons", []); } connectedCallback() { if (this.children && this.children.length > 0) @@ -18055,7 +18154,7 @@ class tg extends HTMLElement { n.style.display = "flex", n.style.flexWrap = "wrap", this.appendChild(n); } onCreate(n, r) { - let i = r.toolbarKeys || Nv; + let i = r.toolbarKeys || Mv; i = i.filter((o) => { var a; return typeof o == "string" ? !((a = r.toolbarExcludeKeys) != null && a.includes(o)) : !0; @@ -18066,7 +18165,7 @@ class tg extends HTMLElement { return c.includes(o) ? !c.includes(l) : !0; } return !0; - }), eg(n, r, this.menuButtons, i); + }), sg(n, r, this.menuButtons, i); } onTransaction(n) { for (let r of this.menuButtons) @@ -18077,11 +18176,11 @@ class tg extends HTMLElement { r.onEditableChange(n); } } -class ng extends HTMLElement { +class cg extends HTMLElement { constructor() { super(); - w(this, "count", 0); - w(this, "draggable", !0); + L(this, "count", 0); + L(this, "draggable", !0); } initDraggable(n) { if (this.draggable = !!n, !this.draggable) @@ -18123,7 +18222,7 @@ class ng extends HTMLElement { onEditableChange(n) { } } -const Av = /^\s*>\s$/, Iv = Ne.create({ +const wv = /^\s*>\s$/, Lv = Ne.create({ name: "blockquote", addOptions() { return { @@ -18156,12 +18255,12 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ addInputRules() { return [ Sr({ - find: Av, + find: wv, type: this.type }) ]; } -}), xv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Dv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Mv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, wv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Lv = ft.create({ +}), kv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Pv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Fv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Bv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Uv = ft.create({ name: "bold", addOptions() { return { @@ -18206,28 +18305,28 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ addInputRules() { return [ Er({ - find: xv, + find: kv, type: this.type }), Er({ - find: Mv, + find: Fv, type: this.type }) ]; }, addPasteRules() { return [ - Gn({ - find: Dv, + Vn({ + find: Pv, type: this.type }), - Gn({ - find: wv, + Vn({ + find: Bv, type: this.type }) ]; } -}), kv = "listItem", yp = "textStyle", vp = /^\s*([-+*])\s$/, Pv = Ne.create({ +}), Hv = "listItem", Ap = "textStyle", Ip = /^\s*([-+*])\s$/, Gv = Ne.create({ name: "bulletList", addOptions() { return { @@ -18251,7 +18350,7 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ }, addCommands() { return { - toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(kv, this.editor.getAttributes(yp)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) + toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Hv, this.editor.getAttributes(Ap)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) }; }, addKeyboardShortcuts() { @@ -18261,21 +18360,21 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ }, addInputRules() { let t = Sr({ - find: vp, + find: Ip, type: this.type }); return (this.options.keepMarks || this.options.keepAttributes) && (t = Sr({ - find: vp, + find: Ip, type: this.type, keepMarks: this.options.keepMarks, keepAttributes: this.options.keepAttributes, - getAttributes: () => this.editor.getAttributes(yp), + getAttributes: () => this.editor.getAttributes(Ap), editor: this.editor })), [ t ]; } -}), Fv = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, Bv = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, Uv = ft.create({ +}), Vv = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, Yv = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, zv = ft.create({ name: "code", addOptions() { return { @@ -18308,20 +18407,20 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ addInputRules() { return [ Er({ - find: Fv, + find: Vv, type: this.type }) ]; }, addPasteRules() { return [ - Gn({ - find: Bv, + Vn({ + find: Yv, type: this.type }) ]; } -}), Hv = /^```([a-z]+)?[\s\n]$/, Gv = /^~~~([a-z]+)?[\s\n]$/, rg = Ne.create({ +}), $v = /^```([a-z]+)?[\s\n]$/, qv = /^~~~([a-z]+)?[\s\n]$/, ug = Ne.create({ name: "codeBlock", addOptions() { return { @@ -18411,15 +18510,15 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ }, addInputRules() { return [ - Wl({ - find: Hv, + Kl({ + find: $v, type: this.type, getAttributes: (t) => ({ language: t[1] }) }), - Wl({ - find: Gv, + Kl({ + find: qv, type: this.type, getAttributes: (t) => ({ language: t[1] @@ -18431,7 +18530,7 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ return [ // this plugin creates a code block for pasted content from VS Code // we can also detect the copied code language - new be({ + new Se({ key: new ve("codeBlockVSCodeHandler"), props: { handlePaste: (t, e) => { @@ -18448,19 +18547,19 @@ const Av = /^\s*>\s$/, Iv = Ne.create({ }) ]; } -}), Vv = Ne.create({ +}), Wv = Ne.create({ name: "doc", topNode: !0, content: "block+" }); -function Yv(t = {}) { - return new be({ +function Kv(t = {}) { + return new Se({ view(e) { - return new zv(e, t); + return new Qv(e, t); } }); } -class zv { +class Qv { constructor(e, n) { var r; this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => { @@ -18516,7 +18615,7 @@ class zv { if (n && !o) { let a = n.pos; if (this.editorView.dragging && this.editorView.dragging.slice) { - let s = Tm(this.editorView.state.doc, a, this.editorView.dragging.slice); + let s = Nm(this.editorView.state.doc, a, this.editorView.dragging.slice); s != null && (a = s); } this.setCursor(a), this.scheduleRemoval(5e3); @@ -18532,7 +18631,7 @@ class zv { (e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null); } } -const $v = ge.create({ +const Zv = ge.create({ name: "dropCursor", addOptions() { return { @@ -18543,7 +18642,7 @@ const $v = ge.create({ }, addProseMirrorPlugins() { return [ - Yv(this.options) + Kv(this.options) ]; } }); @@ -18579,14 +18678,14 @@ class Me extends te { @internal */ getBookmark() { - return new Zc(this.anchor); + return new eu(this.anchor); } /** @internal */ static valid(e) { let n = e.parent; - if (n.isTextblock || !qv(e) || !Wv(e)) + if (n.isTextblock || !Xv(e) || !jv(e)) return !1; let r = n.type.spec.allowGapCursor; if (r != null) @@ -18635,19 +18734,19 @@ class Me extends te { Me.prototype.visible = !1; Me.findFrom = Me.findGapCursorFrom; te.jsonID("gapcursor", Me); -class Zc { +class eu { constructor(e) { this.pos = e; } map(e) { - return new Zc(e.map(this.pos)); + return new eu(e.map(this.pos)); } resolve(e) { let n = e.resolve(this.pos); return Me.valid(n) ? new Me(n) : te.near(n); } } -function qv(t) { +function Xv(t) { for (let e = t.depth; e >= 0; e--) { let n = t.index(e), r = t.node(e); if (n == 0) { @@ -18664,7 +18763,7 @@ function qv(t) { } return !0; } -function Wv(t) { +function jv(t) { for (let e = t.depth; e >= 0; e--) { let n = t.indexAfter(e), r = t.node(e); if (n == r.childCount) { @@ -18681,26 +18780,26 @@ function Wv(t) { } return !0; } -function Kv() { - return new be({ +function Jv() { + return new Se({ props: { - decorations: jv, + decorations: rR, createSelectionBetween(t, e, n) { return e.pos == n.pos && Me.valid(n) ? new Me(n) : null; }, - handleClick: Zv, - handleKeyDown: Qv, - handleDOMEvents: { beforeinput: Xv } + handleClick: tR, + handleKeyDown: eR, + handleDOMEvents: { beforeinput: nR } } }); } -const Qv = Ic({ - ArrowLeft: wo("horiz", -1), - ArrowRight: wo("horiz", 1), - ArrowUp: wo("vert", -1), - ArrowDown: wo("vert", 1) +const eR = Mc({ + ArrowLeft: Lo("horiz", -1), + ArrowRight: Lo("horiz", 1), + ArrowUp: Lo("vert", -1), + ArrowDown: Lo("vert", 1) }); -function wo(t, e) { +function Lo(t, e) { const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left"; return function(r, i, o) { let a = r.selection, s = e > 0 ? a.$to : a.$from, l = a.empty; @@ -18713,7 +18812,7 @@ function wo(t, e) { return c ? (i && i(r.tr.setSelection(new Me(c))), !0) : !1; }; } -function Zv(t, e, n) { +function tR(t, e, n) { if (!t || !t.editable) return !1; let r = t.state.doc.resolve(e); @@ -18722,29 +18821,29 @@ function Zv(t, e, n) { let i = t.posAtCoords({ left: n.clientX, top: n.clientY }); return i && i.inside > -1 && ee.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new Me(r))), !0); } -function Xv(t, e) { +function nR(t, e) { if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof Me)) return !1; let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text); if (!r) return !1; - let i = L.empty; + let i = w.empty; for (let a = r.length - 1; a >= 0; a--) - i = L.from(r[a].createAndFill(null, i)); + i = w.from(r[a].createAndFill(null, i)); let o = t.state.tr.replace(n.pos, n.pos, new H(i, 0, 0)); return o.setSelection(Z.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1; } -function jv(t) { +function rR(t) { if (!(t.selection instanceof Me)) return null; let e = document.createElement("div"); - return e.className = "ProseMirror-gapcursor", Se.create(t.doc, [Fe.widget(t.selection.head, e, { key: "gapcursor" })]); + return e.className = "ProseMirror-gapcursor", be.create(t.doc, [ke.widget(t.selection.head, e, { key: "gapcursor" })]); } -const Jv = ge.create({ +const iR = ge.create({ name: "gapCursor", addProseMirrorPlugins() { return [ - Kv() + Jv() ]; }, extendNodeSchema(t) { @@ -18758,7 +18857,7 @@ const Jv = ge.create({ allowGapCursor: (e = le(W(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null }; } -}), eR = Ne.create({ +}), oR = Ne.create({ name: "hardBreak", addOptions() { return { @@ -18769,6 +18868,7 @@ const Jv = ge.create({ inline: !0, group: "inline", selectable: !1, + linebreakReplacement: !0, parseHTML() { return [ { tag: "br" } @@ -18807,7 +18907,7 @@ const Jv = ge.create({ "Shift-Enter": () => this.editor.commands.setHardBreak() }; } -}), ig = Ne.create({ +}), dg = Ne.create({ name: "heading", addOptions() { return { @@ -18848,7 +18948,7 @@ const Jv = ge.create({ }), {}); }, addInputRules() { - return this.options.levels.map((t) => Wl({ + return this.options.levels.map((t) => Kl({ find: new RegExp(`^(#{1,${t}})\\s$`), type: this.type, getAttributes: { @@ -18857,16 +18957,16 @@ const Jv = ge.create({ })); } }); -var Oa = 200, $e = function() { +var Na = 200, $e = function() { }; $e.prototype.append = function(e) { - return e.length ? (e = $e.from(e), !this.length && e || e.length < Oa && this.leafAppend(e) || this.length < Oa && e.leafPrepend(this) || this.appendInner(e)) : this; + return e.length ? (e = $e.from(e), !this.length && e || e.length < Na && this.leafAppend(e) || this.length < Na && e.leafPrepend(this) || this.appendInner(e)) : this; }; $e.prototype.prepend = function(e) { return e.length ? $e.from(e).append(this) : this; }; $e.prototype.appendInner = function(e) { - return new tR(this, e); + return new aR(this, e); }; $e.prototype.slice = function(e, n) { return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? $e.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n)); @@ -18886,9 +18986,9 @@ $e.prototype.map = function(e, n, r) { }, n, r), i; }; $e.from = function(e) { - return e instanceof $e ? e : e && e.length ? new og(e) : $e.empty; + return e instanceof $e ? e : e && e.length ? new pg(e) : $e.empty; }; -var og = /* @__PURE__ */ function(t) { +var pg = /* @__PURE__ */ function(t) { function e(r) { t.call(this), this.values = r; } @@ -18909,10 +19009,10 @@ var og = /* @__PURE__ */ function(t) { if (i(this.values[l], s + l) === !1) return !1; }, e.prototype.leafAppend = function(i) { - if (this.length + i.length <= Oa) + if (this.length + i.length <= Na) return new e(this.values.concat(i.flatten())); }, e.prototype.leafPrepend = function(i) { - if (this.length + i.length <= Oa) + if (this.length + i.length <= Na) return new e(i.flatten().concat(this.values)); }, n.length.get = function() { return this.values.length; @@ -18920,8 +19020,8 @@ var og = /* @__PURE__ */ function(t) { return 0; }, Object.defineProperties(e.prototype, n), e; }($e); -$e.empty = new og([]); -var tR = /* @__PURE__ */ function(t) { +$e.empty = new pg([]); +var aR = /* @__PURE__ */ function(t) { function e(n, r) { t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1; } @@ -18954,7 +19054,7 @@ var tR = /* @__PURE__ */ function(t) { return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r); }, e; }($e); -const nR = 500; +const sR = 500; class Ht { constructor(e, n) { this.items = e, this.eventCount = n; @@ -18996,7 +19096,7 @@ class Ht { (_ = l && l.merge(p)) && (p = _, u ? o.pop() : s = s.slice(0, s.length - 1)), o.push(p), n && (a++, n = void 0), i || (l = p); } let c = a - r.depth; - return c > iR && (s = rR(s, c), a -= c), new Ht(s.append(o), a); + return c > cR && (s = lR(s, c), a -= c), new Ht(s.append(o), a); } remapping(e, n) { let r = new Kr(); @@ -19036,7 +19136,7 @@ class Ht { for (let p = n; p < a; p++) c.push(new $t(o.maps[p])); let u = this.items.slice(0, i).append(c).append(r), d = new Ht(u, s); - return d.emptyItemCount() > nR && (d = d.compress(this.items.length - r.length)), d; + return d.emptyItemCount() > sR && (d = d.compress(this.items.length - r.length)), d; } emptyItemCount() { let e = 0; @@ -19068,7 +19168,7 @@ class Ht { } } Ht.empty = new Ht($e.empty, 0); -function rR(t, e) { +function lR(t, e) { let n; return t.forEach((r, i) => { if (r.selection && e-- == 0) @@ -19092,23 +19192,23 @@ class yn { this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o; } } -const iR = 20; -function oR(t, e, n, r) { +const cR = 20; +function uR(t, e, n, r) { let i = n.getMeta(dr), o; if (i) return i.historyState; - n.getMeta(lR) && (t = new yn(t.done, t.undone, null, 0, -1)); + n.getMeta(_R) && (t = new yn(t.done, t.undone, null, 0, -1)); let a = n.getMeta("appendedTransaction"); if (n.steps.length == 0) return t; if (a && a.getMeta(dr)) - return a.getMeta(dr).redo ? new yn(t.done.addTransform(n, void 0, r, ea(e)), t.undone, Rp(n.mapping.maps), t.prevTime, t.prevComposition) : new yn(t.done, t.undone.addTransform(n, void 0, r, ea(e)), null, t.prevTime, t.prevComposition); + return a.getMeta(dr).redo ? new yn(t.done.addTransform(n, void 0, r, ta(e)), t.undone, xp(n.mapping.maps), t.prevTime, t.prevComposition) : new yn(t.done, t.undone.addTransform(n, void 0, r, ta(e)), null, t.prevTime, t.prevComposition); if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) { - let s = n.getMeta("composition"), l = t.prevTime == 0 || !a && t.prevComposition != s && (t.prevTime < (n.time || 0) - r.newGroupDelay || !aR(n, t.prevRanges)), c = a ? rl(t.prevRanges, n.mapping) : Rp(n.mapping.maps); - return new yn(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ea(e)), Ht.empty, c, n.time, s ?? t.prevComposition); - } else return (o = n.getMeta("rebased")) ? new yn(t.done.rebased(n, o), t.undone.rebased(n, o), rl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new yn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), rl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition); + let s = n.getMeta("composition"), l = t.prevTime == 0 || !a && t.prevComposition != s && (t.prevTime < (n.time || 0) - r.newGroupDelay || !dR(n, t.prevRanges)), c = a ? ol(t.prevRanges, n.mapping) : xp(n.mapping.maps); + return new yn(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ta(e)), Ht.empty, c, n.time, s ?? t.prevComposition); + } else return (o = n.getMeta("rebased")) ? new yn(t.done.rebased(n, o), t.undone.rebased(n, o), ol(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new yn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), ol(t.prevRanges, n.mapping), t.prevTime, t.prevComposition); } -function aR(t, e) { +function dR(t, e) { if (!e) return !1; if (!t.docChanged) @@ -19119,13 +19219,13 @@ function aR(t, e) { r <= e[o + 1] && i >= e[o] && (n = !0); }), n; } -function Rp(t) { +function xp(t) { let e = []; for (let n = t.length - 1; n >= 0 && e.length == 0; n--) t[n].forEach((r, i, o, a) => e.push(o, a)); return e; } -function rl(t, e) { +function ol(t, e) { if (!t) return null; let n = []; @@ -19135,65 +19235,65 @@ function rl(t, e) { } return n; } -function sR(t, e, n) { - let r = ea(e), i = dr.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r); +function pR(t, e, n) { + let r = ta(e), i = dr.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r); if (!o) return null; let a = o.selection.resolve(o.transform.doc), s = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new yn(n ? s : o.remaining, n ? o.remaining : s, null, 0, -1); return o.transform.setSelection(a).setMeta(dr, { redo: n, historyState: l }); } -let il = !1, Op = null; -function ea(t) { +let al = !1, Dp = null; +function ta(t) { let e = t.plugins; - if (Op != e) { - il = !1, Op = e; + if (Dp != e) { + al = !1, Dp = e; for (let n = 0; n < e.length; n++) if (e[n].spec.historyPreserveItems) { - il = !0; + al = !0; break; } } - return il; + return al; } -const dr = new ve("history"), lR = new ve("closeHistory"); -function cR(t = {}) { +const dr = new ve("history"), _R = new ve("closeHistory"); +function mR(t = {}) { return t = { depth: t.depth || 100, newGroupDelay: t.newGroupDelay || 500 - }, new be({ + }, new Se({ key: dr, state: { init() { return new yn(Ht.empty, Ht.empty, null, 0, -1); }, apply(e, n, r) { - return oR(n, r, e, t); + return uR(n, r, e, t); } }, config: t, props: { handleDOMEvents: { beforeinput(e, n) { - let r = n.inputType, i = r == "historyUndo" ? sg : r == "historyRedo" ? lg : null; + let r = n.inputType, i = r == "historyUndo" ? mg : r == "historyRedo" ? fg : null; return i ? (n.preventDefault(), i(e.state, e.dispatch)) : !1; } } } }); } -function ag(t, e) { +function _g(t, e) { return (n, r) => { let i = dr.getState(n); if (!i || (t ? i.undone : i.done).eventCount == 0) return !1; if (r) { - let o = sR(i, n, t); + let o = pR(i, n, t); o && r(e ? o.scrollIntoView() : o); } return !0; }; } -const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ +const mg = _g(!1, !0), fg = _g(!0, !0), fR = ge.create({ name: "history", addOptions() { return { @@ -19203,13 +19303,13 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addCommands() { return { - undo: () => ({ state: t, dispatch: e }) => sg(t, e), - redo: () => ({ state: t, dispatch: e }) => lg(t, e) + undo: () => ({ state: t, dispatch: e }) => mg(t, e), + redo: () => ({ state: t, dispatch: e }) => fg(t, e) }; }, addProseMirrorPlugins() { return [ - cR(this.options) + mR(this.options) ]; }, addKeyboardShortcuts() { @@ -19222,7 +19322,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Shift-Mod-я": () => this.editor.commands.redo() }; } -}), dR = Ne.create({ +}), gR = Ne.create({ name: "horizontalRule", addOptions() { return { @@ -19245,7 +19345,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ to: i.pos }, { type: this.name - }) : vf(n) ? o.insertContentAt(i.pos, { + }) : Df(n) ? o.insertContentAt(i.pos, { type: this.name }) : o.insertContent({ type: this.name }), o.command(({ tr: a, dispatch: s }) => { var l; @@ -19266,13 +19366,13 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addInputRules() { return [ - Bc({ + Vc({ find: /^(?:---|—-|___\s|\*\*\*\s)$/, type: this.type }) ]; } -}), pR = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, _R = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, mR = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, fR = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, gR = ft.create({ +}), hR = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, ER = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, SR = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, bR = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, TR = ft.create({ name: "italic", addOptions() { return { @@ -19316,28 +19416,28 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addInputRules() { return [ Er({ - find: pR, + find: hR, type: this.type }), Er({ - find: mR, + find: SR, type: this.type }) ]; }, addPasteRules() { return [ - Gn({ - find: _R, + Vn({ + find: ER, type: this.type }), - Gn({ - find: fR, + Vn({ + find: bR, type: this.type }) ]; } -}), hR = Ne.create({ +}), CR = Ne.create({ name: "listItem", addOptions() { return { @@ -19365,7 +19465,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Shift-Tab": () => this.editor.commands.liftListItem(this.name) }; } -}), ER = "listItem", Np = "textStyle", Ap = /^(\d+)\.\s$/, SR = Ne.create({ +}), yR = "listItem", Mp = "textStyle", wp = /^(\d+)\.\s$/, vR = Ne.create({ name: "orderedList", addOptions() { return { @@ -19404,7 +19504,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addCommands() { return { - toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ER, this.editor.getAttributes(Np)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) + toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(yR, this.editor.getAttributes(Mp)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) }; }, addKeyboardShortcuts() { @@ -19414,24 +19514,24 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addInputRules() { let t = Sr({ - find: Ap, + find: wp, type: this.type, getAttributes: (e) => ({ start: +e[1] }), joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1] }); return (this.options.keepMarks || this.options.keepAttributes) && (t = Sr({ - find: Ap, + find: wp, type: this.type, keepMarks: this.options.keepMarks, keepAttributes: this.options.keepAttributes, - getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Np) }), + getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Mp) }), joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1], editor: this.editor })), [ t ]; } -}), bR = Ne.create({ +}), RR = Ne.create({ name: "paragraph", priority: 1e3, addOptions() { @@ -19459,7 +19559,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Mod-Alt-0": () => this.editor.commands.setParagraph() }; } -}), TR = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, CR = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, yR = ft.create({ +}), OR = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, NR = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, AR = ft.create({ name: "strike", addOptions() { return { @@ -19502,30 +19602,30 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addInputRules() { return [ Er({ - find: TR, + find: OR, type: this.type }) ]; }, addPasteRules() { return [ - Gn({ - find: CR, + Vn({ + find: NR, type: this.type }) ]; } -}), vR = Ne.create({ +}), IR = Ne.create({ name: "text", group: "inline" -}), RR = ge.create({ +}), xR = ge.create({ name: "starterKit", addExtensions() { - var t, e, n, r, i, o, a, s, l, c, u, d, p, _, m, f, g, E; - const S = []; - return this.options.bold !== !1 && S.push(Lv.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && S.push(Iv.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && S.push(Pv.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && S.push(Uv.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && S.push(rg.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && S.push(Vv.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && S.push($v.configure((a = this.options) === null || a === void 0 ? void 0 : a.dropcursor)), this.options.gapcursor !== !1 && S.push(Jv.configure((s = this.options) === null || s === void 0 ? void 0 : s.gapcursor)), this.options.hardBreak !== !1 && S.push(eR.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && S.push(ig.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && S.push(uR.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && S.push(dR.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && S.push(gR.configure((p = this.options) === null || p === void 0 ? void 0 : p.italic)), this.options.listItem !== !1 && S.push(hR.configure((_ = this.options) === null || _ === void 0 ? void 0 : _.listItem)), this.options.orderedList !== !1 && S.push(SR.configure((m = this.options) === null || m === void 0 ? void 0 : m.orderedList)), this.options.paragraph !== !1 && S.push(bR.configure((f = this.options) === null || f === void 0 ? void 0 : f.paragraph)), this.options.strike !== !1 && S.push(yR.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && S.push(vR.configure((E = this.options) === null || E === void 0 ? void 0 : E.text)), S; + var t, e, n, r, i, o, a, s, l, c, u, d, p, _, m, f, g, S; + const E = []; + return this.options.bold !== !1 && E.push(Uv.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && E.push(Lv.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && E.push(Gv.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && E.push(zv.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && E.push(ug.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && E.push(Wv.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && E.push(Zv.configure((a = this.options) === null || a === void 0 ? void 0 : a.dropcursor)), this.options.gapcursor !== !1 && E.push(iR.configure((s = this.options) === null || s === void 0 ? void 0 : s.gapcursor)), this.options.hardBreak !== !1 && E.push(oR.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && E.push(dg.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && E.push(fR.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && E.push(gR.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && E.push(TR.configure((p = this.options) === null || p === void 0 ? void 0 : p.italic)), this.options.listItem !== !1 && E.push(CR.configure((_ = this.options) === null || _ === void 0 ? void 0 : _.listItem)), this.options.orderedList !== !1 && E.push(vR.configure((m = this.options) === null || m === void 0 ? void 0 : m.orderedList)), this.options.paragraph !== !1 && E.push(RR.configure((f = this.options) === null || f === void 0 ? void 0 : f.paragraph)), this.options.strike !== !1 && E.push(AR.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && E.push(IR.configure((S = this.options) === null || S === void 0 ? void 0 : S.text)), E; } -}), OR = ft.create({ +}), DR = ft.create({ name: "underline", addOptions() { return { @@ -19560,7 +19660,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Mod-U": () => this.editor.commands.toggleUnderline() }; } -}), NR = ft.create({ +}), MR = ft.create({ name: "textStyle", priority: 101, addOptions() { @@ -19582,12 +19682,12 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addCommands() { return { removeEmptyTextStyle: () => ({ state: t, commands: e }) => { - const n = Pc(t, this.type); + const n = Hc(t, this.type); return Object.entries(n).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name); } }; } -}), AR = ge.create({ +}), wR = ge.create({ name: "fontFamily", addOptions() { return { @@ -19601,10 +19701,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ attributes: { fontFamily: { default: null, - parseHTML: (t) => { - var e; - return (e = t.style.fontFamily) === null || e === void 0 ? void 0 : e.replace(/['"]+/g, ""); - }, + parseHTML: (t) => t.style.fontFamily, renderHTML: (t) => t.fontFamily ? { style: `font-family: ${t.fontFamily}` } : {} @@ -19619,18 +19716,18 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run() }; } -}), cg = (t) => { +}), gg = (t) => { const e = document.createElement("div"); return e.classList.add("aie-loader-placeholder"), e.innerHTML = ` - `, Fe.widget(t.pos, e, { id: t.id }); -}, IR = (t) => { + `, ke.widget(t.pos, e, { id: t.id }); +}, LR = (t) => { const e = document.createElement("div"); return e.classList.add("aie-loader-placeholder"), e.style.height = "20px", e.style.display = "inline-block", e.innerHTML = ` ${t.text} - `, Fe.widget(t.pos, e, { id: t.id }); -}, xR = (t, e, n, r) => { + `, ke.widget(t.pos, e, { id: t.id }); +}, kR = (t, e, n, r) => { const i = new FormData(); return i.append(r, t), new Promise((o, a) => { fetch(e, { @@ -19643,12 +19740,12 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ a(s); }); }); -}, DR = (t, e, n, r) => { +}, PR = (t, e, n, r) => { let i = new FileReader(); return new Promise((o, a) => { i.onload = () => o({ errorCode: 0, data: { src: i.result, href: t.name } }), i.onerror = () => a(i.error), setTimeout(() => i.readAsDataURL(t), 5e3 * Math.random()); }); -}, Xc = (t) => t ? xR : DR, Ip = new ve("aie-attachment-plugin"), Ci = "attachment_action", MR = ge.create({ +}, tu = (t) => t ? kR : PR, Lp = new ve("aie-attachment-plugin"), Ci = "attachment_action", FR = ge.create({ name: "attachment", addOptions() { return { @@ -19663,14 +19760,14 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ const e = typeof this.options.uploadHeaders == "object" ? this.options.uploadHeaders : typeof this.options.uploadHeaders == "function" ? this.options.uploadHeaders() : {}; if (this.options.uploaderEvent && this.options.uploaderEvent.onUploadBefore && this.options.uploaderEvent.onUploadBefore(t, this.options.uploadUrl, e) === !1) return !1; - const n = Es(), { state: { tr: r }, view: i, schema: o } = this.editor; + const n = Ss(), { state: { tr: r }, view: i, schema: o } = this.editor; r.selection.empty || r.deleteSelection(), i.dispatch(r.setMeta(Ci, { type: "add", id: n, pos: r.selection.from, text: t.name })); - const a = this.options.uploader || Xc(this.options.uploadUrl), s = this.options.uploadFormName || "attachment"; + const a = this.options.uploader || tu(this.options.uploadUrl), s = this.options.uploadFormName || "attachment"; return a(t, this.options.uploadUrl, e, s).then((l) => { var c; if ((c = this.options.uploaderEvent) != null && c.onSuccess) { @@ -19680,7 +19777,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ typeof u == "object" && (l = u); } if (l.errorCode === 0 && l.data && l.data.href) { - let d = Ip.getState(this.editor.state).find(void 0, void 0, (_) => _.id == n); + let d = Lp.getState(this.editor.state).find(void 0, void 0, (_) => _.id == n); const p = l.data.fileName || t.name; i.dispatch(i.state.tr.insertText(` ${p} `, d[0].from).addMark(d[0].from + 1, p.length + d[0].from + 1, o.marks.link.create({ href: l.data.href, @@ -19698,13 +19795,13 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addProseMirrorPlugins() { const t = this.editor; return [ - new be({ - key: Ip, + new Se({ + key: Lp, state: { - init: () => Se.empty, + init: () => be.empty, apply: (e, n) => { const r = e.getMeta(Ci); - return n = n.map(e.mapping, e.doc), r && r.type === "add" ? n = n.add(e.doc, [IR(r)]) : r && r.type === "remove" && (n = n.remove(n.find( + return n = n.map(e.mapping, e.doc), r && r.type === "add" ? n = n.add(e.doc, [LR(r)]) : r && r.type === "remove" && (n = n.remove(n.find( void 0, void 0, (i) => i.id == r.id @@ -19728,7 +19825,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }) ]; } -}), wR = ge.create({ +}), BR = ge.create({ name: "painter", addCommands() { return { @@ -19737,7 +19834,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("aie-painter"), state: { init: () => [], @@ -19767,7 +19864,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }) ]; } -}), LR = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, kR = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, PR = ft.create({ +}), UR = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, HR = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, GR = ft.create({ name: "highlight", addOptions() { return { @@ -19812,20 +19909,20 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addInputRules() { return [ Er({ - find: LR, + find: UR, type: this.type }) ]; }, addPasteRules() { return [ - Gn({ - find: kR, + Vn({ + find: HR, type: this.type }) ]; } -}), FR = ge.create({ +}), VR = ge.create({ name: "color", addOptions() { return { @@ -19857,7 +19954,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run() }; } -}), BR = ge.create({ +}), YR = ge.create({ name: "fontSize", addOptions() { return { @@ -19889,7 +19986,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run() }; } -}), UR = ge.create({ +}), zR = ge.create({ name: "lineHeight", addOptions() { return { @@ -19921,7 +20018,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ ) }; } -}), HR = ge.create({ +}), $R = ge.create({ name: "textAlign", addOptions() { return { @@ -19961,8 +20058,10 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify") }; } -}), GR = ge.create({ +}), qR = ge.create({ name: "indent", + // Fix tab key conflict with ordered lists + priority: 99, addOptions() { return { types: ["listItem", "paragraph"], @@ -20024,7 +20123,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ "Shift-Tab": () => this.editor.commands.outdent() }; } -}), VR = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, YR = Ne.create({ +}), WR = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, KR = Ne.create({ name: "image", addOptions() { return { @@ -20073,8 +20172,8 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addInputRules() { return [ - Bc({ - find: VR, + Vc({ + find: WR, type: this.type, getAttributes: (t) => { const [, , e, n, r] = t; @@ -20083,7 +20182,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }) ]; } -}), ug = (t, e, n) => { +}), hg = (t, e, n) => { const r = t.querySelector(".resize-obj"), i = 10; let o, a, s, l; const c = (p) => { @@ -20101,7 +20200,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }; for (let p of t.querySelector(".aie-resize").children) p.addEventListener("mousedown", c); -}, zR = (t) => typeof t == "number" || !isNaN(+t) ? `${t}px` : t, xp = new ve("aie-image-plugin"), yi = "image_action", $R = YR.extend( +}, QR = (t) => typeof t == "number" || !isNaN(+t) ? `${t}px` : t, kp = new ve("aie-image-plugin"), yi = "image_action", ZR = KR.extend( { name: "image", draggable: !0, @@ -20185,13 +20284,13 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ const n = typeof this.options.uploadHeaders == "object" ? this.options.uploadHeaders : typeof this.options.uploadHeaders == "function" ? this.options.uploadHeaders() : {}; if (this.options.uploaderEvent && this.options.uploaderEvent.onUploadBefore && this.options.uploaderEvent.onUploadBefore(e, this.options.uploadUrl, n) === !1) return !1; - const r = Es(), { state: { tr: i }, view: o, schema: a } = this.editor; + const r = Ss(), { state: { tr: i }, view: o, schema: a } = this.editor; i.selection.empty || i.deleteSelection(), o.dispatch(i.setMeta(yi, { type: "add", id: r, pos: i.selection.from })); - const s = this.options.uploader || Xc(this.options.uploadUrl), l = this.options.uploadFormName || "image"; + const s = this.options.uploader || tu(this.options.uploadUrl), l = this.options.uploadFormName || "image"; return s(e, this.options.uploadUrl, n, l).then((c) => { var u; if ((u = this.options.uploaderEvent) != null && u.onSuccess) { @@ -20201,7 +20300,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ typeof d == "object" && (c = d); } if (c.errorCode === 0 && c.data && c.data.src) { - let p = xp.getState(this.editor.state).find(void 0, void 0, (_) => _.id == r); + let p = kp.getState(this.editor.state).find(void 0, void 0, (_) => _.id == r); o.dispatch(o.state.tr.insert(p[0].from, a.nodes.image.create({ src: c.data.src, alt: c.data.alt, @@ -20223,7 +20322,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ }, addNodeView() { return (t) => { - const e = document.createElement("div"), { src: n, width: r, height: i, align: o, alt: a } = t.node.attrs, s = zR(r || 350), l = s.indexOf("%") > 0 ? `style="width: ${s};"` : "", c = s.indexOf("%") > 0 ? "calc(100% - 2px)" : s; + const e = document.createElement("div"), { src: n, width: r, height: i, align: o, alt: a } = t.node.attrs, s = QR(r || 350), l = s.indexOf("%") > 0 ? `style="width: ${s};"` : "", c = s.indexOf("%") > 0 ? "calc(100% - 2px)" : s; return e.classList.add(`align-${o}`), this.editor.isEditable ? (e.innerHTML = `
@@ -20234,7 +20333,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({
${a}
- `, ug(e, this.editor.view.dom, (u) => this.editor.commands.updateAttributes("image", u)), { + `, hg(e, this.editor.view.dom, (u) => this.editor.commands.updateAttributes("image", u)), { dom: e }) : (e.innerHTML = `
${a} @@ -20246,10 +20345,10 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ addProseMirrorPlugins() { const t = this.editor; return [ - new be({ - key: xp, + new Se({ + key: kp, state: { - init: () => Se.empty, + init: () => be.empty, apply: (e, n) => { const r = e.getMeta(yi); if (r) { @@ -20259,7 +20358,7 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ i = !0; } }); - i || (n = o), r.type === "add" ? n = n.add(e.doc, [cg(r)]) : r.type === "remove" && (n = n.remove(n.find( + i || (n = o), r.type === "add" ? n = n.add(e.doc, [gg(r)]) : r.type === "remove" && (n = n.remove(n.find( void 0, void 0, (a) => a.id == r.id @@ -20313,18 +20412,18 @@ const sg = ag(!1, !0), lg = ag(!0, !0), uR = ge.create({ } } ); -var tc, nc; +var nc, rc; if (typeof WeakMap < "u") { let t = /* @__PURE__ */ new WeakMap(); - tc = (e) => t.get(e), nc = (e, n) => (t.set(e, n), n); + nc = (e) => t.get(e), rc = (e, n) => (t.set(e, n), n); } else { const t = []; let n = 0; - tc = (r) => { + nc = (r) => { for (let i = 0; i < t.length; i += 2) if (t[i] == r) return t[i + 1]; - }, nc = (r, i) => (n == 10 && (n = 0), t[n++] = r, t[n++] = i); + }, rc = (r, i) => (n == 10 && (n = 0), t[n++] = r, t[n++] = i); } var Ie = class { constructor(t, e, n, r) { @@ -20407,13 +20506,13 @@ var Ie = class { } // Find the table map for the given table node. static get(t) { - return tc(t) || nc(t, qR(t)); + return nc(t) || rc(t, XR(t)); } }; -function qR(t) { +function XR(t) { if (t.type.spec.tableRole != "table") throw new RangeError("Not a table node: " + t.type.name); - const e = WR(t), n = t.childCount, r = []; + const e = jR(t), n = t.childCount, r = []; let i = 0, o = null; const a = []; for (let c = 0, u = e * n; c < u; c++) @@ -20426,13 +20525,13 @@ function qR(t) { i++; if (m == d.childCount) break; - const f = d.child(m), { colspan: g, rowspan: E, colwidth: S } = f.attrs; - for (let b = 0; b < E; b++) { + const f = d.child(m), { colspan: g, rowspan: S, colwidth: E } = f.attrs; + for (let b = 0; b < S; b++) { if (b + c >= n) { (o || (o = [])).push({ type: "overlong_rowspan", pos: u, - n: E - b + n: S - b }); break; } @@ -20444,7 +20543,7 @@ function qR(t) { pos: u, n: g - C }); - const T = S && S[C]; + const T = E && E[C]; if (T) { const R = (h + C) % e * 2, x = a[R]; x == null || x != T && a[R + 1] == 1 ? (a[R] = T, a[R + 1] = 1) : x == T && a[R + 1]++; @@ -20463,9 +20562,9 @@ function qR(t) { let l = !1; for (let c = 0; !l && c < a.length; c += 2) a[c] != null && a[c + 1] < n && (l = !0); - return l && KR(s, a, t), s; + return l && JR(s, a, t), s; } -function WR(t) { +function jR(t) { let e = -1, n = !1; for (let r = 0; r < t.childCount; r++) { const i = t.child(r); @@ -20486,7 +20585,7 @@ function WR(t) { } return e; } -function KR(t, e, n) { +function JR(t, e, n) { t.problems || (t.problems = []); const r = {}; for (let i = 0; i < t.map.length; i++) { @@ -20501,7 +20600,7 @@ function KR(t, e, n) { const l = a.attrs; for (let c = 0; c < l.colspan; c++) { const u = (i + c) % t.width, d = e[u * 2]; - d != null && (!l.colwidth || l.colwidth[c] != d) && ((s || (s = QR(l)))[c] = d); + d != null && (!l.colwidth || l.colwidth[c] != d) && ((s || (s = eO(l)))[c] = d); } s && t.problems.unshift({ type: "colwidth mismatch", @@ -20510,7 +20609,7 @@ function KR(t, e, n) { }); } } -function QR(t) { +function eO(t) { if (t.colwidth) return t.colwidth.slice(); const e = []; @@ -20536,7 +20635,7 @@ function fi(t) { return t.node(0).resolve(t.before(e + 1)); return null; } -function ZR(t) { +function tO(t) { for (let e = t.depth; e > 0; e--) { const n = t.node(e).type.spec.tableRole; if (n === "cell" || n === "header_cell") @@ -20551,18 +20650,18 @@ function Vt(t) { return !0; return !1; } -function Ss(t) { +function bs(t) { const e = t.selection; if ("$anchorCell" in e && e.$anchorCell) return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell; if ("node" in e && e.node && e.node.type.spec.tableRole == "cell") return e.$anchor; - const n = fi(e.$head) || XR(e.$head); + const n = fi(e.$head) || nO(e.$head); if (n) return n; throw new RangeError(`No cell found around position ${e.head}`); } -function XR(t) { +function nO(t) { for (let e = t.nodeAfter, n = t.pos; e; e = e.firstChild, n++) { const r = e.type.spec.tableRole; if (r == "cell" || r == "header_cell") @@ -20574,16 +20673,16 @@ function XR(t) { return t.doc.resolve(n - e.nodeSize); } } -function rc(t) { +function ic(t) { return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter; } -function jR(t) { +function rO(t) { return t.node(0).resolve(t.pos + t.nodeAfter.nodeSize); } -function jc(t, e) { +function nu(t, e) { return t.depth == e.depth && t.pos >= e.start(-1) && t.pos <= e.end(-1); } -function dg(t, e, n) { +function Eg(t, e, n) { const r = t.node(-1), i = Ie.get(r), o = t.start(-1), a = i.nextCell(t.pos - o, e, n); return a == null ? null : t.node(0).resolve(o + a); } @@ -20591,7 +20690,7 @@ function Tr(t, e, n = 1) { const r = { ...t, colspan: t.colspan - n }; return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((i) => i > 0) || (r.colwidth = null)), r; } -function pg(t, e, n = 1) { +function Sg(t, e, n = 1) { const r = { ...t, colspan: t.colspan + n }; if (r.colwidth) { r.colwidth = r.colwidth.slice(); @@ -20600,7 +20699,7 @@ function pg(t, e, n = 1) { } return r; } -function JR(t, e, n) { +function iO(t, e, n) { const r = it(e.type.schema).header_cell; for (let i = 0; i < t.height; i++) if (e.nodeAt(t.map[n + i * t.width]).type != r) @@ -20623,7 +20722,7 @@ var Te = class cn extends te { if (!d) throw RangeError(`No cell with offset ${u} found`); const p = o + u + 1; - return new Om( + return new Mm( s.resolve(p), s.resolve(p + d.content.size) ); @@ -20632,7 +20731,7 @@ var Te = class cn extends te { } map(e, n) { const r = e.resolve(n.map(this.$anchorCell.pos)), i = e.resolve(n.map(this.$headCell.pos)); - if (rc(r) && rc(i) && jc(r, i)) { + if (ic(r) && ic(i) && nu(r, i)) { const o = this.$anchorCell.node(-1) != r.node(-1); return o && this.isRowSelection() ? cn.rowSelection(r, i) : o && this.isColSelection() ? cn.colSelection(r, i) : new cn(r, i); } @@ -20658,32 +20757,32 @@ var Te = class cn extends te { throw RangeError(`No cell with offset ${p} found`); const f = i.left - _.left, g = _.right - i.right; if (f > 0 || g > 0) { - let E = m.attrs; - if (f > 0 && (E = Tr(E, 0, f)), g > 0 && (E = Tr( - E, - E.colspan - g, + let S = m.attrs; + if (f > 0 && (S = Tr(S, 0, f)), g > 0 && (S = Tr( + S, + S.colspan - g, g )), _.left < i.left) { - if (m = m.type.createAndFill(E), !m) + if (m = m.type.createAndFill(S), !m) throw RangeError( - `Could not create cell with attrs ${JSON.stringify(E)}` + `Could not create cell with attrs ${JSON.stringify(S)}` ); } else - m = m.type.create(E, m.content); + m = m.type.create(S, m.content); } if (_.top < i.top || _.bottom > i.bottom) { - const E = { + const S = { ...m.attrs, rowspan: Math.min(_.bottom, i.bottom) - Math.max(_.top, i.top) }; - _.top < i.top ? m = m.type.createAndFill(E) : m = m.type.create(E, m.content); + _.top < i.top ? m = m.type.createAndFill(S) : m = m.type.create(S, m.content); } c.push(m); } - a.push(e.child(l).copy(L.from(c))); + a.push(e.child(l).copy(w.from(c))); } const s = this.isColSelection() && this.isRowSelection() ? e : a; - return new H(L.from(s), 1, 1); + return new H(w.from(s), 1, 1); } replace(e, n = H.empty) { const r = e.steps.length, i = this.ranges; @@ -20702,7 +20801,7 @@ var Te = class cn extends te { o && e.setSelection(o); } replaceWith(e, n) { - this.replace(e, new H(L.from(n), 0, 0)); + this.replace(e, new H(w.from(n), 0, 0)); } forEachCell(e) { const n = this.$anchorCell.node(-1), r = Ie.get(n), i = this.$anchorCell.start(-1), o = r.cellsInRect( @@ -20771,35 +20870,35 @@ var Te = class cn extends te { return new cn(e.resolve(n), e.resolve(r)); } getBookmark() { - return new eO(this.$anchorCell.pos, this.$headCell.pos); + return new oO(this.$anchorCell.pos, this.$headCell.pos); } }; Te.prototype.visible = !1; te.jsonID("cell", Te); -var eO = class _g { +var oO = class bg { constructor(e, n) { this.anchor = e, this.head = n; } map(e) { - return new _g(e.map(this.anchor), e.map(this.head)); + return new bg(e.map(this.anchor), e.map(this.head)); } resolve(e) { const n = e.resolve(this.anchor), r = e.resolve(this.head); - return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && jc(n, r) ? new Te(n, r) : te.near(r, 1); + return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && nu(n, r) ? new Te(n, r) : te.near(r, 1); } }; -function tO(t) { +function aO(t) { if (!(t.selection instanceof Te)) return null; const e = []; return t.selection.forEachCell((n, r) => { e.push( - Fe.node(r, r + n.nodeSize, { class: "selectedCell" }) + ke.node(r, r + n.nodeSize, { class: "selectedCell" }) ); - }), Se.create(t.doc, e); + }), be.create(t.doc, e); } -function nO({ $from: t, $to: e }) { - if (t.pos == e.pos || t.pos < t.pos - 6) +function sO({ $from: t, $to: e }) { + if (t.pos == e.pos || t.pos < e.pos - 6) return !1; let n = t.pos, r = e.pos, i = t.depth; for (; i >= 0 && !(t.after(i + 1) < t.end(i)); i--, n++) @@ -20808,7 +20907,7 @@ function nO({ $from: t, $to: e }) { ; return n == r && /row|table/.test(t.node(i).type.spec.tableRole); } -function rO({ $from: t, $to: e }) { +function lO({ $from: t, $to: e }) { let n, r; for (let i = t.depth; i > 0; i--) { const o = t.node(i); @@ -20826,7 +20925,7 @@ function rO({ $from: t, $to: e }) { } return n !== r && e.parentOffset === 0; } -function iO(t, e, n) { +function cO(t, e, n) { const r = (e || t).selection, i = (e || t).doc; let o, a; if (r instanceof ee && (a = r.node.type.spec.tableRole)) { @@ -20839,11 +20938,11 @@ function iO(t, e, n) { const s = Ie.get(r.node), l = r.from + 1, c = l + s.map[s.width * s.height - 1]; o = Te.create(i, l + 1, c); } - } else r instanceof Z && nO(r) ? o = Z.create(i, r.from) : r instanceof Z && rO(r) && (o = Z.create(i, r.$from.start(), r.$from.end())); + } else r instanceof Z && sO(r) ? o = Z.create(i, r.from) : r instanceof Z && lO(r) && (o = Z.create(i, r.$from.start(), r.$from.end())); return o && (e || (e = t.tr)).setSelection(o), e; } -var oO = new ve("fix-tables"); -function mg(t, e, n, r) { +var uO = new ve("fix-tables"); +function Tg(t, e, n, r) { const i = t.childCount, o = e.childCount; e: for (let a = 0, s = 0; a < o; a++) { @@ -20853,17 +20952,17 @@ function mg(t, e, n, r) { s = c + 1, n += l.nodeSize; continue e; } - r(l, n), s < i && t.child(s).sameMarkup(l) ? mg(t.child(s), l, n + 1, r) : l.nodesBetween(0, l.content.size, r, n + 1), n += l.nodeSize; + r(l, n), s < i && t.child(s).sameMarkup(l) ? Tg(t.child(s), l, n + 1, r) : l.nodesBetween(0, l.content.size, r, n + 1), n += l.nodeSize; } } -function fg(t, e) { +function Cg(t, e) { let n; const r = (i, o) => { - i.type.spec.tableRole == "table" && (n = aO(t, i, o, n)); + i.type.spec.tableRole == "table" && (n = dO(t, i, o, n)); }; - return e ? e.doc != t.doc && mg(e.doc, t.doc, 0, r) : t.doc.descendants(r), n; + return e ? e.doc != t.doc && Tg(e.doc, t.doc, 0, r) : t.doc.descendants(r), n; } -function aO(t, e, n, r) { +function dO(t, e, n, r) { const i = Ie.get(e); if (!i.problems) return r; @@ -20915,17 +21014,474 @@ function aO(t, e, n, r) { u.firstChild && (_ = u.firstChild.type.spec.tableRole); const m = []; for (let g = 0; g < p; g++) { - const E = it(t.schema)[_].createAndFill(); - E && m.push(E); + const S = it(t.schema)[_].createAndFill(); + S && m.push(S); } const f = (l == 0 || a == l - 1) && s == l ? c + 1 : d - 1; r.insert(r.mapping.map(f), m); } c = d; } - return r.setMeta(oO, { fixTables: !0 }); + return r.setMeta(uO, { fixTables: !0 }); +} +function on(t) { + const e = t.selection, n = bs(t), r = n.node(-1), i = n.start(-1), o = Ie.get(r); + return { ...e instanceof Te ? o.rectBetween( + e.$anchorCell.pos - i, + e.$headCell.pos - i + ) : o.findCell(n.pos - i), tableStart: i, map: o, table: r }; +} +function yg(t, { map: e, tableStart: n, table: r }, i) { + let o = i > 0 ? -1 : 0; + iO(e, r, i + o) && (o = i == 0 || i == e.width ? null : 0); + for (let a = 0; a < e.height; a++) { + const s = a * e.width + i; + if (i > 0 && i < e.width && e.map[s - 1] == e.map[s]) { + const l = e.map[s], c = r.nodeAt(l); + t.setNodeMarkup( + t.mapping.map(n + l), + null, + Sg(c.attrs, i - e.colCount(l)) + ), a += c.attrs.rowspan - 1; + } else { + const l = o == null ? it(r.type.schema).cell : r.nodeAt(e.map[s + o]).type, c = e.positionAt(a, i, r); + t.insert(t.mapping.map(n + c), l.createAndFill()); + } + } + return t; +} +function pO(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t); + e(yg(t.tr, n, n.left)); + } + return !0; +} +function _O(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t); + e(yg(t.tr, n, n.right)); + } + return !0; +} +function mO(t, { map: e, table: n, tableStart: r }, i) { + const o = t.mapping.maps.length; + for (let a = 0; a < e.height; ) { + const s = a * e.width + i, l = e.map[s], c = n.nodeAt(l), u = c.attrs; + if (i > 0 && e.map[s - 1] == l || i < e.width - 1 && e.map[s + 1] == l) + t.setNodeMarkup( + t.mapping.slice(o).map(r + l), + null, + Tr(u, i - e.colCount(l)) + ); + else { + const d = t.mapping.slice(o).map(r + l); + t.delete(d, d + c.nodeSize); + } + a += u.rowspan; + } +} +function fO(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t), r = t.tr; + if (n.left == 0 && n.right == n.map.width) + return !1; + for (let i = n.right - 1; mO(r, n, i), i != n.left; i--) { + const o = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc; + if (!o) + throw RangeError("No table found"); + n.table = o, n.map = Ie.get(o); + } + e(r); + } + return !0; +} +function gO(t, e, n) { + var r; + const i = it(e.type.schema).header_cell; + for (let o = 0; o < t.width; o++) + if (((r = e.nodeAt(t.map[o + n * t.width])) == null ? void 0 : r.type) != i) + return !1; + return !0; +} +function vg(t, { map: e, tableStart: n, table: r }, i) { + var o; + let a = n; + for (let c = 0; c < i; c++) + a += r.child(c).nodeSize; + const s = []; + let l = i > 0 ? -1 : 0; + gO(e, r, i + l) && (l = i == 0 || i == e.height ? null : 0); + for (let c = 0, u = e.width * i; c < e.width; c++, u++) + if (i > 0 && i < e.height && e.map[u] == e.map[u - e.width]) { + const d = e.map[u], p = r.nodeAt(d).attrs; + t.setNodeMarkup(n + d, null, { + ...p, + rowspan: p.rowspan + 1 + }), c += p.colspan - 1; + } else { + const d = l == null ? it(r.type.schema).cell : (o = r.nodeAt(e.map[u + l * e.width])) == null ? void 0 : o.type, p = d == null ? void 0 : d.createAndFill(); + p && s.push(p); + } + return t.insert(a, it(r.type.schema).row.create(null, s)), t; +} +function hO(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t); + e(vg(t.tr, n, n.top)); + } + return !0; +} +function EO(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t); + e(vg(t.tr, n, n.bottom)); + } + return !0; +} +function SO(t, { map: e, table: n, tableStart: r }, i) { + let o = 0; + for (let c = 0; c < i; c++) + o += n.child(c).nodeSize; + const a = o + n.child(i).nodeSize, s = t.mapping.maps.length; + t.delete(o + r, a + r); + const l = /* @__PURE__ */ new Set(); + for (let c = 0, u = i * e.width; c < e.width; c++, u++) { + const d = e.map[u]; + if (!l.has(d)) { + if (l.add(d), i > 0 && d == e.map[u - e.width]) { + const p = n.nodeAt(d).attrs; + t.setNodeMarkup(t.mapping.slice(s).map(d + r), null, { + ...p, + rowspan: p.rowspan - 1 + }), c += p.colspan - 1; + } else if (i < e.height && d == e.map[u + e.width]) { + const p = n.nodeAt(d), _ = p.attrs, m = p.type.create( + { ..._, rowspan: p.attrs.rowspan - 1 }, + p.content + ), f = e.positionAt(i + 1, c, n); + t.insert(t.mapping.slice(s).map(r + f), m), c += _.colspan - 1; + } + } + } +} +function bO(t, e) { + if (!Vt(t)) + return !1; + if (e) { + const n = on(t), r = t.tr; + if (n.top == 0 && n.bottom == n.map.height) + return !1; + for (let i = n.bottom - 1; SO(r, n, i), i != n.top; i--) { + const o = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc; + if (!o) + throw RangeError("No table found"); + n.table = o, n.map = Ie.get(n.table); + } + e(r); + } + return !0; +} +function Pp(t) { + const e = t.content; + return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0; +} +function TO({ width: t, height: e, map: n }, r) { + let i = r.top * t + r.left, o = i, a = (r.bottom - 1) * t + r.left, s = i + (r.right - r.left - 1); + for (let l = r.top; l < r.bottom; l++) { + if (r.left > 0 && n[o] == n[o - 1] || r.right < t && n[s] == n[s + 1]) + return !0; + o += t, s += t; + } + for (let l = r.left; l < r.right; l++) { + if (r.top > 0 && n[i] == n[i - t] || r.bottom < e && n[a] == n[a + t]) + return !0; + i++, a++; + } + return !1; +} +function Fp(t, e) { + const n = t.selection; + if (!(n instanceof Te) || n.$anchorCell.pos == n.$headCell.pos) + return !1; + const r = on(t), { map: i } = r; + if (TO(i, r)) + return !1; + if (e) { + const o = t.tr, a = {}; + let s = w.empty, l, c; + for (let u = r.top; u < r.bottom; u++) + for (let d = r.left; d < r.right; d++) { + const p = i.map[u * i.width + d], _ = r.table.nodeAt(p); + if (!(a[p] || !_)) + if (a[p] = !0, l == null) + l = p, c = _; + else { + Pp(_) || (s = s.append(_.content)); + const m = o.mapping.map(p + r.tableStart); + o.delete(m, m + _.nodeSize); + } + } + if (l == null || c == null) + return !0; + if (o.setNodeMarkup(l + r.tableStart, null, { + ...Sg( + c.attrs, + c.attrs.colspan, + r.right - r.left - c.attrs.colspan + ), + rowspan: r.bottom - r.top + }), s.size) { + const u = l + 1 + c.content.size, d = Pp(c) ? l + 1 : u; + o.replaceWith(d + r.tableStart, u + r.tableStart, s); + } + o.setSelection( + new Te(o.doc.resolve(l + r.tableStart)) + ), e(o); + } + return !0; +} +function Bp(t, e) { + const n = it(t.schema); + return CO(({ node: r }) => n[r.type.spec.tableRole])(t, e); +} +function CO(t) { + return (e, n) => { + var r; + const i = e.selection; + let o, a; + if (i instanceof Te) { + if (i.$anchorCell.pos != i.$headCell.pos) + return !1; + o = i.$anchorCell.nodeAfter, a = i.$anchorCell.pos; + } else { + if (o = tO(i.$from), !o) + return !1; + a = (r = fi(i.$from)) == null ? void 0 : r.pos; + } + if (o == null || a == null || o.attrs.colspan == 1 && o.attrs.rowspan == 1) + return !1; + if (n) { + let s = o.attrs; + const l = [], c = s.colwidth; + s.rowspan > 1 && (s = { ...s, rowspan: 1 }), s.colspan > 1 && (s = { ...s, colspan: 1 }); + const u = on(e), d = e.tr; + for (let _ = 0; _ < u.right - u.left; _++) + l.push( + c ? { + ...s, + colwidth: c && c[_] ? [c[_]] : null + } : s + ); + let p; + for (let _ = u.top; _ < u.bottom; _++) { + let m = u.map.positionAt(_, u.left, u.table); + _ == u.top && (m += o.nodeSize); + for (let f = u.left, g = 0; f < u.right; f++, g++) + f == u.left && _ == u.top || d.insert( + p = d.mapping.map(m + u.tableStart, 1), + t({ node: o, row: _, col: f }).createAndFill(l[g]) + ); + } + d.setNodeMarkup( + a, + t({ node: o, row: u.top, col: u.left }), + l[0] + ), i instanceof Te && d.setSelection( + new Te( + d.doc.resolve(i.$anchorCell.pos), + p ? d.doc.resolve(p) : void 0 + ) + ), n(d); + } + return !0; + }; +} +function yO(t, e) { + return function(n, r) { + if (!Vt(n)) + return !1; + const i = bs(n); + if (i.nodeAfter.attrs[t] === e) + return !1; + if (r) { + const o = n.tr; + n.selection instanceof Te ? n.selection.forEachCell((a, s) => { + a.attrs[t] !== e && o.setNodeMarkup(s, null, { + ...a.attrs, + [t]: e + }); + }) : o.setNodeMarkup(i.pos, null, { + ...i.nodeAfter.attrs, + [t]: e + }), r(o); + } + return !0; + }; +} +function vO(t) { + return function(e, n) { + if (!Vt(e)) + return !1; + if (n) { + const r = it(e.schema), i = on(e), o = e.tr, a = i.map.cellsInRect( + t == "column" ? { + left: i.left, + top: 0, + right: i.right, + bottom: i.map.height + } : t == "row" ? { + left: 0, + top: i.top, + right: i.map.width, + bottom: i.bottom + } : i + ), s = a.map((l) => i.table.nodeAt(l)); + for (let l = 0; l < a.length; l++) + s[l].type == r.header_cell && o.setNodeMarkup( + i.tableStart + a[l], + r.cell, + s[l].attrs + ); + if (o.steps.length == 0) + for (let l = 0; l < a.length; l++) + o.setNodeMarkup( + i.tableStart + a[l], + r.header_cell, + s[l].attrs + ); + n(o); + } + return !0; + }; +} +function Up(t, e, n) { + const r = e.map.cellsInRect({ + left: 0, + top: 0, + right: t == "row" ? e.map.width : 1, + bottom: t == "column" ? e.map.height : 1 + }); + for (let i = 0; i < r.length; i++) { + const o = e.table.nodeAt(r[i]); + if (o && o.type !== n.header_cell) + return !1; + } + return !0; +} +function eo(t, e) { + return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? vO(t) : function(n, r) { + if (!Vt(n)) + return !1; + if (r) { + const i = it(n.schema), o = on(n), a = n.tr, s = Up("row", o, i), l = Up( + "column", + o, + i + ), u = (t === "column" ? s : t === "row" ? l : !1) ? 1 : 0, d = t == "column" ? { + left: 0, + top: u, + right: 1, + bottom: o.map.height + } : t == "row" ? { + left: u, + top: 0, + right: o.map.width, + bottom: 1 + } : o, p = t == "column" ? l ? i.cell : i.header_cell : t == "row" ? s ? i.cell : i.header_cell : i.cell; + o.map.cellsInRect(d).forEach((_) => { + const m = _ + o.tableStart, f = a.doc.nodeAt(m); + f && a.setNodeMarkup(m, p, f.attrs); + }), r(a); + } + return !0; + }; +} +eo("row", { + useDeprecatedLogic: !0 +}); +eo("column", { + useDeprecatedLogic: !0 +}); +var RO = eo("cell", { + useDeprecatedLogic: !0 +}); +function OO(t, e) { + if (e < 0) { + const n = t.nodeBefore; + if (n) + return t.pos - n.nodeSize; + for (let r = t.index(-1) - 1, i = t.before(); r >= 0; r--) { + const o = t.node(-1).child(r), a = o.lastChild; + if (a) + return i - 1 - a.nodeSize; + i -= o.nodeSize; + } + } else { + if (t.index() < t.parent.childCount - 1) + return t.pos + t.nodeAfter.nodeSize; + const n = t.node(-1); + for (let r = t.indexAfter(-1), i = t.after(); r < n.childCount; r++) { + const o = n.child(r); + if (o.childCount) + return i + 1; + i += o.nodeSize; + } + } + return null; +} +function Hp(t) { + return function(e, n) { + if (!Vt(e)) + return !1; + const r = OO(bs(e), t); + if (r == null) + return !1; + if (n) { + const i = e.doc.resolve(r); + n( + e.tr.setSelection(Z.between(i, rO(i))).scrollIntoView() + ); + } + return !0; + }; +} +function NO(t, e) { + const n = t.selection.$anchor; + for (let r = n.depth; r > 0; r--) + if (n.node(r).type.spec.tableRole == "table") + return e && e( + t.tr.delete(n.before(r), n.after(r)).scrollIntoView() + ), !0; + return !1; +} +function ko(t, e) { + const n = t.selection; + if (!(n instanceof Te)) + return !1; + if (e) { + const r = t.tr, i = it(t.schema).cell.createAndFill().content; + n.forEachCell((o, a) => { + o.content.eq(i) || r.replace( + r.mapping.map(a + 1), + r.mapping.map(a + o.nodeSize - 1), + new H(i, 0, 0) + ); + }), r.docChanged && e(r); + } + return !0; } -function sO(t) { +function AO(t) { if (!t.size) return null; let { content: e, openStart: n, openEnd: r } = t; @@ -20936,23 +21492,23 @@ function sO(t) { for (let l = 0; l < e.childCount; l++) { let c = e.child(l).content; const u = l ? 0 : Math.max(0, n - 1), d = l < e.childCount - 1 ? 0 : Math.max(0, r - 1); - (u || d) && (c = ic( + (u || d) && (c = oc( it(a).row, new H(c, u, d) ).content), s.push(c); } else if (o == "cell" || o == "header_cell") s.push( - n || r ? ic( + n || r ? oc( it(a).row, new H(e, n, r) ).content : e ); else return null; - return lO(a, s); + return IO(a, s); } -function lO(t, e) { +function IO(t, e) { const n = []; for (let i = 0; i < e.length; i++) { const o = e[i]; @@ -20966,19 +21522,19 @@ function lO(t, e) { for (let i = 0; i < n.length; i++) r = Math.max(r, n[i]); for (let i = 0; i < n.length; i++) - if (i >= e.length && e.push(L.empty), n[i] < r) { + if (i >= e.length && e.push(w.empty), n[i] < r) { const o = it(t).cell.createAndFill(), a = []; for (let s = n[i]; s < r; s++) a.push(o); - e[i] = e[i].append(L.from(a)); + e[i] = e[i].append(w.from(a)); } return { height: e.length, width: r, rows: e }; } -function ic(t, e) { +function oc(t, e) { const n = t.createAndFill(); - return new Sc(n).replace(0, n.content.size, e).doc; + return new Cc(n).replace(0, n.content.size, e).doc; } -function cO({ width: t, height: e, rows: n }, r, i) { +function xO({ width: t, height: e, rows: n }, r, i) { if (t != r) { const o = [], a = []; for (let s = 0; s < n.length; s++) { @@ -20996,7 +21552,7 @@ function cO({ width: t, height: e, rows: n }, r, i) { for (let _ = 1; _ < p.attrs.rowspan; _++) o[s + _] = (o[s + _] || 0) + p.attrs.colspan; } - a.push(L.from(c)); + a.push(w.from(c)); } n = a, t = r; } @@ -21014,13 +21570,13 @@ function cO({ width: t, height: e, rows: n }, r, i) { d.content )), l.push(d); } - o.push(L.from(l)); + o.push(w.from(l)); } n = o, e = i; } return { width: t, height: e, rows: n }; } -function uO(t, e, n, r, i, o, a) { +function DO(t, e, n, r, i, o, a) { const s = t.doc.type.schema, l = it(s); let c, u; if (i > e.width) @@ -21042,14 +21598,14 @@ function uO(t, e, n, r, i, o, a) { g ? u || (u = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill()) ); } - const p = l.row.create(null, L.from(d)), _ = []; + const p = l.row.create(null, w.from(d)), _ = []; for (let m = e.height; m < o; m++) _.push(p); t.insert(t.mapping.slice(a).map(r + n.nodeSize - 2), _); } return !!(c || u); } -function Dp(t, e, n, r, i, o, a, s) { +function Gp(t, e, n, r, i, o, a, s) { if (a == 0 || a == e.height) return !1; let l = !1; @@ -21072,7 +21628,7 @@ function Dp(t, e, n, r, i, o, a, s) { } return l; } -function Mp(t, e, n, r, i, o, a, s) { +function Vp(t, e, n, r, i, o, a, s) { if (a == 0 || a == e.width) return !1; let l = !1; @@ -21099,7 +21655,7 @@ function Mp(t, e, n, r, i, o, a, s) { } return l; } -function wp(t, e, n, r, i) { +function Yp(t, e, n, r, i) { let o = n ? t.doc.nodeAt(n - 1) : t.doc; if (!o) throw new Error("No table found"); @@ -21111,7 +21667,7 @@ function wp(t, e, n, r, i) { throw new Error("No table found"); a = Ie.get(o), p = d.mapping.maps.length; } - uO(d, a, o, n, c, u, p) && _(), Dp(d, a, o, n, l, c, s, p) && _(), Dp(d, a, o, n, l, c, u, p) && _(), Mp(d, a, o, n, s, u, l, p) && _(), Mp(d, a, o, n, s, u, c, p) && _(); + DO(d, a, o, n, c, u, p) && _(), Gp(d, a, o, n, l, c, s, p) && _(), Gp(d, a, o, n, l, c, u, p) && _(), Vp(d, a, o, n, s, u, l, p) && _(), Vp(d, a, o, n, s, u, c, p) && _(); for (let m = s; m < u; m++) { const f = a.positionAt(m, l, o), g = a.positionAt(m, c, o); d.replace( @@ -21127,53 +21683,53 @@ function wp(t, e, n, r, i) { ) ), e(d); } -var dO = Ic({ - ArrowLeft: Lo("horiz", -1), - ArrowRight: Lo("horiz", 1), - ArrowUp: Lo("vert", -1), - ArrowDown: Lo("vert", 1), - "Shift-ArrowLeft": ko("horiz", -1), - "Shift-ArrowRight": ko("horiz", 1), - "Shift-ArrowUp": ko("vert", -1), - "Shift-ArrowDown": ko("vert", 1), - Backspace: Po, - "Mod-Backspace": Po, - Delete: Po, - "Mod-Delete": Po +var MO = Mc({ + ArrowLeft: Po("horiz", -1), + ArrowRight: Po("horiz", 1), + ArrowUp: Po("vert", -1), + ArrowDown: Po("vert", 1), + "Shift-ArrowLeft": Fo("horiz", -1), + "Shift-ArrowRight": Fo("horiz", 1), + "Shift-ArrowUp": Fo("vert", -1), + "Shift-ArrowDown": Fo("vert", 1), + Backspace: ko, + "Mod-Backspace": ko, + Delete: ko, + "Mod-Delete": ko }); -function ta(t, e, n) { +function na(t, e, n) { return n.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(n).scrollIntoView()), !0); } -function Lo(t, e) { +function Po(t, e) { return (n, r, i) => { if (!i) return !1; const o = n.selection; if (o instanceof Te) - return ta( + return na( n, r, te.near(o.$headCell, e) ); if (t != "horiz" && !o.empty) return !1; - const a = gg(i, t, e); + const a = Rg(i, t, e); if (a == null) return !1; if (t == "horiz") - return ta( + return na( n, r, te.near(n.doc.resolve(o.head + e), e) ); { - const s = n.doc.resolve(a), l = dg(s, t, e); + const s = n.doc.resolve(a), l = Eg(s, t, e); let c; - return l ? c = te.near(l, 1) : e < 0 ? c = te.near(n.doc.resolve(s.before(-1)), -1) : c = te.near(n.doc.resolve(s.after(-1)), 1), ta(n, r, c); + return l ? c = te.near(l, 1) : e < 0 ? c = te.near(n.doc.resolve(s.before(-1)), -1) : c = te.near(n.doc.resolve(s.after(-1)), 1), na(n, r, c); } }; } -function ko(t, e) { +function Fo(t, e) { return (n, r, i) => { if (!i) return !1; @@ -21182,51 +21738,35 @@ function ko(t, e) { if (o instanceof Te) a = o; else { - const l = gg(i, t, e); + const l = Rg(i, t, e); if (l == null) return !1; a = new Te(n.doc.resolve(l)); } - const s = dg(a.$headCell, t, e); - return s ? ta( + const s = Eg(a.$headCell, t, e); + return s ? na( n, r, new Te(a.$anchorCell, s) ) : !1; }; } -function Po(t, e) { - const n = t.selection; - if (!(n instanceof Te)) - return !1; - if (e) { - const r = t.tr, i = it(t.schema).cell.createAndFill().content; - n.forEachCell((o, a) => { - o.content.eq(i) || r.replace( - r.mapping.map(a + 1), - r.mapping.map(a + o.nodeSize - 1), - new H(i, 0, 0) - ); - }), r.docChanged && e(r); - } - return !0; -} -function pO(t, e) { +function wO(t, e) { const n = t.state.doc, r = fi(n.resolve(e)); return r ? (t.dispatch(t.state.tr.setSelection(new Te(r))), !0) : !1; } -function _O(t, e, n) { +function LO(t, e, n) { if (!Vt(t.state)) return !1; - let r = sO(n); + let r = AO(n); const i = t.state.selection; if (i instanceof Te) { r || (r = { width: 1, height: 1, rows: [ - L.from( - ic(it(t.state.schema).cell, n) + w.from( + oc(it(t.state.schema).cell, n) ) ] }); @@ -21234,10 +21774,10 @@ function _O(t, e, n) { i.$anchorCell.pos - a, i.$headCell.pos - a ); - return r = cO(r, s.right - s.left, s.bottom - s.top), wp(t.state, t.dispatch, a, s, r), !0; + return r = xO(r, s.right - s.left, s.bottom - s.top), Yp(t.state, t.dispatch, a, s, r), !0; } else if (r) { - const o = Ss(t.state), a = o.start(-1); - return wp( + const o = bs(t.state), a = o.start(-1); + return Yp( t.state, t.dispatch, a, @@ -21247,22 +21787,22 @@ function _O(t, e, n) { } else return !1; } -function mO(t, e) { +function kO(t, e) { var n; if (e.ctrlKey || e.metaKey) return; - const r = Lp(t, e.target); + const r = zp(t, e.target); let i; if (e.shiftKey && t.state.selection instanceof Te) o(t.state.selection.$anchorCell, e), e.preventDefault(); - else if (e.shiftKey && r && (i = fi(t.state.selection.$anchor)) != null && ((n = ol(t, e)) == null ? void 0 : n.pos) != i.pos) + else if (e.shiftKey && r && (i = fi(t.state.selection.$anchor)) != null && ((n = sl(t, e)) == null ? void 0 : n.pos) != i.pos) o(i, e), e.preventDefault(); else if (!r) return; function o(l, c) { - let u = ol(t, c); + let u = sl(t, c); const d = Nn.getState(t.state) == null; - if (!u || !jc(l, u)) + if (!u || !nu(l, u)) if (d) u = l; else @@ -21281,13 +21821,13 @@ function mO(t, e) { let d; if (u != null) d = t.state.doc.resolve(u); - else if (Lp(t, c.target) != r && (d = ol(t, e), !d)) + else if (zp(t, c.target) != r && (d = sl(t, e), !d)) return a(); d && o(d, c); } t.root.addEventListener("mouseup", a), t.root.addEventListener("dragstart", a), t.root.addEventListener("mousemove", s); } -function gg(t, e, n) { +function Rg(t, e, n) { if (!(t.state.selection instanceof Z)) return null; const { $head: r } = t.state.selection; @@ -21302,31 +21842,39 @@ function gg(t, e, n) { } return null; } -function Lp(t, e) { +function zp(t, e) { for (; e && e != t.dom; e = e.parentNode) if (e.nodeName == "TD" || e.nodeName == "TH") return e; return null; } -function ol(t, e) { +function sl(t, e) { const n = t.posAtCoords({ left: e.clientX, top: e.clientY }); return n && n ? fi(t.state.doc.resolve(n.pos)) : null; } -var fO = class { +var PO = class { constructor(e, n) { - this.node = e, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), oc(e, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody")); + this.node = e, this.defaultCellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty( + "--default-cell-min-width", + `${n}px` + ), this.colgroup = this.table.appendChild(document.createElement("colgroup")), ac(e, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody")); } update(e) { - return e.type != this.node.type ? !1 : (this.node = e, oc(e, this.colgroup, this.table, this.cellMinWidth), !0); + return e.type != this.node.type ? !1 : (this.node = e, ac( + e, + this.colgroup, + this.table, + this.defaultCellMinWidth + ), !0); } ignoreMutation(e) { return e.type == "attributes" && (e.target == this.table || this.colgroup.contains(e.target)); } }; -function oc(t, e, n, r, i, o) { +function ac(t, e, n, r, i, o) { var a; let s = 0, l = !0, c = e.firstChild; const u = t.firstChild; @@ -21334,8 +21882,13 @@ function oc(t, e, n, r, i, o) { for (let d = 0, p = 0; d < u.childCount; d++) { const { colspan: _, colwidth: m } = u.child(d).attrs; for (let f = 0; f < _; f++, p++) { - const g = i == p ? o : m && m[f], E = g ? g + "px" : ""; - s += g || r, g || (l = !1), c ? (c.style.width != E && (c.style.width = E), c = c.nextSibling) : e.appendChild(document.createElement("col")).style.width = E; + const g = i == p ? o : m && m[f], S = g ? g + "px" : ""; + if (s += g || r, g || (l = !1), c) + c.style.width != S && (c.style.width = S), c = c.nextSibling; + else { + const E = document.createElement("col"); + E.style.width = S, e.appendChild(E); + } } } for (; c; ) { @@ -21345,133 +21898,138 @@ function oc(t, e, n, r, i, o) { l ? (n.style.width = s + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = s + "px"); } } -var xt = new ve( +var vt = new ve( "tableColumnResizing" ); -function gO({ +function FO({ handleWidth: t = 5, cellMinWidth: e = 25, - View: n = fO, - lastColumnResizable: r = !0 + defaultCellMinWidth: n = 100, + View: r = PO, + lastColumnResizable: i = !0 } = {}) { - const i = new be({ - key: xt, + const o = new Se({ + key: vt, state: { - init(o, a) { - var s, l; - const c = (l = (s = i.spec) == null ? void 0 : s.props) == null ? void 0 : l.nodeViews, u = it(a.schema).table.name; - return n && c && (c[u] = (d, p) => new n(d, e, p)), new hO(-1, !1); + init(a, s) { + var l, c; + const u = (c = (l = o.spec) == null ? void 0 : l.props) == null ? void 0 : c.nodeViews, d = it(s.schema).table.name; + return r && u && (u[d] = (p, _) => new r(p, n, _)), new BO(-1, !1); }, - apply(o, a) { - return a.apply(o); + apply(a, s) { + return s.apply(a); } }, props: { - attributes: (o) => { - const a = xt.getState(o); - return a && a.activeHandle > -1 ? { class: "resize-cursor" } : {}; + attributes: (a) => { + const s = vt.getState(a); + return s && s.activeHandle > -1 ? { class: "resize-cursor" } : {}; }, handleDOMEvents: { - mousemove: (o, a) => { - EO( - o, - a, - t, - e, - r - ); + mousemove: (a, s) => { + UO(a, s, t, i); }, - mouseleave: (o) => { - SO(o); + mouseleave: (a) => { + HO(a); }, - mousedown: (o, a) => { - bO(o, a, e); + mousedown: (a, s) => { + GO(a, s, e, n); } }, - decorations: (o) => { - const a = xt.getState(o); - if (a && a.activeHandle > -1) - return OO(o, a.activeHandle); + decorations: (a) => { + const s = vt.getState(a); + if (s && s.activeHandle > -1) + return qO(a, s.activeHandle); }, nodeViews: {} } }); - return i; + return o; } -var hO = class na { +var BO = class ra { constructor(e, n) { this.activeHandle = e, this.dragging = n; } apply(e) { - const n = this, r = e.getMeta(xt); + const n = this, r = e.getMeta(vt); if (r && r.setHandle != null) - return new na(r.setHandle, !1); + return new ra(r.setHandle, !1); if (r && r.setDragging !== void 0) - return new na(n.activeHandle, r.setDragging); + return new ra(n.activeHandle, r.setDragging); if (n.activeHandle > -1 && e.docChanged) { let i = e.mapping.map(n.activeHandle, -1); - return rc(e.doc.resolve(i)) || (i = -1), new na(i, n.dragging); + return ic(e.doc.resolve(i)) || (i = -1), new ra(i, n.dragging); } return n; } }; -function EO(t, e, n, r, i) { - const o = xt.getState(t.state); - if (o && !o.dragging) { - const a = CO(e.target); - let s = -1; - if (a) { - const { left: l, right: c } = a.getBoundingClientRect(); - e.clientX - l <= n ? s = kp(t, e, "left", n) : c - e.clientX <= n && (s = kp(t, e, "right", n)); +function UO(t, e, n, r) { + const i = vt.getState(t.state); + if (i && !i.dragging) { + const o = YO(e.target); + let a = -1; + if (o) { + const { left: s, right: l } = o.getBoundingClientRect(); + e.clientX - s <= n ? a = $p(t, e, "left", n) : l - e.clientX <= n && (a = $p(t, e, "right", n)); } - if (s != o.activeHandle) { - if (!i && s !== -1) { - const l = t.state.doc.resolve(s), c = l.node(-1), u = Ie.get(c), d = l.start(-1); - if (u.colCount(l.pos - d) + l.nodeAfter.attrs.colspan - 1 == u.width - 1) + if (a != i.activeHandle) { + if (!r && a !== -1) { + const s = t.state.doc.resolve(a), l = s.node(-1), c = Ie.get(l), u = s.start(-1); + if (c.colCount(s.pos - u) + s.nodeAfter.attrs.colspan - 1 == c.width - 1) return; } - hg(t, s); + Og(t, a); } } } -function SO(t) { - const e = xt.getState(t.state); - e && e.activeHandle > -1 && !e.dragging && hg(t, -1); +function HO(t) { + const e = vt.getState(t.state); + e && e.activeHandle > -1 && !e.dragging && Og(t, -1); } -function bO(t, e, n) { - var r; - const i = (r = t.dom.ownerDocument.defaultView) != null ? r : window, o = xt.getState(t.state); - if (!o || o.activeHandle == -1 || o.dragging) +function GO(t, e, n, r) { + var i; + const o = (i = t.dom.ownerDocument.defaultView) != null ? i : window, a = vt.getState(t.state); + if (!a || a.activeHandle == -1 || a.dragging) return !1; - const a = t.state.doc.nodeAt(o.activeHandle), s = TO(t, o.activeHandle, a.attrs); + const s = t.state.doc.nodeAt(a.activeHandle), l = VO(t, a.activeHandle, s.attrs); t.dispatch( - t.state.tr.setMeta(xt, { - setDragging: { startX: e.clientX, startWidth: s } + t.state.tr.setMeta(vt, { + setDragging: { startX: e.clientX, startWidth: l } }) ); - function l(u) { - i.removeEventListener("mouseup", l), i.removeEventListener("mousemove", c); - const d = xt.getState(t.state); - d != null && d.dragging && (yO( + function c(d) { + o.removeEventListener("mouseup", c), o.removeEventListener("mousemove", u); + const p = vt.getState(t.state); + p != null && p.dragging && (zO( t, - d.activeHandle, - Pp(d.dragging, u, n) + p.activeHandle, + qp(p.dragging, d, n) ), t.dispatch( - t.state.tr.setMeta(xt, { setDragging: null }) + t.state.tr.setMeta(vt, { setDragging: null }) )); } - function c(u) { - if (!u.which) - return l(u); - const d = xt.getState(t.state); - if (d && d.dragging) { - const p = Pp(d.dragging, u, n); - vO(t, d.activeHandle, p, n); + function u(d) { + if (!d.which) + return c(d); + const p = vt.getState(t.state); + if (p && p.dragging) { + const _ = qp(p.dragging, d, n); + Wp( + t, + p.activeHandle, + _, + r + ); } } - return i.addEventListener("mouseup", l), i.addEventListener("mousemove", c), e.preventDefault(), !0; + return Wp( + t, + a.activeHandle, + l, + r + ), o.addEventListener("mouseup", c), o.addEventListener("mousemove", u), e.preventDefault(), !0; } -function TO(t, e, { colspan: n, colwidth: r }) { +function VO(t, e, { colspan: n, colwidth: r }) { const i = r && r[r.length - 1]; if (i) return i; @@ -21482,12 +22040,12 @@ function TO(t, e, { colspan: n, colwidth: r }) { r[c] && (s -= r[c], l--); return s / l; } -function CO(t) { +function YO(t) { for (; t && t.nodeName != "TD" && t.nodeName != "TH"; ) t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode; return t; } -function kp(t, e, n, r) { +function $p(t, e, n, r) { const i = n == "right" ? -r : r, o = t.posAtCoords({ left: e.clientX + i, top: e.clientY @@ -21502,16 +22060,16 @@ function kp(t, e, n, r) { const l = Ie.get(s.node(-1)), c = s.start(-1), u = l.map.indexOf(s.pos - c); return u % l.width == 0 ? -1 : c + l.map[u - 1]; } -function Pp(t, e, n) { +function qp(t, e, n) { const r = e.clientX - t.startX; return Math.max(n, t.startWidth + r); } -function hg(t, e) { +function Og(t, e) { t.dispatch( - t.state.tr.setMeta(xt, { setHandle: e }) + t.state.tr.setMeta(vt, { setHandle: e }) ); } -function yO(t, e, n) { +function zO(t, e, n) { const r = t.state.doc.resolve(e), i = r.node(-1), o = Ie.get(i), a = r.start(-1), s = o.colCount(r.pos - a) + r.nodeAfter.attrs.colspan - 1, l = t.state.tr; for (let c = 0; c < o.height; c++) { const u = c * o.width + s; @@ -21520,17 +22078,17 @@ function yO(t, e, n) { const d = o.map[u], p = i.nodeAt(d).attrs, _ = p.colspan == 1 ? 0 : s - o.colCount(d); if (p.colwidth && p.colwidth[_] == n) continue; - const m = p.colwidth ? p.colwidth.slice() : RO(p.colspan); + const m = p.colwidth ? p.colwidth.slice() : $O(p.colspan); m[_] = n, l.setNodeMarkup(a + d, null, { ...p, colwidth: m }); } l.docChanged && t.dispatch(l); } -function vO(t, e, n, r) { +function Wp(t, e, n, r) { const i = t.state.doc.resolve(e), o = i.node(-1), a = i.start(-1), s = Ie.get(o).colCount(i.pos - a) + i.nodeAfter.attrs.colspan - 1; let l = t.domAtPos(i.start(-1)).node; for (; l && l.nodeName != "TABLE"; ) l = l.parentNode; - l && oc( + l && ac( o, l.firstChild, l, @@ -21539,468 +22097,36 @@ function vO(t, e, n, r) { n ); } -function RO(t) { +function $O(t) { return Array(t).fill(0); } -function OO(t, e) { - const n = [], r = t.doc.resolve(e), i = r.node(-1); - if (!i) - return Se.empty; - const o = Ie.get(i), a = r.start(-1), s = o.colCount(r.pos - a) + r.nodeAfter.attrs.colspan - 1; - for (let l = 0; l < o.height; l++) { - const c = s + l * o.width; - if ((s == o.width - 1 || o.map[c] != o.map[c + 1]) && (l == 0 || o.map[c] != o.map[c - o.width])) { - const u = o.map[c], d = a + u + i.nodeAt(u).nodeSize - 1, p = document.createElement("div"); - p.className = "column-resize-handle", n.push(Fe.widget(d, p)); - } - } - return Se.create(t.doc, n); -} -function on(t) { - const e = t.selection, n = Ss(t), r = n.node(-1), i = n.start(-1), o = Ie.get(r); - return { ...e instanceof Te ? o.rectBetween( - e.$anchorCell.pos - i, - e.$headCell.pos - i - ) : o.findCell(n.pos - i), tableStart: i, map: o, table: r }; -} -function Eg(t, { map: e, tableStart: n, table: r }, i) { - let o = i > 0 ? -1 : 0; - JR(e, r, i + o) && (o = i == 0 || i == e.width ? null : 0); - for (let a = 0; a < e.height; a++) { - const s = a * e.width + i; - if (i > 0 && i < e.width && e.map[s - 1] == e.map[s]) { - const l = e.map[s], c = r.nodeAt(l); - t.setNodeMarkup( - t.mapping.map(n + l), - null, - pg(c.attrs, i - e.colCount(l)) - ), a += c.attrs.rowspan - 1; - } else { - const l = o == null ? it(r.type.schema).cell : r.nodeAt(e.map[s + o]).type, c = e.positionAt(a, i, r); - t.insert(t.mapping.map(n + c), l.createAndFill()); - } - } - return t; -} -function NO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t); - e(Eg(t.tr, n, n.left)); - } - return !0; -} -function AO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t); - e(Eg(t.tr, n, n.right)); - } - return !0; -} -function IO(t, { map: e, table: n, tableStart: r }, i) { - const o = t.mapping.maps.length; - for (let a = 0; a < e.height; ) { - const s = a * e.width + i, l = e.map[s], c = n.nodeAt(l), u = c.attrs; - if (i > 0 && e.map[s - 1] == l || i < e.width - 1 && e.map[s + 1] == l) - t.setNodeMarkup( - t.mapping.slice(o).map(r + l), - null, - Tr(u, i - e.colCount(l)) - ); - else { - const d = t.mapping.slice(o).map(r + l); - t.delete(d, d + c.nodeSize); - } - a += u.rowspan; - } -} -function xO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t), r = t.tr; - if (n.left == 0 && n.right == n.map.width) - return !1; - for (let i = n.right - 1; IO(r, n, i), i != n.left; i--) { - const o = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc; - if (!o) - throw RangeError("No table found"); - n.table = o, n.map = Ie.get(o); - } - e(r); - } - return !0; -} -function DO(t, e, n) { - var r; - const i = it(e.type.schema).header_cell; - for (let o = 0; o < t.width; o++) - if (((r = e.nodeAt(t.map[o + n * t.width])) == null ? void 0 : r.type) != i) - return !1; - return !0; -} -function Sg(t, { map: e, tableStart: n, table: r }, i) { - var o; - let a = n; - for (let c = 0; c < i; c++) - a += r.child(c).nodeSize; - const s = []; - let l = i > 0 ? -1 : 0; - DO(e, r, i + l) && (l = i == 0 || i == e.height ? null : 0); - for (let c = 0, u = e.width * i; c < e.width; c++, u++) - if (i > 0 && i < e.height && e.map[u] == e.map[u - e.width]) { - const d = e.map[u], p = r.nodeAt(d).attrs; - t.setNodeMarkup(n + d, null, { - ...p, - rowspan: p.rowspan + 1 - }), c += p.colspan - 1; - } else { - const d = l == null ? it(r.type.schema).cell : (o = r.nodeAt(e.map[u + l * e.width])) == null ? void 0 : o.type, p = d == null ? void 0 : d.createAndFill(); - p && s.push(p); - } - return t.insert(a, it(r.type.schema).row.create(null, s)), t; -} -function MO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t); - e(Sg(t.tr, n, n.top)); - } - return !0; -} -function wO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t); - e(Sg(t.tr, n, n.bottom)); - } - return !0; -} -function LO(t, { map: e, table: n, tableStart: r }, i) { - let o = 0; - for (let c = 0; c < i; c++) - o += n.child(c).nodeSize; - const a = o + n.child(i).nodeSize, s = t.mapping.maps.length; - t.delete(o + r, a + r); - const l = /* @__PURE__ */ new Set(); - for (let c = 0, u = i * e.width; c < e.width; c++, u++) { - const d = e.map[u]; - if (!l.has(d)) { - if (l.add(d), i > 0 && d == e.map[u - e.width]) { - const p = n.nodeAt(d).attrs; - t.setNodeMarkup(t.mapping.slice(s).map(d + r), null, { - ...p, - rowspan: p.rowspan - 1 - }), c += p.colspan - 1; - } else if (i < e.height && d == e.map[u + e.width]) { - const p = n.nodeAt(d), _ = p.attrs, m = p.type.create( - { ..._, rowspan: p.attrs.rowspan - 1 }, - p.content - ), f = e.positionAt(i + 1, c, n); - t.insert(t.mapping.slice(s).map(r + f), m), c += _.colspan - 1; - } - } - } -} -function kO(t, e) { - if (!Vt(t)) - return !1; - if (e) { - const n = on(t), r = t.tr; - if (n.top == 0 && n.bottom == n.map.height) - return !1; - for (let i = n.bottom - 1; LO(r, n, i), i != n.top; i--) { - const o = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc; - if (!o) - throw RangeError("No table found"); - n.table = o, n.map = Ie.get(n.table); - } - e(r); - } - return !0; -} -function Fp(t) { - const e = t.content; - return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0; -} -function PO({ width: t, height: e, map: n }, r) { - let i = r.top * t + r.left, o = i, a = (r.bottom - 1) * t + r.left, s = i + (r.right - r.left - 1); - for (let l = r.top; l < r.bottom; l++) { - if (r.left > 0 && n[o] == n[o - 1] || r.right < t && n[s] == n[s + 1]) - return !0; - o += t, s += t; - } - for (let l = r.left; l < r.right; l++) { - if (r.top > 0 && n[i] == n[i - t] || r.bottom < e && n[a] == n[a + t]) - return !0; - i++, a++; - } - return !1; -} -function Bp(t, e) { - const n = t.selection; - if (!(n instanceof Te) || n.$anchorCell.pos == n.$headCell.pos) - return !1; - const r = on(t), { map: i } = r; - if (PO(i, r)) - return !1; - if (e) { - const o = t.tr, a = {}; - let s = L.empty, l, c; - for (let u = r.top; u < r.bottom; u++) - for (let d = r.left; d < r.right; d++) { - const p = i.map[u * i.width + d], _ = r.table.nodeAt(p); - if (!(a[p] || !_)) - if (a[p] = !0, l == null) - l = p, c = _; - else { - Fp(_) || (s = s.append(_.content)); - const m = o.mapping.map(p + r.tableStart); - o.delete(m, m + _.nodeSize); +function qO(t, e) { + var n; + const r = [], i = t.doc.resolve(e), o = i.node(-1); + if (!o) + return be.empty; + const a = Ie.get(o), s = i.start(-1), l = a.colCount(i.pos - s) + i.nodeAfter.attrs.colspan - 1; + for (let c = 0; c < a.height; c++) { + const u = l + c * a.width; + if ((l == a.width - 1 || a.map[u] != a.map[u + 1]) && (c == 0 || a.map[u] != a.map[u - a.width])) { + const d = a.map[u], p = s + d + o.nodeAt(d).nodeSize - 1, _ = document.createElement("div"); + _.className = "column-resize-handle", (n = vt.getState(t)) != null && n.dragging && r.push( + ke.node( + s + d, + s + d + o.nodeAt(d).nodeSize, + { + class: "column-resize-dragging" } - } - if (l == null || c == null) - return !0; - if (o.setNodeMarkup(l + r.tableStart, null, { - ...pg( - c.attrs, - c.attrs.colspan, - r.right - r.left - c.attrs.colspan - ), - rowspan: r.bottom - r.top - }), s.size) { - const u = l + 1 + c.content.size, d = Fp(c) ? l + 1 : u; - o.replaceWith(d + r.tableStart, u + r.tableStart, s); - } - o.setSelection( - new Te(o.doc.resolve(l + r.tableStart)) - ), e(o); - } - return !0; -} -function Up(t, e) { - const n = it(t.schema); - return FO(({ node: r }) => n[r.type.spec.tableRole])(t, e); -} -function FO(t) { - return (e, n) => { - var r; - const i = e.selection; - let o, a; - if (i instanceof Te) { - if (i.$anchorCell.pos != i.$headCell.pos) - return !1; - o = i.$anchorCell.nodeAfter, a = i.$anchorCell.pos; - } else { - if (o = ZR(i.$from), !o) - return !1; - a = (r = fi(i.$from)) == null ? void 0 : r.pos; - } - if (o == null || a == null || o.attrs.colspan == 1 && o.attrs.rowspan == 1) - return !1; - if (n) { - let s = o.attrs; - const l = [], c = s.colwidth; - s.rowspan > 1 && (s = { ...s, rowspan: 1 }), s.colspan > 1 && (s = { ...s, colspan: 1 }); - const u = on(e), d = e.tr; - for (let _ = 0; _ < u.right - u.left; _++) - l.push( - c ? { - ...s, - colwidth: c && c[_] ? [c[_]] : null - } : s - ); - let p; - for (let _ = u.top; _ < u.bottom; _++) { - let m = u.map.positionAt(_, u.left, u.table); - _ == u.top && (m += o.nodeSize); - for (let f = u.left, g = 0; f < u.right; f++, g++) - f == u.left && _ == u.top || d.insert( - p = d.mapping.map(m + u.tableStart, 1), - t({ node: o, row: _, col: f }).createAndFill(l[g]) - ); - } - d.setNodeMarkup( - a, - t({ node: o, row: u.top, col: u.left }), - l[0] - ), i instanceof Te && d.setSelection( - new Te( - d.doc.resolve(i.$anchorCell.pos), - p ? d.doc.resolve(p) : void 0 ) - ), n(d); + ), r.push(ke.widget(p, _)); } - return !0; - }; -} -function BO(t, e) { - return function(n, r) { - if (!Vt(n)) - return !1; - const i = Ss(n); - if (i.nodeAfter.attrs[t] === e) - return !1; - if (r) { - const o = n.tr; - n.selection instanceof Te ? n.selection.forEachCell((a, s) => { - a.attrs[t] !== e && o.setNodeMarkup(s, null, { - ...a.attrs, - [t]: e - }); - }) : o.setNodeMarkup(i.pos, null, { - ...i.nodeAfter.attrs, - [t]: e - }), r(o); - } - return !0; - }; -} -function UO(t) { - return function(e, n) { - if (!Vt(e)) - return !1; - if (n) { - const r = it(e.schema), i = on(e), o = e.tr, a = i.map.cellsInRect( - t == "column" ? { - left: i.left, - top: 0, - right: i.right, - bottom: i.map.height - } : t == "row" ? { - left: 0, - top: i.top, - right: i.map.width, - bottom: i.bottom - } : i - ), s = a.map((l) => i.table.nodeAt(l)); - for (let l = 0; l < a.length; l++) - s[l].type == r.header_cell && o.setNodeMarkup( - i.tableStart + a[l], - r.cell, - s[l].attrs - ); - if (o.steps.length == 0) - for (let l = 0; l < a.length; l++) - o.setNodeMarkup( - i.tableStart + a[l], - r.header_cell, - s[l].attrs - ); - n(o); - } - return !0; - }; -} -function Hp(t, e, n) { - const r = e.map.cellsInRect({ - left: 0, - top: 0, - right: t == "row" ? e.map.width : 1, - bottom: t == "column" ? e.map.height : 1 - }); - for (let i = 0; i < r.length; i++) { - const o = e.table.nodeAt(r[i]); - if (o && o.type !== n.header_cell) - return !1; } - return !0; -} -function Ji(t, e) { - return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? UO(t) : function(n, r) { - if (!Vt(n)) - return !1; - if (r) { - const i = it(n.schema), o = on(n), a = n.tr, s = Hp("row", o, i), l = Hp( - "column", - o, - i - ), u = (t === "column" ? s : t === "row" ? l : !1) ? 1 : 0, d = t == "column" ? { - left: 0, - top: u, - right: 1, - bottom: o.map.height - } : t == "row" ? { - left: u, - top: 0, - right: o.map.width, - bottom: 1 - } : o, p = t == "column" ? l ? i.cell : i.header_cell : t == "row" ? s ? i.cell : i.header_cell : i.cell; - o.map.cellsInRect(d).forEach((_) => { - const m = _ + o.tableStart, f = a.doc.nodeAt(m); - f && a.setNodeMarkup(m, p, f.attrs); - }), r(a); - } - return !0; - }; + return be.create(t.doc, r); } -Ji("row", { - useDeprecatedLogic: !0 -}); -Ji("column", { - useDeprecatedLogic: !0 -}); -var HO = Ji("cell", { - useDeprecatedLogic: !0 -}); -function GO(t, e) { - if (e < 0) { - const n = t.nodeBefore; - if (n) - return t.pos - n.nodeSize; - for (let r = t.index(-1) - 1, i = t.before(); r >= 0; r--) { - const o = t.node(-1).child(r), a = o.lastChild; - if (a) - return i - 1 - a.nodeSize; - i -= o.nodeSize; - } - } else { - if (t.index() < t.parent.childCount - 1) - return t.pos + t.nodeAfter.nodeSize; - const n = t.node(-1); - for (let r = t.indexAfter(-1), i = t.after(); r < n.childCount; r++) { - const o = n.child(r); - if (o.childCount) - return i + 1; - i += o.nodeSize; - } - } - return null; -} -function Gp(t) { - return function(e, n) { - if (!Vt(e)) - return !1; - const r = GO(Ss(e), t); - if (r == null) - return !1; - if (n) { - const i = e.doc.resolve(r); - n( - e.tr.setSelection(Z.between(i, jR(i))).scrollIntoView() - ); - } - return !0; - }; -} -function VO(t, e) { - const n = t.selection.$anchor; - for (let r = n.depth; r > 0; r--) - if (n.node(r).type.spec.tableRole == "table") - return e && e( - t.tr.delete(n.before(r), n.after(r)).scrollIntoView() - ), !0; - return !1; -} -function YO({ +function WO({ allowTableNodeSelection: t = !1 } = {}) { - return new be({ + return new Se({ key: Nn, // This piece of state is used to remember when a mouse-drag // cell-selection is happening, so that it can continue even as @@ -22020,54 +22146,68 @@ function YO({ } }, props: { - decorations: tO, + decorations: aO, handleDOMEvents: { - mousedown: mO + mousedown: kO }, createSelectionBetween(e) { return Nn.getState(e.state) != null ? e.state.selection : null; }, - handleTripleClick: pO, - handleKeyDown: dO, - handlePaste: _O + handleTripleClick: wO, + handleKeyDown: MO, + handlePaste: LO }, appendTransaction(e, n, r) { - return iO( + return cO( r, - fg(r, n), + Cg(r, n), t ); } }); } -function Vp(t, e, n, r, i, o) { - let a = 0, s = !0, l = e.firstChild; - const c = t.firstChild; - for (let u = 0, d = 0; u < c.childCount; u += 1) { - const { colspan: p, colwidth: _ } = c.child(u).attrs; - for (let m = 0; m < p; m += 1, d += 1) { - const f = i === d ? o : _ && _[m], g = f ? `${f}px` : ""; - a += f || r, f || (s = !1), l ? (l.style.width !== g && (l.style.width = g), l = l.nextSibling) : e.appendChild(document.createElement("col")).style.width = g; +function sc(t, e) { + return e ? ["width", `${Math.max(e, t)}px`] : ["min-width", `${t}px`]; +} +function Kp(t, e, n, r, i, o) { + var a; + let s = 0, l = !0, c = e.firstChild; + const u = t.firstChild; + if (u !== null) + for (let d = 0, p = 0; d < u.childCount; d += 1) { + const { colspan: _, colwidth: m } = u.child(d).attrs; + for (let f = 0; f < _; f += 1, p += 1) { + const g = i === p ? o : m && m[f], S = g ? `${g}px` : ""; + if (s += g || r, g || (l = !1), c) { + if (c.style.width !== S) { + const [E, b] = sc(r, g); + c.style.setProperty(E, b); + } + c = c.nextSibling; + } else { + const E = document.createElement("col"), [b, h] = sc(r, g); + E.style.setProperty(b, h), e.appendChild(E); + } + } } + for (; c; ) { + const d = c.nextSibling; + (a = c.parentNode) === null || a === void 0 || a.removeChild(c), c = d; } - for (; l; ) { - const u = l.nextSibling; - l.parentNode.removeChild(l), l = u; - } - s ? (n.style.width = `${a}px`, n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = `${a}px`); + l ? (n.style.width = `${s}px`, n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = `${s}px`); } -class zO { +class KO { constructor(e, n) { - this.node = e, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), Vp(e, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody")); + this.node = e, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), Kp(e, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody")); } update(e) { - return e.type !== this.node.type ? !1 : (this.node = e, Vp(e, this.colgroup, this.table, this.cellMinWidth), !0); + return e.type !== this.node.type ? !1 : (this.node = e, Kp(e, this.colgroup, this.table, this.cellMinWidth), !0); } ignoreMutation(e) { return e.type === "attributes" && (e.target === this.table || this.colgroup.contains(e.target)); } } -function $O(t, e, n, r) { +function QO(t, e, n, r) { let i = 0, o = !0; const a = [], s = t.firstChild; if (!s) @@ -22075,17 +22215,22 @@ function $O(t, e, n, r) { for (let d = 0, p = 0; d < s.childCount; d += 1) { const { colspan: _, colwidth: m } = s.child(d).attrs; for (let f = 0; f < _; f += 1, p += 1) { - const g = n === p ? r : m && m[f], E = g ? `${g}px` : ""; - i += g || e, g || (o = !1), a.push(["col", E ? { style: `width: ${E}` } : {}]); + const g = n === p ? r : m && m[f]; + i += g || e, g || (o = !1); + const [S, E] = sc(e, g); + a.push([ + "col", + { style: `${S}: ${E}` } + ]); } } const l = o ? `${i}px` : "", c = o ? "" : `${i}px`; return { colgroup: ["colgroup", {}, ...a], tableWidth: l, tableMinWidth: c }; } -function Yp(t, e) { +function Qp(t, e) { return t.createAndFill(); } -function qO(t) { +function ZO(t) { if (t.cached.tableNodeTypes) return t.cached.tableNodeTypes; const e = {}; @@ -22094,12 +22239,12 @@ function qO(t) { r.spec.tableRole && (e[r.spec.tableRole] = r); }), t.cached.tableNodeTypes = e, e; } -function WO(t, e, n, r, i) { - const o = qO(t), a = [], s = []; +function XO(t, e, n, r, i) { + const o = ZO(t), a = [], s = []; for (let c = 0; c < n; c += 1) { - const u = Yp(o.cell); + const u = Qp(o.cell); if (u && s.push(u), r) { - const d = Yp(o.header_cell); + const d = Qp(o.header_cell); d && a.push(d); } } @@ -22108,21 +22253,21 @@ function WO(t, e, n, r, i) { l.push(o.row.createChecked(null, r && c === 0 ? a : s)); return o.table.createChecked(null, l); } -function KO(t) { +function jO(t) { return t instanceof Te; } -const Fo = ({ editor: t }) => { +const Bo = ({ editor: t }) => { const { selection: e } = t.state; - if (!KO(e)) + if (!jO(e)) return !1; let n = 0; - const r = Cf(e.ranges[0].$from, (o) => o.type.name === "table"); + const r = If(e.ranges[0].$from, (o) => o.type.name === "table"); return r == null || r.node.descendants((o) => { if (o.type.name === "table") return !1; ["tableCell", "tableHeader"].includes(o.type.name) && (n += 1); }), n === e.ranges.length ? (t.commands.deleteTable(), !0) : !1; -}, QO = Ne.create({ +}, JO = Ne.create({ name: "table", // @ts-ignore addOptions() { @@ -22132,7 +22277,7 @@ const Fo = ({ editor: t }) => { handleWidth: 5, cellMinWidth: 25, // TODO: fix - View: zO, + View: KO, lastColumnResizable: !0, allowTableNodeSelection: !1 }; @@ -22145,7 +22290,7 @@ const Fo = ({ editor: t }) => { return [{ tag: "table" }]; }, renderHTML({ node: t, HTMLAttributes: e }) { - const { colgroup: n, tableWidth: r, tableMinWidth: i } = $O(t, this.options.cellMinWidth); + const { colgroup: n, tableWidth: r, tableMinWidth: i } = QO(t, this.options.cellMinWidth); return [ "table", pe(this.options.HTMLAttributes, e, { @@ -22158,30 +22303,30 @@ const Fo = ({ editor: t }) => { addCommands() { return { insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: n = !0 } = {}) => ({ tr: r, dispatch: i, editor: o }) => { - const a = WO(o.schema, t, e, n); + const a = XO(o.schema, t, e, n); if (i) { const s = r.selection.from + 1; r.replaceSelectionWith(a).scrollIntoView().setSelection(Z.near(r.doc.resolve(s))); } return !0; }, - addColumnBefore: () => ({ state: t, dispatch: e }) => NO(t, e), - addColumnAfter: () => ({ state: t, dispatch: e }) => AO(t, e), - deleteColumn: () => ({ state: t, dispatch: e }) => xO(t, e), - addRowBefore: () => ({ state: t, dispatch: e }) => MO(t, e), - addRowAfter: () => ({ state: t, dispatch: e }) => wO(t, e), - deleteRow: () => ({ state: t, dispatch: e }) => kO(t, e), - deleteTable: () => ({ state: t, dispatch: e }) => VO(t, e), - mergeCells: () => ({ state: t, dispatch: e }) => Bp(t, e), - splitCell: () => ({ state: t, dispatch: e }) => Up(t, e), - toggleHeaderColumn: () => ({ state: t, dispatch: e }) => Ji("column")(t, e), - toggleHeaderRow: () => ({ state: t, dispatch: e }) => Ji("row")(t, e), - toggleHeaderCell: () => ({ state: t, dispatch: e }) => HO(t, e), - mergeOrSplit: () => ({ state: t, dispatch: e }) => Bp(t, e) ? !0 : Up(t, e), - setCellAttribute: (t, e) => ({ state: n, dispatch: r }) => BO(t, e)(n, r), - goToNextCell: () => ({ state: t, dispatch: e }) => Gp(1)(t, e), - goToPreviousCell: () => ({ state: t, dispatch: e }) => Gp(-1)(t, e), - fixTables: () => ({ state: t, dispatch: e }) => (e && fg(t), !0), + addColumnBefore: () => ({ state: t, dispatch: e }) => pO(t, e), + addColumnAfter: () => ({ state: t, dispatch: e }) => _O(t, e), + deleteColumn: () => ({ state: t, dispatch: e }) => fO(t, e), + addRowBefore: () => ({ state: t, dispatch: e }) => hO(t, e), + addRowAfter: () => ({ state: t, dispatch: e }) => EO(t, e), + deleteRow: () => ({ state: t, dispatch: e }) => bO(t, e), + deleteTable: () => ({ state: t, dispatch: e }) => NO(t, e), + mergeCells: () => ({ state: t, dispatch: e }) => Fp(t, e), + splitCell: () => ({ state: t, dispatch: e }) => Bp(t, e), + toggleHeaderColumn: () => ({ state: t, dispatch: e }) => eo("column")(t, e), + toggleHeaderRow: () => ({ state: t, dispatch: e }) => eo("row")(t, e), + toggleHeaderCell: () => ({ state: t, dispatch: e }) => RO(t, e), + mergeOrSplit: () => ({ state: t, dispatch: e }) => Fp(t, e) ? !0 : Bp(t, e), + setCellAttribute: (t, e) => ({ state: n, dispatch: r }) => yO(t, e)(n, r), + goToNextCell: () => ({ state: t, dispatch: e }) => Hp(1)(t, e), + goToPreviousCell: () => ({ state: t, dispatch: e }) => Hp(-1)(t, e), + fixTables: () => ({ state: t, dispatch: e }) => (e && Cg(t), !0), setCellSelection: (t) => ({ tr: e, dispatch: n }) => { if (n) { const r = Te.create(e.doc, t.anchorCell, t.headCell); @@ -22195,23 +22340,24 @@ const Fo = ({ editor: t }) => { return { Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1, "Shift-Tab": () => this.editor.commands.goToPreviousCell(), - Backspace: Fo, - "Mod-Backspace": Fo, - Delete: Fo, - "Mod-Delete": Fo + Backspace: Bo, + "Mod-Backspace": Bo, + Delete: Bo, + "Mod-Delete": Bo }; }, addProseMirrorPlugins() { return [ ...this.options.resizable && this.editor.isEditable ? [ - gO({ + FO({ handleWidth: this.options.handleWidth, cellMinWidth: this.options.cellMinWidth, + defaultCellMinWidth: this.options.cellMinWidth, View: this.options.View, lastColumnResizable: this.options.lastColumnResizable }) ] : [], - YO({ + WO({ allowTableNodeSelection: this.options.allowTableNodeSelection }) ]; @@ -22226,7 +22372,7 @@ const Fo = ({ editor: t }) => { tableRole: le(W(t, "tableRole", e)) }; } -}), ZO = Ne.create({ +}), eN = Ne.create({ name: "tableRow", addOptions() { return { @@ -22243,7 +22389,7 @@ const Fo = ({ editor: t }) => { renderHTML({ HTMLAttributes: t }) { return ["tr", pe(this.options.HTMLAttributes, t), 0]; } -}), XO = Ne.create({ +}), tN = Ne.create({ name: "tableHeader", addOptions() { return { @@ -22278,7 +22424,7 @@ const Fo = ({ editor: t }) => { renderHTML({ HTMLAttributes: t }) { return ["th", pe(this.options.HTMLAttributes, t), 0]; } -}), jO = Ne.create({ +}), nN = Ne.create({ name: "tableCell", addOptions() { return { @@ -22313,7 +22459,7 @@ const Fo = ({ editor: t }) => { renderHTML({ HTMLAttributes: t }) { return ["td", pe(this.options.HTMLAttributes, t), 0]; } -}), zp = ge.create({ +}), Zp = ge.create({ name: "characterCount", addOptions() { return { @@ -22344,7 +22490,7 @@ const Fo = ({ editor: t }) => { }, addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("characterCount"), filterTransaction: (t, e) => { const n = this.options.limit; @@ -22361,22 +22507,22 @@ const Fo = ({ editor: t }) => { }) ]; } -}), JO = "aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", eN = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", li = (t, e) => { +}), rN = "aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", iN = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", li = (t, e) => { for (const n in e) t[n] = e[n]; return t; -}, ac = "numeric", sc = "ascii", lc = "alpha", ra = "asciinumeric", Bo = "alphanumeric", cc = "domain", bg = "emoji", tN = "scheme", nN = "slashscheme", $p = "whitespace"; -function rN(t, e) { +}, lc = "numeric", cc = "ascii", uc = "alpha", ia = "asciinumeric", Uo = "alphanumeric", dc = "domain", Ng = "emoji", oN = "scheme", aN = "slashscheme", Xp = "whitespace"; +function sN(t, e) { return t in e || (e[t] = []), e[t]; } -function ir(t, e, n) { - e[ac] && (e[ra] = !0, e[Bo] = !0), e[sc] && (e[ra] = !0, e[lc] = !0), e[ra] && (e[Bo] = !0), e[lc] && (e[Bo] = !0), e[Bo] && (e[cc] = !0), e[bg] && (e[cc] = !0); +function or(t, e, n) { + e[lc] && (e[ia] = !0, e[Uo] = !0), e[cc] && (e[ia] = !0, e[uc] = !0), e[ia] && (e[Uo] = !0), e[uc] && (e[Uo] = !0), e[Uo] && (e[dc] = !0), e[Ng] && (e[dc] = !0); for (const r in e) { - const i = rN(r, n); + const i = sN(r, n); i.indexOf(t) < 0 && i.push(t); } } -function iN(t, e) { +function lN(t, e) { const n = {}; for (const r in e) e[r].indexOf(t) >= 0 && (n[r] = !0); @@ -22441,7 +22587,7 @@ dt.prototype = { tr(t, e, n, r) { r = r || dt.groups; let i; - return e && e.j ? i = e : (i = new dt(e), n && r && ir(e, n, r)), this.jr.push([t, i]), i; + return e && e.j ? i = e : (i = new dt(e), n && r && or(e, n, r)), this.jr.push([t, i]), i; }, /** * Short for "take transitions", will take as many sequential transitions as @@ -22498,132 +22644,132 @@ dt.prototype = { if (s ? (a = new dt(), li(a.j, s.j), a.jr.push.apply(a.jr, s.jr), a.jd = s.jd, a.t = s.t) : a = new dt(), o) { if (r) if (a.t && typeof a.t == "string") { - const l = li(iN(a.t, r), n); - ir(o, l, r); - } else n && ir(o, n, r); + const l = li(lN(a.t, r), n); + or(o, l, r); + } else n && or(o, n, r); a.t = o; } return i.j[t] = a, a; } }; -const j = (t, e, n, r, i) => t.ta(e, n, r, i), Ot = (t, e, n, r, i) => t.tr(e, n, r, i), qp = (t, e, n, r, i) => t.ts(e, n, r, i), F = (t, e, n, r, i) => t.tt(e, n, r, i), un = "WORD", uc = "UWORD", eo = "LOCALHOST", dc = "TLD", pc = "UTLD", ia = "SCHEME", Ur = "SLASH_SCHEME", Jc = "NUM", Tg = "WS", eu = "NL", zr = "OPENBRACE", Fi = "OPENBRACKET", Bi = "OPENANGLEBRACKET", Ui = "OPENPAREN", er = "CLOSEBRACE", $r = "CLOSEBRACKET", qr = "CLOSEANGLEBRACKET", tr = "CLOSEPAREN", Na = "AMPERSAND", Aa = "APOSTROPHE", Ia = "ASTERISK", vn = "AT", xa = "BACKSLASH", Da = "BACKTICK", Ma = "CARET", An = "COLON", tu = "COMMA", wa = "DOLLAR", qt = "DOT", La = "EQUALS", nu = "EXCLAMATION", Wt = "HYPHEN", ka = "PERCENT", Pa = "PIPE", Fa = "PLUS", Ba = "POUND", Ua = "QUERY", ru = "QUOTE", iu = "SEMI", Kt = "SLASH", Hi = "TILDE", Ha = "UNDERSCORE", Cg = "EMOJI", Ga = "SYM"; -var yg = /* @__PURE__ */ Object.freeze({ +const j = (t, e, n, r, i) => t.ta(e, n, r, i), Nt = (t, e, n, r, i) => t.tr(e, n, r, i), jp = (t, e, n, r, i) => t.ts(e, n, r, i), F = (t, e, n, r, i) => t.tt(e, n, r, i), un = "WORD", pc = "UWORD", to = "LOCALHOST", _c = "TLD", mc = "UTLD", oa = "SCHEME", Ur = "SLASH_SCHEME", ru = "NUM", Ag = "WS", iu = "NL", zr = "OPENBRACE", Bi = "OPENBRACKET", Ui = "OPENANGLEBRACKET", Hi = "OPENPAREN", tr = "CLOSEBRACE", $r = "CLOSEBRACKET", qr = "CLOSEANGLEBRACKET", nr = "CLOSEPAREN", Aa = "AMPERSAND", Ia = "APOSTROPHE", xa = "ASTERISK", vn = "AT", Da = "BACKSLASH", Ma = "BACKTICK", wa = "CARET", An = "COLON", ou = "COMMA", La = "DOLLAR", qt = "DOT", ka = "EQUALS", au = "EXCLAMATION", Wt = "HYPHEN", Pa = "PERCENT", Fa = "PIPE", Ba = "PLUS", Ua = "POUND", Ha = "QUERY", su = "QUOTE", lu = "SEMI", Kt = "SLASH", Gi = "TILDE", Ga = "UNDERSCORE", Ig = "EMOJI", Va = "SYM"; +var xg = /* @__PURE__ */ Object.freeze({ __proto__: null, WORD: un, - UWORD: uc, - LOCALHOST: eo, - TLD: dc, - UTLD: pc, - SCHEME: ia, + UWORD: pc, + LOCALHOST: to, + TLD: _c, + UTLD: mc, + SCHEME: oa, SLASH_SCHEME: Ur, - NUM: Jc, - WS: Tg, - NL: eu, + NUM: ru, + WS: Ag, + NL: iu, OPENBRACE: zr, - OPENBRACKET: Fi, - OPENANGLEBRACKET: Bi, - OPENPAREN: Ui, - CLOSEBRACE: er, + OPENBRACKET: Bi, + OPENANGLEBRACKET: Ui, + OPENPAREN: Hi, + CLOSEBRACE: tr, CLOSEBRACKET: $r, CLOSEANGLEBRACKET: qr, - CLOSEPAREN: tr, - AMPERSAND: Na, - APOSTROPHE: Aa, - ASTERISK: Ia, + CLOSEPAREN: nr, + AMPERSAND: Aa, + APOSTROPHE: Ia, + ASTERISK: xa, AT: vn, - BACKSLASH: xa, - BACKTICK: Da, - CARET: Ma, + BACKSLASH: Da, + BACKTICK: Ma, + CARET: wa, COLON: An, - COMMA: tu, - DOLLAR: wa, + COMMA: ou, + DOLLAR: La, DOT: qt, - EQUALS: La, - EXCLAMATION: nu, + EQUALS: ka, + EXCLAMATION: au, HYPHEN: Wt, - PERCENT: ka, - PIPE: Pa, - PLUS: Fa, - POUND: Ba, - QUERY: Ua, - QUOTE: ru, - SEMI: iu, + PERCENT: Pa, + PIPE: Fa, + PLUS: Ba, + POUND: Ua, + QUERY: Ha, + QUOTE: su, + SEMI: lu, SLASH: Kt, - TILDE: Hi, - UNDERSCORE: Ha, - EMOJI: Cg, - SYM: Ga + TILDE: Gi, + UNDERSCORE: Ga, + EMOJI: Ig, + SYM: Va }); -const Mr = /[a-z]/, al = new RegExp("\\p{L}", "u"), sl = new RegExp("\\p{Emoji}", "u"), ll = /\d/, Wp = /\s/, Kp = ` -`, oN = "️", aN = "‍"; -let Uo = null, Ho = null; -function sN(t) { +const Mr = /[a-z]/, ll = new RegExp("\\p{L}", "u"), cl = new RegExp("\\p{Emoji}", "u"), ul = /\d/, Jp = /\s/, e_ = ` +`, cN = "️", uN = "‍"; +let Ho = null, Go = null; +function dN(t) { t === void 0 && (t = []); const e = {}; dt.groups = e; const n = new dt(); - Uo == null && (Uo = Qp(JO)), Ho == null && (Ho = Qp(eN)), F(n, "'", Aa), F(n, "{", zr), F(n, "[", Fi), F(n, "<", Bi), F(n, "(", Ui), F(n, "}", er), F(n, "]", $r), F(n, ">", qr), F(n, ")", tr), F(n, "&", Na), F(n, "*", Ia), F(n, "@", vn), F(n, "`", Da), F(n, "^", Ma), F(n, ":", An), F(n, ",", tu), F(n, "$", wa), F(n, ".", qt), F(n, "=", La), F(n, "!", nu), F(n, "-", Wt), F(n, "%", ka), F(n, "|", Pa), F(n, "+", Fa), F(n, "#", Ba), F(n, "?", Ua), F(n, '"', ru), F(n, "/", Kt), F(n, ";", iu), F(n, "~", Hi), F(n, "_", Ha), F(n, "\\", xa); - const r = Ot(n, ll, Jc, { - [ac]: !0 + Ho == null && (Ho = t_(rN)), Go == null && (Go = t_(iN)), F(n, "'", Ia), F(n, "{", zr), F(n, "[", Bi), F(n, "<", Ui), F(n, "(", Hi), F(n, "}", tr), F(n, "]", $r), F(n, ">", qr), F(n, ")", nr), F(n, "&", Aa), F(n, "*", xa), F(n, "@", vn), F(n, "`", Ma), F(n, "^", wa), F(n, ":", An), F(n, ",", ou), F(n, "$", La), F(n, ".", qt), F(n, "=", ka), F(n, "!", au), F(n, "-", Wt), F(n, "%", Pa), F(n, "|", Fa), F(n, "+", Ba), F(n, "#", Ua), F(n, "?", Ha), F(n, '"', su), F(n, "/", Kt), F(n, ";", lu), F(n, "~", Gi), F(n, "_", Ga), F(n, "\\", Da); + const r = Nt(n, ul, ru, { + [lc]: !0 }); - Ot(r, ll, r); - const i = Ot(n, Mr, un, { - [sc]: !0 + Nt(r, ul, r); + const i = Nt(n, Mr, un, { + [cc]: !0 }); - Ot(i, Mr, i); - const o = Ot(n, al, uc, { - [lc]: !0 + Nt(i, Mr, i); + const o = Nt(n, ll, pc, { + [uc]: !0 }); - Ot(o, Mr), Ot(o, al, o); - const a = Ot(n, Wp, Tg, { - [$p]: !0 + Nt(o, Mr), Nt(o, ll, o); + const a = Nt(n, Jp, Ag, { + [Xp]: !0 }); - F(n, Kp, eu, { - [$p]: !0 - }), F(a, Kp), Ot(a, Wp, a); - const s = Ot(n, sl, Cg, { - [bg]: !0 + F(n, e_, iu, { + [Xp]: !0 + }), F(a, e_), Nt(a, Jp, a); + const s = Nt(n, cl, Ig, { + [Ng]: !0 }); - Ot(s, sl, s), F(s, oN, s); - const l = F(s, aN); - Ot(l, sl, s); - const c = [[Mr, i]], u = [[Mr, null], [al, o]]; - for (let d = 0; d < Uo.length; d++) - bn(n, Uo[d], dc, un, c); + Nt(s, cl, s), F(s, cN, s); + const l = F(s, uN); + Nt(l, cl, s); + const c = [[Mr, i]], u = [[Mr, null], [ll, o]]; for (let d = 0; d < Ho.length; d++) - bn(n, Ho[d], pc, uc, u); - ir(dc, { + bn(n, Ho[d], _c, un, c); + for (let d = 0; d < Go.length; d++) + bn(n, Go[d], mc, pc, u); + or(_c, { tld: !0, ascii: !0 - }, e), ir(pc, { + }, e), or(mc, { utld: !0, alpha: !0 - }, e), bn(n, "file", ia, un, c), bn(n, "mailto", ia, un, c), bn(n, "http", Ur, un, c), bn(n, "https", Ur, un, c), bn(n, "ftp", Ur, un, c), bn(n, "ftps", Ur, un, c), ir(ia, { + }, e), bn(n, "file", oa, un, c), bn(n, "mailto", oa, un, c), bn(n, "http", Ur, un, c), bn(n, "https", Ur, un, c), bn(n, "ftp", Ur, un, c), bn(n, "ftps", Ur, un, c), or(oa, { scheme: !0, ascii: !0 - }, e), ir(Ur, { + }, e), or(Ur, { slashscheme: !0, ascii: !0 }, e), t = t.sort((d, p) => d[0] > p[0] ? 1 : -1); for (let d = 0; d < t.length; d++) { const p = t[d][0], m = t[d][1] ? { - [tN]: !0 + [oN]: !0 } : { - [nN]: !0 + [aN]: !0 }; - p.indexOf("-") >= 0 ? m[cc] = !0 : Mr.test(p) ? ll.test(p) ? m[ra] = !0 : m[sc] = !0 : m[ac] = !0, qp(n, p, p, m); + p.indexOf("-") >= 0 ? m[dc] = !0 : Mr.test(p) ? ul.test(p) ? m[ia] = !0 : m[cc] = !0 : m[lc] = !0, jp(n, p, p, m); } - return qp(n, "localhost", eo, { + return jp(n, "localhost", to, { ascii: !0 - }), n.jd = new dt(Ga), { + }), n.jd = new dt(Va), { start: n, tokens: li({ groups: e - }, yg) + }, xg) }; } -function lN(t, e) { - const n = cN(e.replace(/[A-Z]/g, (s) => s.toLowerCase())), r = n.length, i = []; +function pN(t, e) { + const n = _N(e.replace(/[A-Z]/g, (s) => s.toLowerCase())), r = n.length, i = []; let o = 0, a = 0; for (; a < r; ) { let s = t, l = null, c = 0, u = null, d = -1, p = -1; @@ -22642,7 +22788,7 @@ function lN(t, e) { } return i; } -function cN(t) { +function _N(t) { const e = [], n = t.length; let r = 0; for (; r < n; ) { @@ -22660,7 +22806,7 @@ function bn(t, e, n, r, i) { } return o = new dt(n), o.jr = i.slice(), t.j[e[a - 1]] = o, o; } -function Qp(t) { +function t_(t) { const e = [], n = []; let r = 0, i = "0123456789"; for (; r < t.length; ) { @@ -22677,11 +22823,11 @@ function Qp(t) { } return e; } -const to = { +const no = { defaultProtocol: "http", events: null, - format: Zp, - formatHref: Zp, + format: n_, + formatHref: n_, nl2br: !1, tagName: "a", target: null, @@ -22693,17 +22839,17 @@ const to = { ignoreTags: [], render: null }; -function ou(t, e) { +function cu(t, e) { e === void 0 && (e = null); - let n = li({}, to); - t && (n = li(n, t instanceof ou ? t.o : t)); + let n = li({}, no); + t && (n = li(n, t instanceof cu ? t.o : t)); const r = n.ignoreTags, i = []; for (let o = 0; o < r.length; o++) i.push(r[o].toUpperCase()); this.o = n, e && (this.defaultRender = e), this.ignoreTags = i; } -ou.prototype = { - o: to, +cu.prototype = { + o: no, /** * @type string[] */ @@ -22739,7 +22885,7 @@ ou.prototype = { get(t, e, n) { const r = e != null; let i = this.o[t]; - return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : to[t], typeof i == "function" && r && (i = i(e, n))) : typeof i == "function" && r && (i = i(e, n.t, n)), i); + return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : no[t], typeof i == "function" && r && (i = i(e, n))) : typeof i == "function" && r && (i = i(e, n.t, n)), i); }, /** * @template {keyof Opts} L @@ -22764,13 +22910,13 @@ ou.prototype = { return (this.get("render", null, t) || this.defaultRender)(e, t.t, t); } }; -function Zp(t) { +function n_(t) { return t; } -function vg(t, e) { +function Dg(t, e) { this.t = "token", this.v = t, this.tk = e; } -vg.prototype = { +Dg.prototype = { isLink: !1, /** * Return the string this token represents. @@ -22829,7 +22975,7 @@ vg.prototype = { @param {string} [protocol] `'http'` by default */ toObject(t) { - return t === void 0 && (t = to.defaultProtocol), { + return t === void 0 && (t = no.defaultProtocol), { type: this.t, value: this.toString(), isLink: this.isLink, @@ -22874,8 +23020,8 @@ vg.prototype = { }; } }; -function bs(t, e) { - class n extends vg { +function Ts(t, e) { + class n extends Dg { constructor(i, o) { super(i, o), this.t = t; } @@ -22884,12 +23030,12 @@ function bs(t, e) { n.prototype[r] = e[r]; return n.t = t, n; } -const Xp = bs("email", { +const r_ = Ts("email", { isLink: !0, toHref() { return "mailto:" + this.toString(); } -}), jp = bs("text"), uN = bs("nl"), Qn = bs("url", { +}), i_ = Ts("text"), mN = Ts("nl"), Zn = Ts("url", { isLink: !0, /** Lowercases relevant parts of the domain and adds the protocol if @@ -22899,7 +23045,7 @@ const Xp = bs("email", { @return {string} the full href */ toHref(t) { - return t === void 0 && (t = to.defaultProtocol), this.hasProtocol() ? this.v : `${t}://${this.v}`; + return t === void 0 && (t = no.defaultProtocol), this.hasProtocol() ? this.v : `${t}://${this.v}`; }, /** * Check whether this URL token has a protocol @@ -22907,14 +23053,14 @@ const Xp = bs("email", { */ hasProtocol() { const t = this.tk; - return t.length >= 2 && t[0].t !== eo && t[1].t === An; + return t.length >= 2 && t[0].t !== to && t[1].t === An; } }), Ge = (t) => new dt(t); -function dN(t) { +function fN(t) { let { groups: e } = t; - const n = e.domain.concat([Na, Ia, vn, xa, Da, Ma, wa, La, Wt, Jc, ka, Pa, Fa, Ba, Kt, Ga, Hi, Ha]), r = [Aa, qr, er, $r, tr, An, tu, qt, nu, Bi, zr, Fi, Ui, Ua, ru, iu], i = [Na, Aa, Ia, xa, Da, Ma, er, wa, La, Wt, zr, ka, Pa, Fa, Ba, Ua, Kt, Ga, Hi, Ha], o = Ge(), a = F(o, Hi); + const n = e.domain.concat([Aa, xa, vn, Da, Ma, wa, La, ka, Wt, ru, Pa, Fa, Ba, Ua, Kt, Va, Gi, Ga]), r = [Ia, qr, tr, $r, nr, An, ou, qt, au, Ui, zr, Bi, Hi, Ha, su, lu], i = [Aa, Ia, xa, Da, Ma, wa, tr, La, ka, Wt, zr, Pa, Fa, Ba, Ua, Ha, Kt, Va, Gi, Ga], o = Ge(), a = F(o, Gi); j(a, i, a), j(a, e.domain, a); const s = Ge(), l = Ge(), c = Ge(); j(o, e.domain, s), j(o, e.scheme, l), j(o, e.slashscheme, c), j(s, i, a), j(s, e.domain, s); @@ -22926,33 +23072,33 @@ function dN(t) { j(u, e.domain, p), j(p, e.domain, p); const _ = F(p, qt); j(_, e.domain, p); - const m = Ge(Xp); - j(_, e.tld, m), j(_, e.utld, m), F(u, eo, m); + const m = Ge(r_); + j(_, e.tld, m), j(_, e.utld, m), F(u, to, m); const f = F(p, Wt); j(f, e.domain, p), j(m, e.domain, p), F(m, qt, _), F(m, Wt, f); const g = F(m, An); - j(g, e.numeric, Xp); - const E = F(s, Wt), S = F(s, qt); - j(E, e.domain, s), j(S, i, a), j(S, e.domain, s); - const b = Ge(Qn); - j(S, e.tld, b), j(S, e.utld, b), j(b, e.domain, s), j(b, i, a), F(b, qt, S), F(b, Wt, E), F(b, vn, u); - const h = F(b, An), C = Ge(Qn); + j(g, e.numeric, r_); + const S = F(s, Wt), E = F(s, qt); + j(S, e.domain, s), j(E, i, a), j(E, e.domain, s); + const b = Ge(Zn); + j(E, e.tld, b), j(E, e.utld, b), j(b, e.domain, s), j(b, i, a), F(b, qt, E), F(b, Wt, S), F(b, vn, u); + const h = F(b, An), C = Ge(Zn); j(h, e.numeric, C); - const T = Ge(Qn), R = Ge(); + const T = Ge(Zn), R = Ge(); j(T, n, T), j(T, r, R), j(R, n, T), j(R, r, R), F(b, Kt, T), F(C, Kt, T); const x = F(l, An), O = F(c, An), M = F(O, Kt), B = F(M, Kt); - j(l, e.domain, s), F(l, qt, S), F(l, Wt, E), j(c, e.domain, s), F(c, qt, S), F(c, Wt, E), j(x, e.domain, T), F(x, Kt, T), j(B, e.domain, T), j(B, n, T), F(B, Kt, T); - const Y = F(T, zr), $ = F(T, Fi), q = F(T, Bi), V = F(T, Ui); - F(R, zr, Y), F(R, Fi, $), F(R, Bi, q), F(R, Ui, V), F(Y, er, T), F($, $r, T), F(q, qr, T), F(V, tr, T), F(Y, er, T); - const J = Ge(Qn), y = Ge(Qn), v = Ge(Qn), A = Ge(Qn); + j(l, e.domain, s), F(l, qt, E), F(l, Wt, S), j(c, e.domain, s), F(c, qt, E), F(c, Wt, S), j(x, e.domain, T), F(x, Kt, T), j(B, e.domain, T), j(B, n, T), F(B, Kt, T); + const Y = F(T, zr), $ = F(T, Bi), q = F(T, Ui), V = F(T, Hi); + F(R, zr, Y), F(R, Bi, $), F(R, Ui, q), F(R, Hi, V), F(Y, tr, T), F($, $r, T), F(q, qr, T), F(V, nr, T), F(Y, tr, T); + const J = Ge(Zn), y = Ge(Zn), v = Ge(Zn), A = Ge(Zn); j(Y, n, J), j($, n, y), j(q, n, v), j(V, n, A); const k = Ge(), G = Ge(), z = Ge(), ae = Ge(); - return j(Y, r), j($, r), j(q, r), j(V, r), j(J, n, J), j(y, n, y), j(v, n, v), j(A, n, A), j(J, r, J), j(y, r, y), j(v, r, v), j(A, r, A), j(k, n, k), j(G, n, y), j(z, n, v), j(ae, n, A), j(k, r, k), j(G, r, G), j(z, r, z), j(ae, r, ae), F(y, $r, T), F(v, qr, T), F(A, tr, T), F(J, er, T), F(G, $r, T), F(z, qr, T), F(ae, tr, T), F(k, tr, T), F(o, eo, b), F(o, eu, uN), { + return j(Y, r), j($, r), j(q, r), j(V, r), j(J, n, J), j(y, n, y), j(v, n, v), j(A, n, A), j(J, r, J), j(y, r, y), j(v, r, v), j(A, r, A), j(k, n, k), j(G, n, y), j(z, n, v), j(ae, n, A), j(k, r, k), j(G, r, G), j(z, r, z), j(ae, r, ae), F(y, $r, T), F(v, qr, T), F(A, nr, T), F(J, tr, T), F(G, $r, T), F(z, qr, T), F(ae, nr, T), F(k, nr, T), F(o, to, b), F(o, iu, mN), { start: o, - tokens: yg + tokens: xg }; } -function pN(t, e, n) { +function gN(t, e, n) { let r = n.length, i = 0, o = [], a = []; for (; i < r; ) { let s = t, l = null, c = null, u = 0, d = null, p = -1; @@ -22963,19 +23109,19 @@ function pN(t, e, n) { if (p < 0) i -= u, i < r && (a.push(n[i]), i++); else { - a.length > 0 && (o.push(cl(jp, e, a)), a = []), i -= p, u -= p; + a.length > 0 && (o.push(dl(i_, e, a)), a = []), i -= p, u -= p; const _ = d.t, m = n.slice(i - u, i); - o.push(cl(_, e, m)); + o.push(dl(_, e, m)); } } - return a.length > 0 && o.push(cl(jp, e, a)), o; + return a.length > 0 && o.push(dl(i_, e, a)), o; } -function cl(t, e, n) { +function dl(t, e, n) { const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i); return new t(o, n); } -const _N = typeof console < "u" && console && console.warn || (() => { -}), mN = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Ae = { +const hN = typeof console < "u" && console && console.warn || (() => { +}), EN = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Ae = { scanner: null, parser: null, tokenQueue: [], @@ -22983,24 +23129,24 @@ const _N = typeof console < "u" && console && console.warn || (() => { customSchemes: [], initialized: !1 }; -function fN() { +function SN() { dt.groups = {}, Ae.scanner = null, Ae.parser = null, Ae.tokenQueue = [], Ae.pluginQueue = [], Ae.customSchemes = [], Ae.initialized = !1; } -function Jp(t, e) { - if (e === void 0 && (e = !1), Ae.initialized && _N(`linkifyjs: already initialized - will not register custom scheme "${t}" ${mN}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t)) +function o_(t, e) { + if (e === void 0 && (e = !1), Ae.initialized && hN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${EN}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t)) throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" 3. "-" cannot repeat`); Ae.customSchemes.push([t, e]); } -function gN() { - Ae.scanner = sN(Ae.customSchemes); +function bN() { + Ae.scanner = dN(Ae.customSchemes); for (let t = 0; t < Ae.tokenQueue.length; t++) Ae.tokenQueue[t][1]({ scanner: Ae.scanner }); - Ae.parser = dN(Ae.scanner.tokens); + Ae.parser = fN(Ae.scanner.tokens); for (let t = 0; t < Ae.pluginQueue.length; t++) Ae.pluginQueue[t][1]({ scanner: Ae.scanner, @@ -23008,53 +23154,53 @@ function gN() { }); Ae.initialized = !0; } -function Rg(t) { - return Ae.initialized || gN(), pN(Ae.parser.start, t, lN(Ae.scanner.start, t)); +function Mg(t) { + return Ae.initialized || bN(), gN(Ae.parser.start, t, pN(Ae.scanner.start, t)); } -function Og(t, e, n) { +function wg(t, e, n) { if (e === void 0 && (e = null), n === void 0 && (n = null), e && typeof e == "object") { if (n) throw Error(`linkifyjs: Invalid link type ${e}; must be a string`); n = e, e = null; } - const r = new ou(n), i = Rg(t), o = []; + const r = new cu(n), i = Mg(t), o = []; for (let a = 0; a < i.length; a++) { const s = i[a]; s.isLink && (!e || s.t === e) && r.check(s) && o.push(s.toFormattedObject(r)); } return o; } -function hN(t) { +function TN(t) { return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1; } -function EN(t) { - return new be({ +function CN(t) { + return new Se({ key: new ve("autolink"), appendTransaction: (e, n, r) => { const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), o = e.some((c) => c.getMeta("preventAutolink")); if (!i || o) return; - const { tr: a } = r, s = yT(n.doc, [...e]); - if (DT(s).forEach(({ newRange: c }) => { - const u = RT(r.doc, c, (_) => _.isTextblock); + const { tr: a } = r, s = IT(n.doc, [...e]); + if (PT(s).forEach(({ newRange: c }) => { + const u = DT(r.doc, c, (_) => _.isTextblock); let d, p; if (u.length > 1 ? (d = u[0], p = r.doc.textBetween(d.pos, d.pos + d.node.nodeSize, void 0, " ")) : u.length && r.doc.textBetween(c.from, c.to, " ", " ").endsWith(" ") && (d = u[0], p = r.doc.textBetween(d.pos, c.to, void 0, " ")), d && p) { - const _ = p.split(" ").filter((E) => E !== ""); + const _ = p.split(" ").filter((S) => S !== ""); if (_.length <= 0) return !1; const m = _[_.length - 1], f = d.pos + p.lastIndexOf(m); if (!m) return !1; - const g = Rg(m).map((E) => E.toObject(t.defaultProtocol)); - if (!hN(g)) + const g = Mg(m).map((S) => S.toObject(t.defaultProtocol)); + if (!TN(g)) return !1; - g.filter((E) => E.isLink).map((E) => ({ - ...E, - from: f + E.start + 1, - to: f + E.end + 1 - })).filter((E) => r.schema.marks.code ? !r.doc.rangeHasMark(E.from, E.to, r.schema.marks.code) : !0).filter((E) => t.validate(E.value)).forEach((E) => { - Fc(E.from, E.to, r.doc).some((S) => S.mark.type === t.type) || a.addMark(E.from, E.to, t.type.create({ - href: E.href + g.filter((S) => S.isLink).map((S) => ({ + ...S, + from: f + S.start + 1, + to: f + S.end + 1 + })).filter((S) => r.schema.marks.code ? !r.doc.rangeHasMark(S.from, S.to, r.schema.marks.code) : !0).filter((S) => t.validate(S.value)).filter((S) => t.shouldAutoLink(S.value)).forEach((S) => { + Gc(S.from, S.to, r.doc).some((E) => E.mark.type === t.type) || a.addMark(S.from, S.to, t.type.create({ + href: S.href })); }); } @@ -23063,8 +23209,8 @@ function EN(t) { } }); } -function SN(t) { - return new be({ +function yN(t) { + return new Se({ key: new ve("handleClickLink"), props: { handleClick: (e, n, r) => { @@ -23077,14 +23223,14 @@ function SN(t) { s.push(a), a = a.parentNode; if (!s.find((p) => p.nodeName === "A")) return !1; - const l = yf(e.state, t.type.name), c = r.target, u = (i = c == null ? void 0 : c.href) !== null && i !== void 0 ? i : l.href, d = (o = c == null ? void 0 : c.target) !== null && o !== void 0 ? o : l.target; + const l = xf(e.state, t.type.name), c = r.target, u = (i = c == null ? void 0 : c.href) !== null && i !== void 0 ? i : l.href, d = (o = c == null ? void 0 : c.target) !== null && o !== void 0 ? o : l.target; return c && u ? (window.open(u, d), !0) : !1; } } }); } -function bN(t) { - return new be({ +function vN(t) { + return new Se({ key: new ve("handlePasteLink"), props: { handlePaste: (e, n, r) => { @@ -23095,7 +23241,7 @@ function bN(t) { r.content.forEach((c) => { s += c.textContent; }); - const l = Og(s, { defaultProtocol: t.defaultProtocol }).find((c) => c.isLink && c.value === s); + const l = wg(s, { defaultProtocol: t.defaultProtocol }).find((c) => c.isLink && c.value === s); return !s || !l ? !1 : (t.editor.commands.setMark(t.type, { href: l.href }), !0); @@ -23103,30 +23249,45 @@ function bN(t) { } }); } -const TN = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g; -function e_(t, e) { - const n = ["http", "https", "ftp", "ftps", "mailto", "tel", "callto", "sms", "cid", "xmpp"]; +const RN = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g; +function vi(t, e) { + const n = [ + "http", + "https", + "ftp", + "ftps", + "mailto", + "tel", + "callto", + "sms", + "cid", + "xmpp" + ]; return e && e.forEach((r) => { const i = typeof r == "string" ? r : r.scheme; i && n.push(i); - }), !t || t.replace(TN, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i")); + }), !t || t.replace(RN, "").match(new RegExp( + // eslint-disable-next-line no-useless-escape + `^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, + "i" + )); } -const CN = ft.create({ +const ON = ft.create({ name: "link", priority: 1e3, keepOnSplit: !1, exitable: !0, onCreate() { - this.options.protocols.forEach((t) => { + this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((t) => { if (typeof t == "string") { - Jp(t); + o_(t); return; } - Jp(t.scheme, t.optionalSlashes); + o_(t.scheme, t.optionalSlashes); }); }, onDestroy() { - fN(); + SN(); }, inclusive() { return this.options.autolink; @@ -23143,7 +23304,9 @@ const CN = ft.create({ rel: "noopener noreferrer nofollow", class: null }, - validate: (t) => !!t + isAllowedUri: (t, e) => !!vi(t, e.protocols), + validate: (t) => !!t, + shouldAutoLink: (t) => !!t }; }, addAttributes() { @@ -23166,16 +23329,30 @@ const CN = ft.create({ }; }, parseHTML() { - return [{ - tag: "a[href]", - getAttrs: (t) => { - const e = t.getAttribute("href"); - return !e || !e_(e, this.options.protocols) ? !1 : null; + return [ + { + tag: "a[href]", + getAttrs: (t) => { + const e = t.getAttribute("href"); + return !e || !this.options.isAllowedUri(e, { + defaultValidate: (n) => !!vi(n, this.options.protocols), + protocols: this.options.protocols, + defaultProtocol: this.options.defaultProtocol + }) ? !1 : null; + } } - }]; + ]; }, renderHTML({ HTMLAttributes: t }) { - return e_(t.href, this.options.protocols) ? ["a", pe(this.options.HTMLAttributes, t), 0] : ["a", pe(this.options.HTMLAttributes, { ...t, href: "" }), 0]; + return this.options.isAllowedUri(t.href, { + defaultValidate: (e) => !!vi(e, this.options.protocols), + protocols: this.options.protocols, + defaultProtocol: this.options.defaultProtocol + }) ? ["a", pe(this.options.HTMLAttributes, t), 0] : [ + "a", + pe(this.options.HTMLAttributes, { ...t, href: "" }), + 0 + ]; }, addCommands() { return { @@ -23186,17 +23363,21 @@ const CN = ft.create({ }, addPasteRules() { return [ - Gn({ + Vn({ find: (t) => { const e = []; if (t) { - const { validate: n } = this.options, r = Og(t).filter((i) => i.isLink && n(i.value)); - r.length && r.forEach((i) => e.push({ - text: i.value, + const { protocols: n, defaultProtocol: r } = this.options, i = wg(t).filter((o) => o.isLink && this.options.isAllowedUri(o.value, { + defaultValidate: (a) => !!vi(a, n), + protocols: n, + defaultProtocol: r + })); + i.length && i.forEach((o) => e.push({ + text: o.value, data: { - href: i.href + href: o.href }, - index: i.start + index: o.start })); } return e; @@ -23212,20 +23393,25 @@ const CN = ft.create({ ]; }, addProseMirrorPlugins() { - const t = []; - return this.options.autolink && t.push(EN({ + const t = [], { protocols: e, defaultProtocol: n } = this.options; + return this.options.autolink && t.push(CN({ type: this.type, defaultProtocol: this.options.defaultProtocol, - validate: this.options.validate - })), this.options.openOnClick === !0 && t.push(SN({ + validate: (r) => this.options.isAllowedUri(r, { + defaultValidate: (i) => !!vi(i, e), + protocols: e, + defaultProtocol: n + }), + shouldAutoLink: this.options.shouldAutoLink + })), this.options.openOnClick === !0 && t.push(yN({ type: this.type - })), this.options.linkOnPaste && t.push(bN({ + })), this.options.linkOnPaste && t.push(vN({ editor: this.editor, defaultProtocol: this.options.defaultProtocol, type: this.type })), t; } -}), yN = ft.create({ +}), NN = ft.create({ name: "superscript", addOptions() { return { @@ -23260,7 +23446,7 @@ const CN = ft.create({ "Mod-.": () => this.editor.commands.toggleSuperscript() }; } -}), vN = ft.create({ +}), AN = ft.create({ name: "subscript", addOptions() { return { @@ -23295,7 +23481,7 @@ const CN = ft.create({ "Mod-,": () => this.editor.commands.toggleSubscript() }; } -}), RN = Ne.create({ +}), IN = Ne.create({ name: "taskList", addOptions() { return { @@ -23328,7 +23514,7 @@ const CN = ft.create({ "Mod-Shift-9": () => this.editor.commands.toggleTaskList() }; } -}), ON = /^\s*(\[([( |x])?\])\s$/, NN = Ne.create({ +}), xN = /^\s*(\[([( |x])?\])\s$/, DN = Ne.create({ name: "taskItem", addOptions() { return { @@ -23427,7 +23613,7 @@ const CN = ft.create({ addInputRules() { return [ Sr({ - find: ON, + find: xN, type: this.type, getAttributes: (t) => ({ checked: t[t.length - 1] === "x" @@ -23436,20 +23622,20 @@ const CN = ft.create({ ]; } }); -function AN(t) { +function MN(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function Ng(t) { +function Lg(t) { return t instanceof Map ? t.clear = t.delete = t.set = function() { throw new Error("map is read-only"); } : t instanceof Set && (t.add = t.clear = t.delete = function() { throw new Error("set is read-only"); }), Object.freeze(t), Object.getOwnPropertyNames(t).forEach((e) => { const n = t[e], r = typeof n; - (r === "object" || r === "function") && !Object.isFrozen(n) && Ng(n); + (r === "object" || r === "function") && !Object.isFrozen(n) && Lg(n); }), t; } -let t_ = class { +let a_ = class { /** * @param {CompiledMode} mode */ @@ -23460,7 +23646,7 @@ let t_ = class { this.isMatchIgnored = !0; } }; -function Ag(t) { +function kg(t) { return t.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); } function Ln(t, ...e) { @@ -23473,7 +23659,7 @@ function Ln(t, ...e) { }), /** @type {T} */ n; } -const IN = "", n_ = (t) => !!t.scope, xN = (t, { prefix: e }) => { +const wN = "", s_ = (t) => !!t.scope, LN = (t, { prefix: e }) => { if (t.startsWith("language:")) return t.replace("language:", "language-"); if (t.includes(".")) { @@ -23485,7 +23671,7 @@ const IN = "", n_ = (t) => !!t.scope, xN = (t, { prefix: e }) => { } return `${e}${t}`; }; -let DN = class { +let kN = class { /** * Creates a new HTMLRenderer * @@ -23500,15 +23686,15 @@ let DN = class { * * @param {string} text */ addText(e) { - this.buffer += Ag(e); + this.buffer += kg(e); } /** * Adds a node open to the output stream (if needed) * * @param {Node} node */ openNode(e) { - if (!n_(e)) return; - const n = xN( + if (!s_(e)) return; + const n = LN( e.scope, { prefix: this.classPrefix } ); @@ -23519,7 +23705,7 @@ let DN = class { * * @param {Node} node */ closeNode(e) { - n_(e) && (this.buffer += IN); + s_(e) && (this.buffer += wN); } /** * returns the accumulated buffer @@ -23536,13 +23722,13 @@ let DN = class { this.buffer += ``; } }; -const r_ = (t = {}) => { +const l_ = (t = {}) => { const e = { children: [] }; return Object.assign(e, t), e; }; -let MN = class Ig { +let PN = class Pg { constructor() { - this.rootNode = r_(), this.stack = [this.rootNode]; + this.rootNode = l_(), this.stack = [this.rootNode]; } get top() { return this.stack[this.stack.length - 1]; @@ -23556,7 +23742,7 @@ let MN = class Ig { } /** @param {string} scope */ openNode(e) { - const n = r_({ scope: e }); + const n = l_({ scope: e }); this.add(n), this.stack.push(n); } closeNode() { @@ -23588,10 +23774,10 @@ let MN = class Ig { */ static _collapse(e) { typeof e != "string" && e.children && (e.children.every((n) => typeof n == "string") ? e.children = [e.children.join("")] : e.children.forEach((n) => { - Ig._collapse(n); + Pg._collapse(n); })); } -}, wN = class extends MN { +}, FN = class extends PN { /** * @param {*} options */ @@ -23620,50 +23806,50 @@ let MN = class Ig { n && (r.scope = `language:${n}`), this.add(r); } toHTML() { - return new DN(this, this.options).value(); + return new kN(this, this.options).value(); } finalize() { return this.closeAllNodes(), !0; } }; -function no(t) { +function ro(t) { return t ? typeof t == "string" ? t : t.source : null; } -function xg(t) { +function Fg(t) { return yr("(?=", t, ")"); } -function LN(t) { +function BN(t) { return yr("(?:", t, ")*"); } -function kN(t) { +function UN(t) { return yr("(?:", t, ")?"); } function yr(...t) { - return t.map((n) => no(n)).join(""); + return t.map((n) => ro(n)).join(""); } -function PN(t) { +function HN(t) { const e = t[t.length - 1]; return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {}; } -function au(...t) { - return "(" + (PN(t).capture ? "" : "?:") + t.map((r) => no(r)).join("|") + ")"; +function uu(...t) { + return "(" + (HN(t).capture ? "" : "?:") + t.map((r) => ro(r)).join("|") + ")"; } -function Dg(t) { +function Bg(t) { return new RegExp(t.toString() + "|").exec("").length - 1; } -function FN(t, e) { +function GN(t, e) { const n = t && t.exec(e); return n && n.index === 0; } -const BN = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; -function su(t, { joinWith: e }) { +const VN = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; +function du(t, { joinWith: e }) { let n = 0; return t.map((r) => { n += 1; const i = n; - let o = no(r), a = ""; + let o = ro(r), a = ""; for (; o.length > 0; ) { - const s = BN.exec(o); + const s = VN.exec(o); if (!s) { a += o; break; @@ -23673,7 +23859,7 @@ function su(t, { joinWith: e }) { return a; }).map((r) => `(${r})`).join(e); } -const UN = /\b\B/, Mg = "[a-zA-Z]\\w*", lu = "[a-zA-Z_]\\w*", wg = "\\b\\d+(\\.\\d+)?", Lg = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", kg = "\\b(0b[01]+)", HN = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", GN = (t = {}) => { +const YN = /\b\B/, Ug = "[a-zA-Z]\\w*", pu = "[a-zA-Z_]\\w*", Hg = "\\b\\d+(\\.\\d+)?", Gg = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Vg = "\\b(0b[01]+)", zN = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", $N = (t = {}) => { const e = /^#![ ]*\//; return t.binary && (t.begin = yr( e, @@ -23690,24 +23876,24 @@ const UN = /\b\B/, Mg = "[a-zA-Z]\\w*", lu = "[a-zA-Z_]\\w*", wg = "\\b\\d+(\\.\ n.index !== 0 && r.ignoreMatch(); } }, t); -}, ro = { +}, io = { begin: "\\\\[\\s\\S]", relevance: 0 -}, VN = { +}, qN = { scope: "string", begin: "'", end: "'", illegal: "\\n", - contains: [ro] -}, YN = { + contains: [io] +}, WN = { scope: "string", begin: '"', end: '"', illegal: "\\n", - contains: [ro] -}, zN = { + contains: [io] +}, KN = { 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/ -}, Ts = function(t, e, n = {}) { +}, Cs = function(t, e, n = {}) { const r = Ln( { scope: "comment", @@ -23726,7 +23912,7 @@ const UN = /\b\B/, Mg = "[a-zA-Z]\\w*", lu = "[a-zA-Z_]\\w*", wg = "\\b\\d+(\\.\ excludeBegin: !0, relevance: 0 }); - const i = au( + const i = uu( // list of common 1 and 2 letter words in English "I", "a", @@ -23773,44 +23959,44 @@ const UN = /\b\B/, Mg = "[a-zA-Z]\\w*", lu = "[a-zA-Z_]\\w*", wg = "\\b\\d+(\\.\ // look for 3 words in a row } ), r; -}, $N = Ts("//", "$"), qN = Ts("/\\*", "\\*/"), WN = Ts("#", "$"), KN = { +}, QN = Cs("//", "$"), ZN = Cs("/\\*", "\\*/"), XN = Cs("#", "$"), jN = { scope: "number", - begin: wg, + begin: Hg, relevance: 0 -}, QN = { +}, JN = { scope: "number", - begin: Lg, + begin: Gg, relevance: 0 -}, ZN = { +}, eA = { scope: "number", - begin: kg, + begin: Vg, relevance: 0 -}, XN = { +}, tA = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [ - ro, + io, { begin: /\[/, end: /\]/, relevance: 0, - contains: [ro] + contains: [io] } ] -}, jN = { +}, nA = { scope: "title", - begin: Mg, + begin: Ug, relevance: 0 -}, JN = { +}, rA = { scope: "title", - begin: lu, + begin: pu, relevance: 0 -}, eA = { +}, iA = { // excludes method names from keyword processing - begin: "\\.\\s*" + lu, + begin: "\\.\\s*" + pu, relevance: 0 -}, tA = function(t) { +}, oA = function(t) { return Object.assign( t, { @@ -23825,67 +24011,67 @@ const UN = /\b\B/, Mg = "[a-zA-Z]\\w*", lu = "[a-zA-Z_]\\w*", wg = "\\b\\d+(\\.\ } ); }; -var Go = /* @__PURE__ */ Object.freeze({ +var Vo = /* @__PURE__ */ Object.freeze({ __proto__: null, - APOS_STRING_MODE: VN, - BACKSLASH_ESCAPE: ro, - BINARY_NUMBER_MODE: ZN, - BINARY_NUMBER_RE: kg, - COMMENT: Ts, - C_BLOCK_COMMENT_MODE: qN, - C_LINE_COMMENT_MODE: $N, - C_NUMBER_MODE: QN, - C_NUMBER_RE: Lg, - END_SAME_AS_BEGIN: tA, - HASH_COMMENT_MODE: WN, - IDENT_RE: Mg, - MATCH_NOTHING_RE: UN, - METHOD_GUARD: eA, - NUMBER_MODE: KN, - NUMBER_RE: wg, - PHRASAL_WORDS_MODE: zN, - QUOTE_STRING_MODE: YN, - REGEXP_MODE: XN, - RE_STARTERS_RE: HN, - SHEBANG: GN, - TITLE_MODE: jN, - UNDERSCORE_IDENT_RE: lu, - UNDERSCORE_TITLE_MODE: JN + APOS_STRING_MODE: qN, + BACKSLASH_ESCAPE: io, + BINARY_NUMBER_MODE: eA, + BINARY_NUMBER_RE: Vg, + COMMENT: Cs, + C_BLOCK_COMMENT_MODE: ZN, + C_LINE_COMMENT_MODE: QN, + C_NUMBER_MODE: JN, + C_NUMBER_RE: Gg, + END_SAME_AS_BEGIN: oA, + HASH_COMMENT_MODE: XN, + IDENT_RE: Ug, + MATCH_NOTHING_RE: YN, + METHOD_GUARD: iA, + NUMBER_MODE: jN, + NUMBER_RE: Hg, + PHRASAL_WORDS_MODE: KN, + QUOTE_STRING_MODE: WN, + REGEXP_MODE: tA, + RE_STARTERS_RE: zN, + SHEBANG: $N, + TITLE_MODE: nA, + UNDERSCORE_IDENT_RE: pu, + UNDERSCORE_TITLE_MODE: rA }); -function nA(t, e) { +function aA(t, e) { t.input[t.index - 1] === "." && e.ignoreMatch(); } -function rA(t, e) { +function sA(t, e) { t.className !== void 0 && (t.scope = t.className, delete t.className); } -function iA(t, e) { - e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = nA, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0)); +function lA(t, e) { + e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = aA, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0)); } -function oA(t, e) { - Array.isArray(t.illegal) && (t.illegal = au(...t.illegal)); +function cA(t, e) { + Array.isArray(t.illegal) && (t.illegal = uu(...t.illegal)); } -function aA(t, e) { +function uA(t, e) { if (t.match) { if (t.begin || t.end) throw new Error("begin & end are not supported with match"); t.begin = t.match, delete t.match; } } -function sA(t, e) { +function dA(t, e) { t.relevance === void 0 && (t.relevance = 1); } -const lA = (t, e) => { +const pA = (t, e) => { if (!t.beforeMatch) return; if (t.starts) throw new Error("beforeMatch cannot be used with starts"); const n = Object.assign({}, t); Object.keys(t).forEach((r) => { delete t[r]; - }), t.keywords = n.keywords, t.begin = yr(n.beforeMatch, xg(n.begin)), t.starts = { + }), t.keywords = n.keywords, t.begin = yr(n.beforeMatch, Fg(n.begin)), t.starts = { relevance: 0, contains: [ Object.assign(n, { endsParent: !0 }) ] }, t.relevance = 0, delete n.beforeMatch; -}, cA = [ +}, _A = [ "of", "and", "for", @@ -23900,70 +24086,70 @@ const lA = (t, e) => { // common variable name "value" // common variable name -], uA = "keyword"; -function Pg(t, e, n = uA) { +], mA = "keyword"; +function Yg(t, e, n = mA) { const r = /* @__PURE__ */ Object.create(null); return typeof t == "string" ? i(n, t.split(" ")) : Array.isArray(t) ? i(n, t) : Object.keys(t).forEach(function(o) { Object.assign( r, - Pg(t[o], e, o) + Yg(t[o], e, o) ); }), r; function i(o, a) { e && (a = a.map((s) => s.toLowerCase())), a.forEach(function(s) { const l = s.split("|"); - r[l[0]] = [o, dA(l[0], l[1])]; + r[l[0]] = [o, fA(l[0], l[1])]; }); } } -function dA(t, e) { - return e ? Number(e) : pA(t) ? 0 : 1; +function fA(t, e) { + return e ? Number(e) : gA(t) ? 0 : 1; } -function pA(t) { - return cA.includes(t.toLowerCase()); +function gA(t) { + return _A.includes(t.toLowerCase()); } -const i_ = {}, pr = (t) => { +const c_ = {}, pr = (t) => { console.error(t); -}, o_ = (t, ...e) => { +}, u_ = (t, ...e) => { console.log(`WARN: ${t}`, ...e); }, wr = (t, e) => { - i_[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), i_[`${t}/${e}`] = !0); -}, Va = new Error(); -function Fg(t, e, { key: n }) { + c_[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), c_[`${t}/${e}`] = !0); +}, Ya = new Error(); +function zg(t, e, { key: n }) { let r = 0; const i = t[n], o = {}, a = {}; for (let s = 1; s <= e.length; s++) - a[s + r] = i[s], o[s + r] = !0, r += Dg(e[s - 1]); + a[s + r] = i[s], o[s + r] = !0, r += Bg(e[s - 1]); t[n] = a, t[n]._emit = o, t[n]._multi = !0; } -function _A(t) { +function hA(t) { if (Array.isArray(t.begin)) { if (t.skip || t.excludeBegin || t.returnBegin) - throw pr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Va; + throw pr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ya; if (typeof t.beginScope != "object" || t.beginScope === null) - throw pr("beginScope must be object"), Va; - Fg(t, t.begin, { key: "beginScope" }), t.begin = su(t.begin, { joinWith: "" }); + throw pr("beginScope must be object"), Ya; + zg(t, t.begin, { key: "beginScope" }), t.begin = du(t.begin, { joinWith: "" }); } } -function mA(t) { +function EA(t) { if (Array.isArray(t.end)) { if (t.skip || t.excludeEnd || t.returnEnd) - throw pr("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Va; + throw pr("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ya; if (typeof t.endScope != "object" || t.endScope === null) - throw pr("endScope must be object"), Va; - Fg(t, t.end, { key: "endScope" }), t.end = su(t.end, { joinWith: "" }); + throw pr("endScope must be object"), Ya; + zg(t, t.end, { key: "endScope" }), t.end = du(t.end, { joinWith: "" }); } } -function fA(t) { +function SA(t) { t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope); } -function gA(t) { - fA(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), _A(t), mA(t); +function bA(t) { + SA(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), hA(t), EA(t); } -function hA(t) { +function TA(t) { function e(a, s) { return new RegExp( - no(a), + ro(a), "m" + (t.case_insensitive ? "i" : "") + (t.unicodeRegex ? "u" : "") + (s ? "g" : "") ); } @@ -23973,12 +24159,12 @@ function hA(t) { } // @ts-ignore addRule(s, l) { - l.position = this.position++, this.matchIndexes[this.matchAt] = l, this.regexes.push([l, s]), this.matchAt += Dg(s) + 1; + l.position = this.position++, this.matchIndexes[this.matchAt] = l, this.regexes.push([l, s]), this.matchAt += Bg(s) + 1; } compile() { this.regexes.length === 0 && (this.exec = () => null); const s = this.regexes.map((l) => l[1]); - this.matcherRe = e(su(s, { joinWith: "|" }), !0), this.lastIndex = 0; + this.matcherRe = e(du(s, { joinWith: "|" }), !0), this.lastIndex = 0; } /** @param {string} s */ exec(s) { @@ -24033,26 +24219,26 @@ function hA(t) { ); if (a.isCompiled) return l; [ - rA, + sA, // do this early so compiler extensions generally don't have to worry about // the distinction between match/begin - aA, - gA, - lA + uA, + bA, + pA ].forEach((u) => u(a, s)), t.compilerExtensions.forEach((u) => u(a, s)), a.__beforeBegin = null, [ - iA, + lA, // do this later so compiler extensions that come earlier have access to the // raw array if they wanted to perhaps manipulate it, etc. - oA, + cA, // default to 1 relevance if not specified - sA + dA ].forEach((u) => u(a, s)), a.isCompiled = !0; let c = null; - return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), c = a.keywords.$pattern, delete a.keywords.$pattern), c = c || /\w+/, a.keywords && (a.keywords = Pg(a.keywords, t.case_insensitive)), l.keywordPatternRe = e(c, !0), s && (a.begin || (a.begin = /\B|\b/), l.beginRe = e(l.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (l.endRe = e(l.end)), l.terminatorEnd = no(l.end) || "", a.endsWithParent && s.terminatorEnd && (l.terminatorEnd += (a.end ? "|" : "") + s.terminatorEnd)), a.illegal && (l.illegalRe = e( + return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), c = a.keywords.$pattern, delete a.keywords.$pattern), c = c || /\w+/, a.keywords && (a.keywords = Yg(a.keywords, t.case_insensitive)), l.keywordPatternRe = e(c, !0), s && (a.begin || (a.begin = /\B|\b/), l.beginRe = e(l.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (l.endRe = e(l.end)), l.terminatorEnd = ro(l.end) || "", a.endsWithParent && s.terminatorEnd && (l.terminatorEnd += (a.end ? "|" : "") + s.terminatorEnd)), a.illegal && (l.illegalRe = e( /** @type {RegExp | string} */ a.illegal )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(u) { - return EA(u === "self" ? a : u); + return CA(u === "self" ? a : u); })), a.contains.forEach(function(u) { o( /** @type Mode */ @@ -24068,21 +24254,21 @@ function hA(t) { t ); } -function Bg(t) { - return t ? t.endsWithParent || Bg(t.starts) : !1; +function $g(t) { + return t ? t.endsWithParent || $g(t.starts) : !1; } -function EA(t) { +function CA(t) { return t.variants && !t.cachedVariants && (t.cachedVariants = t.variants.map(function(e) { return Ln(t, { variants: null }, e); - })), t.cachedVariants ? t.cachedVariants : Bg(t) ? Ln(t, { starts: t.starts ? Ln(t.starts) : null }) : Object.isFrozen(t) ? Ln(t) : t; + })), t.cachedVariants ? t.cachedVariants : $g(t) ? Ln(t, { starts: t.starts ? Ln(t.starts) : null }) : Object.isFrozen(t) ? Ln(t) : t; } -var SA = "11.10.0"; -let bA = class extends Error { +var yA = "11.10.0"; +let vA = class extends Error { constructor(e, n) { super(e), this.name = "HTMLInjectionError", this.html = n; } }; -const ul = Ag, a_ = Ln, s_ = Symbol("nomatch"), TA = 7, Ug = function(t) { +const pl = kg, d_ = Ln, p_ = Symbol("nomatch"), RA = 7, qg = function(t) { const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = []; let i = !0; const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] }; @@ -24096,7 +24282,7 @@ const ul = Ag, a_ = Ln, s_ = Symbol("nomatch"), TA = 7, Ug = function(t) { languages: null, // beta configuration options, subject to change, welcome to discuss // https://github.com/highlightjs/highlight.js/issues/1086 - __emitter: wN + __emitter: FN }; function l(y) { return s.noHighlightRe.test(y); @@ -24107,7 +24293,7 @@ const ul = Ag, a_ = Ln, s_ = Symbol("nomatch"), TA = 7, Ug = function(t) { const A = s.languageDetectRe.exec(v); if (A) { const k = O(A[1]); - return k || (o_(o.replace("{}", A[1])), o_("Falling back to no-highlight mode for this block.", y)), k ? A[1] : "no-highlight"; + return k || (u_(o.replace("{}", A[1])), u_("Falling back to no-highlight mode for this block.", y)), k ? A[1] : "no-highlight"; } return v.split(/\s+/).find((k) => l(k) || O(k)); } @@ -24141,7 +24327,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === const K = he.case_insensitive ? D[0].toLowerCase() : D[0], _e = z(P, K); if (_e) { const [De, Rr] = _e; - if (oe.addText(U), U = "", G[K] = (G[K] || 0) + 1, G[K] <= TA && (He += Rr), De.startsWith("_")) + if (oe.addText(U), U = "", G[K] = (G[K] || 0) + 1, G[K] <= RA && (He += Rr), De.startsWith("_")) U += D[0]; else { const I = he.classNameAliases[De] || De; @@ -24189,10 +24375,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return N.scope && typeof N.scope == "string" && oe.openNode(he.classNameAliases[N.scope] || N.scope), N.beginScope && (N.beginScope._wrap ? (ue(X, he.classNameAliases[N.beginScope._wrap] || N.beginScope._wrap), X = "") : N.beginScope._multi && (Be(N.beginScope, D), X = "")), P = Object.create(N, { parent: { value: P } }), P; } function We(N, D, U) { - let K = FN(N.endRe, U); + let K = GN(N.endRe, U); if (K) { if (N["on:end"]) { - const _e = new t_(N); + const _e = new a_(N); N["on:end"](D, _e), _e.isMatchIgnored && (K = !1); } if (K) { @@ -24208,7 +24394,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return P.matcher.regexIndex === 0 ? (X += N[0], 1) : (bt = !0, 0); } function ht(N) { - const D = N[0], U = N.rule, K = new t_(U), _e = [U.__beforeBegin, U["on:begin"]]; + const D = N[0], U = N.rule, K = new a_(U), _e = [U.__beforeBegin, U["on:begin"]]; for (const De of _e) if (De && (De(N, K), K.isMatchIgnored)) return Ke(D); @@ -24217,7 +24403,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === function Ft(N) { const D = N[0], U = v.substring(N.index), K = We(P, N, U); if (!K) - return s_; + return p_; const _e = P; P.endScope && P.endScope._wrap ? (ie(), ue(D, P.endScope._wrap)) : P.endScope && P.endScope._multi ? (ie(), Be(P.endScope, N)) : _e.skip ? X += D : (_e.returnEnd || _e.excludeEnd || (X += D), ie(), _e.excludeEnd && (X = D)); do @@ -24231,26 +24417,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === D.scope && N.unshift(D.scope); N.forEach((D) => oe.openNode(D)); } - let ke = {}; + let Pe = {}; function Qe(N, D) { const U = D && D[0]; if (X += N, U == null) return ie(), 0; - if (ke.type === "begin" && D.type === "end" && ke.index === D.index && U === "") { + if (Pe.type === "begin" && D.type === "end" && Pe.index === D.index && U === "") { if (X += v.slice(D.index, D.index + 1), !i) { const K = new Error(`0 width match regex (${y})`); - throw K.languageName = y, K.badRule = ke.rule, K; + throw K.languageName = y, K.badRule = Pe.rule, K; } return 1; } - if (ke = D, D.type === "begin") + if (Pe = D, D.type === "begin") return ht(D); if (D.type === "illegal" && !A) { const K = new Error('Illegal lexeme "' + U + '" for mode "' + (P.scope || "") + '"'); throw K.mode = P, K; } else if (D.type === "end") { const K = Ft(D); - if (K !== s_) + if (K !== p_) return K; } if (D.type === "illegal" && U === "") @@ -24262,7 +24448,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === const he = O(y); if (!he) throw pr(o.replace("{}", y)), new Error('Unknown language: "' + y + '"'); - const zt = hA(he); + const zt = TA(he); let Et = "", P = k || zt; const et = {}, oe = new s.__emitter(s); de(); @@ -24292,7 +24478,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === if (N.message && N.message.includes("Illegal")) return { language: y, - value: ul(v), + value: pl(v), illegal: !0, relevance: 0, _illegalBy: { @@ -24307,7 +24493,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === if (i) return { language: y, - value: ul(v), + value: pl(v), illegal: !1, relevance: 0, errorRaised: N, @@ -24319,7 +24505,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === } function p(y) { const v = { - value: ul(y), + value: pl(y), illegal: !1, relevance: 0, _top: a, @@ -24361,7 +24547,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return; } if (y.children.length > 0 && (s.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(y)), s.throwUnescapedHTML)) - throw new bA( + throw new vA( "One of your code blocks includes unescaped HTML.", y.innerHTML ); @@ -24378,12 +24564,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === }), V("after:highlightElement", { el: y, result: G, text: k }); } function g(y) { - s = a_(s, y); + s = d_(s, y); } - const E = () => { + const S = () => { h(), wr("10.6.0", "initHighlighting() deprecated. Use highlightAll() now."); }; - function S() { + function E() { h(), wr("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now."); } let b = !1; @@ -24466,94 +24652,94 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === // TODO: Remove with v12 API highlightBlock: J, configure: g, - initHighlighting: E, - initHighlightingOnLoad: S, + initHighlighting: S, + initHighlightingOnLoad: E, registerLanguage: T, unregisterLanguage: R, listLanguages: x, getLanguage: O, registerAliases: M, autoDetection: B, - inherit: a_, + inherit: d_, addPlugin: $, removePlugin: q }), t.debugMode = function() { i = !1; }, t.safeMode = function() { i = !0; - }, t.versionString = SA, t.regex = { + }, t.versionString = yA, t.regex = { concat: yr, - lookahead: xg, - either: au, - optional: kN, - anyNumberOfTimes: LN + lookahead: Fg, + either: uu, + optional: UN, + anyNumberOfTimes: BN }; - for (const y in Go) - typeof Go[y] == "object" && Ng(Go[y]); - return Object.assign(t, Go), t; -}, ci = Ug({}); -ci.newInstance = () => Ug({}); -var CA = ci; + for (const y in Vo) + typeof Vo[y] == "object" && Lg(Vo[y]); + return Object.assign(t, Vo), t; +}, ci = qg({}); +ci.newInstance = () => qg({}); +var OA = ci; ci.HighlightJS = ci; ci.default = ci; -var yA = /* @__PURE__ */ AN(CA); -function Hg(t, e = []) { +var NA = /* @__PURE__ */ MN(OA); +function Wg(t, e = []) { return t.map((n) => { const r = [...e, ...n.properties ? n.properties.className : []]; - return n.children ? Hg(n.children, r) : { + return n.children ? Wg(n.children, r) : { text: n.value, classes: r }; }).flat(); } -function l_(t) { +function __(t) { return t.value || t.children || []; } -function vA(t) { - return !!yA.getLanguage(t); +function AA(t) { + return !!NA.getLanguage(t); } -function c_({ doc: t, name: e, lowlight: n, defaultLanguage: r }) { +function m_({ doc: t, name: e, lowlight: n, defaultLanguage: r }) { const i = []; - return $l(t, (o) => o.type.name === e).forEach((o) => { + return ql(t, (o) => o.type.name === e).forEach((o) => { var a; let s = o.pos + 1; - const l = o.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || vA(l) || !((a = n.registered) === null || a === void 0) && a.call(n, l)) ? l_(n.highlight(l, o.node.textContent)) : l_(n.highlightAuto(o.node.textContent)); - Hg(u).forEach((d) => { + const l = o.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || AA(l) || !((a = n.registered) === null || a === void 0) && a.call(n, l)) ? __(n.highlight(l, o.node.textContent)) : __(n.highlightAuto(o.node.textContent)); + Wg(u).forEach((d) => { const p = s + d.text.length; if (d.classes.length) { - const _ = Fe.inline(s, p, { + const _ = ke.inline(s, p, { class: d.classes.join(" ") }); i.push(_); } s = p; }); - }), Se.create(t, i); + }), be.create(t, i); } -function RA(t) { +function IA(t) { return typeof t == "function"; } -function OA({ name: t, lowlight: e, defaultLanguage: n }) { - if (!["highlight", "highlightAuto", "listLanguages"].every((i) => RA(e[i]))) +function xA({ name: t, lowlight: e, defaultLanguage: n }) { + if (!["highlight", "highlightAuto", "listLanguages"].every((i) => IA(e[i]))) throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension"); - const r = new be({ + const r = new Se({ key: new ve("lowlight"), state: { - init: (i, { doc: o }) => c_({ + init: (i, { doc: o }) => m_({ doc: o, name: t, lowlight: e, defaultLanguage: n }), apply: (i, o, a, s) => { - const l = a.selection.$head.parent.type.name, c = s.selection.$head.parent.type.name, u = $l(a.doc, (p) => p.type.name === t), d = $l(s.doc, (p) => p.type.name === t); + const l = a.selection.$head.parent.type.name, c = s.selection.$head.parent.type.name, u = ql(a.doc, (p) => p.type.name === t), d = ql(s.doc, (p) => p.type.name === t); return i.docChanged && ([l, c].includes(t) || d.length !== u.length || i.steps.some((p) => ( // @ts-ignore p.from !== void 0 && p.to !== void 0 && u.some((_) => ( // @ts-ignore _.pos >= p.from && _.pos + _.node.nodeSize <= p.to )) - ))) ? c_({ + ))) ? m_({ doc: i.doc, name: t, lowlight: e, @@ -24569,19 +24755,24 @@ function OA({ name: t, lowlight: e, defaultLanguage: n }) { }); return r; } -const NA = rg.extend({ +const DA = ug.extend({ addOptions() { var t; return { ...(t = this.parent) === null || t === void 0 ? void 0 : t.call(this), - lowlight: {} + lowlight: {}, + languageClassPrefix: "language-", + exitOnTripleEnter: !0, + exitOnArrowDown: !0, + defaultLanguage: null, + HTMLAttributes: {} }; }, addProseMirrorPlugins() { var t; return [ ...((t = this.parent) === null || t === void 0 ? void 0 : t.call(this)) || [], - OA({ + xA({ name: this.name, lowlight: this.options.lowlight, defaultLanguage: this.options.defaultLanguage @@ -24589,7 +24780,7 @@ const NA = rg.extend({ ]; } }); -function u_(t, e, n = {}) { +function f_(t, e, n = {}) { const { empty: r, ranges: i, from: o, to: a } = t.selection, s = e ? En(e, t.schema) : null; if (r) return !!(t.storedMarks || t.selection.$from.marks()).filter((f) => s ? s.name === f.type.name : !0).find( @@ -24598,11 +24789,11 @@ function u_(t, e, n = {}) { let l = o, c = a; const u = []; i.forEach(({ $from: f, $to: g }) => { - const E = f.pos, S = g.pos; - l = Math.min(l, E), c = Math.max(l, S), t.doc.nodesBetween(E, S, (b, h) => { + const S = f.pos, E = g.pos; + l = Math.min(l, S), c = Math.max(l, E), t.doc.nodesBetween(S, E, (b, h) => { if (!b.isText && !b.marks.length) return; - const C = Math.max(E, h), T = Math.min(S, h + b.nodeSize); + const C = Math.max(S, h), T = Math.min(E, h + b.nodeSize); u.push( ...b.marks.map((R) => ({ mark: R, @@ -24620,27 +24811,27 @@ function u_(t, e, n = {}) { ).reduce((f, g) => f + g.to - g.from, 0), _ = u.filter((f) => s ? f.mark.type !== s && f.mark.type.excludes(s) : !0).reduce((f, g) => f + g.to - g.from, 0); return (p > 0 ? p + _ : p) >= d; } -function d_(t) { +function g_(t) { var e; return !!((e = t.spec.group) != null && e.split(" ").includes("list")); } -function p_(t, e, n = {}) { +function h_(t, e, n = {}) { if (!e) - return hr(t, null, n) || u_(t, null, n); + return hr(t, null, n) || f_(t, null, n); const r = t.schema.nodes[e]; if (r) { - if (d_(r)) { - const o = _s((a) => d_(a.type))( + if (g_(r)) { + const o = ms((a) => g_(a.type))( t.selection ); return !!(o && o.node.type.name === e); } return hr(t, e, n); } - return t.schema.marks[e] ? u_(t, e, n) : !1; + return t.schema.marks[e] ? f_(t, e, n) : !1; } -function __(t) { - return new mo({ +function E_(t) { + return new fo({ find: t.find, handler: ({ state: e, range: n, match: r, commands: i }) => { const o = e.doc.resolve(n.from), a = le(t.getAttributes, void 0, r) || {}; @@ -24650,7 +24841,7 @@ function __(t) { } }); } -const Gg = [ +const Kg = [ { name: "Auto", value: "auto" }, { name: "Plain Text", value: "plaintext", alias: ["text", "txt"] }, { name: "Bash", value: "bash", alias: ["sh"] }, @@ -24727,15 +24918,15 @@ const Gg = [ ] }, { name: "YAML", value: "yaml", alias: ["yml"] } -], m_ = (t) => { +], S_ = (t) => { if (!t) return null; const e = t.toLocaleLowerCase(); - return Gg.find( + return Kg.find( (r) => r.value === e || r.alias && r.alias.includes(e) ); }; -function AA(t, e) { +function MA(t, e) { const { $from: n, from: r, to: i } = t, s = (e.textContent || "").split(` `).reduce((_, m, f) => (_[f] = (_[f - 1] || 0) + m.length + (f === 0 ? 0 : 1), _), {}), l = n.parentOffset, c = n.parentOffset + i - r, u = Object.keys(s), d = u.find( (_) => s[_] >= l @@ -24747,7 +24938,7 @@ function AA(t, e) { end: p }; } -const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = NA.extend({ +const wA = /^[`·]{3}([a-z]+)?[\s\n]$/, LA = /^[~~]{3}([a-z]+)?[\s\n]$/, kA = DA.extend({ addOptions() { var t; return { @@ -24762,23 +24953,21 @@ const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = return { ...(t = this.parent) == null ? void 0 : t.call(this), addCodeComments: (e, n) => ({ editor: r }) => { - const { storage: i, view: { dispatch: o }, state: { tr: a } } = r; - o(a.setSelection(ee.create(r.state.doc, n)).deleteSelection()); - const s = i.markdown.serializer.serialize(e); - return Vn.get(this.options.codeCommentsAi.model).chat(s, this.options.codeCommentsAi.prompt, new Ra(r, { + const { view: { dispatch: i }, state: { tr: o } } = r; + return i(o.setSelection(ee.create(r.state.doc, n)).deleteSelection()), Yn.get(this.options.codeCommentsAi.model).chat(e.textContent, this.options.codeCommentsAi.prompt, new Oa(r, { markdownParseEnable: !0, useMarkdownTextOnly: !0 })), !0; }, addCodeExplain: (e, n) => ({ editor: r }) => { - const { storage: i, view: { dispatch: o }, state: { tr: a } } = r, s = r.state.doc.nodeSize; - s <= n + e.nodeSize + 2 ? (r.commands.insertContentAt(n + e.nodeSize + 1, "

"), o(a.setSelection(Z.create(r.state.doc, s - 2)))) : o(a.setSelection(Z.create(r.state.doc, n + e.nodeSize + 1))); - const l = i.markdown.serializer.serialize(e), c = Vn.get(this.options.codeExplainAi.model); - return c == null || c.chat(l, this.options.codeExplainAi.prompt, new Ra(r)), !0; + const { view: { dispatch: i }, state: { tr: o } } = r, a = r.state.doc.nodeSize; + a <= n + e.nodeSize + 2 ? (r.commands.insertContentAt(n + e.nodeSize + 1, "

"), i(o.setSelection(Z.create(r.state.doc, a - 2)))) : i(o.setSelection(Z.create(r.state.doc, n + e.nodeSize + 1))); + const s = Yn.get(this.options.codeExplainAi.model); + return s == null || s.chat(e.textContent, this.options.codeExplainAi.prompt, new Oa(r)), !0; }, toggleCodeBlock: (e) => ({ commands: n, editor: r, chain: i }) => { const { state: o } = r, { from: a, to: s } = o.selection; - if (!p_(o, this.name) && !o.selection.empty) { + if (!h_(o, this.name) && !o.selection.empty) { let l = !0; const c = []; if (o.doc.nodesBetween(a, s, (u, d) => { @@ -24817,7 +25006,7 @@ const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = ...(t = this.parent) == null ? void 0 : t.call(this), Tab: ({ editor: e }) => { const { state: n, view: r } = e; - if (!p_(n, this.name)) + if (!h_(n, this.name)) return !1; const { selection: i, tr: o } = n, a = " "; if (i.empty) @@ -24826,14 +25015,14 @@ const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = const { $from: s, from: l, to: c } = i, u = s.node(); if (u.type !== this.type) return !1; - const { start: d, end: p } = AA(i, u); + const { start: d, end: p } = MA(i, u); if (d === void 0 || p === void 0) return r.dispatch(o.replaceSelectionWith(n.schema.text(a))), !0; const f = (u.textContent || "").split(` -`).map((S, b) => b >= d && b <= p && S ? a + S : S), g = s.node(1), E = s.start(1); +`).map((E, b) => b >= d && b <= p && E ? a + E : E), g = s.node(1), S = s.start(1); o.replaceWith( - E, - E + g.nodeSize - 2, + S, + S + g.nodeSize - 2, n.schema.text(f.join(` `)) ), o.setSelection( @@ -24851,23 +25040,23 @@ const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = }, addInputRules() { return [ - __({ - find: IA, + E_({ + find: wA, type: this.type, getAttributes: (t) => { var e; return { - language: ((e = m_(t[1])) == null ? void 0 : e.value) || this.options.defaultLanguage + language: ((e = S_(t[1])) == null ? void 0 : e.value) || this.options.defaultLanguage }; } }), - __({ - find: xA, + E_({ + find: LA, type: this.type, getAttributes: (t) => { var e; return { - language: ((e = m_(t[1])) == null ? void 0 : e.value) || this.options.defaultLanguage + language: ((e = S_(t[1])) == null ? void 0 : e.value) || this.options.defaultLanguage }; } }) @@ -24935,7 +25124,7 @@ const IA = /^[`·]{3}([a-z]+)?[\s\n]$/, xA = /^[~~]{3}([a-z]+)?[\s\n]$/, DA = }; } }); -function MA(t) { +function PA(t) { const e = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+", i = "далее " + "возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ", s = "загрузитьизфайла " + "вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ", p = "разделительстраниц разделительстрок символтабуляции " + "ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон " + "acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища " + "wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ", A = "webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля " + "автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы " + "виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента " + "авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных " + "использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц " + "отображениевремениэлементовпланировщика " + "типфайлаформатированногодокумента " + "обходрезультатазапроса типзаписизапроса " + "видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов " + "доступкфайлу режимдиалогавыборафайла режимоткрытияфайла " + "типизмеренияпостроителязапроса " + "видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений " + "wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson " + "видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных " + "важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения " + "режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации " + "расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии " + "кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip " + "звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp " + "направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса " + "httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений " + "важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты", z = "comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных " + "comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ", ae = "null истина ложь неопределено", Ce = t.inherit(t.NUMBER_MODE), ie = { className: "string", begin: '"|\\|', @@ -25030,7 +25219,7 @@ function MA(t) { ] }; } -function wA(t) { +function FA(t) { const e = t.regex, n = /^[a-zA-Z][a-zA-Z0-9-]*/, r = [ "ALPHA", "BIT", @@ -25084,7 +25273,7 @@ function wA(t) { ] }; } -function LA(t) { +function BA(t) { const e = t.regex, n = [ "GET", "POST", @@ -25162,7 +25351,7 @@ function LA(t) { ] }; } -function kA(t) { +function UA(t) { const e = t.regex, n = /[a-zA-Z_$][a-zA-Z0-9_$]*/, r = e.concat( n, e.concat("(\\.", n, ")*") @@ -25296,7 +25485,7 @@ function kA(t) { illegal: /#/ }; } -function PA(t) { +function HA(t) { const e = "\\d(_|\\d)*", n = "[eE][-+]?" + e, r = e + "(\\." + e + ")?(" + n + ")?", i = "\\w+", a = "\\b(" + (e + "#" + i + "(\\." + i + ")?#(" + n + ")?") + "|" + r + ")", s = "[A-Za-z](_?[A-Za-z0-9.])*", l = `[]\\{\\}%#'"`, c = t.COMMENT("--", "$"), u = { // TODO: These spaces are not required by the Ada syntax // however, I have yet to see handwritten Ada code where @@ -25506,7 +25695,7 @@ function PA(t) { ] }; } -function FA(t) { +function GA(t) { const e = { className: "built_in", begin: "\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)" @@ -25665,7 +25854,7 @@ function FA(t) { ] }; } -function BA(t) { +function VA(t) { const e = { className: "number", begin: /[$%]\d+/ @@ -25750,7 +25939,7 @@ function BA(t) { illegal: /\S/ }; } -function UA(t) { +function YA(t) { const e = t.regex, n = t.inherit( t.QUOTE_STRING_MODE, { illegal: null } @@ -25862,7 +26051,7 @@ function UA(t) { illegal: /\/\/|->|=>|\[\[/ }; } -function HA(t) { +function zA(t) { const e = "[A-Za-z_][0-9A-Za-z_]*", n = { keyword: [ "if", @@ -26209,7 +26398,7 @@ function HA(t) { illegal: /#(?!!)/ }; } -function GA(t) { +function $A(t) { const e = { variants: [ t.COMMENT("^[ \\t]*(?=#)", "$", { relevance: 0, @@ -26295,7 +26484,7 @@ function GA(t) { ] }; } -function VA(t) { +function qA(t) { const e = t.regex, n = { begin: "^'{3,}[ \\t]*$", relevance: 10 @@ -26535,7 +26724,7 @@ function VA(t) { ] }; } -function YA(t) { +function WA(t) { const e = t.regex, n = [ "false", "synchronized", @@ -26751,7 +26940,7 @@ function YA(t) { ] }; } -function zA(t) { +function KA(t) { const e = { begin: "`[\\s\\S]" }; return { name: "AutoHotkey", @@ -26816,7 +27005,7 @@ function zA(t) { ] }; } -function $A(t) { +function QA(t) { const e = "ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With", n = [ "EndRegion", "forcedef", @@ -26958,7 +27147,7 @@ function $A(t) { ] }; } -function qA(t) { +function ZA(t) { return { name: "AVR Assembly", case_insensitive: !0, @@ -27014,7 +27203,7 @@ function qA(t) { ] }; } -function WA(t) { +function XA(t) { const e = { className: "variable", variants: [ @@ -27069,7 +27258,7 @@ function WA(t) { ] }; } -function KA(t) { +function jA(t) { const e = t.UNDERSCORE_IDENT_RE, o = { keyword: [ "abstract", @@ -27236,7 +27425,7 @@ function KA(t) { ] }; } -function QA(t) { +function JA(t) { return { name: "BASIC", case_insensitive: !0, @@ -27453,7 +27642,7 @@ function QA(t) { ] }; } -function ZA(t) { +function eI(t) { return { name: "Backus–Naur Form", contains: [ @@ -27482,7 +27671,7 @@ function ZA(t) { ] }; } -function XA(t) { +function tI(t) { const e = { className: "literal", begin: /[+-]+/, @@ -27527,7 +27716,7 @@ function XA(t) { ] }; } -function jA(t) { +function nI(t) { const e = t.regex, n = [ "div", "mod", @@ -27662,7 +27851,7 @@ function jA(t) { ] }; } -function JA(t) { +function rI(t) { const e = [ "struct", "enum", @@ -27747,7 +27936,7 @@ function JA(t) { ] }; } -function eI(t) { +function iI(t) { const e = [ "assembly", "module", @@ -27868,7 +28057,7 @@ function eI(t) { ].concat(o) }; } -function tI(t) { +function oI(t) { return { name: "Clean", aliases: [ @@ -27924,7 +28113,7 @@ function tI(t) { ] }; } -function nI(t) { +function aI(t) { const e = "a-zA-Z_\\-!.?+*=<>&'", n = "[#]?[" + e + "][" + e + "0-9/;:$#]*", r = "def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord", i = { $pattern: n, built_in: ( @@ -27995,13 +28184,13 @@ function nI(t) { }, g = { endsWithParent: !0, relevance: 0 - }, E = { + }, S = { keywords: i, className: "name", begin: n, relevance: 0, starts: g - }, S = [ + }, E = [ u, f, s, @@ -28029,13 +28218,13 @@ function nI(t) { // we can only have a single title endsParent: !0 } - ].concat(S) + ].concat(E) }; return f.contains = [ b, - E, + S, g - ], g.contains = S, _.contains = S, { + ], g.contains = E, _.contains = E, { name: "Clojure", aliases: [ "clj", @@ -28056,7 +28245,7 @@ function nI(t) { ] }; } -function rI(t) { +function sI(t) { return { name: "Clojure REPL", contains: [ @@ -28071,7 +28260,7 @@ function rI(t) { ] }; } -function iI(t) { +function lI(t) { return { name: "CMake", aliases: ["cmake.in"], @@ -28093,7 +28282,7 @@ function iI(t) { ] }; } -const oI = [ +const cI = [ "as", // for exports "in", @@ -28136,14 +28325,14 @@ const oI = [ "from", "export", "extends" -], aI = [ +], uI = [ "true", "false", "null", "undefined", "NaN", "Infinity" -], sI = [ +], dI = [ // Fundamental objects "Object", "Function", @@ -28193,7 +28382,7 @@ const oI = [ "Intl", // WebAssembly "WebAssembly" -], lI = [ +], pI = [ "Error", "EvalError", "InternalError", @@ -28202,7 +28391,7 @@ const oI = [ "SyntaxError", "TypeError", "URIError" -], cI = [ +], _I = [ "setInterval", "setTimeout", "clearInterval", @@ -28220,12 +28409,12 @@ const oI = [ "encodeURIComponent", "escape", "unescape" -], uI = [].concat( - cI, - sI, - lI +], mI = [].concat( + _I, + dI, + pI ); -function dI(t) { +function fI(t) { const e = [ "npm", "print" @@ -28253,9 +28442,9 @@ function dI(t) { "function", "static" ], o = (m) => (f) => !m.includes(f), a = { - keyword: oI.concat(r).filter(o(i)), - literal: aI.concat(n), - built_in: uI.concat(e) + keyword: cI.concat(r).filter(o(i)), + literal: uI.concat(n), + built_in: mI.concat(e) }, s = "[A-Za-z$_][0-9A-Za-z$_]*", l = { className: "subst", begin: /#\{/, @@ -28423,7 +28612,7 @@ function dI(t) { ] }; } -function pI(t) { +function gI(t) { return { name: "Coq", keywords: { @@ -28858,7 +29047,7 @@ function pI(t) { ] }; } -function _I(t) { +function hI(t) { return { name: "Caché Object Script", case_insensitive: !0, @@ -28944,7 +29133,7 @@ function _I(t) { ] }; } -function mI(t) { +function EI(t) { const e = "primitive rsc_template", n = "group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml"; return { name: "crmsh", @@ -29022,7 +29211,7 @@ function mI(t) { ] }; } -function fI(t) { +function SI(t) { const e = "(_?[ui](8|16|32|64|128))?", n = "(_?f(32|64))?", r = "[a-zA-Z_]\\w*[!?=]?", i = "[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?", o = "[A-Za-z_]\\w*(::\\w+)*(\\?|!)?", a = { $pattern: r, keyword: "abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__", @@ -29051,11 +29240,11 @@ function fI(t) { ], keywords: a }; - function u(E, S) { + function u(S, E) { const b = [ { - begin: E, - end: S + begin: S, + end: E } ]; return b[0].contains = b, b; @@ -29302,7 +29491,7 @@ function fI(t) { contains: g }; } -function gI(t) { +function bI(t) { return { name: "CSP", case_insensitive: !1, @@ -29346,7 +29535,7 @@ function gI(t) { ] }; } -function hI(t) { +function TI(t) { const e = { $pattern: t.UNDERSCORE_IDENT_RE, keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__", @@ -29365,7 +29554,7 @@ function hI(t) { begin: "'(" + p + "|.)", end: "'", illegal: "." - }, E = { + }, S = { className: "string", begin: '"', contains: [{ @@ -29373,7 +29562,7 @@ function hI(t) { relevance: 0 }], end: '"[cwd]?' - }, S = { + }, E = { className: "string", begin: '[rq]"', end: '"[cwd]?', @@ -29419,8 +29608,8 @@ function hI(t) { t.C_BLOCK_COMMENT_MODE, O, h, - E, S, + E, b, C, m, @@ -29432,7 +29621,7 @@ function hI(t) { ] }; } -function EI(t) { +function CI(t) { const e = { className: "subst", variants: [{ begin: "\\$[A-Za-z0-9_]+" }] @@ -29671,7 +29860,7 @@ function EI(t) { ] }; } -function SI(t) { +function yI(t) { const e = [ "exports", "register", @@ -29889,7 +30078,7 @@ function SI(t) { ].concat(n) }; } -function bI(t) { +function vI(t) { const e = { begin: /\|[A-Za-z]+:?/, keywords: { name: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone" }, @@ -29933,7 +30122,7 @@ function bI(t) { ] }; } -function TI(t) { +function RI(t) { return { name: "DNS Zone", aliases: [ @@ -30000,7 +30189,7 @@ function TI(t) { ] }; } -function CI(t) { +function OI(t) { return { name: "Dockerfile", aliases: ["docker"], @@ -30031,7 +30220,7 @@ function CI(t) { illegal: ">|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?", a = { $pattern: n, keyword: [ @@ -30568,7 +30757,7 @@ function AI(t) { ) } ] - }, E = { + }, S = { className: "string", contains: [ t.BACKSLASH_ESCAPE, @@ -30616,7 +30805,7 @@ function AI(t) { end: /"/ } ] - }, S = { + }, E = { className: "function", beginKeywords: "def defp defmacro defmacrop", end: /\B\b/, @@ -30627,24 +30816,24 @@ function AI(t) { endsParent: !0 }) ] - }, b = t.inherit(S, { + }, b = t.inherit(E, { className: "class", beginKeywords: "defimpl defmodule defprotocol defrecord", end: /\bdo\b|$|;/ }), h = [ - E, + S, g, f, m, t.HASH_COMMENT_MODE, b, - S, + E, { begin: "::" }, { className: "symbol", begin: ":(?![\\s:])", contains: [ - E, + S, { begin: r } ], relevance: 0 @@ -30677,7 +30866,7 @@ function AI(t) { contains: h }; } -function II(t) { +function wI(t) { const e = { variants: [ t.COMMENT("--", "$"), t.COMMENT( @@ -30798,7 +30987,7 @@ function II(t) { illegal: /;/ }; } -function xI(t) { +function LI(t) { return { name: "ERB", subLanguage: "xml", @@ -30814,7 +31003,7 @@ function xI(t) { ] }; } -function DI(t) { +function kI(t) { const e = "[a-z'][a-zA-Z0-9_']*", n = "(" + e + ":" + e + "|" + e + ")", r = { keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor", literal: "false true" @@ -30973,7 +31162,7 @@ function DI(t) { ] }; } -function MI(t) { +function PI(t) { const e = t.regex; return { name: "Erlang REPL", @@ -31016,7 +31205,7 @@ function MI(t) { ] }; } -function wI(t) { +function FI(t) { return { name: "Excel formulae", aliases: [ @@ -31552,7 +31741,7 @@ function wI(t) { ] }; } -function LI(t) { +function BI(t) { return { name: "FIX", contains: [ @@ -31583,7 +31772,7 @@ function LI(t) { case_insensitive: !0 }; } -function kI(t) { +function UI(t) { const e = { className: "string", begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/ @@ -31645,7 +31834,7 @@ function kI(t) { ] }; } -function PI(t) { +function HI(t) { const e = t.regex, n = { className: "params", begin: "\\(", @@ -32192,26 +32381,26 @@ function PI(t) { ] }; } -function FI(t) { +function GI(t) { return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "m"); } -function Vg(t) { +function Qg(t) { return t ? typeof t == "string" ? t : t.source : null; } -function vi(t) { +function Ri(t) { return Bt("(?=", t, ")"); } function Bt(...t) { - return t.map((n) => Vg(n)).join(""); + return t.map((n) => Qg(n)).join(""); } -function BI(t) { +function VI(t) { const e = t[t.length - 1]; return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {}; } -function Zn(...t) { - return "(" + (BI(t).capture ? "" : "?:") + t.map((r) => Vg(r)).join("|") + ")"; +function Xn(...t) { + return "(" + (VI(t).capture ? "" : "?:") + t.map((r) => Qg(r)).join("|") + ")"; } -function UI(t) { +function YI(t) { const e = [ "abstract", "and", @@ -32419,7 +32608,7 @@ function UI(t) { }, f = function({ includeEqual: v }) { let A; v ? A = "!%&*+-/<=>@^|~?" : A = "!%&*+-/<>@^|~?"; - const k = Array.from(A), G = Bt("[", ...k.map(FI), "]"), z = Zn(G, /\./), ae = Bt(z, vi(z)), Ce = Zn( + const k = Array.from(A), G = Bt("[", ...k.map(GI), "]"), z = Xn(G, /\./), ae = Bt(z, Ri(z)), Ce = Xn( Bt(ae, z, "*"), // Matches at least 2 chars operators Bt(G, "+") @@ -32427,7 +32616,7 @@ function UI(t) { ); return { scope: "operator", - match: Zn( + match: Xn( // symbolic operators: Ce, // other symbolic keywords: @@ -32444,18 +32633,18 @@ function UI(t) { // A single $ can be used as an operator relevance: 0 }; - }, g = f({ includeEqual: !0 }), E = f({ includeEqual: !1 }), S = function(v, A) { + }, g = f({ includeEqual: !0 }), S = f({ includeEqual: !1 }), E = function(v, A) { return { begin: Bt( // a type annotation is a v, // should be a colon or the 'of' keyword - vi( + Ri( // that has to be followed by Bt( /\s*/, // optional space - Zn( + Xn( // then either of: /\w/, // word @@ -32481,8 +32670,8 @@ function UI(t) { // - abstract member definitions in classes: abstract Property : int * string // - return type annotations: let f f' = f' () : returnTypeAnnotation // - record fields definitions: { A : int \n B : string } - end: vi( - Zn( + end: Ri( + Xn( /\n/, /=/ ) @@ -32495,10 +32684,10 @@ function UI(t) { m, t.inherit(p, { scope: null }), // match to avoid strange patterns inside that may break the parsing - E + S ] }; - }, b = S(/:/, "operator"), h = S(/\bof\b/, "keyword"), C = { + }, b = E(/:/, "operator"), h = E(/\bof\b/, "keyword"), C = { begin: [ /(^|\s+)/, // prevents matching the following: `match s.stype with` @@ -32510,7 +32699,7 @@ function UI(t) { 2: "keyword", 4: "title.class" }, - end: vi(/\(|=|$/), + end: Ri(/\(|=|$/), keywords: l, // match keywords in type constraints. e.g.: when 'a : null contains: [ @@ -32535,11 +32724,11 @@ function UI(t) { // preprocessor directives and fsi commands: begin: [ /^\s*/, - Bt(/#/, Zn(...r)), + Bt(/#/, Xn(...r)), /\b/ ], beginScope: { 2: "meta" }, - end: vi(/\s|$/) + end: Ri(/\s|$/) }, x = { variants: [ t.BINARY_NUMBER_MODE, @@ -32628,7 +32817,7 @@ function UI(t) { scope: "string", match: Bt( /'/, - Zn( + Xn( /[^\\']/, // either a single non escaped char... /\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/ @@ -32706,7 +32895,7 @@ function UI(t) { ] }; } -function HI(t) { +function zI(t) { const e = t.regex, n = { keyword: "abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes", literal: "eps inf na", @@ -32850,7 +33039,7 @@ function HI(t) { ] }; } -function GI(t) { +function $I(t) { const e = { keyword: "bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv", built_in: "abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim", @@ -33020,7 +33209,7 @@ function GI(t) { ] }; } -function VI(t) { +function qI(t) { const e = "[A-Z_][A-Z0-9_.]*", n = "%", r = { $pattern: e, keyword: "IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR" @@ -33084,7 +33273,7 @@ function VI(t) { ].concat(a) }; } -function YI(t) { +function WI(t) { return { name: "Gherkin", aliases: ["feature"], @@ -33124,7 +33313,7 @@ function YI(t) { ] }; } -function zI(t) { +function KI(t) { return { name: "GLSL", keywords: { @@ -33152,7 +33341,7 @@ function zI(t) { ] }; } -function $I(t) { +function QI(t) { return { name: "GML", case_insensitive: !1, @@ -35952,7 +36141,7 @@ function $I(t) { ] }; } -function qI(t) { +function ZI(t) { return { name: "Golo", keywords: { @@ -36021,7 +36210,7 @@ function qI(t) { ] }; } -function WI(t) { +function XI(t) { return { name: "Gradle", case_insensitive: !0, @@ -36199,11 +36388,11 @@ function WI(t) { ] }; } -function dl(t, e = {}) { +function _l(t, e = {}) { return e.variants = t, e; } -function KI(t) { - const e = t.regex, n = "[A-Za-z0-9_$]+", r = dl([ +function jI(t) { + const e = t.regex, n = "[A-Za-z0-9_$]+", r = _l([ t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE, t.COMMENT( @@ -36228,10 +36417,10 @@ function KI(t) { className: "regexp", begin: /~?\/[^\/\n]+\//, contains: [t.BACKSLASH_ESCAPE] - }, o = dl([ + }, o = _l([ t.BINARY_NUMBER_MODE, t.C_NUMBER_MODE - ]), a = dl( + ]), a = _l( [ { begin: /"""/, @@ -36368,7 +36557,7 @@ function KI(t) { illegal: /#|<\// }; } -function QI(t) { +function JI(t) { return { name: "HAML", case_insensitive: !0, @@ -36470,7 +36659,7 @@ function QI(t) { ] }; } -function ZI(t) { +function ex(t) { const e = t.regex, n = { $pattern: /[\w.\/]+/, built_in: [ @@ -36562,7 +36751,7 @@ function ZI(t) { begin: /\w+/ } ] - }, E = { + }, S = { contains: [ t.NUMBER_MODE, t.QUOTE_STRING_MODE, @@ -36576,23 +36765,23 @@ function ZI(t) { // the property "end" is defined through inheritance when the mode is used. If depends // on the surrounding mode, but "endsWithParent" does not work here (i.e. it includes the // end-token of the surrounding mode) - }, S = t.inherit(p, { + }, E = t.inherit(p, { className: "name", keywords: n, - starts: t.inherit(E, { end: /\)/ }) + starts: t.inherit(S, { end: /\)/ }) }); - m.contains = [S]; + m.contains = [E]; const b = t.inherit(p, { keywords: n, className: "name", - starts: t.inherit(E, { end: /\}\}/ }) + starts: t.inherit(S, { end: /\}\}/ }) }), h = t.inherit(p, { keywords: n, className: "name" }), C = t.inherit(p, { className: "name", keywords: n, - starts: t.inherit(E, { end: /\}\}/ }) + starts: t.inherit(S, { end: /\}\}/ }) }); return { name: "Handlebars", @@ -36677,7 +36866,7 @@ function ZI(t) { ] }; } -function XI(t) { +function tx(t) { const e = "([0-9]_*)+", n = "([0-9a-fA-F]_*)+", r = "([01]_*)+", i = "([0-7]_*)+", l = "([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))", c = { variants: [ // Double dash forms a valid comment only if it's not part of legal lexeme. // See: Haskell 98 report: https://www.haskell.org/onlinereport/lexemes.html @@ -36851,7 +37040,7 @@ function XI(t) { ] }; } -function jI(t) { +function nx(t) { const e = "[a-zA-Z_$][a-zA-Z0-9_$]*", n = /(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/; return { name: "Haxe", @@ -37007,7 +37196,7 @@ function jI(t) { illegal: /<\// }; } -function JI(t) { +function rx(t) { return { name: "HSP", case_insensitive: !0, @@ -37052,7 +37241,7 @@ function JI(t) { ] }; } -function ex(t) { +function ix(t) { const e = t.regex, n = "HTTP/([32]|1\\.[01])", r = /[A-Za-z][A-Za-z0-9-]*/, i = { className: "attribute", begin: e.concat("^", r, "(?=\\:\\s)"), @@ -37134,7 +37323,7 @@ function ex(t) { ] }; } -function tx(t) { +function ox(t) { const e = "a-zA-Z_\\-!.?+*=<>&#'", n = "[" + e + "][" + e + "0-9/;:]*", r = { $pattern: n, built_in: ( @@ -37177,7 +37366,7 @@ function tx(t) { keywords: r, begin: n, starts: f - }, E = [ + }, S = [ m, s, d, @@ -37193,7 +37382,7 @@ function tx(t) { t.COMMENT("comment", ""), g, f - ], f.contains = E, u.contains = E, { + ], f.contains = S, u.contains = S, { name: "Hy", aliases: ["hylang"], illegal: /\S/, @@ -37211,7 +37400,7 @@ function tx(t) { ] }; } -function nx(t) { +function ax(t) { const e = "\\[", n = "\\]"; return { name: "Inform 7", @@ -37265,7 +37454,7 @@ function nx(t) { ] }; } -function rx(t) { +function sx(t) { const e = t.regex, n = { className: "params", begin: "\\(", @@ -37312,12 +37501,12 @@ function rx(t) { ] }; } -function ix(t) { - const e = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*", n = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*", r = "and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ", Ce = "SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE " + "CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE " + "ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME " + "DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY " + "ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION " + "JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY " + "ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE " + "smHidden smMaximized smMinimized smNormal wmNo wmYes " + "COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND " + "COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE " + "MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY " + "NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY " + "dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT " + "CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM " + "ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME " + "PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE " + "ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE " + "CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT " + "STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER " + "COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE " + "SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID " + "RESULT_VAR_NAME RESULT_VAR_NAME_ENG " + "AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID " + "SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY " + "SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY " + "SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS " + "SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS " + "SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS " + "ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME " + "TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME " + "ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk " + "EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE " + "cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate " + "ISBL_SYNTAX NO_SYNTAX XML_SYNTAX " + "WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " + "SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ", Jh = "atUser atGroup atRole " + "aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty " + "apBegin apEnd " + "alLeft alRight " + "asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways " + "cirCommon cirRevoked " + "ctSignature ctEncode ctSignatureEncode " + "clbUnchecked clbChecked clbGrayed " + "ceISB ceAlways ceNever " + "ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob " + "cfInternal cfDisplay " + "ciUnspecified ciWrite ciRead " + "ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog " + "ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton " + "cctDate cctInteger cctNumeric cctPick cctReference cctString cctText " + "cltInternal cltPrimary cltGUI " + "dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange " + "dssEdit dssInsert dssBrowse dssInActive " + "dftDate dftShortDate dftDateTime dftTimeStamp " + "dotDays dotHours dotMinutes dotSeconds " + "dtkndLocal dtkndUTC " + "arNone arView arEdit arFull " + "ddaView ddaEdit " + "emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode " + "ecotFile ecotProcess " + "eaGet eaCopy eaCreate eaCreateStandardRoute " + "edltAll edltNothing edltQuery " + "essmText essmCard " + "esvtLast esvtLastActive esvtSpecified " + "edsfExecutive edsfArchive " + "edstSQLServer edstFile " + "edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile " + "vsDefault vsDesign vsActive vsObsolete " + "etNone etCertificate etPassword etCertificatePassword " + "ecException ecWarning ecInformation " + "estAll estApprovingOnly " + "evtLast evtLastActive evtQuery " + "fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger " + "ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch " + "grhAuto grhX1 grhX2 grhX3 " + "hltText hltRTF hltHTML " + "iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG " + "im8bGrayscale im24bRGB im1bMonochrome " + "itBMP itJPEG itWMF itPNG " + "ikhInformation ikhWarning ikhError ikhNoIcon " + "icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler " + "isShow isHide isByUserSettings " + "jkJob jkNotice jkControlJob " + "jtInner jtLeft jtRight jtFull jtCross " + "lbpAbove lbpBelow lbpLeft lbpRight " + "eltPerConnection eltPerUser " + "sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac " + "sfsItalic sfsStrikeout sfsNormal " + "ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents " + "mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom " + "vtEqual vtGreaterOrEqual vtLessOrEqual vtRange " + "rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth " + "rdWindow rdFile rdPrinter " + "rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument " + "reOnChange reOnChangeValues " + "ttGlobal ttLocal ttUser ttSystem " + "ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal " + "smSelect smLike smCard " + "stNone stAuthenticating stApproving " + "sctString sctStream " + "sstAnsiSort sstNaturalSort " + "svtEqual svtContain " + "soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown " + "tarAbortByUser tarAbortByWorkflowException " + "tvtAllWords tvtExactPhrase tvtAnyWord " + "usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp " + "utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected " + "btAnd btDetailAnd btOr btNotOr btOnly " + "vmView vmSelect vmNavigation " + "vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection " + "wfatPrevious wfatNext wfatCancel wfatFinish " + "wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 " + "wfetQueryParameter wfetText wfetDelimiter wfetLabel " + "wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate " + "wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal " + "wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal " + "waAll waPerformers waManual " + "wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause " + "wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection " + "wiLow wiNormal wiHigh " + "wrtSoft wrtHard " + "wsInit wsRunning wsDone wsControlled wsAborted wsContinued " + "wtmFull wtmFromCurrent wtmOnlyCurrent ", eE = "AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ", tE = "AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ", nE = "IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ", rE = Ce + Jh, iE = tE, oE = "null true false nil ", Nu = { +function lx(t) { + const e = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*", n = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*", r = "and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ", Ce = "SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE " + "CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE " + "ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME " + "DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY " + "ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION " + "JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY " + "ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE " + "smHidden smMaximized smMinimized smNormal wmNo wmYes " + "COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND " + "COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE " + "MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY " + "NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY " + "dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT " + "CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM " + "ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME " + "PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE " + "ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE " + "CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT " + "STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER " + "COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE " + "SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID " + "RESULT_VAR_NAME RESULT_VAR_NAME_ENG " + "AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID " + "SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY " + "SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY " + "SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS " + "SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS " + "SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS " + "ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME " + "TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME " + "ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk " + "EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE " + "cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate " + "ISBL_SYNTAX NO_SYNTAX XML_SYNTAX " + "WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " + "SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ", sE = "atUser atGroup atRole " + "aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty " + "apBegin apEnd " + "alLeft alRight " + "asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways " + "cirCommon cirRevoked " + "ctSignature ctEncode ctSignatureEncode " + "clbUnchecked clbChecked clbGrayed " + "ceISB ceAlways ceNever " + "ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob " + "cfInternal cfDisplay " + "ciUnspecified ciWrite ciRead " + "ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog " + "ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton " + "cctDate cctInteger cctNumeric cctPick cctReference cctString cctText " + "cltInternal cltPrimary cltGUI " + "dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange " + "dssEdit dssInsert dssBrowse dssInActive " + "dftDate dftShortDate dftDateTime dftTimeStamp " + "dotDays dotHours dotMinutes dotSeconds " + "dtkndLocal dtkndUTC " + "arNone arView arEdit arFull " + "ddaView ddaEdit " + "emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode " + "ecotFile ecotProcess " + "eaGet eaCopy eaCreate eaCreateStandardRoute " + "edltAll edltNothing edltQuery " + "essmText essmCard " + "esvtLast esvtLastActive esvtSpecified " + "edsfExecutive edsfArchive " + "edstSQLServer edstFile " + "edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile " + "vsDefault vsDesign vsActive vsObsolete " + "etNone etCertificate etPassword etCertificatePassword " + "ecException ecWarning ecInformation " + "estAll estApprovingOnly " + "evtLast evtLastActive evtQuery " + "fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger " + "ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch " + "grhAuto grhX1 grhX2 grhX3 " + "hltText hltRTF hltHTML " + "iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG " + "im8bGrayscale im24bRGB im1bMonochrome " + "itBMP itJPEG itWMF itPNG " + "ikhInformation ikhWarning ikhError ikhNoIcon " + "icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler " + "isShow isHide isByUserSettings " + "jkJob jkNotice jkControlJob " + "jtInner jtLeft jtRight jtFull jtCross " + "lbpAbove lbpBelow lbpLeft lbpRight " + "eltPerConnection eltPerUser " + "sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac " + "sfsItalic sfsStrikeout sfsNormal " + "ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents " + "mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom " + "vtEqual vtGreaterOrEqual vtLessOrEqual vtRange " + "rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth " + "rdWindow rdFile rdPrinter " + "rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument " + "reOnChange reOnChangeValues " + "ttGlobal ttLocal ttUser ttSystem " + "ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal " + "smSelect smLike smCard " + "stNone stAuthenticating stApproving " + "sctString sctStream " + "sstAnsiSort sstNaturalSort " + "svtEqual svtContain " + "soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown " + "tarAbortByUser tarAbortByWorkflowException " + "tvtAllWords tvtExactPhrase tvtAnyWord " + "usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp " + "utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected " + "btAnd btDetailAnd btOr btNotOr btOnly " + "vmView vmSelect vmNavigation " + "vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection " + "wfatPrevious wfatNext wfatCancel wfatFinish " + "wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 " + "wfetQueryParameter wfetText wfetDelimiter wfetLabel " + "wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate " + "wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal " + "wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal " + "waAll waPerformers waManual " + "wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause " + "wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection " + "wiLow wiNormal wiHigh " + "wrtSoft wrtHard " + "wsInit wsRunning wsDone wsControlled wsAborted wsContinued " + "wtmFull wtmFromCurrent wtmOnlyCurrent ", lE = "AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ", cE = "AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ", uE = "IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ", dE = Ce + sE, pE = cE, _E = "null true false nil ", Du = { className: "number", begin: t.NUMBER_RE, relevance: 0 - }, Au = { + }, Mu = { className: "string", variants: [ { @@ -37329,98 +37518,98 @@ function ix(t) { end: "'" } ] - }, Iu = { + }, wu = { className: "doctag", begin: "\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b", relevance: 0 - }, aE = { + }, mE = { className: "comment", begin: "//", end: "$", relevance: 0, contains: [ t.PHRASAL_WORDS_MODE, - Iu + wu ] - }, sE = { + }, fE = { className: "comment", begin: "/\\*", end: "\\*/", relevance: 0, contains: [ t.PHRASAL_WORDS_MODE, - Iu + wu ] - }, xu = { variants: [ - aE, - sE - ] }, yo = { + }, Lu = { variants: [ + mE, + fE + ] }, vo = { $pattern: e, keyword: r, - built_in: rE, - class: iE, - literal: oE - }, xs = { + built_in: dE, + class: pE, + literal: _E + }, Ds = { begin: "\\.\\s*" + t.UNDERSCORE_IDENT_RE, - keywords: yo, + keywords: vo, relevance: 0 - }, Du = { + }, ku = { className: "type", - begin: ":[ \\t]*(" + nE.trim().replace(/\s/g, "|") + ")", + begin: ":[ \\t]*(" + uE.trim().replace(/\s/g, "|") + ")", end: "[ \\t]*=", excludeEnd: !0 - }, Mu = { + }, Pu = { className: "variable", - keywords: yo, + keywords: vo, begin: e, relevance: 0, contains: [ - Du, - xs + ku, + Ds ] - }, wu = n + "\\("; + }, Fu = n + "\\("; return { name: "ISBL", case_insensitive: !0, - keywords: yo, + keywords: vo, illegal: "\\$|\\?|%|,|;$|~|#|@|", i = { $pattern: e + "|&[lg]t;", literal: "true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft", @@ -37977,7 +38166,7 @@ function lx(t) { ].concat(c) }; } -function cx(t) { +function _x(t) { const n = t.regex.either(...[ "(?:NeedsTeXFormat|RequirePackage|GetIdInfo)", "Provides(?:Expl)?(?:Package|Class|File)", @@ -38112,7 +38301,7 @@ function cx(t) { }, g = { begin: /\s+/, relevance: 0 - }, E = [m], S = [f], b = function(M, B) { + }, S = [m], E = [f], b = function(M, B) { return { contains: [g], starts: { @@ -38142,7 +38331,7 @@ function cx(t) { }, relevance: 0 }, - b(E, B) + b(S, B) ); }, T = (M = "string") => t.END_SAME_AS_BEGIN({ className: M, @@ -38182,8 +38371,8 @@ function cx(t) { "verb", "lstinline" ].map((M) => h(M, { contains: [T()] })), - h("mint", b(E, { contains: [T()] })), - h("mintinline", b(E, { contains: [ + h("mint", b(S, { contains: [T()] })), + h("mintinline", b(S, { contains: [ x(), T() ] })), @@ -38192,22 +38381,22 @@ function cx(t) { x("link") ] }), h("hyperref", { contains: [x("link")] }), - h("href", b(S, { contains: [x("link")] })), + h("href", b(E, { contains: [x("link")] })), ...[].concat(...[ "", "\\*" ].map((M) => [ C("verbatim" + M, R("verbatim" + M)), - C("filecontents" + M, b(E, R("filecontents" + M))), + C("filecontents" + M, b(S, R("filecontents" + M))), ...[ "", "B", "L" ].map( - (B) => C(B + "Verbatim" + M, b(S, R(B + "Verbatim" + M))) + (B) => C(B + "Verbatim" + M, b(E, R(B + "Verbatim" + M))) ) ])), - C("minted", b(S, b(E, R("minted")))) + C("minted", b(E, b(S, R("minted")))) ]; return { name: "LaTeX", @@ -38218,7 +38407,7 @@ function cx(t) { ] }; } -function ux(t) { +function mx(t) { return { name: "LDIF", contains: [ @@ -38239,7 +38428,7 @@ function ux(t) { ] }; } -function dx(t) { +function fx(t) { const e = /([A-Za-z_][A-Za-z_0-9]*)?/, r = { scope: "params", begin: /\(/, @@ -38323,7 +38512,7 @@ function dx(t) { ] }; } -function px(t) { +function gx(t) { const e = "[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*", n = "\\|[^]*?\\|", r = "(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?", i = { className: "literal", begin: "\\b(t{1}|nil)\\b" @@ -38436,7 +38625,7 @@ function px(t) { ] }; } -function _x(t) { +function hx(t) { const e = { className: "variable", variants: [ @@ -38525,7 +38714,7 @@ function _x(t) { illegal: ";$|^\\[|^=|&|\\{" }; } -const mx = [ +const Ex = [ "as", // for exports "in", @@ -38568,14 +38757,14 @@ const mx = [ "from", "export", "extends" -], fx = [ +], Sx = [ "true", "false", "null", "undefined", "NaN", "Infinity" -], gx = [ +], bx = [ // Fundamental objects "Object", "Function", @@ -38625,7 +38814,7 @@ const mx = [ "Intl", // WebAssembly "WebAssembly" -], hx = [ +], Tx = [ "Error", "EvalError", "InternalError", @@ -38634,7 +38823,7 @@ const mx = [ "SyntaxError", "TypeError", "URIError" -], Ex = [ +], Cx = [ "setInterval", "setTimeout", "clearInterval", @@ -38652,12 +38841,12 @@ const mx = [ "encodeURIComponent", "escape", "unescape" -], Sx = [].concat( - Ex, - gx, - hx +], yx = [].concat( + Cx, + bx, + Tx ); -function bx(t) { +function vx(t) { const e = [ "npm", "print" @@ -38700,9 +38889,9 @@ function bx(t) { "__bind", "__indexOf" ], i = { - keyword: mx.concat(r), - literal: fx.concat(n), - built_in: Sx.concat(e) + keyword: Ex.concat(r), + literal: Sx.concat(n), + built_in: yx.concat(e) }, o = "[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*", a = t.inherit(t.TITLE_MODE, { begin: o }), s = { className: "subst", begin: /#\{/, @@ -38867,7 +39056,7 @@ function bx(t) { ]) }; } -function Tx(t) { +function Rx(t) { const e = t.regex, n = /([-a-zA-Z$._][\w$.-]*)/, r = { className: "type", begin: /\bi\d+(?=\s|\b)/ @@ -38943,7 +39132,7 @@ function Tx(t) { ] }; } -function Cx(t) { +function Ox(t) { const n = { className: "string", begin: '"', @@ -39000,7 +39189,7 @@ function Cx(t) { ] }; } -const yx = [ +const Nx = [ "AASTriangle", "AbelianGroup", "Abort", @@ -46235,7 +46424,7 @@ const yx = [ "$WolframID", "$WolframUUID" ]; -function vx(t) { +function Ax(t) { const e = t.regex, n = /([2-9]|[1-2]\d|[3][0-5])\^\^/, r = /(\w*\.\w+|\w+\.\w*|\w+)/, i = /(\d*\.\d+|\d+\.\d*|\d+)/, o = e.either(e.concat(n, r), i), a = /``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/, s = /`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/, l = e.either(a, s), c = /\*\^[+-]?\d+/, d = { className: "number", relevance: 0, @@ -46244,7 +46433,7 @@ function vx(t) { e.optional(l), e.optional(c) ) - }, p = /[a-zA-Z$][a-zA-Z0-9$]*/, _ = new Set(yx), m = { variants: [ + }, p = /[a-zA-Z$][a-zA-Z0-9$]*/, _ = new Set(Nx), m = { variants: [ { className: "builtin-symbol", begin: p, @@ -46265,11 +46454,11 @@ function vx(t) { className: "operator", relevance: 0, begin: /[+\-*/,;.:@~=><&|_`'^?!%]+/ - }, E = { + }, S = { className: "pattern", relevance: 0, begin: /([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/ - }, S = { + }, E = { className: "slot", relevance: 0, begin: /#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/ @@ -46299,8 +46488,8 @@ function vx(t) { }, contains: [ t.COMMENT(/\(\*/, /\*\)/, { contains: ["self"] }), - E, S, + E, h, m, f, @@ -46311,7 +46500,7 @@ function vx(t) { ] }; } -function Rx(t) { +function Ix(t) { const e = "('|\\.')+", n = { relevance: 0, contains: [{ begin: e }] @@ -46384,7 +46573,7 @@ function Rx(t) { ] }; } -function Ox(t) { +function xx(t) { return { name: "Maxima", keywords: { @@ -46432,7 +46621,7 @@ function Ox(t) { illegal: /@/ }; } -function Nx(t) { +function Dx(t) { return { name: "MEL", keywords: "int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform", @@ -46456,7 +46645,7 @@ function Nx(t) { ] }; } -function Ax(t) { +function Mx(t) { const e = { keyword: "module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure", meta: ( @@ -46523,7 +46712,7 @@ function Ax(t) { ] }; } -function Ix(t) { +function wx(t) { return { name: "MIPS Assembly", case_insensitive: !0, @@ -46597,14 +46786,14 @@ function Ix(t) { illegal: /\// }; } -function xx(t) { +function Lx(t) { return { name: "Mizar", keywords: "environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity", contains: [t.COMMENT("::", "$")] }; } -function Dx(t) { +function kx(t) { return { name: "Mojolicious", subLanguage: "xml", @@ -46630,7 +46819,7 @@ function Dx(t) { ] }; } -function Mx(t) { +function Px(t) { const e = { className: "number", relevance: 0, @@ -46798,7 +46987,7 @@ function Mx(t) { ] }; } -function wx(t) { +function Fx(t) { const e = { keyword: ( // Moonscript keywords @@ -46926,7 +47115,7 @@ function wx(t) { ]) }; } -function Lx(t) { +function Bx(t) { return { name: "N1QL", case_insensitive: !0, @@ -47272,7 +47461,7 @@ function Lx(t) { ] }; } -function kx(t) { +function Ux(t) { const e = { match: [ /^\s*(?=\S)/, @@ -47343,7 +47532,7 @@ function kx(t) { ] }; } -function Px(t) { +function Hx(t) { const e = t.regex, n = { className: "variable", variants: [ @@ -47481,7 +47670,7 @@ function Px(t) { illegal: "[^\\s\\}\\{]" }; } -function Fx(t) { +function Gx(t) { return { name: "Nim", keywords: { @@ -47654,7 +47843,7 @@ function Fx(t) { ] }; } -function Bx(t) { +function Vx(t) { const e = { keyword: [ "rec", @@ -47733,7 +47922,7 @@ function Bx(t) { contains: a }; } -function Ux(t) { +function Yx(t) { return { name: "Node REPL", contains: [ @@ -47756,7 +47945,7 @@ function Ux(t) { ] }; } -function Hx(t) { +function zx(t) { const e = t.regex, n = [ "ADMINTOOLS", "APPDATA", @@ -48225,7 +48414,7 @@ function Hx(t) { 1: "keyword", 3: "title.function" } - }, S = { + }, E = { match: [ /Var/, /\s+/, @@ -48253,7 +48442,7 @@ function Hx(t) { "$", { relevance: 0 } ), - S, + E, g, { beginKeywords: "Function PageEx Section SectionGroup FunctionEnd SectionEnd" }, _, @@ -48267,7 +48456,7 @@ function Hx(t) { ] }; } -function Gx(t) { +function $x(t) { return { name: "OCaml", aliases: ["ml"], @@ -48331,7 +48520,7 @@ function Gx(t) { ] }; } -function Vx(t) { +function qx(t) { const e = { className: "keyword", begin: "\\$(f[asn]|t|vp[rtd]|children)" @@ -48391,7 +48580,7 @@ function Vx(t) { ] }; } -function Yx(t) { +function Wx(t) { const e = { $pattern: /\.?\w+/, keyword: "abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained" @@ -48452,7 +48641,7 @@ function Yx(t) { ] }; } -function zx(t) { +function Kx(t) { const e = t.COMMENT( /\{/, /\}/, @@ -48497,7 +48686,7 @@ function zx(t) { ] }; } -function $x(t) { +function Qx(t) { const e = { className: "variable", begin: /\$[\w\d#@][\w\d_]*/, @@ -48530,7 +48719,7 @@ function $x(t) { ] }; } -function qx(t) { +function Zx(t) { const e = t.COMMENT("--", "$"), n = "[a-zA-Z_][a-zA-Z_0-9$]*", r = "\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$", i = "<<\\s*" + n + "\\s*>>", o = ( // https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html // https://www.postgresql.org/docs/11/static/sql-commands.html @@ -48792,7 +48981,7 @@ function qx(t) { ] }; } -function Wx(t) { +function Xx(t) { const e = { keyword: "actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor", meta: "iso val tag trn box ref", @@ -48840,7 +49029,7 @@ function Wx(t) { ] }; } -function Kx(t) { +function jx(t) { const e = [ "string", "char", @@ -48985,7 +49174,7 @@ function Kx(t) { begin: /(using|assembly|command|module|namespace|type)/ } ] - }, E = { variants: [ + }, S = { variants: [ // PS literals are pretty verbose so it's a good idea to accent them a bit. { className: "operator", @@ -48996,7 +49185,7 @@ function Kx(t) { begin: /(-){1,2}[\w\d-]+/, relevance: 0 } - ] }, S = { + ] }, E = { className: "selector-tag", begin: /@\B/, relevance: 0 @@ -49033,7 +49222,7 @@ function Kx(t) { _, s, l, - S + E ], C = { begin: /\[/, end: /\]/, @@ -49068,12 +49257,12 @@ function Kx(t) { m, f, g, - E, + S, C ) }; } -function Qx(t) { +function Jx(t) { const e = t.regex, n = [ "displayHeight", "displayWidth", @@ -49488,7 +49677,7 @@ function Qx(t) { ] }; } -function Zx(t) { +function eD(t) { return { name: "Python profiler", contains: [ @@ -49523,7 +49712,7 @@ function Zx(t) { ] }; } -function Xx(t) { +function tD(t) { const e = { begin: /[a-z][A-Za-z0-9_]*/, relevance: 0 @@ -49587,7 +49776,7 @@ function Xx(t) { ]) }; } -function jx(t) { +function nD(t) { const e = "[ \\t\\f]*", n = "[ \\t\\f]+", r = e + "[:=]" + e, i = n, o = "(" + r + "|" + i + ")", a = "([^\\\\:= \\t\\f\\n]|\\\\.)+", s = { // skip DELIM end: o, @@ -49635,7 +49824,7 @@ function jx(t) { ] }; } -function Jx(t) { +function rD(t) { const e = [ "package", "import", @@ -49703,7 +49892,7 @@ function Jx(t) { ] }; } -function eD(t) { +function iD(t) { const e = { keyword: ( /* language keywords */ @@ -49807,7 +49996,7 @@ function eD(t) { ] }; } -function tD(t) { +function oD(t) { const e = { // PB IDE color: #0080FF (Azure Radiance) className: "string", @@ -49863,7 +50052,7 @@ function tD(t) { ] }; } -function nD(t) { +function aD(t) { return { name: "Q", aliases: [ @@ -49884,7 +50073,7 @@ function nD(t) { ] }; } -function rD(t) { +function sD(t) { const e = t.regex, n = { keyword: "in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import", literal: "true false null undefined NaN Infinity", @@ -50023,7 +50212,7 @@ function rD(t) { illegal: /#/ }; } -function iD(t) { +function lD(t) { return { name: "ReasonML", aliases: ["re"], @@ -50159,7 +50348,7 @@ function iD(t) { ] }; } -function oD(t) { +function cD(t) { return { name: "RenderMan RIB", keywords: "ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd", @@ -50172,7 +50361,7 @@ function oD(t) { ] }; } -function aD(t) { +function uD(t) { const e = "[a-zA-Z-_][^\\n{]+\\{", n = { className: "attribute", begin: /[a-zA-Z-_]+/, @@ -50238,7 +50427,7 @@ function aD(t) { ] }; } -function sD(t) { +function dD(t) { const e = "foreach do while for if from to step else on-error and or not in", n = "global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime", r = "add remove enable disable set get print export edit find run debug error info warning", i = "true false yes no nothing nil null", o = "traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw", a = { className: "variable", variants: [ @@ -50375,7 +50564,7 @@ function sD(t) { ] }; } -function lD(t) { +function pD(t) { const e = [ "abs", "acos", @@ -50507,7 +50696,7 @@ function lD(t) { ] }; } -function cD(t) { +function _D(t) { return { name: "Oracle Rules Language", keywords: { @@ -50534,7 +50723,7 @@ function cD(t) { ] }; } -function uD(t) { +function mD(t) { const e = t.regex, n = [ "do", "if", @@ -51071,7 +51260,7 @@ function uD(t) { ] }; } -function dD(t) { +function fD(t) { const e = t.regex, n = { className: "meta", begin: "@[A-Za-z]+" @@ -51247,7 +51436,7 @@ function dD(t) { ] }; } -function pD(t) { +function gD(t) { const e = "[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+", n = "(-|\\+)?\\d+([./]\\d+)?", r = n + "[+\\-]" + n + "i", i = { $pattern: e, built_in: "case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?" @@ -51369,7 +51558,7 @@ function pD(t) { ].concat(l) }; } -function _D(t) { +function hD(t) { const e = [ t.C_NUMBER_MODE, { @@ -51425,7 +51614,7 @@ function _D(t) { ].concat(e) }; } -function mD(t) { +function ED(t) { const e = [ "add", "and", @@ -51540,7 +51729,7 @@ function mD(t) { ] }; } -function fD(t) { +function SD(t) { const e = "[a-z][a-zA-Z0-9_]*", n = { className: "string", begin: "\\$.{1}" @@ -51597,7 +51786,7 @@ function fD(t) { ] }; } -function gD(t) { +function bD(t) { return { name: "SML (Standard ML)", aliases: ["ml"], @@ -51663,7 +51852,7 @@ function gD(t) { ] }; } -function hD(t) { +function TD(t) { const e = { className: "variable", begin: /\b_+[a-zA-Z]\w*/ @@ -54265,7 +54454,7 @@ function hD(t) { ] }; } -function ED(t) { +function CD(t) { const e = t.regex, n = [ "functions", "model", @@ -54750,7 +54939,7 @@ function ED(t) { ] }; } -function SD(t) { +function yD(t) { return { name: "Stata", aliases: [ @@ -54788,7 +54977,7 @@ function SD(t) { ] }; } -function bD(t) { +function vD(t) { return { name: "STEP Part 21", aliases: [ @@ -54841,7 +55030,7 @@ function bD(t) { ] }; } -const TD = (t) => ({ +const RD = (t) => ({ IMPORTANT: { scope: "meta", begin: "!important" @@ -54874,7 +55063,7 @@ const TD = (t) => ({ className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } -}), CD = [ +}), OD = [ "a", "abbr", "address", @@ -54947,7 +55136,7 @@ const TD = (t) => ({ "ul", "var", "video" -], yD = [ +], ND = [ "any-hover", "any-pointer", "aspect-ratio", @@ -54982,7 +55171,7 @@ const TD = (t) => ({ "max-width", "min-height", "max-height" -], vD = [ +], AD = [ "active", "any-link", "blank", @@ -55056,7 +55245,7 @@ const TD = (t) => ({ "visited", "where" // where() -], RD = [ +], ID = [ "after", "backdrop", "before", @@ -55071,7 +55260,7 @@ const TD = (t) => ({ "selection", "slotted", "spelling-error" -], OD = [ +], xD = [ "align-content", "align-items", "align-self", @@ -55434,8 +55623,8 @@ const TD = (t) => ({ // reverse makes sure longer attributes `font-weight` are matched fully // instead of getting false positives on say `font` ].reverse(); -function ND(t) { - const e = TD(t), n = "and or not only", r = { +function DD(t) { + const e = RD(t), n = "and or not only", r = { className: "variable", begin: "\\$" + t.IDENT_RE }, i = [ @@ -55502,17 +55691,17 @@ function ND(t) { }, // tags { - begin: "\\b(" + CD.join("|") + ")" + o, + begin: "\\b(" + OD.join("|") + ")" + o, className: "selector-tag" }, // psuedo selectors { className: "selector-pseudo", - begin: "&?:(" + vD.join("|") + ")" + o + begin: "&?:(" + AD.join("|") + ")" + o }, { className: "selector-pseudo", - begin: "&?:(:)?(" + RD.join("|") + ")" + o + begin: "&?:(:)?(" + ID.join("|") + ")" + o }, e.ATTRIBUTE_SELECTOR_MODE, { @@ -55523,7 +55712,7 @@ function ND(t) { keywords: { $pattern: /[a-z-]+/, keyword: n, - attribute: yD.join(" ") + attribute: ND.join(" ") }, contains: [e.CSS_NUMBER_MODE] } @@ -55570,7 +55759,7 @@ function ND(t) { // - must have whitespace after it { className: "attribute", - begin: "\\b(" + OD.join("|") + ")\\b", + begin: "\\b(" + xD.join("|") + ")\\b", starts: { // value container end: /;|$/, @@ -55592,7 +55781,7 @@ function ND(t) { ] }; } -function AD(t) { +function MD(t) { return { name: "SubUnit", case_insensitive: !0, @@ -55625,7 +55814,7 @@ function AD(t) { ] }; } -function ID(t) { +function wD(t) { return { name: "Tagger Script", contains: [ @@ -55665,7 +55854,7 @@ function ID(t) { ] }; } -function xD(t) { +function LD(t) { return { name: "Test Anything Protocol", case_insensitive: !0, @@ -55702,7 +55891,7 @@ function xD(t) { ] }; } -function DD(t) { +function kD(t) { const e = t.regex, n = /[a-zA-Z_][a-zA-Z0-9_]*/, r = { className: "number", variants: [ @@ -55877,7 +56066,7 @@ function DD(t) { ] }; } -function MD(t) { +function PD(t) { const e = [ "bool", "byte", @@ -55944,7 +56133,7 @@ function MD(t) { ] }; } -function wD(t) { +function FD(t) { const e = { className: "number", begin: "[1-9][0-9]*", @@ -56101,7 +56290,7 @@ function wD(t) { ] }; } -function LD(t) { +function BD(t) { const e = t.regex, n = [ "absolute_url", "asset|0", @@ -56326,7 +56515,7 @@ function LD(t) { ] }; } -function kD(t) { +function UD(t) { return { name: "Vala", keywords: { @@ -56365,7 +56554,7 @@ function kD(t) { ] }; } -function PD(t) { +function HD(t) { const e = t.regex, n = [ "lcase", "month", @@ -56564,7 +56753,7 @@ function PD(t) { ] }; } -function FD(t) { +function GD(t) { return { name: "VBScript in HTML", subLanguage: "xml", @@ -56577,7 +56766,7 @@ function FD(t) { ] }; } -function BD(t) { +function VD(t) { const e = t.regex, n = { $pattern: /\$?[\w]+(\$[\w]+)*/, keyword: [ @@ -57113,7 +57302,7 @@ function BD(t) { ] }; } -function UD(t) { +function YD(t) { const e = "\\d(_|\\d)*", n = "[eE][-+]?" + e, r = e + "(\\." + e + ")?(" + n + ")?", i = "\\w+", a = "\\b(" + (e + "#" + i + "(\\." + i + ")?#(" + n + ")?") + "|" + r + ")"; return { name: "VHDL", @@ -57304,7 +57493,7 @@ function UD(t) { ] }; } -function HD(t) { +function zD(t) { return { name: "Vim Script", keywords: { @@ -57373,7 +57562,7 @@ function HD(t) { ] }; } -function GD(t) { +function $D(t) { const e = t.regex, n = /[a-zA-Z]\w*/, r = [ "as", "break", @@ -57504,7 +57693,7 @@ function GD(t) { match: /\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/, scope: "title.class", keywords: { _: a } - }, g = t.C_NUMBER_MODE, E = { + }, g = t.C_NUMBER_MODE, S = { match: [ n, /\s*/, @@ -57519,7 +57708,7 @@ function GD(t) { 3: "operator", 6: "params" } - }, S = t.COMMENT( + }, E = t.COMMENT( /\/\*\*/, /\*\//, { contains: [ @@ -57614,12 +57803,12 @@ function GD(t) { g, h, p, - S, + E, t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE, f, u, - E, + S, c, l, d, @@ -57629,7 +57818,7 @@ function GD(t) { ] }; } -function VD(t) { +function qD(t) { return { name: "Intel x86 Assembly", case_insensitive: !0, @@ -57714,7 +57903,7 @@ function VD(t) { ] }; } -function YD(t) { +function WD(t) { const e = [ "if", "then", @@ -57899,7 +58088,7 @@ function YD(t) { ] }; } -function zD(t) { +function KD(t) { return { name: "XQuery", aliases: [ @@ -58211,7 +58400,7 @@ function zD(t) { ] }; } -function $D(t) { +function QD(t) { const e = { className: "string", contains: [t.BACKSLASH_ESCAPE], @@ -58305,7 +58494,7 @@ function $D(t) { ] }; } -function qD(t) { +function ZD(t) { const e = t.regex, n = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", i = "[a-zA-Z_]\\w*::", a = "(?!struct)(" + r + "|" + e.optional(i) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", s = { className: "type", begin: "\\b[a-z\\d_]*_t\\b" @@ -58519,7 +58708,7 @@ function qD(t) { "weak_ptr", "wstring", "wstring_view" - ], E = [ + ], S = [ "abort", "abs", "acos", @@ -58637,7 +58826,7 @@ function qD(t) { relevance: 0, keywords: { // Only for relevance, not highlighting. - _hint: E + _hint: S }, begin: e.concat( /\b/, @@ -58814,7 +59003,7 @@ function qD(t) { ) }; } -function WD(t) { +function XD(t) { const e = { type: [ "boolean", @@ -59180,7 +59369,7 @@ function WD(t) { "HIGH", "LOW" ] - }, n = qD(t), r = ( + }, n = ZD(t), r = ( /** @type {Record} */ n.keywords ); @@ -59195,7 +59384,7 @@ function WD(t) { ...e.built_in ], r._hints = e._hints, n.name = "Arduino", n.aliases = ["ino"], n.supersetOf = "cpp", n; } -function KD(t) { +function jD(t) { const e = t.regex, n = {}, r = { begin: /\$\{/, end: /\}/, @@ -59302,7 +59491,7 @@ function KD(t) { ], f = [ "true", "false" - ], g = { match: /(\/[a-z._-]+)+/ }, E = [ + ], g = { match: /(\/[a-z._-]+)+/ }, S = [ "break", "cd", "continue", @@ -59321,7 +59510,7 @@ function KD(t) { "trap", "umask", "unset" - ], S = [ + ], E = [ "alias", "bind", "builtin", @@ -59525,8 +59714,8 @@ function KD(t) { keyword: m, literal: f, built_in: [ - ...E, ...S, + ...E, // Shell modifiers "set", "shopt", @@ -59552,7 +59741,7 @@ function KD(t) { ] }; } -function QD(t) { +function JD(t) { const e = t.regex, n = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", i = "[a-zA-Z_]\\w*::", a = "(" + r + "|" + e.optional(i) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", s = { className: "type", variants: [ @@ -59678,14 +59867,14 @@ function QD(t) { literal: "true false NULL", // TODO: apply hinting work similar to what was done in cpp.js 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" - }, E = [ + }, S = [ d, s, n, t.C_BLOCK_COMMENT_MODE, u, c - ], S = { + ], E = { // This mode covers expression context where we can't expect a function // definition and shouldn't highlight anything that looks like one: // `return some()`, `else if()`, `(x*sum(1, 2))` @@ -59704,12 +59893,12 @@ function QD(t) { } ], keywords: g, - contains: E.concat([ + contains: S.concat([ { begin: /\(/, end: /\)/, keywords: g, - contains: E.concat(["self"]), + contains: S.concat(["self"]), relevance: 0 } ]), @@ -59784,9 +59973,9 @@ function QD(t) { disableAutodetect: !0, illegal: "]+>") + ")", s = { className: "type", begin: "\\b[a-z\\d_]*_t\\b" @@ -60025,7 +60214,7 @@ function ZD(t) { "weak_ptr", "wstring", "wstring_view" - ], E = [ + ], S = [ "abort", "abs", "acos", @@ -60143,7 +60332,7 @@ function ZD(t) { relevance: 0, keywords: { // Only for relevance, not highlighting. - _hint: E + _hint: S }, begin: e.concat( /\b/, @@ -60320,7 +60509,7 @@ function ZD(t) { ) }; } -function XD(t) { +function tM(t) { const e = [ "bool", "byte", @@ -60531,14 +60720,14 @@ function XD(t) { c, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE - ] }, E = { + ] }, S = { begin: "<", end: ">", contains: [ { beginKeywords: "in out" }, s ] - }, S = t.IDENT_RE + "(<" + t.IDENT_RE + "(\\s*,\\s*" + t.IDENT_RE + ")*>)?(\\[\\])?", b = { + }, E = t.IDENT_RE + "(<" + t.IDENT_RE + "(\\s*,\\s*" + t.IDENT_RE + ")*>)?(\\[\\])?", b = { // prevents expressions like `@class` from incorrect flagging // `class` as a keyword begin: "@" + t.IDENT_RE, @@ -60594,7 +60783,7 @@ function XD(t) { contains: [ { beginKeywords: "where class" }, s, - E, + S, t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE ] @@ -60617,7 +60806,7 @@ function XD(t) { illegal: /[^\s:]/, contains: [ s, - E, + S, t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE ] @@ -60645,7 +60834,7 @@ function XD(t) { }, { className: "function", - begin: "(" + S + "\\s+)+" + t.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(", + begin: "(" + E + "\\s+)+" + t.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(", returnBegin: !0, end: /\s*[{;=]/, excludeEnd: !0, @@ -60661,7 +60850,7 @@ function XD(t) { returnBegin: !0, contains: [ t.TITLE_MODE, - E + S ], relevance: 0 }, @@ -60688,7 +60877,7 @@ function XD(t) { ] }; } -const jD = (t) => ({ +const nM = (t) => ({ IMPORTANT: { scope: "meta", begin: "!important" @@ -60721,7 +60910,7 @@ const jD = (t) => ({ className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } -}), JD = [ +}), rM = [ "a", "abbr", "address", @@ -60794,7 +60983,7 @@ const jD = (t) => ({ "ul", "var", "video" -], eM = [ +], iM = [ "any-hover", "any-pointer", "aspect-ratio", @@ -60829,7 +61018,7 @@ const jD = (t) => ({ "max-width", "min-height", "max-height" -], tM = [ +], oM = [ "active", "any-link", "blank", @@ -60903,7 +61092,7 @@ const jD = (t) => ({ "visited", "where" // where() -], nM = [ +], aM = [ "after", "backdrop", "before", @@ -60918,7 +61107,7 @@ const jD = (t) => ({ "selection", "slotted", "spelling-error" -], rM = [ +], sM = [ "align-content", "align-items", "align-self", @@ -61281,8 +61470,8 @@ const jD = (t) => ({ // reverse makes sure longer attributes `font-weight` are matched fully // instead of getting false positives on say `font` ].reverse(); -function iM(t) { - const e = t.regex, n = jD(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = "and or not only", o = /@-?\w[\w]*(-\w+)*/, a = "[a-zA-Z-][a-zA-Z0-9_-]*", s = [ +function lM(t) { + const e = t.regex, n = nM(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = "and or not only", o = /@-?\w[\w]*(-\w+)*/, a = "[a-zA-Z-][a-zA-Z0-9_-]*", s = [ t.APOS_STRING_MODE, t.QUOTE_STRING_MODE ]; @@ -61316,8 +61505,8 @@ function iM(t) { { className: "selector-pseudo", variants: [ - { begin: ":(" + tM.join("|") + ")" }, - { begin: ":(:)?(" + nM.join("|") + ")" } + { begin: ":(" + oM.join("|") + ")" }, + { begin: ":(:)?(" + aM.join("|") + ")" } ] }, // we may actually need this (12/2020) @@ -61329,7 +61518,7 @@ function iM(t) { n.CSS_VARIABLE, { className: "attribute", - begin: "\\b(" + rM.join("|") + ")\\b" + begin: "\\b(" + sM.join("|") + ")\\b" }, // attribute values { @@ -61384,7 +61573,7 @@ function iM(t) { keywords: { $pattern: /[a-z-]+/, keyword: i, - attribute: eM.join(" ") + attribute: iM.join(" ") }, contains: [ { @@ -61399,12 +61588,12 @@ function iM(t) { }, { className: "selector-tag", - begin: "\\b(" + JD.join("|") + ")\\b" + begin: "\\b(" + rM.join("|") + ")\\b" } ] }; } -function oM(t) { +function cM(t) { const e = t.regex; return { name: "Diff", @@ -61455,7 +61644,7 @@ function oM(t) { ] }; } -function aM(t) { +function uM(t) { const o = { keyword: [ "break", @@ -61583,7 +61772,7 @@ function aM(t) { ] }; } -function sM(t) { +function dM(t) { const e = t.regex, n = /[_A-Za-z][_0-9A-Za-z]*/; return { name: "GraphQL", @@ -61650,7 +61839,7 @@ function sM(t) { ] }; } -function lM(t) { +function pM(t) { const e = t.regex, n = { className: "number", relevance: 0, @@ -61754,22 +61943,22 @@ function lM(t) { ] }; } -var Hr = "[0-9](_*[0-9])*", Vo = `\\.(${Hr})`, Yo = "[0-9a-fA-F](_*[0-9a-fA-F])*", f_ = { +var Hr = "[0-9](_*[0-9])*", Yo = `\\.(${Hr})`, zo = "[0-9a-fA-F](_*[0-9a-fA-F])*", b_ = { className: "number", variants: [ // DecimalFloatingPointLiteral // including ExponentPart - { begin: `(\\b(${Hr})((${Vo})|\\.)?|(${Vo}))[eE][+-]?(${Hr})[fFdD]?\\b` }, + { begin: `(\\b(${Hr})((${Yo})|\\.)?|(${Yo}))[eE][+-]?(${Hr})[fFdD]?\\b` }, // excluding ExponentPart - { begin: `\\b(${Hr})((${Vo})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, - { begin: `(${Vo})[fFdD]?\\b` }, + { begin: `\\b(${Hr})((${Yo})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, + { begin: `(${Yo})[fFdD]?\\b` }, { begin: `\\b(${Hr})[fFdD]\\b` }, // HexadecimalFloatingPointLiteral - { begin: `\\b0[xX]((${Yo})\\.?|(${Yo})?\\.(${Yo}))[pP][+-]?(${Hr})[fFdD]?\\b` }, + { begin: `\\b0[xX]((${zo})\\.?|(${zo})?\\.(${zo}))[pP][+-]?(${Hr})[fFdD]?\\b` }, // DecimalIntegerLiteral { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, // HexIntegerLiteral - { begin: `\\b0[xX](${Yo})[lL]?\\b` }, + { begin: `\\b0[xX](${zo})[lL]?\\b` }, // OctalIntegerLiteral { begin: "\\b0(_*[0-7])*[lL]?\\b" }, // BinaryIntegerLiteral @@ -61777,11 +61966,11 @@ var Hr = "[0-9](_*[0-9])*", Vo = `\\.(${Hr})`, Yo = "[0-9a-fA-F](_*[0-9a-fA-F])* ], relevance: 0 }; -function Yg(t, e, n) { - return n === -1 ? "" : t.replace(e, (r) => Yg(t, e, n - 1)); +function Zg(t, e, n) { + return n === -1 ? "" : t.replace(e, (r) => Zg(t, e, n - 1)); } -function cM(t) { - const e = t.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + Yg("(?:<" + n + "~~~(?:\\s*,\\s*" + n + "~~~)*>)?", /~~~/g, 2), l = { +function _M(t) { + const e = t.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + Zg("(?:<" + n + "~~~(?:\\s*,\\s*" + n + "~~~)*>)?", /~~~/g, 2), l = { keyword: [ "synchronized", "abstract", @@ -61976,7 +62165,7 @@ function cM(t) { c, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, - f_, + b_, t.C_BLOCK_COMMENT_MODE ] }, @@ -61984,12 +62173,12 @@ function cM(t) { t.C_BLOCK_COMMENT_MODE ] }, - f_, + b_, c ] }; } -const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ +const T_ = "[A-Za-z$_][0-9A-Za-z$_]*", mM = [ "as", // for exports "in", @@ -62032,14 +62221,14 @@ const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ "from", "export", "extends" -], dM = [ +], fM = [ "true", "false", "null", "undefined", "NaN", "Infinity" -], zg = [ +], Xg = [ // Fundamental objects "Object", "Function", @@ -62089,7 +62278,7 @@ const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ "Intl", // WebAssembly "WebAssembly" -], $g = [ +], jg = [ "Error", "EvalError", "InternalError", @@ -62098,7 +62287,7 @@ const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ "SyntaxError", "TypeError", "URIError" -], qg = [ +], Jg = [ "setInterval", "setTimeout", "clearInterval", @@ -62116,7 +62305,7 @@ const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ "encodeURIComponent", "escape", "unescape" -], pM = [ +], gM = [ "arguments", "this", "super", @@ -62128,16 +62317,16 @@ const g_ = "[A-Za-z$_][0-9A-Za-z$_]*", uM = [ "module", "global" // Node.js -], _M = [].concat( - qg, - zg, - $g +], hM = [].concat( + Jg, + Xg, + jg ); -function mM(t) { +function EM(t) { const e = t.regex, n = (v, { after: A }) => { const k = "", end: "" }, o = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = { @@ -62173,11 +62362,11 @@ function mM(t) { } } }, s = { - $pattern: g_, - keyword: uM, - literal: dM, - built_in: _M, - "variable.language": pM + $pattern: T_, + keyword: mM, + literal: fM, + built_in: hM, + "variable.language": gM }, l = "[0-9](_?[0-9])*", c = `\\.(${l})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = { className: "number", variants: [ @@ -62246,7 +62435,7 @@ function mM(t) { t.BACKSLASH_ESCAPE, p ] - }, S = { + }, E = { className: "comment", variants: [ t.COMMENT( @@ -62315,7 +62504,7 @@ function mM(t) { "self" ].concat(b) }); - const h = [].concat(S, p.contains), C = h.concat([ + const h = [].concat(E, p.contains), C = h.concat([ // eat recursive parens in sub expressions { begin: /\(/, @@ -62384,8 +62573,8 @@ function mM(t) { keywords: { _: [ // se we still get relevance credit for JS library classes - ...zg, - ...$g + ...Xg, + ...jg ] } }, O = { @@ -62430,7 +62619,7 @@ function mM(t) { match: e.concat( /\b/, Y([ - ...qg, + ...Jg, "super", "import" ]), @@ -62506,7 +62695,7 @@ function mM(t) { m, f, g, - S, + E, // Skip numbers when they are part of a variable name { match: /\$\d+/ }, d, @@ -62523,7 +62712,7 @@ function mM(t) { keywords: "return throw case", relevance: 0, contains: [ - S, + E, t.REGEXP_MODE, { className: "function", @@ -62640,7 +62829,7 @@ function mM(t) { ] }; } -function fM(t) { +function SM(t) { const e = { className: "attr", begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, @@ -62674,22 +62863,22 @@ function fM(t) { illegal: "\\S" }; } -var Gr = "[0-9](_*[0-9])*", zo = `\\.(${Gr})`, $o = "[0-9a-fA-F](_*[0-9a-fA-F])*", gM = { +var Gr = "[0-9](_*[0-9])*", $o = `\\.(${Gr})`, qo = "[0-9a-fA-F](_*[0-9a-fA-F])*", bM = { className: "number", variants: [ // DecimalFloatingPointLiteral // including ExponentPart - { begin: `(\\b(${Gr})((${zo})|\\.)?|(${zo}))[eE][+-]?(${Gr})[fFdD]?\\b` }, + { begin: `(\\b(${Gr})((${$o})|\\.)?|(${$o}))[eE][+-]?(${Gr})[fFdD]?\\b` }, // excluding ExponentPart - { begin: `\\b(${Gr})((${zo})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, - { begin: `(${zo})[fFdD]?\\b` }, + { begin: `\\b(${Gr})((${$o})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, + { begin: `(${$o})[fFdD]?\\b` }, { begin: `\\b(${Gr})[fFdD]\\b` }, // HexadecimalFloatingPointLiteral - { begin: `\\b0[xX]((${$o})\\.?|(${$o})?\\.(${$o}))[pP][+-]?(${Gr})[fFdD]?\\b` }, + { begin: `\\b0[xX]((${qo})\\.?|(${qo})?\\.(${qo}))[pP][+-]?(${Gr})[fFdD]?\\b` }, // DecimalIntegerLiteral { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, // HexIntegerLiteral - { begin: `\\b0[xX](${$o})[lL]?\\b` }, + { begin: `\\b0[xX](${qo})[lL]?\\b` }, // OctalIntegerLiteral { begin: "\\b0(_*[0-7])*[lL]?\\b" }, // BinaryIntegerLiteral @@ -62697,7 +62886,7 @@ var Gr = "[0-9](_*[0-9])*", zo = `\\.(${Gr})`, $o = "[0-9a-fA-F](_*[0-9a-fA-F])* ], relevance: 0 }; -function hM(t) { +function TM(t) { const e = { 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", @@ -62771,7 +62960,7 @@ function hM(t) { ] } ] - }, c = gM, u = t.COMMENT( + }, c = bM, u = t.COMMENT( "/\\*", "\\*/", { contains: [t.C_BLOCK_COMMENT_MODE] } @@ -62913,7 +63102,7 @@ function hM(t) { ] }; } -const EM = (t) => ({ +const CM = (t) => ({ IMPORTANT: { scope: "meta", begin: "!important" @@ -62946,7 +63135,7 @@ const EM = (t) => ({ className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } -}), SM = [ +}), yM = [ "a", "abbr", "address", @@ -63019,7 +63208,7 @@ const EM = (t) => ({ "ul", "var", "video" -], bM = [ +], vM = [ "any-hover", "any-pointer", "aspect-ratio", @@ -63054,7 +63243,7 @@ const EM = (t) => ({ "max-width", "min-height", "max-height" -], Wg = [ +], eh = [ "active", "any-link", "blank", @@ -63128,7 +63317,7 @@ const EM = (t) => ({ "visited", "where" // where() -], Kg = [ +], th = [ "after", "backdrop", "before", @@ -63143,7 +63332,7 @@ const EM = (t) => ({ "selection", "slotted", "spelling-error" -], TM = [ +], RM = [ "align-content", "align-items", "align-self", @@ -63505,9 +63694,9 @@ const EM = (t) => ({ "z-index" // reverse makes sure longer attributes `font-weight` are matched fully // instead of getting false positives on say `font` -].reverse(), CM = Wg.concat(Kg); -function yM(t) { - const e = EM(t), n = CM, r = "and or not only", i = "[\\w-]+", o = "(" + i + "|@\\{" + i + "\\})", a = [], s = [], l = function(b) { +].reverse(), OM = eh.concat(th); +function NM(t) { + const e = CM(t), n = OM, r = "and or not only", i = "[\\w-]+", o = "(" + i + "|@\\{" + i + "\\})", a = [], s = [], l = function(b) { return { // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings) className: "string", @@ -63522,7 +63711,7 @@ function yM(t) { }, u = { $pattern: /[a-z-]+/, keyword: r, - attribute: bM.join(" ") + attribute: vM.join(" ") }, d = { // used only to properly balance nested parens inside mixin call, def. arg list begin: "\\(", @@ -63583,7 +63772,7 @@ function yM(t) { e.CSS_VARIABLE, { className: "attribute", - begin: "\\b(" + TM.join("|") + ")\\b", + begin: "\\b(" + RM.join("|") + ")\\b", end: /(?=:)/, starts: { endsWithParent: !0, @@ -63621,7 +63810,7 @@ function yM(t) { returnEnd: !0, contains: p } - }, E = { + }, S = { // first parse unambiguous selectors (i.e. those not starting with tag) // then fall into the scary lookahead-discriminator variant. // this mode also handles mixin definitions and calls @@ -63648,7 +63837,7 @@ function yM(t) { c("variable", "@\\{" + i + "\\}"), // otherwise it’s identified as tag { - begin: "\\b(" + SM.join("|") + ")\\b", + begin: "\\b(" + yM.join("|") + ")\\b", className: "selector-tag" }, e.CSS_NUMBER_MODE, @@ -63659,11 +63848,11 @@ function yM(t) { e.ATTRIBUTE_SELECTOR_MODE, { className: "selector-pseudo", - begin: ":(" + Wg.join("|") + ")" + begin: ":(" + eh.join("|") + ")" }, { className: "selector-pseudo", - begin: ":(:)?(" + Kg.join("|") + ")" + begin: ":(:)?(" + th.join("|") + ")" }, { begin: /\(/, @@ -63676,19 +63865,19 @@ function yM(t) { // eat !important after mixin call or it will be colored as tag e.FUNCTION_DISPATCH ] - }, S = { + }, E = { begin: i + `:(:)?(${n.join("|")})`, returnBegin: !0, - contains: [E] + contains: [S] }; return a.push( t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE, f, g, - S, - m, E, + m, + S, _, e.FUNCTION_DISPATCH ), { @@ -63698,7 +63887,7 @@ function yM(t) { contains: a }; } -function vM(t) { +function AM(t) { const e = "\\[=*\\[", n = "\\]=*\\]", r = { begin: e, end: n, @@ -63753,7 +63942,7 @@ function vM(t) { ]) }; } -function RM(t) { +function IM(t) { const e = { className: "variable", variants: [ @@ -63813,7 +64002,7 @@ function RM(t) { ] }; } -function OM(t) { +function xM(t) { const e = t.regex, n = { begin: /<\/?[A-Za-z_]/, end: ">", @@ -64021,7 +64210,7 @@ function OM(t) { ] }; } -function NM(t) { +function DM(t) { const e = { 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+" @@ -64255,7 +64444,7 @@ function NM(t) { ] }; } -function AM(t) { +function MM(t) { const e = t.regex, n = [ "abs", "accept", @@ -64689,7 +64878,7 @@ function AM(t) { contains: p }; } -function IM(t) { +function wM(t) { const e = t.regex, n = /(?![A-Za-z0-9])(?![$])/, r = e.concat( /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n @@ -64861,7 +65050,7 @@ function IM(t) { "while", "xor", "yield" - ], E = [ + ], S = [ // Standard PHP library: // "Error|0", @@ -64964,14 +65153,14 @@ function IM(t) { q.push(V), V.toLowerCase() === V ? q.push(V.toUpperCase()) : q.push(V.toLowerCase()); }), q; })(f), - built_in: E + built_in: S }, h = ($) => $.map((q) => q.replace(/\|\d+$/, "")), C = { variants: [ { match: [ /new/, e.concat(p, "+"), // to prevent built ins from being confused as the class constructor call - e.concat("(?!", h(E).join("\\b|"), "\\b)"), + e.concat("(?!", h(S).join("\\b|"), "\\b)"), i ], scope: { @@ -65054,7 +65243,7 @@ function IM(t) { match: [ /\b/, // to prevent keywords from being confused as the function title - e.concat("(?!fn\\b|function\\b|", h(g).join("\\b|"), "|", h(E).join("\\b|"), "\\b)"), + e.concat("(?!fn\\b|function\\b|", h(g).join("\\b|"), "|", h(S).join("\\b|"), "\\b)"), r, e.concat(p, "*"), e.lookahead(/(?=\()/) @@ -65239,7 +65428,7 @@ function IM(t) { ] }; } -function xM(t) { +function LM(t) { return { name: "PHP template", subLanguage: "xml", @@ -65283,7 +65472,7 @@ function xM(t) { ] }; } -function DM(t) { +function kM(t) { return { name: "Plain text", aliases: [ @@ -65293,7 +65482,7 @@ function DM(t) { disableAutodetect: !0 }; } -function MM(t) { +function PM(t) { const e = t.regex, n = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), r = [ "and", "as", @@ -65580,7 +65769,7 @@ function MM(t) { endsWithParent: !0 } ] - }, E = { + }, S = { className: "params", variants: [ // Exclude params in functions without params @@ -65645,7 +65834,7 @@ function MM(t) { 1: "keyword", 3: "title.function" }, - contains: [E] + contains: [S] }, { variants: [ @@ -65680,14 +65869,14 @@ function MM(t) { end: /(?=#)|$/, contains: [ f, - E, + S, d ] } ] }; } -function wM(t) { +function FM(t) { return { aliases: ["pycon"], contains: [ @@ -65710,7 +65899,7 @@ function wM(t) { ] }; } -function LM(t) { +function BM(t) { const e = t.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = e.either( // Special case: only hexadecimal binary powers can contain fractions /0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, @@ -65914,7 +66103,7 @@ function LM(t) { ] }; } -function kM(t) { +function UM(t) { const e = t.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = e.either( /\b([A-Z]+[a-z0-9]+)+/, // ends in caps @@ -66299,7 +66488,7 @@ function kM(t) { contains: [t.SHEBANG({ binary: "ruby" })].concat(M).concat(c).concat(T) }; } -function PM(t) { +function HM(t) { const e = t.regex, n = { className: "title.function.invoke", relevance: 0, @@ -66587,7 +66776,7 @@ function PM(t) { ] }; } -const FM = (t) => ({ +const GM = (t) => ({ IMPORTANT: { scope: "meta", begin: "!important" @@ -66620,7 +66809,7 @@ const FM = (t) => ({ className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } -}), BM = [ +}), VM = [ "a", "abbr", "address", @@ -66693,7 +66882,7 @@ const FM = (t) => ({ "ul", "var", "video" -], UM = [ +], YM = [ "any-hover", "any-pointer", "aspect-ratio", @@ -66728,7 +66917,7 @@ const FM = (t) => ({ "max-width", "min-height", "max-height" -], HM = [ +], zM = [ "active", "any-link", "blank", @@ -66802,7 +66991,7 @@ const FM = (t) => ({ "visited", "where" // where() -], GM = [ +], $M = [ "after", "backdrop", "before", @@ -66817,7 +67006,7 @@ const FM = (t) => ({ "selection", "slotted", "spelling-error" -], VM = [ +], qM = [ "align-content", "align-items", "align-self", @@ -67180,8 +67369,8 @@ const FM = (t) => ({ // reverse makes sure longer attributes `font-weight` are matched fully // instead of getting false positives on say `font` ].reverse(); -function YM(t) { - const e = FM(t), n = GM, r = HM, i = "@[a-z-]+", o = "and or not only", s = { +function WM(t) { + const e = GM(t), n = $M, r = zM, i = "@[a-z-]+", o = "and or not only", s = { className: "variable", begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b", relevance: 0 @@ -67209,7 +67398,7 @@ function YM(t) { e.ATTRIBUTE_SELECTOR_MODE, { className: "selector-tag", - begin: "\\b(" + BM.join("|") + ")\\b", + begin: "\\b(" + VM.join("|") + ")\\b", // was there, before, but why? relevance: 0 }, @@ -67231,7 +67420,7 @@ function YM(t) { e.CSS_VARIABLE, { className: "attribute", - begin: "\\b(" + VM.join("|") + ")\\b" + begin: "\\b(" + qM.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" }, { @@ -67266,7 +67455,7 @@ function YM(t) { keywords: { $pattern: /[a-z-]+/, keyword: o, - attribute: UM.join(" ") + attribute: YM.join(" ") }, contains: [ { @@ -67288,7 +67477,7 @@ function YM(t) { ] }; } -function zM(t) { +function KM(t) { return { name: "Shell Session", aliases: [ @@ -67310,7 +67499,7 @@ function zM(t) { ] }; } -function $M(t) { +function QM(t) { const e = t.regex, n = t.COMMENT("--", "$"), r = { className: "string", variants: [ @@ -67869,12 +68058,12 @@ function $M(t) { className: "operator", begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/, relevance: 0 - }, E = { + }, S = { begin: e.concat(/\b/, e.either(..._), /\s*\(/), relevance: 0, keywords: { built_in: _ } }; - function S(b, { + function E(b, { exceptions: h, when: C } = {}) { @@ -67888,7 +68077,7 @@ function $M(t) { illegal: /[{}]|<\//, keywords: { $pattern: /\b[\w\.]+/, - keyword: S(m, { when: (b) => b.length < 3 }), + keyword: E(m, { when: (b) => b.length < 3 }), literal: o, type: s, built_in: d @@ -67908,7 +68097,7 @@ function $M(t) { className: "type", begin: e.either(...a) }, - E, + S, f, r, i, @@ -67919,38 +68108,38 @@ function $M(t) { ] }; } -function Qg(t) { +function nh(t) { return t ? typeof t == "string" ? t : t.source : null; } -function qo(t) { +function Wo(t) { return ye("(?=", t, ")"); } function ye(...t) { - return t.map((n) => Qg(n)).join(""); + return t.map((n) => nh(n)).join(""); } -function qM(t) { +function ZM(t) { const e = t[t.length - 1]; return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {}; } function ut(...t) { - return "(" + (qM(t).capture ? "" : "?:") + t.map((r) => Qg(r)).join("|") + ")"; + return "(" + (ZM(t).capture ? "" : "?:") + t.map((r) => nh(r)).join("|") + ")"; } -const cu = (t) => ye( +const _u = (t) => ye( /\b/, t, /\w$/.test(t) ? /\b/ : /\B/ -), WM = [ +), XM = [ "Protocol", // contextual "Type" // contextual -].map(cu), h_ = [ +].map(_u), C_ = [ "init", "self" -].map(cu), KM = [ +].map(_u), jM = [ "Any", "Self" -], pl = [ +], ml = [ // strings below will be fed into the regular `keywords` engine while regex // will result in additional modes being created to scan for those keywords to // avoid conflicts with other rules @@ -68085,11 +68274,11 @@ const cu = (t) => ye( "while", "willSet" // contextual -], E_ = [ +], y_ = [ "false", "nil", "true" -], QM = [ +], JM = [ "assignment", "associativity", "higherThan", @@ -68097,7 +68286,7 @@ const cu = (t) => ye( "lowerThan", "none", "right" -], ZM = [ +], ew = [ "#colorLiteral", "#column", "#dsohandle", @@ -68117,7 +68306,7 @@ const cu = (t) => ye( "#selector", "#sourceLocation", "#warning" -], S_ = [ +], v_ = [ "abs", "all", "any", @@ -68152,7 +68341,7 @@ const cu = (t) => ye( "withVaList", "withoutActuallyEscaping", "zip" -], Zg = ut( +], rh = ut( /[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, @@ -68171,8 +68360,8 @@ const cu = (t) => ye( /[\u3001-\u3003]/, /[\u3008-\u3020]/, /[\u3030]/ -), Xg = ut( - Zg, +), ih = ut( + rh, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, /[\u20D0-\u20FF]/, @@ -68180,7 +68369,7 @@ const cu = (t) => ye( /[\uFE20-\uFE2F]/ // TODO: The following characters are also allowed, but the regex isn't supported yet. // /[\u{E0100}-\u{E01EF}]/u -), _l = ye(Zg, Xg, "*"), jg = ut( +), fl = ye(rh, ih, "*"), oh = ut( /[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, @@ -68198,11 +68387,11 @@ const cu = (t) => ye( // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u, // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u, // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u -), Ya = ut( - jg, +), za = ut( + oh, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/ -), dn = ye(jg, Ya, "*"), ml = ye(/[A-Z]/, Ya, "*"), XM = [ +), dn = ye(oh, za, "*"), gl = ye(/[A-Z]/, za, "*"), tw = [ "attached", "autoclosure", ye(/convention\(/, ut("swift", "block", "c"), /\)/), @@ -68237,7 +68426,7 @@ const cu = (t) => ye( "unknown", "usableFromInline", "warn_unqualified_access" -], jM = [ +], nw = [ "iOS", "iOSApplicationExtension", "macOS", @@ -68250,7 +68439,7 @@ const cu = (t) => ye( "tvOSApplicationExtension", "swift" ]; -function JM(t) { +function rw(t) { const e = { match: /\s+/, relevance: 0 @@ -68264,17 +68453,17 @@ function JM(t) { ], i = { match: [ /\./, - ut(...WM, ...h_) + ut(...XM, ...C_) ], className: { 2: "keyword" } }, o = { // Consume .keyword to prevent highlighting properties and methods as keywords. - match: ye(/\./, ut(...pl)), + match: ye(/\./, ut(...ml)), relevance: 0 - }, a = pl.filter((de) => typeof de == "string").concat(["_|0"]), s = pl.filter((de) => typeof de != "string").concat(KM).map(cu), l = { variants: [ + }, a = ml.filter((de) => typeof de == "string").concat(["_|0"]), s = ml.filter((de) => typeof de != "string").concat(jM).map(_u), l = { variants: [ { className: "keyword", - match: ut(...s, ...h_) + match: ut(...s, ...C_) } ] }, c = { $pattern: ut( @@ -68283,19 +68472,19 @@ function JM(t) { /#\w+/ // number keywords ), - keyword: a.concat(ZM), - literal: E_ + keyword: a.concat(ew), + literal: y_ }, u = [ i, o, l ], d = { // Consume .built_in to prevent highlighting properties and methods. - match: ye(/\./, ut(...S_)), + match: ye(/\./, ut(...v_)), relevance: 0 }, p = { className: "built_in", - match: ye(/\b/, ut(...S_), /(?=\()/) + match: ye(/\b/, ut(...v_), /(?=\()/) }, _ = [ d, p @@ -68307,25 +68496,25 @@ function JM(t) { className: "operator", relevance: 0, variants: [ - { match: _l }, + { match: fl }, { // dot-operator: only operators that start with a dot are allowed to use dots as // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more // characters that may also include dots. - match: `\\.(\\.|${Xg})+` + match: `\\.(\\.|${ih})+` } ] }, g = [ m, f - ], E = "([0-9]_*)+", S = "([0-9a-fA-F]_*)+", b = { + ], S = "([0-9]_*)+", E = "([0-9a-fA-F]_*)+", b = { className: "number", relevance: 0, variants: [ // decimal floating-point-literal (subsumes decimal-literal) - { match: `\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b` }, + { match: `\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b` }, // hexadecimal floating-point-literal (subsumes hexadecimal-literal) - { match: `\\b0x(${S})(\\.(${S}))?([pP][+-]?(${E}))?\\b` }, + { match: `\\b0x(${E})(\\.(${E}))?([pP][+-]?(${S}))?\\b` }, // octal-literal { match: /\b0o([0-7]_*)+\b/ }, // binary-literal @@ -68385,9 +68574,9 @@ function JM(t) { end: /\//, contains: M }, Y = (de) => { - const ke = ye(de, /\//), Qe = ye(/\//, de); + const Pe = ye(de, /\//), Qe = ye(/\//, de); return { - begin: ke, + begin: Pe, end: Qe, contains: [ ...M, @@ -68411,7 +68600,7 @@ function JM(t) { match: /\$\d+/ }, J = { className: "variable", - match: `\\$${Ya}+` + match: `\\$${za}+` }, y = [ q, V, @@ -68423,7 +68612,7 @@ function JM(t) { { begin: /\(/, end: /\)/, - keywords: jM, + keywords: nw, contains: [ ...g, b, @@ -68433,7 +68622,7 @@ function JM(t) { ] } }, A = { scope: "keyword", - match: ye(/@/, ut(...XM)) + match: ye(/@/, ut(...tw)) }, k = { scope: "meta", match: ye(/@/, dn) @@ -68442,18 +68631,18 @@ function JM(t) { A, k ], z = { - match: qo(/\b[A-Z]/), + match: Wo(/\b[A-Z]/), relevance: 0, contains: [ { // Common Apple frameworks, for relevance boost className: "type", - match: ye(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, Ya, "+") + match: ye(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, za, "+") }, { // Type identifier className: "type", - match: ml, + match: gl, relevance: 0 }, { @@ -68468,7 +68657,7 @@ function JM(t) { }, { // Protocol composition - match: ye(/\s+&\s+/, qo(ml)), + match: ye(/\s+&\s+/, Wo(gl)), relevance: 0 } ] @@ -68518,8 +68707,8 @@ function JM(t) { ] }, Be = { begin: ut( - qo(ye(dn, /\s*:/)), - qo(ye(dn, /\s+/, dn, /\s*:/)) + Wo(ye(dn, /\s*:/)), + Wo(ye(dn, /\s+/, dn, /\s*:/)) ), end: /:/, relevance: 0, @@ -68554,7 +68743,7 @@ function JM(t) { match: [ /(func|macro)/, /\s+/, - ut(q.match, dn, _l) + ut(q.match, dn, fl) ], className: { 1: "keyword", @@ -68585,7 +68774,7 @@ function JM(t) { match: [ /operator/, /\s+/, - _l + fl ], className: { 1: "keyword", @@ -68595,7 +68784,7 @@ function JM(t) { begin: [ /precedencegroup/, /\s+/, - ml + gl ], className: { 1: "keyword", @@ -68603,14 +68792,14 @@ function JM(t) { }, contains: [z], keywords: [ - ...QM, - ...E_ + ...JM, + ...y_ ], end: /}/ }; for (const de of O.variants) { - const ke = de.contains.find((he) => he.label === "interpol"); - ke.keywords = c; + const Pe = de.contains.find((he) => he.label === "interpol"); + Pe.keywords = c; const Qe = [ ...u, ..._, @@ -68619,7 +68808,7 @@ function JM(t) { O, ...y ]; - ke.contains = [ + Pe.contains = [ ...Qe, { begin: /\(/, @@ -68672,7 +68861,7 @@ function JM(t) { ] }; } -const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ +const $a = "[A-Za-z$_][0-9A-Za-z$_]*", ah = [ "as", // for exports "in", @@ -68715,14 +68904,14 @@ const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ "from", "export", "extends" -], eh = [ +], sh = [ "true", "false", "null", "undefined", "NaN", "Infinity" -], th = [ +], lh = [ // Fundamental objects "Object", "Function", @@ -68772,7 +68961,7 @@ const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ "Intl", // WebAssembly "WebAssembly" -], nh = [ +], ch = [ "Error", "EvalError", "InternalError", @@ -68781,7 +68970,7 @@ const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ "SyntaxError", "TypeError", "URIError" -], rh = [ +], uh = [ "setInterval", "setTimeout", "clearInterval", @@ -68799,7 +68988,7 @@ const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ "encodeURIComponent", "escape", "unescape" -], ih = [ +], dh = [ "arguments", "this", "super", @@ -68811,16 +69000,16 @@ const za = "[A-Za-z$_][0-9A-Za-z$_]*", Jg = [ "module", "global" // Node.js -], oh = [].concat( - rh, - th, - nh +], ph = [].concat( + uh, + lh, + ch ); -function ew(t) { +function iw(t) { const e = t.regex, n = (v, { after: A }) => { const k = "", end: "" }, o = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = { @@ -68856,11 +69045,11 @@ function ew(t) { } } }, s = { - $pattern: za, - keyword: Jg, - literal: eh, - built_in: oh, - "variable.language": ih + $pattern: $a, + keyword: ah, + literal: sh, + built_in: ph, + "variable.language": dh }, l = "[0-9](_?[0-9])*", c = `\\.(${l})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = { className: "number", variants: [ @@ -68929,7 +69118,7 @@ function ew(t) { t.BACKSLASH_ESCAPE, p ] - }, S = { + }, E = { className: "comment", variants: [ t.COMMENT( @@ -68998,7 +69187,7 @@ function ew(t) { "self" ].concat(b) }); - const h = [].concat(S, p.contains), C = h.concat([ + const h = [].concat(E, p.contains), C = h.concat([ // eat recursive parens in sub expressions { begin: /\(/, @@ -69067,8 +69256,8 @@ function ew(t) { keywords: { _: [ // se we still get relevance credit for JS library classes - ...th, - ...nh + ...lh, + ...ch ] } }, O = { @@ -69113,7 +69302,7 @@ function ew(t) { match: e.concat( /\b/, Y([ - ...rh, + ...uh, "super", "import" ]), @@ -69189,7 +69378,7 @@ function ew(t) { m, f, g, - S, + E, // Skip numbers when they are part of a variable name { match: /\$\d+/ }, d, @@ -69206,7 +69395,7 @@ function ew(t) { keywords: "return throw case", relevance: 0, contains: [ - S, + E, t.REGEXP_MODE, { className: "function", @@ -69323,8 +69512,8 @@ function ew(t) { ] }; } -function tw(t) { - const e = ew(t), n = za, r = [ +function ow(t) { + const e = iw(t), n = $a, r = [ "any", "void", "number", @@ -69367,11 +69556,11 @@ function tw(t) { "enum", "override" ], l = { - $pattern: za, - keyword: Jg.concat(s), - literal: eh, - built_in: oh.concat(r), - "variable.language": ih + $pattern: $a, + keyword: ah.concat(s), + literal: sh, + built_in: ph.concat(r), + "variable.language": dh }, c = { className: "meta", begin: "@" + n @@ -69397,7 +69586,7 @@ function tw(t) { ] }), e; } -function nw(t) { +function aw(t) { const e = t.regex, n = { className: "string", begin: /"(""|[^/n])"C\b/ @@ -69516,7 +69705,7 @@ function nw(t) { ] }; } -function rw(t) { +function sw(t) { t.regex; const e = t.COMMENT(/\(;/, /;\)/); e.contains.push("self"); @@ -69627,7 +69816,7 @@ function rw(t) { ] }; } -function iw(t) { +function lw(t) { const e = t.regex, n = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = { className: "symbol", begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ @@ -69843,7 +70032,7 @@ function iw(t) { ] }; } -function ow(t) { +function cw(t) { const e = "true false yes no null", n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", r = { className: "attr", variants: [ @@ -70007,213 +70196,213 @@ function ow(t) { contains: f }; } -const aw = { - arduino: WD, - bash: KD, - c: QD, - cpp: ZD, - csharp: XD, - css: iM, - diff: oM, - go: aM, - graphql: sM, - ini: lM, - java: cM, - javascript: mM, - json: fM, - kotlin: hM, - less: yM, - lua: vM, - makefile: RM, - markdown: OM, - objectivec: NM, - perl: AM, - php: IM, - "php-template": xM, - plaintext: DM, - python: MM, - "python-repl": wM, - r: LM, - ruby: kM, - rust: PM, - scss: YM, - shell: zM, - sql: $M, - swift: JM, - typescript: tw, - vbnet: nw, - wasm: rw, - xml: iw, - yaml: ow -}, sw = { - ...aw, - "1c": MA, - abnf: wA, - accesslog: LA, - actionscript: kA, - ada: PA, - angelscript: FA, - apache: BA, - applescript: UA, - arcade: HA, - armasm: GA, - asciidoc: VA, - aspectj: YA, - autohotkey: zA, - autoit: $A, - avrasm: qA, - awk: WA, - axapta: KA, - basic: QA, - bnf: ZA, - brainfuck: XA, - cal: jA, - capnproto: JA, - ceylon: eI, - clean: tI, - clojure: nI, - "clojure-repl": rI, - cmake: iI, - coffeescript: dI, - coq: pI, - cos: _I, - crmsh: mI, - crystal: fI, - csp: gI, - d: hI, - dart: EI, - delphi: SI, - django: bI, - dns: TI, - dockerfile: CI, - dos: yI, - dsconfig: vI, - dts: RI, - dust: OI, - ebnf: NI, - elixir: AI, - elm: II, - erb: xI, - erlang: DI, - "erlang-repl": MI, - excel: wI, - fix: LI, - flix: kI, - fortran: PI, - fsharp: UI, - gams: HI, - gauss: GI, - gcode: VI, - gherkin: YI, - glsl: zI, - gml: $I, - golo: qI, - gradle: WI, - groovy: KI, - haml: QI, - handlebars: ZI, - haskell: XI, - haxe: jI, - hsp: JI, - http: ex, - hy: tx, - inform7: nx, - irpf90: rx, - isbl: ix, - "jboss-cli": ox, - julia: ax, - "julia-repl": sx, - lasso: lx, - latex: cx, - ldif: ux, - leaf: dx, - lisp: px, - livecodeserver: _x, - livescript: bx, - llvm: Tx, - lsl: Cx, - mathematica: vx, - matlab: Rx, - maxima: Ox, - mel: Nx, - mercury: Ax, - mipsasm: Ix, - mizar: xx, - mojolicious: Dx, - monkey: Mx, - moonscript: wx, - n1ql: Lx, - nestedtext: kx, - nginx: Px, - nim: Fx, - nix: Bx, - "node-repl": Ux, - nsis: Hx, - ocaml: Gx, - openscad: Vx, - oxygene: Yx, - parser3: zx, - pf: $x, - pgsql: qx, - pony: Wx, - powershell: Kx, - processing: Qx, - profile: Zx, - prolog: Xx, - properties: jx, - protobuf: Jx, - puppet: eD, - purebasic: tD, - q: nD, - qml: rD, - reasonml: iD, - rib: oD, - roboconf: aD, - routeros: sD, - rsl: lD, - ruleslanguage: cD, - sas: uD, - scala: dD, - scheme: pD, - scilab: _D, - smali: mD, - smalltalk: fD, - sml: gD, - sqf: hD, - stan: ED, - stata: SD, - step21: bD, - stylus: ND, - subunit: AD, - taggerscript: ID, - tap: xD, - tcl: DD, - thrift: MD, - tp: wD, - twig: LD, - vala: kD, - vbscript: PD, - "vbscript-html": FD, - verilog: BD, - vhdl: UD, - vim: HD, - wren: GD, - x86asm: VD, - xl: YD, - xquery: zD, - zephir: $D +const uw = { + arduino: XD, + bash: jD, + c: JD, + cpp: eM, + csharp: tM, + css: lM, + diff: cM, + go: uM, + graphql: dM, + ini: pM, + java: _M, + javascript: EM, + json: SM, + kotlin: TM, + less: NM, + lua: AM, + makefile: IM, + markdown: xM, + objectivec: DM, + perl: MM, + php: wM, + "php-template": LM, + plaintext: kM, + python: PM, + "python-repl": FM, + r: BM, + ruby: UM, + rust: HM, + scss: WM, + shell: KM, + sql: QM, + swift: rw, + typescript: ow, + vbnet: aw, + wasm: sw, + xml: lw, + yaml: cw +}, dw = { + ...uw, + "1c": PA, + abnf: FA, + accesslog: BA, + actionscript: UA, + ada: HA, + angelscript: GA, + apache: VA, + applescript: YA, + arcade: zA, + armasm: $A, + asciidoc: qA, + aspectj: WA, + autohotkey: KA, + autoit: QA, + avrasm: ZA, + awk: XA, + axapta: jA, + basic: JA, + bnf: eI, + brainfuck: tI, + cal: nI, + capnproto: rI, + ceylon: iI, + clean: oI, + clojure: aI, + "clojure-repl": sI, + cmake: lI, + coffeescript: fI, + coq: gI, + cos: hI, + crmsh: EI, + crystal: SI, + csp: bI, + d: TI, + dart: CI, + delphi: yI, + django: vI, + dns: RI, + dockerfile: OI, + dos: NI, + dsconfig: AI, + dts: II, + dust: xI, + ebnf: DI, + elixir: MI, + elm: wI, + erb: LI, + erlang: kI, + "erlang-repl": PI, + excel: FI, + fix: BI, + flix: UI, + fortran: HI, + fsharp: YI, + gams: zI, + gauss: $I, + gcode: qI, + gherkin: WI, + glsl: KI, + gml: QI, + golo: ZI, + gradle: XI, + groovy: jI, + haml: JI, + handlebars: ex, + haskell: tx, + haxe: nx, + hsp: rx, + http: ix, + hy: ox, + inform7: ax, + irpf90: sx, + isbl: lx, + "jboss-cli": cx, + julia: ux, + "julia-repl": dx, + lasso: px, + latex: _x, + ldif: mx, + leaf: fx, + lisp: gx, + livecodeserver: hx, + livescript: vx, + llvm: Rx, + lsl: Ox, + mathematica: Ax, + matlab: Ix, + maxima: xx, + mel: Dx, + mercury: Mx, + mipsasm: wx, + mizar: Lx, + mojolicious: kx, + monkey: Px, + moonscript: Fx, + n1ql: Bx, + nestedtext: Ux, + nginx: Hx, + nim: Gx, + nix: Vx, + "node-repl": Yx, + nsis: zx, + ocaml: $x, + openscad: qx, + oxygene: Wx, + parser3: Kx, + pf: Qx, + pgsql: Zx, + pony: Xx, + powershell: jx, + processing: Jx, + profile: eD, + prolog: tD, + properties: nD, + protobuf: rD, + puppet: iD, + purebasic: oD, + q: aD, + qml: sD, + reasonml: lD, + rib: cD, + roboconf: uD, + routeros: dD, + rsl: pD, + ruleslanguage: _D, + sas: mD, + scala: fD, + scheme: gD, + scilab: hD, + smali: ED, + smalltalk: SD, + sml: bD, + sqf: TD, + stan: CD, + stata: yD, + step21: vD, + stylus: DD, + subunit: MD, + taggerscript: wD, + tap: LD, + tcl: kD, + thrift: PD, + tp: FD, + twig: BD, + vala: UD, + vbscript: HD, + "vbscript-html": GD, + verilog: VD, + vhdl: YD, + vim: zD, + wren: $D, + x86asm: qD, + xl: WD, + xquery: KD, + zephir: QD }; -function ah(t) { +function _h(t) { return t instanceof Map ? t.clear = t.delete = t.set = function() { throw new Error("map is read-only"); } : t instanceof Set && (t.add = t.clear = t.delete = function() { throw new Error("set is read-only"); }), Object.freeze(t), Object.getOwnPropertyNames(t).forEach((e) => { const n = t[e], r = typeof n; - (r === "object" || r === "function") && !Object.isFrozen(n) && ah(n); + (r === "object" || r === "function") && !Object.isFrozen(n) && _h(n); }), t; } -class b_ { +class R_ { /** * @param {CompiledMode} mode */ @@ -70224,7 +70413,7 @@ class b_ { this.isMatchIgnored = !0; } } -function sh(t) { +function mh(t) { return t.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); } function kn(t, ...e) { @@ -70237,7 +70426,7 @@ function kn(t, ...e) { }), /** @type {T} */ n; } -const lw = "
", T_ = (t) => !!t.scope, cw = (t, { prefix: e }) => { +const pw = "", O_ = (t) => !!t.scope, _w = (t, { prefix: e }) => { if (t.startsWith("language:")) return t.replace("language:", "language-"); if (t.includes(".")) { @@ -70249,7 +70438,7 @@ const lw = "", T_ = (t) => !!t.scope, cw = (t, { prefix: e }) => { } return `${e}${t}`; }; -class uw { +class mw { /** * Creates a new HTMLRenderer * @@ -70264,15 +70453,15 @@ class uw { * * @param {string} text */ addText(e) { - this.buffer += sh(e); + this.buffer += mh(e); } /** * Adds a node open to the output stream (if needed) * * @param {Node} node */ openNode(e) { - if (!T_(e)) return; - const n = cw( + if (!O_(e)) return; + const n = _w( e.scope, { prefix: this.classPrefix } ); @@ -70283,7 +70472,7 @@ class uw { * * @param {Node} node */ closeNode(e) { - T_(e) && (this.buffer += lw); + O_(e) && (this.buffer += pw); } /** * returns the accumulated buffer @@ -70300,13 +70489,13 @@ class uw { this.buffer += ``; } } -const C_ = (t = {}) => { +const N_ = (t = {}) => { const e = { children: [] }; return Object.assign(e, t), e; }; -class uu { +class mu { constructor() { - this.rootNode = C_(), this.stack = [this.rootNode]; + this.rootNode = N_(), this.stack = [this.rootNode]; } get top() { return this.stack[this.stack.length - 1]; @@ -70320,7 +70509,7 @@ class uu { } /** @param {string} scope */ openNode(e) { - const n = C_({ scope: e }); + const n = N_({ scope: e }); this.add(n), this.stack.push(n); } closeNode() { @@ -70352,11 +70541,11 @@ class uu { */ static _collapse(e) { typeof e != "string" && e.children && (e.children.every((n) => typeof n == "string") ? e.children = [e.children.join("")] : e.children.forEach((n) => { - uu._collapse(n); + mu._collapse(n); })); } } -class dw extends uu { +class fw extends mu { /** * @param {*} options */ @@ -70385,50 +70574,50 @@ class dw extends uu { n && (r.scope = `language:${n}`), this.add(r); } toHTML() { - return new uw(this, this.options).value(); + return new mw(this, this.options).value(); } finalize() { return this.closeAllNodes(), !0; } } -function io(t) { +function oo(t) { return t ? typeof t == "string" ? t : t.source : null; } -function lh(t) { +function fh(t) { return vr("(?=", t, ")"); } -function pw(t) { +function gw(t) { return vr("(?:", t, ")*"); } -function _w(t) { +function hw(t) { return vr("(?:", t, ")?"); } function vr(...t) { - return t.map((n) => io(n)).join(""); + return t.map((n) => oo(n)).join(""); } -function mw(t) { +function Ew(t) { const e = t[t.length - 1]; return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {}; } -function du(...t) { - return "(" + (mw(t).capture ? "" : "?:") + t.map((r) => io(r)).join("|") + ")"; +function fu(...t) { + return "(" + (Ew(t).capture ? "" : "?:") + t.map((r) => oo(r)).join("|") + ")"; } -function ch(t) { +function gh(t) { return new RegExp(t.toString() + "|").exec("").length - 1; } -function fw(t, e) { +function Sw(t, e) { const n = t && t.exec(e); return n && n.index === 0; } -const gw = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; -function pu(t, { joinWith: e }) { +const bw = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; +function gu(t, { joinWith: e }) { let n = 0; return t.map((r) => { n += 1; const i = n; - let o = io(r), a = ""; + let o = oo(r), a = ""; for (; o.length > 0; ) { - const s = gw.exec(o); + const s = bw.exec(o); if (!s) { a += o; break; @@ -70438,7 +70627,7 @@ function pu(t, { joinWith: e }) { return a; }).map((r) => `(${r})`).join(e); } -const hw = /\b\B/, uh = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", dh = "\\b\\d+(\\.\\d+)?", ph = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", _h = "\\b(0b[01]+)", Ew = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Sw = (t = {}) => { +const Tw = /\b\B/, hh = "[a-zA-Z]\\w*", hu = "[a-zA-Z_]\\w*", Eh = "\\b\\d+(\\.\\d+)?", Sh = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", bh = "\\b(0b[01]+)", Cw = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", yw = (t = {}) => { const e = /^#![ ]*\//; return t.binary && (t.begin = vr( e, @@ -70455,24 +70644,24 @@ const hw = /\b\B/, uh = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", dh = "\\b\\d+(\\.\ n.index !== 0 && r.ignoreMatch(); } }, t); -}, oo = { +}, ao = { begin: "\\\\[\\s\\S]", relevance: 0 -}, bw = { +}, vw = { scope: "string", begin: "'", end: "'", illegal: "\\n", - contains: [oo] -}, Tw = { + contains: [ao] +}, Rw = { scope: "string", begin: '"', end: '"', illegal: "\\n", - contains: [oo] -}, Cw = { + contains: [ao] +}, Ow = { 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/ -}, Cs = function(t, e, n = {}) { +}, ys = function(t, e, n = {}) { const r = kn( { scope: "comment", @@ -70491,7 +70680,7 @@ const hw = /\b\B/, uh = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", dh = "\\b\\d+(\\.\ excludeBegin: !0, relevance: 0 }); - const i = du( + const i = fu( // list of common 1 and 2 letter words in English "I", "a", @@ -70538,44 +70727,44 @@ const hw = /\b\B/, uh = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", dh = "\\b\\d+(\\.\ // look for 3 words in a row } ), r; -}, yw = Cs("//", "$"), vw = Cs("/\\*", "\\*/"), Rw = Cs("#", "$"), Ow = { +}, Nw = ys("//", "$"), Aw = ys("/\\*", "\\*/"), Iw = ys("#", "$"), xw = { scope: "number", - begin: dh, + begin: Eh, relevance: 0 -}, Nw = { +}, Dw = { scope: "number", - begin: ph, + begin: Sh, relevance: 0 -}, Aw = { +}, Mw = { scope: "number", - begin: _h, + begin: bh, relevance: 0 -}, Iw = { +}, ww = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [ - oo, + ao, { begin: /\[/, end: /\]/, relevance: 0, - contains: [oo] + contains: [ao] } ] -}, xw = { +}, Lw = { scope: "title", - begin: uh, + begin: hh, relevance: 0 -}, Dw = { +}, kw = { scope: "title", - begin: _u, + begin: hu, relevance: 0 -}, Mw = { +}, Pw = { // excludes method names from keyword processing - begin: "\\.\\s*" + _u, + begin: "\\.\\s*" + hu, relevance: 0 -}, ww = function(t) { +}, Fw = function(t) { return Object.assign( t, { @@ -70590,67 +70779,67 @@ const hw = /\b\B/, uh = "[a-zA-Z]\\w*", _u = "[a-zA-Z_]\\w*", dh = "\\b\\d+(\\.\ } ); }; -var Wo = /* @__PURE__ */ Object.freeze({ +var Ko = /* @__PURE__ */ Object.freeze({ __proto__: null, - APOS_STRING_MODE: bw, - BACKSLASH_ESCAPE: oo, - BINARY_NUMBER_MODE: Aw, - BINARY_NUMBER_RE: _h, - COMMENT: Cs, - C_BLOCK_COMMENT_MODE: vw, - C_LINE_COMMENT_MODE: yw, - C_NUMBER_MODE: Nw, - C_NUMBER_RE: ph, - END_SAME_AS_BEGIN: ww, - HASH_COMMENT_MODE: Rw, - IDENT_RE: uh, - MATCH_NOTHING_RE: hw, - METHOD_GUARD: Mw, - NUMBER_MODE: Ow, - NUMBER_RE: dh, - PHRASAL_WORDS_MODE: Cw, - QUOTE_STRING_MODE: Tw, - REGEXP_MODE: Iw, - RE_STARTERS_RE: Ew, - SHEBANG: Sw, - TITLE_MODE: xw, - UNDERSCORE_IDENT_RE: _u, - UNDERSCORE_TITLE_MODE: Dw + APOS_STRING_MODE: vw, + BACKSLASH_ESCAPE: ao, + BINARY_NUMBER_MODE: Mw, + BINARY_NUMBER_RE: bh, + COMMENT: ys, + C_BLOCK_COMMENT_MODE: Aw, + C_LINE_COMMENT_MODE: Nw, + C_NUMBER_MODE: Dw, + C_NUMBER_RE: Sh, + END_SAME_AS_BEGIN: Fw, + HASH_COMMENT_MODE: Iw, + IDENT_RE: hh, + MATCH_NOTHING_RE: Tw, + METHOD_GUARD: Pw, + NUMBER_MODE: xw, + NUMBER_RE: Eh, + PHRASAL_WORDS_MODE: Ow, + QUOTE_STRING_MODE: Rw, + REGEXP_MODE: ww, + RE_STARTERS_RE: Cw, + SHEBANG: yw, + TITLE_MODE: Lw, + UNDERSCORE_IDENT_RE: hu, + UNDERSCORE_TITLE_MODE: kw }); -function Lw(t, e) { +function Bw(t, e) { t.input[t.index - 1] === "." && e.ignoreMatch(); } -function kw(t, e) { +function Uw(t, e) { t.className !== void 0 && (t.scope = t.className, delete t.className); } -function Pw(t, e) { - e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = Lw, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0)); +function Hw(t, e) { + e && t.beginKeywords && (t.begin = "\\b(" + t.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", t.__beforeBegin = Bw, t.keywords = t.keywords || t.beginKeywords, delete t.beginKeywords, t.relevance === void 0 && (t.relevance = 0)); } -function Fw(t, e) { - Array.isArray(t.illegal) && (t.illegal = du(...t.illegal)); +function Gw(t, e) { + Array.isArray(t.illegal) && (t.illegal = fu(...t.illegal)); } -function Bw(t, e) { +function Vw(t, e) { if (t.match) { if (t.begin || t.end) throw new Error("begin & end are not supported with match"); t.begin = t.match, delete t.match; } } -function Uw(t, e) { +function Yw(t, e) { t.relevance === void 0 && (t.relevance = 1); } -const Hw = (t, e) => { +const zw = (t, e) => { if (!t.beforeMatch) return; if (t.starts) throw new Error("beforeMatch cannot be used with starts"); const n = Object.assign({}, t); Object.keys(t).forEach((r) => { delete t[r]; - }), t.keywords = n.keywords, t.begin = vr(n.beforeMatch, lh(n.begin)), t.starts = { + }), t.keywords = n.keywords, t.begin = vr(n.beforeMatch, fh(n.begin)), t.starts = { relevance: 0, contains: [ Object.assign(n, { endsParent: !0 }) ] }, t.relevance = 0, delete n.beforeMatch; -}, Gw = [ +}, $w = [ "of", "and", "for", @@ -70665,70 +70854,70 @@ const Hw = (t, e) => { // common variable name "value" // common variable name -], Vw = "keyword"; -function mh(t, e, n = Vw) { +], qw = "keyword"; +function Th(t, e, n = qw) { const r = /* @__PURE__ */ Object.create(null); return typeof t == "string" ? i(n, t.split(" ")) : Array.isArray(t) ? i(n, t) : Object.keys(t).forEach(function(o) { Object.assign( r, - mh(t[o], e, o) + Th(t[o], e, o) ); }), r; function i(o, a) { e && (a = a.map((s) => s.toLowerCase())), a.forEach(function(s) { const l = s.split("|"); - r[l[0]] = [o, Yw(l[0], l[1])]; + r[l[0]] = [o, Ww(l[0], l[1])]; }); } } -function Yw(t, e) { - return e ? Number(e) : zw(t) ? 0 : 1; +function Ww(t, e) { + return e ? Number(e) : Kw(t) ? 0 : 1; } -function zw(t) { - return Gw.includes(t.toLowerCase()); +function Kw(t) { + return $w.includes(t.toLowerCase()); } -const y_ = {}, _r = (t) => { +const A_ = {}, _r = (t) => { console.error(t); -}, v_ = (t, ...e) => { +}, I_ = (t, ...e) => { console.log(`WARN: ${t}`, ...e); }, Lr = (t, e) => { - y_[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), y_[`${t}/${e}`] = !0); -}, $a = new Error(); -function fh(t, e, { key: n }) { + A_[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), A_[`${t}/${e}`] = !0); +}, qa = new Error(); +function Ch(t, e, { key: n }) { let r = 0; const i = t[n], o = {}, a = {}; for (let s = 1; s <= e.length; s++) - a[s + r] = i[s], o[s + r] = !0, r += ch(e[s - 1]); + a[s + r] = i[s], o[s + r] = !0, r += gh(e[s - 1]); t[n] = a, t[n]._emit = o, t[n]._multi = !0; } -function $w(t) { +function Qw(t) { if (Array.isArray(t.begin)) { if (t.skip || t.excludeBegin || t.returnBegin) - throw _r("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), $a; + throw _r("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), qa; if (typeof t.beginScope != "object" || t.beginScope === null) - throw _r("beginScope must be object"), $a; - fh(t, t.begin, { key: "beginScope" }), t.begin = pu(t.begin, { joinWith: "" }); + throw _r("beginScope must be object"), qa; + Ch(t, t.begin, { key: "beginScope" }), t.begin = gu(t.begin, { joinWith: "" }); } } -function qw(t) { +function Zw(t) { if (Array.isArray(t.end)) { if (t.skip || t.excludeEnd || t.returnEnd) - throw _r("skip, excludeEnd, returnEnd not compatible with endScope: {}"), $a; + throw _r("skip, excludeEnd, returnEnd not compatible with endScope: {}"), qa; if (typeof t.endScope != "object" || t.endScope === null) - throw _r("endScope must be object"), $a; - fh(t, t.end, { key: "endScope" }), t.end = pu(t.end, { joinWith: "" }); + throw _r("endScope must be object"), qa; + Ch(t, t.end, { key: "endScope" }), t.end = gu(t.end, { joinWith: "" }); } } -function Ww(t) { +function Xw(t) { t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope); } -function Kw(t) { - Ww(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), $w(t), qw(t); +function jw(t) { + Xw(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), Qw(t), Zw(t); } -function Qw(t) { +function Jw(t) { function e(a, s) { return new RegExp( - io(a), + oo(a), "m" + (t.case_insensitive ? "i" : "") + (t.unicodeRegex ? "u" : "") + (s ? "g" : "") ); } @@ -70738,12 +70927,12 @@ function Qw(t) { } // @ts-ignore addRule(s, l) { - l.position = this.position++, this.matchIndexes[this.matchAt] = l, this.regexes.push([l, s]), this.matchAt += ch(s) + 1; + l.position = this.position++, this.matchIndexes[this.matchAt] = l, this.regexes.push([l, s]), this.matchAt += gh(s) + 1; } compile() { this.regexes.length === 0 && (this.exec = () => null); const s = this.regexes.map((l) => l[1]); - this.matcherRe = e(pu(s, { joinWith: "|" }), !0), this.lastIndex = 0; + this.matcherRe = e(gu(s, { joinWith: "|" }), !0), this.lastIndex = 0; } /** @param {string} s */ exec(s) { @@ -70798,26 +70987,26 @@ function Qw(t) { ); if (a.isCompiled) return l; [ - kw, + Uw, // do this early so compiler extensions generally don't have to worry about // the distinction between match/begin - Bw, - Kw, - Hw + Vw, + jw, + zw ].forEach((u) => u(a, s)), t.compilerExtensions.forEach((u) => u(a, s)), a.__beforeBegin = null, [ - Pw, + Hw, // do this later so compiler extensions that come earlier have access to the // raw array if they wanted to perhaps manipulate it, etc. - Fw, + Gw, // default to 1 relevance if not specified - Uw + Yw ].forEach((u) => u(a, s)), a.isCompiled = !0; let c = null; - return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), c = a.keywords.$pattern, delete a.keywords.$pattern), c = c || /\w+/, a.keywords && (a.keywords = mh(a.keywords, t.case_insensitive)), l.keywordPatternRe = e(c, !0), s && (a.begin || (a.begin = /\B|\b/), l.beginRe = e(l.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (l.endRe = e(l.end)), l.terminatorEnd = io(l.end) || "", a.endsWithParent && s.terminatorEnd && (l.terminatorEnd += (a.end ? "|" : "") + s.terminatorEnd)), a.illegal && (l.illegalRe = e( + return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), c = a.keywords.$pattern, delete a.keywords.$pattern), c = c || /\w+/, a.keywords && (a.keywords = Th(a.keywords, t.case_insensitive)), l.keywordPatternRe = e(c, !0), s && (a.begin || (a.begin = /\B|\b/), l.beginRe = e(l.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (l.endRe = e(l.end)), l.terminatorEnd = oo(l.end) || "", a.endsWithParent && s.terminatorEnd && (l.terminatorEnd += (a.end ? "|" : "") + s.terminatorEnd)), a.illegal && (l.illegalRe = e( /** @type {RegExp | string} */ a.illegal )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(u) { - return Zw(u === "self" ? a : u); + return e2(u === "self" ? a : u); })), a.contains.forEach(function(u) { o( /** @type Mode */ @@ -70833,21 +71022,21 @@ function Qw(t) { t ); } -function gh(t) { - return t ? t.endsWithParent || gh(t.starts) : !1; +function yh(t) { + return t ? t.endsWithParent || yh(t.starts) : !1; } -function Zw(t) { +function e2(t) { return t.variants && !t.cachedVariants && (t.cachedVariants = t.variants.map(function(e) { return kn(t, { variants: null }, e); - })), t.cachedVariants ? t.cachedVariants : gh(t) ? kn(t, { starts: t.starts ? kn(t.starts) : null }) : Object.isFrozen(t) ? kn(t) : t; + })), t.cachedVariants ? t.cachedVariants : yh(t) ? kn(t, { starts: t.starts ? kn(t.starts) : null }) : Object.isFrozen(t) ? kn(t) : t; } -var Xw = "11.9.0"; -class jw extends Error { +var t2 = "11.9.0"; +class n2 extends Error { constructor(e, n) { super(e), this.name = "HTMLInjectionError", this.html = n; } } -const fl = sh, R_ = kn, O_ = Symbol("nomatch"), Jw = 7, hh = function(t) { +const hl = mh, x_ = kn, D_ = Symbol("nomatch"), r2 = 7, vh = function(t) { const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = []; let i = !0; const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] }; @@ -70861,7 +71050,7 @@ const fl = sh, R_ = kn, O_ = Symbol("nomatch"), Jw = 7, hh = function(t) { languages: null, // beta configuration options, subject to change, welcome to discuss // https://github.com/highlightjs/highlight.js/issues/1086 - __emitter: dw + __emitter: fw }; function l(y) { return s.noHighlightRe.test(y); @@ -70872,7 +71061,7 @@ const fl = sh, R_ = kn, O_ = Symbol("nomatch"), Jw = 7, hh = function(t) { const A = s.languageDetectRe.exec(v); if (A) { const k = O(A[1]); - return k || (v_(o.replace("{}", A[1])), v_("Falling back to no-highlight mode for this block.", y)), k ? A[1] : "no-highlight"; + return k || (I_(o.replace("{}", A[1])), I_("Falling back to no-highlight mode for this block.", y)), k ? A[1] : "no-highlight"; } return v.split(/\s+/).find((k) => l(k) || O(k)); } @@ -70906,7 +71095,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === const K = he.case_insensitive ? D[0].toLowerCase() : D[0], _e = z(P, K); if (_e) { const [De, Rr] = _e; - if (oe.addText(U), U = "", G[K] = (G[K] || 0) + 1, G[K] <= Jw && (He += Rr), De.startsWith("_")) + if (oe.addText(U), U = "", G[K] = (G[K] || 0) + 1, G[K] <= r2 && (He += Rr), De.startsWith("_")) U += D[0]; else { const I = he.classNameAliases[De] || De; @@ -70954,10 +71143,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return N.scope && typeof N.scope == "string" && oe.openNode(he.classNameAliases[N.scope] || N.scope), N.beginScope && (N.beginScope._wrap ? (ue(X, he.classNameAliases[N.beginScope._wrap] || N.beginScope._wrap), X = "") : N.beginScope._multi && (Be(N.beginScope, D), X = "")), P = Object.create(N, { parent: { value: P } }), P; } function We(N, D, U) { - let K = fw(N.endRe, U); + let K = Sw(N.endRe, U); if (K) { if (N["on:end"]) { - const _e = new b_(N); + const _e = new R_(N); N["on:end"](D, _e), _e.isMatchIgnored && (K = !1); } if (K) { @@ -70973,7 +71162,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return P.matcher.regexIndex === 0 ? (X += N[0], 1) : (bt = !0, 0); } function ht(N) { - const D = N[0], U = N.rule, K = new b_(U), _e = [U.__beforeBegin, U["on:begin"]]; + const D = N[0], U = N.rule, K = new R_(U), _e = [U.__beforeBegin, U["on:begin"]]; for (const De of _e) if (De && (De(N, K), K.isMatchIgnored)) return Ke(D); @@ -70982,7 +71171,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === function Ft(N) { const D = N[0], U = v.substring(N.index), K = We(P, N, U); if (!K) - return O_; + return D_; const _e = P; P.endScope && P.endScope._wrap ? (ie(), ue(D, P.endScope._wrap)) : P.endScope && P.endScope._multi ? (ie(), Be(P.endScope, N)) : _e.skip ? X += D : (_e.returnEnd || _e.excludeEnd || (X += D), ie(), _e.excludeEnd && (X = D)); do @@ -70996,26 +71185,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === D.scope && N.unshift(D.scope); N.forEach((D) => oe.openNode(D)); } - let ke = {}; + let Pe = {}; function Qe(N, D) { const U = D && D[0]; if (X += N, U == null) return ie(), 0; - if (ke.type === "begin" && D.type === "end" && ke.index === D.index && U === "") { + if (Pe.type === "begin" && D.type === "end" && Pe.index === D.index && U === "") { if (X += v.slice(D.index, D.index + 1), !i) { const K = new Error(`0 width match regex (${y})`); - throw K.languageName = y, K.badRule = ke.rule, K; + throw K.languageName = y, K.badRule = Pe.rule, K; } return 1; } - if (ke = D, D.type === "begin") + if (Pe = D, D.type === "begin") return ht(D); if (D.type === "illegal" && !A) { const K = new Error('Illegal lexeme "' + U + '" for mode "' + (P.scope || "") + '"'); throw K.mode = P, K; } else if (D.type === "end") { const K = Ft(D); - if (K !== O_) + if (K !== D_) return K; } if (D.type === "illegal" && U === "") @@ -71027,7 +71216,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === const he = O(y); if (!he) throw _r(o.replace("{}", y)), new Error('Unknown language: "' + y + '"'); - const zt = Qw(he); + const zt = Jw(he); let Et = "", P = k || zt; const et = {}, oe = new s.__emitter(s); de(); @@ -71057,7 +71246,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === if (N.message && N.message.includes("Illegal")) return { language: y, - value: fl(v), + value: hl(v), illegal: !0, relevance: 0, _illegalBy: { @@ -71072,7 +71261,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === if (i) return { language: y, - value: fl(v), + value: hl(v), illegal: !1, relevance: 0, errorRaised: N, @@ -71084,7 +71273,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === } function p(y) { const v = { - value: fl(y), + value: hl(y), illegal: !1, relevance: 0, _top: a, @@ -71126,7 +71315,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === return; } if (y.children.length > 0 && (s.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(y)), s.throwUnescapedHTML)) - throw new jw( + throw new n2( "One of your code blocks includes unescaped HTML.", y.innerHTML ); @@ -71143,12 +71332,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === }), V("after:highlightElement", { el: y, result: G, text: k }); } function g(y) { - s = R_(s, y); + s = x_(s, y); } - const E = () => { + const S = () => { h(), Lr("10.6.0", "initHighlighting() deprecated. Use highlightAll() now."); }; - function S() { + function E() { h(), Lr("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now."); } let b = !1; @@ -71231,39 +71420,39 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = y, k = v), A === // TODO: Remove with v12 API highlightBlock: J, configure: g, - initHighlighting: E, - initHighlightingOnLoad: S, + initHighlighting: S, + initHighlightingOnLoad: E, registerLanguage: T, unregisterLanguage: R, listLanguages: x, getLanguage: O, registerAliases: M, autoDetection: B, - inherit: R_, + inherit: x_, addPlugin: $, removePlugin: q }), t.debugMode = function() { i = !1; }, t.safeMode = function() { i = !0; - }, t.versionString = Xw, t.regex = { + }, t.versionString = t2, t.regex = { concat: vr, - lookahead: lh, - either: du, - optional: _w, - anyNumberOfTimes: pw + lookahead: fh, + either: fu, + optional: hw, + anyNumberOfTimes: gw }; - for (const y in Wo) - typeof Wo[y] == "object" && ah(Wo[y]); - return Object.assign(t, Wo), t; -}, ui = hh({}); -ui.newInstance = () => hh({}); -var e2 = ui; + for (const y in Ko) + typeof Ko[y] == "object" && _h(Ko[y]); + return Object.assign(t, Ko), t; +}, ui = vh({}); +ui.newInstance = () => vh({}); +var i2 = ui; ui.HighlightJS = ui; ui.default = ui; -const t2 = /* @__PURE__ */ Kc(e2), N_ = {}, n2 = "hljs-"; -function r2(t) { - const e = t2.newInstance(); +const o2 = /* @__PURE__ */ jc(i2), M_ = {}, a2 = "hljs-"; +function s2(t) { + const e = o2.newInstance(); return t && o(t), { highlight: n, highlightAuto: r, @@ -71273,10 +71462,10 @@ function r2(t) { registered: s }; function n(l, c, u) { - const d = u || N_, p = typeof d.prefix == "string" ? d.prefix : n2; + const d = u || M_, p = typeof d.prefix == "string" ? d.prefix : a2; if (!e.getLanguage(l)) throw new Error("Unknown language: `" + l + "` is not registered"); - e.configure({ __emitter: i2, classPrefix: p }); + e.configure({ __emitter: l2, classPrefix: p }); const _ = ( /** @type {HighlightResult & {_emitter: HastEmitter}} */ e.highlight(c, { ignoreIllegals: !0, language: l }) @@ -71292,7 +71481,7 @@ function r2(t) { return f.language = _.language, f.relevance = _.relevance, m; } function r(l, c) { - const d = (c || N_).subset || i(); + const d = (c || M_).subset || i(); let p = -1, _ = 0, m; for (; ++p < d.length; ) { const f = d[p]; @@ -71342,7 +71531,7 @@ function r2(t) { return !!e.getLanguage(l); } } -class i2 { +class l2 { /** * @param {Readonly} options * Configuration. @@ -71443,7 +71632,7 @@ class i2 { return ""; } } -const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-video-plugin"), Ri = "video_action", a2 = Ne.create({ +const c2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, w_ = new ve("aie-video-plugin"), Oi = "video_action", u2 = Ne.create({ name: "video", group: "block", addAttributes() { @@ -71499,13 +71688,13 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid const e = typeof this.options.uploadHeaders == "object" ? this.options.uploadHeaders : typeof this.options.uploadHeaders == "function" ? this.options.uploadHeaders() : {}; if (this.options.uploaderEvent && this.options.uploaderEvent.onUploadBefore && this.options.uploaderEvent.onUploadBefore(t, this.options.uploadUrl, e) === !1) return !1; - const n = Es(), { state: { tr: r }, view: i, schema: o } = this.editor; - r.selection.empty || r.deleteSelection(), i.dispatch(r.setMeta(Ri, { + const n = Ss(), { state: { tr: r }, view: i, schema: o } = this.editor; + r.selection.empty || r.deleteSelection(), i.dispatch(r.setMeta(Oi, { type: "add", id: n, pos: r.selection.from })); - const a = this.options.uploader || Xc(this.options.uploadUrl), s = this.options.uploadFormName || "video"; + const a = this.options.uploader || tu(this.options.uploadUrl), s = this.options.uploadFormName || "video"; return a(t, this.options.uploadUrl, e, s).then((l) => { var c; if ((c = this.options.uploaderEvent) != null && c.onSuccess) { @@ -71515,18 +71704,18 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid typeof u == "object" && (l = u); } if (l.errorCode === 0 && l.data && l.data.src) { - let d = A_.getState(this.editor.state).find(void 0, void 0, (p) => p.id == n); + let d = w_.getState(this.editor.state).find(void 0, void 0, (p) => p.id == n); i.dispatch(i.state.tr.insert(d[0].from, o.nodes.video.create({ src: l.data.src, poster: l.data.poster, width: l.data.width || 350, controls: l.data.controls || "true" - })).setMeta(Ri, { type: "remove", id: n })); + })).setMeta(Oi, { type: "remove", id: n })); } else - i.dispatch(r.setMeta(Ri, { type: "remove", id: n })), this.options.uploaderEvent && this.options.uploaderEvent.onFailed && this.options.uploaderEvent.onFailed(t, l); + i.dispatch(r.setMeta(Oi, { type: "remove", id: n })), this.options.uploaderEvent && this.options.uploaderEvent.onFailed && this.options.uploaderEvent.onFailed(t, l); }).catch((l) => { const { state: { tr: c }, view: u } = this.editor; - u.dispatch(c.setMeta(Ri, { type: "remove", id: n })), this.options.uploaderEvent && this.options.uploaderEvent.onError && this.options.uploaderEvent.onError(t, l); + u.dispatch(c.setMeta(Oi, { type: "remove", id: n })), this.options.uploaderEvent && this.options.uploaderEvent.onError && this.options.uploaderEvent.onError(t, l); }), !0; } }; @@ -71551,15 +71740,15 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid
- `, ug(e, this.editor.view.dom, (o) => this.editor.commands.updateAttributes("video", o)), { + `, hg(e, this.editor.view.dom, (o) => this.editor.commands.updateAttributes("video", o)), { dom: e }; }; }, addInputRules() { return [ - Bc({ - find: o2, + Vc({ + find: c2, type: this.type, getAttributes: (t) => { const [, , e] = t; @@ -71571,13 +71760,13 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid addProseMirrorPlugins() { const t = this.editor; return [ - new be({ - key: A_, + new Se({ + key: w_, state: { - init: () => Se.empty, + init: () => be.empty, apply: (e, n) => { - const r = e.getMeta(Ri); - return n = n.map(e.mapping, e.doc), r && r.type === "add" ? n = n.add(e.doc, [cg(r)]) : r && r.type === "remove" && (n = n.remove(n.find( + const r = e.getMeta(Oi); + return n = n.map(e.mapping, e.doc), r && r.type === "add" ? n = n.add(e.doc, [gg(r)]) : r && r.type === "remove" && (n = n.remove(n.find( void 0, void 0, (i) => i.id == r.id @@ -71604,7 +71793,7 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid }) ]; } -}), s2 = Ne.create({ +}), d2 = Ne.create({ name: "iframe", group: "block", atom: !0, @@ -71650,7 +71839,7 @@ const o2 = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, A_ = new ve("aie-vid }; } }); -class l2 { +class p2 { constructor({ editor: e, element: n, @@ -71660,28 +71849,28 @@ class l2 { updateAtMouseUp: a = !1, shouldShow: s }) { - w(this, "editor"); - w(this, "element"); - w(this, "view"); - w(this, "preventHide", !1); - w(this, "tippy"); - w(this, "tippyOptions"); - w(this, "updateDelay"); - w(this, "updateDebounceTimer"); - w(this, "updateInMouseUp", !1); - w(this, "shouldShow", ({ + L(this, "editor"); + L(this, "element"); + L(this, "view"); + L(this, "preventHide", !1); + L(this, "tippy"); + L(this, "tippyOptions"); + L(this, "updateDelay"); + L(this, "updateDebounceTimer"); + L(this, "updateInMouseUp", !1); + L(this, "shouldShow", ({ view: e, state: n, from: r, to: i }) => { - const { doc: o, selection: a } = n, { empty: s } = a, l = !o.textBetween(r, i).length && Lc(n.selection), c = this.element.contains(document.activeElement); + const { doc: o, selection: a } = n, { empty: s } = a, l = !o.textBetween(r, i).length && Bc(n.selection), c = this.element.contains(document.activeElement); return !(!(e.hasFocus() || c) || s || l || !this.editor.isEditable); }); - w(this, "mousedownHandler", () => { + L(this, "mousedownHandler", () => { this.preventHide = !0; }); - w(this, "mouseupHandler", () => { + L(this, "mouseupHandler", () => { setTimeout(() => { const { view: e } = this.editor, { state: n } = e, r = n.selection.from !== n.selection.to; if (this.updateDelay > 0 && r) { @@ -71691,13 +71880,13 @@ class l2 { this.updateHandler(e, !0, !0); }); }); - w(this, "dragstartHandler", () => { + L(this, "dragstartHandler", () => { this.hide(); }); - w(this, "focusHandler", () => { + L(this, "focusHandler", () => { setTimeout(() => this.update(this.editor.view)); }); - w(this, "blurHandler", ({ event: e }) => { + L(this, "blurHandler", ({ event: e }) => { var n; if (this.preventHide) { this.preventHide = !1; @@ -71705,16 +71894,16 @@ class l2 { } e != null && e.relatedTarget && ((n = this.element.parentNode) != null && n.contains(e.relatedTarget)) || this.hide(); }); - w(this, "tippyBlurHandler", (e) => { + L(this, "tippyBlurHandler", (e) => { this.blurHandler({ event: e }); }); - w(this, "handleDebouncedUpdate", (e, n) => { + L(this, "handleDebouncedUpdate", (e, n) => { const r = !(n != null && n.selection.eq(e.state.selection)), i = !(n != null && n.doc.eq(e.state.doc)); !r && !i || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => { this.updateHandler(e, r, i, n); }, this.updateDelay)); }); - w(this, "updateHandler", (e, n, r, i) => { + L(this, "updateHandler", (e, n, r, i) => { var _, m, f; const { state: o, composing: a } = e, { selection: s } = o; if (a || !n && !r) @@ -71734,13 +71923,13 @@ class l2 { } (f = this.tippy) == null || f.setProps({ getReferenceClientRect: ((m = this.tippyOptions) == null ? void 0 : m.getReferenceClientRect) || (() => { - if (vf(o.selection)) { + if (Df(o.selection)) { let g = e.nodeDOM(u); - const E = g.dataset.nodeViewWrapper ? g : g.querySelector("[data-node-view-wrapper]"); - if (E && (g = E.firstChild), g) + const S = g.dataset.nodeViewWrapper ? g : g.querySelector("[data-node-view-wrapper]"); + if (S && (g = S.firstChild), g) return g.getBoundingClientRect(); } - return Wi(e, u, d); + return Ki(e, u, d); }) }), this.show(); }); @@ -71798,17 +71987,17 @@ class l2 { ), (n = this.tippy) == null || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.updateInMouseUp && this.view.dom.removeEventListener("mouseup", this.mouseupHandler), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler); } } -const c2 = (t) => new be({ +const _2 = (t) => new Se({ key: typeof t.pluginKey == "string" ? new ve(t.pluginKey) : t.pluginKey, - view: (e) => new l2({ view: e, ...t }) + view: (e) => new p2({ view: e, ...t }) }); -class ys extends HTMLElement { +class vs extends HTMLElement { constructor() { super(); - w(this, "editor"); - w(this, "items", []); - w(this, "tippyInstance"); - w(this, "activeOnClick", !0); + L(this, "editor"); + L(this, "items", []); + L(this, "tippyInstance"); + L(this, "activeOnClick", !0); } isActive(n) { var r; @@ -71865,12 +72054,12 @@ class ys extends HTMLElement { onEditableChange(n) { } } -const u2 = { +const m2 = { id: "edit", title: "edit-link", icon: '', onInit: (t, e, n) => { - const r = new Wc(); + const r = new Xc(); r.setContent(`
${ce("link-address")}
@@ -71901,14 +72090,14 @@ const u2 = { o && o.href && (i.popper.querySelector("#href").value = o.href), o && o.target && (i.popper.querySelector("#target").value = o.target); }), r.setTrigger(n.querySelector("#edit"), "right"); } -}, d2 = { +}, f2 = { id: "unlink", title: "unlink", icon: '', onClick: (t) => { t.innerEditor.chain().focus().unsetLink().run(); } -}, p2 = { +}, g2 = { id: "visit", title: "visit-link", icon: '', @@ -71916,9 +72105,9 @@ const u2 = { window.open(t.innerEditor.getAttributes("link").href, "_blank"); } }; -class mu { +class Eu { constructor(e) { - w(this, "record", {}); + L(this, "record", {}); for (let n of e) this.push(n); } @@ -71932,19 +72121,19 @@ class mu { return Object.values(this.record); } } -const _2 = new mu( - [u2, d2, p2] +const h2 = new Eu( + [m2, f2, g2] ); -class m2 extends ys { +class E2 extends vs { constructor() { super(); } onCreate(e, n) { var r; - super.onCreate(e, n), this.initItemsByOptions(_2, (r = n == null ? void 0 : n.link) == null ? void 0 : r.bubbleMenuItems), this.activeOnClick = !1; + super.onCreate(e, n), this.initItemsByOptions(h2, (r = n == null ? void 0 : n.link) == null ? void 0 : r.bubbleMenuItems), this.activeOnClick = !1; } } -const f2 = { +const S2 = { id: "AlignLeft", title: "align-left", icon: '', @@ -71952,7 +72141,7 @@ const f2 = { const e = t.innerEditor.getAttributes("image"); e.align = "left", t.innerEditor.chain().setImage(e).run(); } -}, g2 = { +}, b2 = { id: "AlignCenter", title: "align-center", icon: '', @@ -71960,7 +72149,7 @@ const f2 = { const e = t.getAttributes("image"); e.align = "center", t.chain().setImage(e).run(); } -}, h2 = { +}, T2 = { id: "AlignRight", title: "align-right", icon: '', @@ -71968,7 +72157,7 @@ const f2 = { const e = t.getAttributes("image"); e.align = "right", t.chain().setImage(e).run(); } -}, E2 = { +}, C2 = { id: "Resize", title: "resize", icon: '', @@ -71976,26 +72165,26 @@ const f2 = { const e = t.getAttributes("image"), { width: n } = e; n === "100%" ? e.width = "50%" : n === "50%" ? e.width = "75%" : e.width = "100%", t.chain().setImage(e).run(); } -}, S2 = { +}, y2 = { id: "delete", title: "delete", icon: '', onClick: ({ innerEditor: t }) => { t.commands.deleteSelection(); } -}, b2 = new mu( - [f2, g2, h2, E2, S2] +}, v2 = new Eu( + [S2, b2, T2, C2, y2] ); -class T2 extends ys { +class R2 extends vs { constructor() { super(); } onCreate(e, n) { var r; - super.onCreate(e, n), this.initItemsByOptions(b2, (r = n == null ? void 0 : n.image) == null ? void 0 : r.bubbleMenuItems), this.activeOnClick = !1; + super.onCreate(e, n), this.initItemsByOptions(v2, (r = n == null ? void 0 : n.image) == null ? void 0 : r.bubbleMenuItems), this.activeOnClick = !1; } } -class C2 extends ys { +class O2 extends vs { constructor() { super(), this.items = [ { @@ -72152,19 +72341,19 @@ class C2 extends ys { return !0; } } -const qa = { +const Wa = { check: '', refresh: '', aiPanelStart: '', aiPanelStop: '' }; -class Eh { +class Rh { constructor(e, n) { - w(this, "delay"); - w(this, "appending", !1); - w(this, "isFinished", !1); - w(this, "textarea"); - w(this, "textQueue", []); + L(this, "delay"); + L(this, "appending", !1); + L(this, "isFinished", !1); + L(this, "textarea"); + L(this, "textQueue", []); this.delay = e, this.textarea = n; } appendText(e) { @@ -72188,10 +72377,10 @@ class Eh { }, this.delay); } } -const Sh = (t) => { +const Oh = (t) => { const { view: e, state: n } = t, { head: r, from: i, to: o } = n.selection; if (i == 1 && o == n.doc.content.size - 1) { - const a = Wi(e, i, o), l = e.dom.closest(".aie-container").getBoundingClientRect(), c = a.bottom > l.bottom ? l.bottom : a.bottom; + const a = Ki(e, i, o), l = e.dom.closest(".aie-container").getBoundingClientRect(), c = a.bottom > l.bottom ? l.bottom : a.bottom; let u = a.height > l.height ? l.height / 2 : a.height; const d = a.top < l.top ? l.top : a.top; let p = a.left; @@ -72207,13 +72396,13 @@ const Sh = (t) => { bottom: c }; } else { - const a = Wi(e, r, r); + const a = Ki(e, r, r); return { ...a, height: a.height - 10 }; } -}, y2 = [ +}, N2 = [ { prompt: `{content} 请帮我优化一下这段内容,并直接返回优化后的结果。 @@ -72256,22 +72445,22 @@ const Sh = (t) => { icon: '', title: "summarize" } -], I_ = (t, e, n) => { +], L_ = (t, e, n) => { var r, i; if (t.aiClient) t.aiClient.stop(); else { const o = e.querySelector("textarea"); o.value = ""; - const { selection: a, doc: s } = t.editor.state, l = s.textBetween(a.from, a.to), c = t.editor.aiEditor.options, u = Vn.get((r = c.ai) == null ? void 0 : r.bubblePanelModel); + const { selection: a, doc: s } = t.editor.state, l = s.textBetween(a.from, a.to), c = t.editor.aiEditor.options, u = Yn.get((r = c.ai) == null ? void 0 : r.bubblePanelModel); if (u) { - const d = new Eh(30, o); + const d = new Rh(30, o); u.chat(l, n, { onStart(p) { - t.aiClient = p, e.querySelector(".aie-ai-panel-actions").style.display = "none", e.querySelector(".loader").style.display = "block", e.querySelector(".aie-ai-panel-body-content").style.display = "block", e.querySelector("#go").innerHTML = qa.aiPanelStop; + t.aiClient = p, e.querySelector(".aie-ai-panel-actions").style.display = "none", e.querySelector(".loader").style.display = "block", e.querySelector(".aie-ai-panel-body-content").style.display = "block", e.querySelector("#go").innerHTML = Wa.aiPanelStop; }, onStop() { - t.aiClient = void 0, e.querySelector("#go").innerHTML = qa.aiPanelStart, e.querySelector(".aie-ai-panel-footer").style.display = "block", e.querySelector(".loader").style.display = "none", e.querySelector(".aie-ai-panel-actions").style.display = "none", d.finished(); + t.aiClient = void 0, e.querySelector("#go").innerHTML = Wa.aiPanelStart, e.querySelector(".aie-ai-panel-footer").style.display = "block", e.querySelector(".loader").style.display = "none", e.querySelector(".aie-ai-panel-actions").style.display = "none", d.finished(); }, onMessage(p) { d.appendText(p.content); @@ -72280,13 +72469,13 @@ const Sh = (t) => { } else console.error('AI model name config error. can not get AI model by name: "' + ((i = c.ai) == null ? void 0 : i.bubblePanelModel) + '", please check config "options.ai.bubblePanelModel"'); } -}, v2 = (t, e) => { +}, A2 = (t, e) => { const n = document.createElement("div"); return n.classList.add("aie-ai-panel"), n.innerHTML = `
- +
-
+
${ce("tip-you-can-enter-text-above-or-select-the-operation-below")}
@@ -72325,17 +72514,17 @@ const Sh = (t) => { (r = t.aiPanelInstance) == null || r.hide(), (i = t.tippyInstance) == null || i.show(); }), n.querySelector("#go").addEventListener("click", () => { const r = n.querySelector("#prompt").value; - I_(t, n, r); + L_(t, n, r); }), n.querySelectorAll(".aie-ai-panel-actions p").forEach((r) => { const i = r.getAttribute("data-prompt"); r.addEventListener("click", () => { - I_(t, n, i); + L_(t, n, i); }); }), n.addEventListener("click", (r) => { var i, o; r.target === n && ((i = t.aiPanelInstance) == null || i.hide(), (o = t.tippyInstance) == null || o.show()); }), n; -}, R2 = { +}, I2 = { id: "ai", title: "ai", icon: `
@@ -72349,15 +72538,15 @@ const Sh = (t) => { `, onInit: ({ innerEditor: t }, e, n) => { var o; - const r = { editor: t, tippyInstance: e }, i = ((o = t.aiEditor.options.ai) == null ? void 0 : o.bubblePanelMenus) || y2; + const r = { editor: t, tippyInstance: e }, i = ((o = t.aiEditor.options.ai) == null ? void 0 : o.bubblePanelMenus) || N2; return r.aiPanelInstance = we(n.querySelector("#ai"), { - content: v2(r, i), + content: A2(r, i), appendTo: t.view.dom.closest(".aie-container"), trigger: "click", interactive: !0, arrow: !1, placement: "bottom", - getReferenceClientRect: () => Sh(t), + getReferenceClientRect: () => Oh(t), onShow: (a) => { window.setTimeout(() => { var s; @@ -72370,42 +72559,42 @@ const Sh = (t) => { var i; (i = r.tippyInstance) == null || i.hide(); } -}, O2 = { +}, x2 = { id: "bold", title: "bold", icon: '', onClick: ({ innerEditor: t }) => { t.chain().toggleBold().run(); } -}, N2 = { +}, D2 = { id: "underline", title: "underline", icon: '', onClick: ({ innerEditor: t }) => { t.chain().toggleUnderline().run(); } -}, A2 = { +}, M2 = { id: "code", title: "code", icon: '', onClick: ({ innerEditor: t }) => { t.chain().toggleCode().run(); } -}, I2 = { +}, w2 = { id: "strike", title: "strike", icon: '', onClick: ({ innerEditor: t }) => { t.chain().toggleStrike().run(); } -}, x2 = { +}, L2 = { id: "italic", title: "italic", icon: ' ', onClick: ({ innerEditor: t }) => { t.chain().toggleItalic().run(); } -}, D2 = [ +}, k2 = [ { title: "英语" }, { title: "中文" }, { title: "日语" }, @@ -72413,7 +72602,7 @@ const Sh = (t) => { { title: "德语" }, { title: "葡萄牙语" }, { title: "西班牙语" } -], M2 = (t, e, n) => { +], P2 = (t, e, n) => { var r, i, o, a; if (t.aiClient) t.aiClient.stop(); @@ -72421,9 +72610,9 @@ const Sh = (t) => { const { selection: s, doc: l } = t.editor.state, c = l.textBetween(s.from, s.to); let u = ((a = (o = (i = (r = t.editor) == null ? void 0 : r.aiEditor.options.ai) == null ? void 0 : i.translate) == null ? void 0 : o.prompt) == null ? void 0 : a.call(o, e, c)) || `你是一个${e}翻译专家,精通多个国家的语言,请帮我把以下 标签里内容翻译为: ${e},并返回翻译后结果。您需要翻译的内容是: ${c}`; - const d = Vn.get("auto"); + const d = Yn.get("auto"); if (d) { - const p = new Eh(30, n); + const p = new Rh(30, n); d.chat("", u, { onStart(_) { t.aiClient = _; @@ -72438,7 +72627,7 @@ const Sh = (t) => { } else console.error("AI model name config error."); } -}, w2 = (t) => { +}, F2 = (t) => { const e = document.createElement("div"); return e.classList.add("aie-translate-result-panel"), e.innerHTML = ` @@ -72462,7 +72651,7 @@ ${ce("ai-append")} var n, r; (n = t.translateResultInstance) == null || n.hide(), (r = t.editor) == null || r.insertMarkdown(e.querySelector("textarea").value); }), e; -}, L2 = (t, e) => { +}, B2 = (t, e) => { const n = document.createElement("div"); n.classList.add("aie-translate-panel"), n.innerHTML = `
@@ -72471,7 +72660,7 @@ ${ce("ai-append")} `; const r = t.editor.view.dom.closest(".aie-container"); return t.translateResultInstance = we(n, { - content: w2(t), + content: F2(t), appendTo: r, placement: "bottom", interactive: !0, @@ -72489,13 +72678,13 @@ ${ce("ai-append")} return; } const s = i.popper.querySelector("textarea"); - s.value = "", (l = t.translatePanelInstance) == null || l.hide(), M2(t, a, s); + s.value = "", (l = t.translatePanelInstance) == null || l.hide(), P2(t, a, s); }, onUntrigger: (i) => { i.enable(); } }), n; -}, k2 = { +}, U2 = { id: "translate", title: "translate", icon: `
@@ -72509,9 +72698,9 @@ ${ce("ai-append")} `, onInit: ({ innerEditor: t }, e, n) => { var o, a; - const r = { editor: t, tippyInstance: e }, i = ((a = (o = t.aiEditor.options.ai) == null ? void 0 : o.translate) == null ? void 0 : a.translateMenuItems) || D2; + const r = { editor: t, tippyInstance: e }, i = ((a = (o = t.aiEditor.options.ai) == null ? void 0 : o.translate) == null ? void 0 : a.translateMenuItems) || k2; return r.translatePanelInstance = we(n.querySelector("#translate"), { - content: L2(r, i), + content: B2(r, i), appendTo: t.view.dom.closest(".aie-container"), placement: "bottom", trigger: "click", @@ -72519,9 +72708,9 @@ ${ce("ai-append")} arrow: !1 }), r; } -}, P2 = new mu( - [R2, O2, x2, N2, I2, k2, A2] -), F2 = (t, e) => { +}, H2 = new Eu( + [I2, x2, L2, D2, w2, U2, M2] +), G2 = (t, e) => { if (!t || t.length === 0) return t; let n = 0; @@ -72529,14 +72718,14 @@ ${ce("ai-append")} e(t[n], n, t) ? t.splice(n, 1) : ++n; return t; }; -class B2 extends ys { +class V2 extends vs { constructor() { super(); } onCreate(e, n) { var r, i, o, a; - if (super.onCreate(e, n), this.initItemsByOptions(P2, (r = n == null ? void 0 : n.textSelectionBubbleMenu) == null ? void 0 : r.items), ((i = n.ai) == null ? void 0 : i.bubblePanelEnable) === !1) - F2(this.items, (s) => s.id === "ai"); + if (super.onCreate(e, n), this.initItemsByOptions(H2, (r = n == null ? void 0 : n.textSelectionBubbleMenu) == null ? void 0 : r.items), ((i = n.ai) == null ? void 0 : i.bubblePanelEnable) === !1) + G2(this.items, (s) => s.id === "ai"); else if ((o = n.ai) != null && o.bubblePanelIcon) { for (let s of this.items) if (s.id === "ai") { @@ -72546,11 +72735,11 @@ class B2 extends ys { } } } -re("aie-bubble-link", m2); -re("aie-bubble-image", T2); -re("aie-bubble-table", C2); -re("aie-bubble-text", B2); -function vs(t, e) { +re("aie-bubble-link", E2); +re("aie-bubble-image", R2); +re("aie-bubble-table", O2); +re("aie-bubble-text", V2); +function Rs(t, e) { return ge.create({ name: t, addOptions() { @@ -72560,7 +72749,7 @@ function vs(t, e) { }, addProseMirrorPlugins() { return this.options.element ? [ - c2({ + _2({ pluginKey: this.options.pluginKey, editor: this.editor, element: this.options.element, @@ -72573,10 +72762,10 @@ function vs(t, e) { } }); } -const U2 = (t) => { +const Y2 = (t) => { var r; const e = ((r = t.options.textSelectionBubbleMenu) == null ? void 0 : r.elementTagName) || "aie-bubble-text", n = document.createElement(e); - return t.eventComponents.push(n), vs("textSelectionBubble", { + return t.eventComponents.push(n), Rs("textSelectionBubble", { pluginKey: "textSelectionBubble", element: n, updateDelay: 0, @@ -72585,7 +72774,7 @@ const U2 = (t) => { appendTo: t.container, arrow: !1, placement: "bottom", - getReferenceClientRect: () => Sh(t.innerEditor), + getReferenceClientRect: () => Oh(t.innerEditor), onCreate(i) { n.instance = i; } @@ -72594,15 +72783,15 @@ const U2 = (t) => { if (!i.isEditable) return !1; const { state: { selection: o } } = i; - return !o.empty && ds(i.state.doc, { + return !o.empty && ps(i.state.doc, { from: o.from, to: o.to }).trim().length > 0 && !i.isActive("link") && !i.isActive("image") && !(o instanceof Te); } }); -}, H2 = (t) => { +}, z2 = (t) => { const e = document.createElement("aie-bubble-link"); - return t.eventComponents.push(e), vs("linkBubble", { + return t.eventComponents.push(e), Rs("linkBubble", { pluginKey: "linkBubble", element: e, tippyOptions: { @@ -72615,9 +72804,9 @@ const U2 = (t) => { }, shouldShow: ({ editor: n }) => n.isEditable && n.isActive("link") }); -}, G2 = (t) => { +}, $2 = (t) => { const e = document.createElement("aie-bubble-image"); - return t.eventComponents.push(e), vs("imageBubble", { + return t.eventComponents.push(e), Rs("imageBubble", { pluginKey: "imageBubble", element: e, tippyOptions: { @@ -72625,7 +72814,7 @@ const U2 = (t) => { placement: "top-start", arrow: !1, getReferenceClientRect: () => { - const { ranges: n } = t.innerEditor.state.selection, r = Math.min(...n.map((u) => u.$from.pos)), i = Math.max(...n.map((u) => u.$to.pos)), { view: o } = t.innerEditor, s = o.nodeDOM(r).querySelector("img"), l = Wi(o, r, i), c = s.getBoundingClientRect(); + const { ranges: n } = t.innerEditor.state.selection, r = Math.min(...n.map((u) => u.$from.pos)), i = Math.max(...n.map((u) => u.$to.pos)), { view: o } = t.innerEditor, s = o.nodeDOM(r).querySelector("img"), l = Ki(o, r, i), c = s.getBoundingClientRect(); return { ...l, left: c.left + c.width * 0.5 - 100 @@ -72637,9 +72826,9 @@ const U2 = (t) => { }, shouldShow: ({ editor: n }) => n.isEditable && n.isActive("image") }); -}, V2 = (t) => { +}, q2 = (t) => { const e = document.createElement("aie-bubble-table"); - return t.eventComponents.push(e), vs("tableBubble", { + return t.eventComponents.push(e), Rs("tableBubble", { pluginKey: "tableBubble", element: e, tippyOptions: { @@ -72647,7 +72836,7 @@ const U2 = (t) => { appendTo: t.container, arrow: !1, getReferenceClientRect: () => { - const n = t.innerEditor.state.selection, { ranges: r } = n, i = Math.min(...r.map((d) => d.$from.pos)), o = Math.max(...r.map((d) => d.$to.pos)), { view: a, state: s } = t.innerEditor, l = Wi(a, i, o), c = s.selection.$from.posAtIndex(0, 1), u = a.coordsAtPos(c); + const n = t.innerEditor.state.selection, { ranges: r } = n, i = Math.min(...r.map((d) => d.$from.pos)), o = Math.max(...r.map((d) => d.$to.pos)), { view: a, state: s } = t.innerEditor, l = Ki(a, i, o), c = s.selection.$from.posAtIndex(0, 1), u = a.coordsAtPos(c); return { ...l, top: u.top @@ -72659,11 +72848,11 @@ const U2 = (t) => { return n.isEditable && n.isActive("table") && r instanceof Te; } }); -}, Y2 = (t) => { +}, W2 = (t) => { var i, o; const e = []; - return t.options.editable === !1 || (((i = t == null ? void 0 : t.options.textSelectionBubbleMenu) == null ? void 0 : i.enable) !== !1 && e.push(U2(t)), e.push(H2(t)), ((o = t.options.image) == null ? void 0 : o.bubbleMenuEnable) !== !1 && e.push(G2(t)), e.push(V2(t))), e; -}, z2 = ge.create({ + return t.options.editable === !1 || (((i = t == null ? void 0 : t.options.textSelectionBubbleMenu) == null ? void 0 : i.enable) !== !1 && e.push(Y2(t)), e.push(z2(t)), ((o = t.options.image) == null ? void 0 : o.bubbleMenuEnable) !== !1 && e.push($2(t)), e.push(q2(t))), e; +}, K2 = ge.create({ name: "placeholder", addOptions() { return { @@ -72677,7 +72866,7 @@ const U2 = (t) => { }, addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("placeholder"), props: { decorations: ({ doc: t, selection: e }) => { @@ -72686,11 +72875,11 @@ const U2 = (t) => { return null; const o = this.editor.isEmpty; return t.descendants((a, s) => { - const l = r >= s && r <= s + a.nodeSize, c = !a.isLeaf && ms(a); + const l = r >= s && r <= s + a.nodeSize, c = !a.isLeaf && fs(a); if ((l || !this.options.showOnlyCurrent) && c) { const u = [this.options.emptyNodeClass]; o && u.push(this.options.emptyEditorClass); - const d = Fe.node(s, s + a.nodeSize, { + const d = ke.node(s, s + a.nodeSize, { class: u.join(" "), "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({ editor: this.editor, @@ -72702,16 +72891,16 @@ const U2 = (t) => { i.push(d); } return this.options.includeChildren; - }), Se.create(t, i); + }), be.create(t, i); } } }) ]; } }); -function $2(t) { +function Q2(t) { var e; - const { char: n, allowSpaces: r, allowedPrefixes: i, startOfLine: o, $position: a } = t, s = cC(n), l = new RegExp(`\\s${s}$`), c = o ? "^" : "", u = r ? new RegExp(`${c}${s}.*?(?=\\s${s}|$)`, "gm") : new RegExp(`${c}(?:^)?${s}[^\\s${s}]*`, "gm"), d = ((e = a.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && a.nodeBefore.text; + const { char: n, allowSpaces: r, allowedPrefixes: i, startOfLine: o, $position: a } = t, s = mC(n), l = new RegExp(`\\s${s}$`), c = o ? "^" : "", u = r ? new RegExp(`${c}${s}.*?(?=\\s${s}|$)`, "gm") : new RegExp(`${c}(?:^)?${s}[^\\s${s}]*`, "gm"), d = ((e = a.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && a.nodeBefore.text; if (!d) return null; const p = a.pos - d.length, _ = Array.from(d.matchAll(u)).pop(); @@ -72721,26 +72910,26 @@ function $2(t) { if (i !== null && !f) return null; const g = p + _.index; - let E = g + _[0].length; - return r && l.test(d.slice(E - 1, E + 1)) && (_[0] += " ", E += 1), g < a.pos && E >= a.pos ? { + let S = g + _[0].length; + return r && l.test(d.slice(S - 1, S + 1)) && (_[0] += " ", S += 1), g < a.pos && S >= a.pos ? { range: { from: g, - to: E + to: S }, query: _[0].slice(n.length), text: _[0] } : null; } -const q2 = new ve("suggestion"); -function bh({ pluginKey: t = q2, editor: e, char: n = "@", allowSpaces: r = !1, allowedPrefixes: i = [" "], startOfLine: o = !1, decorationTag: a = "span", decorationClass: s = "suggestion", command: l = () => null, items: c = () => [], render: u = () => ({}), allow: d = () => !0, findSuggestionMatch: p = $2 }) { +const Z2 = new ve("suggestion"); +function Nh({ pluginKey: t = Z2, editor: e, char: n = "@", allowSpaces: r = !1, allowedPrefixes: i = [" "], startOfLine: o = !1, decorationTag: a = "span", decorationClass: s = "suggestion", command: l = () => null, items: c = () => [], render: u = () => ({}), allow: d = () => !0, findSuggestionMatch: p = Q2 }) { let _; - const m = u == null ? void 0 : u(), f = new be({ + const m = u == null ? void 0 : u(), f = new Se({ key: t, view() { return { - update: async (g, E) => { - var S, b, h, C, T, R, x; - const O = (S = this.key) === null || S === void 0 ? void 0 : S.getState(E), M = (b = this.key) === null || b === void 0 ? void 0 : b.getState(g.state), B = O.active && M.active && O.range.from !== M.range.from, Y = !O.active && M.active, $ = O.active && !M.active, q = !Y && !$ && O.query !== M.query, V = Y || B && q, J = q || B, y = $ || B && q; + update: async (g, S) => { + var E, b, h, C, T, R, x; + const O = (E = this.key) === null || E === void 0 ? void 0 : E.getState(S), M = (b = this.key) === null || b === void 0 ? void 0 : b.getState(g.state), B = O.active && M.active && O.range.from !== M.range.from, Y = !O.active && M.active, $ = O.active && !M.active, q = !Y && !$ && O.query !== M.query, V = Y || B && q, J = q || B, y = $ || B && q; if (!V && !J && !y) return; const v = y && !V ? O : M, A = g.dom.querySelector(`[data-decoration-id="${v.decorationId}"]`); @@ -72789,10 +72978,10 @@ function bh({ pluginKey: t = q2, editor: e, char: n = "@", allowSpaces: r = !1, }; }, // Apply changes to the plugin state from a view transaction. - apply(g, E, S, b) { - const { isEditable: h } = e, { composing: C } = e.view, { selection: T } = g, { empty: R, from: x } = T, O = { ...E }; + apply(g, S, E, b) { + const { isEditable: h } = e, { composing: C } = e.view, { selection: T } = g, { empty: R, from: x } = T, O = { ...S }; if (O.composing = C, h && (R || e.view.composing)) { - (x < E.range.from || x > E.range.to) && !C && !E.composing && (O.active = !1); + (x < S.range.from || x > S.range.to) && !C && !S.composing && (O.active = !1); const M = p({ char: n, allowSpaces: r, @@ -72804,8 +72993,8 @@ function bh({ pluginKey: t = q2, editor: e, char: n = "@", allowSpaces: r = !1, editor: e, state: b, range: M.range, - isActive: E.active - }) ? (O.active = !0, O.decorationId = E.decorationId ? E.decorationId : B, O.range = M.range, O.query = M.query, O.text = M.text) : O.active = !1; + isActive: S.active + }) ? (O.active = !0, O.decorationId = S.decorationId ? S.decorationId : B, O.range = M.range, O.query = M.query, O.text = M.text) : O.active = !1; } else O.active = !1; return O.active || (O.decorationId = null, O.range = { from: 0, to: 0 }, O.query = null, O.text = null), O; @@ -72813,16 +73002,16 @@ function bh({ pluginKey: t = q2, editor: e, char: n = "@", allowSpaces: r = !1, }, props: { // Call the keydown hook if suggestion is active. - handleKeyDown(g, E) { - var S; + handleKeyDown(g, S) { + var E; const { active: b, range: h } = f.getState(g.state); - return b && ((S = m == null ? void 0 : m.onKeyDown) === null || S === void 0 ? void 0 : S.call(m, { view: g, event: E, range: h })) || !1; + return b && ((E = m == null ? void 0 : m.onKeyDown) === null || E === void 0 ? void 0 : E.call(m, { view: g, event: S, range: h })) || !1; }, // Setup decorator on the currently active suggestion. decorations(g) { - const { active: E, range: S, decorationId: b } = f.getState(g); - return E ? Se.create(g.doc, [ - Fe.inline(S.from, S.to, { + const { active: S, range: E, decorationId: b } = f.getState(g); + return S ? be.create(g.doc, [ + ke.inline(E.from, E.to, { nodeName: a, class: s, "data-decoration-id": b @@ -72833,7 +73022,7 @@ function bh({ pluginKey: t = q2, editor: e, char: n = "@", allowSpaces: r = !1, }); return f; } -const W2 = new ve("mention"), K2 = Ne.create({ +const X2 = new ve("mention"), j2 = Ne.create({ name: "mention", priority: 101, addOptions() { @@ -72854,7 +73043,7 @@ const W2 = new ve("mention"), K2 = Ne.create({ }, suggestion: { char: "@", - pluginKey: W2, + pluginKey: X2, command: ({ editor: t, range: e, props: n }) => { var r, i, o; const a = t.view.state.selection.$to.nodeAfter; @@ -72950,13 +73139,13 @@ const W2 = new ve("mention"), K2 = Ne.create({ }, addProseMirrorPlugins() { return [ - bh({ + Nh({ editor: this.editor, ...this.options.suggestion }) ]; } -}), Q2 = (t) => K2.configure({ +}), J2 = (t) => j2.configure({ HTMLAttributes: { class: "mention" }, @@ -73015,7 +73204,7 @@ const W2 = new ve("mention"), K2 = Ne.create({ }; } } -}), Z2 = [ +}), eL = [ { icon: '', name: "AI 续写", @@ -73040,7 +73229,7 @@ const W2 = new ve("mention"), K2 = Ne.create({ prompt: "请根据以上的内容,生成一张图片,并把图片返回给我", model: "auto" } -], X2 = ge.create({ +], tL = ge.create({ name: "aiCommand", // @ts-ignore addOptions() { @@ -73052,8 +73241,8 @@ const W2 = new ve("mention"), K2 = Ne.create({ let r = n.aiItem; const i = t.state.selection.$head.parent.textContent; let o = r.model; - const a = Vn.get(r.model); - a ? a == null || a.chat(i, r.prompt, new Ra(t)) : console.error("Ai model config error. can not find the type:" + o + " at command menu"); + const a = Yn.get(r.model); + a ? a == null || a.chat(i, r.prompt, new Oa(t)) : console.error("Ai model config error. can not find the type:" + o + " at command menu"); } else switch (n.index) { case 0: @@ -73186,43 +73375,34 @@ const W2 = new ve("mention"), K2 = Ne.create({ }, addProseMirrorPlugins() { return [ - bh({ + Nh({ editor: this.editor, ...this.options.suggestion }) ]; } -}), j2 = ge.create({ +}), nL = ge.create({ addProseMirrorPlugins() { + const t = this.editor; return [ - new be({ + new Se({ key: new ve("selection-marker"), - state: { - init: () => Se.empty, - apply: (t, e, n) => { - const { selection: r } = t; - if (r) { - const i = [Fe.inline( - r.$from.pos, - r.$to.pos, - { class: "selection-marker" }, - { inclusiveLeft: !0, inclusiveRight: !0 } - )]; - return Se.create(n.doc, i); - } - return e; - } - }, props: { - decorations(t) { - return this.getState(t); + decorations(e) { + return e.selection.empty || t.isFocused ? null : be.create(e.doc, [ + ke.inline( + e.selection.from, + e.selection.to, + { class: "selection-marker" } + ) + ]); } } }) ]; } }); -function J2(t, e, n) { +function rL(t, e, n) { function r(p) { return p.trim().split(" ", 2)[0] === e; } @@ -73232,27 +73412,27 @@ function J2(t, e, n) { n = n || {}; const o = 3, a = n.marker || ":", s = a.charCodeAt(0), l = a.length, c = n.validate || r, u = n.render || i; function d(p, _, m, f) { - let g, E = !1, S = p.bMarks[_] + p.tShift[_], b = p.eMarks[_]; - if (s !== p.src.charCodeAt(S)) + let g, S = !1, E = p.bMarks[_] + p.tShift[_], b = p.eMarks[_]; + if (s !== p.src.charCodeAt(E)) return !1; - for (g = S + 1; g <= b && a[(g - S) % l] === p.src[g]; g++) + for (g = E + 1; g <= b && a[(g - E) % l] === p.src[g]; g++) ; - const h = Math.floor((g - S) / l); + const h = Math.floor((g - E) / l); if (h < o) return !1; - g -= (g - S) % l; - const C = p.src.slice(S, g), T = p.src.slice(g, b); + g -= (g - E) % l; + const C = p.src.slice(E, g), T = p.src.slice(g, b); if (!c(T, C)) return !1; if (f) return !0; let R = _; - for (; R++, !(R >= m || (S = p.bMarks[R] + p.tShift[R], b = p.eMarks[R], S < b && p.sCount[R] < p.blkIndent)); ) - if (s === p.src.charCodeAt(S) && !(p.sCount[R] - p.blkIndent >= 4)) { - for (g = S + 1; g <= b && a[(g - S) % l] === p.src[g]; g++) + for (; R++, !(R >= m || (E = p.bMarks[R] + p.tShift[R], b = p.eMarks[R], E < b && p.sCount[R] < p.blkIndent)); ) + if (s === p.src.charCodeAt(E) && !(p.sCount[R] - p.blkIndent >= 4)) { + for (g = E + 1; g <= b && a[(g - E) % l] === p.src[g]; g++) ; - if (!(Math.floor((g - S) / l) < h) && (g -= (g - S) % l, g = p.skipSpaces(g), !(g < b))) { - E = !0; + if (!(Math.floor((g - E) / l) < h) && (g -= (g - E) % l, g = p.skipSpaces(g), !(g < b))) { + S = !0; break; } } @@ -73261,13 +73441,13 @@ function J2(t, e, n) { const M = p.push("container_" + e + "_open", "div", 1); M.markup = C, M.block = !0, M.info = T, M.map = [_, R], p.md.block.tokenize(p, _ + 1, R); const B = p.push("container_" + e + "_close", "div", -1); - return B.markup = p.src.slice(S, g), B.block = !0, p.parentType = x, p.lineMax = O, p.line = R + (E ? 1 : 0), !0; + return B.markup = p.src.slice(E, g), B.block = !0, p.parentType = x, p.lineMax = O, p.line = R + (S ? 1 : 0), !0; } t.block.ruler.before("fence", "container_" + e, d, { alt: ["paragraph", "reference", "blockquote", "list"] }), t.renderer.rules["container_" + e + "_open"] = u, t.renderer.rules["container_" + e + "_close"] = u; } -const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ +const iL = /^:::([a-z]+)?[\s\n]$/, oL = Ne.create({ name: "container", group: "block", content: "block+", @@ -73290,7 +73470,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ parse: { setup: (t) => { this.options.classes.forEach((e) => { - t.use(J2, e); + t.use(rL, e); }); } } @@ -73332,7 +73512,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ addInputRules() { return [ Sr({ - find: eL, + find: iL, type: this.type, getAttributes: (t) => ({ containerClass: t[1] @@ -73340,7 +73520,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ }) ]; } -}), nL = ig.extend({ +}), aL = dg.extend({ addAttributes() { var t; return { @@ -73350,14 +73530,14 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ } }; } -}), rL = ge.create({ +}), sL = ge.create({ name: "saveExt", addKeyboardShortcuts() { return { "Mod-s": ({ editor: t }) => this.options.onSave ? this.options.onSave(t.aiEditor) : !1 }; } -}), iL = Ne.create({ +}), lL = Ne.create({ name: "figure", content: "block+", group: "block", @@ -73377,7 +73557,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ renderHTML({ HTMLAttributes: t }) { return ["figure", pe(this.options.HTMLAttributes, t), 0]; } -}), oL = Ne.create({ +}), cL = Ne.create({ name: "figcaption", content: "inline*", group: "block", @@ -73395,14 +73575,14 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ renderHTML({ HTMLAttributes: t }) { return ["figcaption", pe(this.options.HTMLAttributes, t), 0]; } -}), aL = (t, e) => { +}), uL = (t, e) => { const n = new RegExp(`<${e}[^>]*>(.*?)`, "gi"); return t.replace(n, (r, i) => i); -}, sL = (t, e) => { +}, dL = (t, e) => { for (let n of e) - t = aL(t, n); + t = uL(t, n); return t; -}, lL = (t, e, n) => { +}, pL = (t, e, n) => { function r(u) { const d = document.createDocumentFragment(); for (; u.firstChild; ) { @@ -73436,15 +73616,15 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ const g = []; for (; f && f.nodeName !== "P"; ) g.unshift(f), f = f.previousSibling; - const E = document.createElement("p"); - g.forEach((S) => E.appendChild(S)), _.replaceWith(E), m.remove(), p++; + const S = document.createElement("p"); + g.forEach((E) => S.appendChild(E)), _.replaceWith(S), m.remove(), p++; } } } t = t.replace(/(\n)/gm, " "); const s = new DOMParser().parseFromString(t, "text/html"), l = i(s.body), c = document.createElement("div"); - return l && (c.appendChild(l), o(c)), c.outerHTML; -}, cL = (t) => { + return l && (c.appendChild(l), o(c)), c.innerHTML; +}, _L = (t) => { var i; const e = t.documentElement.getAttributeNames(); if (e && e.length > 0) @@ -73461,17 +73641,25 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ } const r = (i = t.body.innerHTML) == null ? void 0 : i.trim(); return !!(r != null && r.startsWith(""))); -}, uL = (t) => { +}, mL = (t) => { const e = document.createElement("div"); return e.innerHTML = t, e.querySelectorAll("p").forEach((r) => { (!r.textContent || r.textContent.trim() === "") && r.remove(); }), e.innerHTML; -}, dL = ge.create({ +}, fL = (t) => { + const n = new DOMParser().parseFromString(t, "text/html"), r = document.createDocumentFragment(), i = n.body.children; + for (let a of i) + a.hasAttribute("data-pm-slice") ? a.childNodes.forEach((s) => { + r.appendChild(s.cloneNode(!0)); + }) : r.appendChild(a.cloneNode(!0)); + const o = document.createElement("div"); + return o.appendChild(r), o.innerHTML; +}, gL = ge.create({ name: "pasteExt", priority: 1e3, addProseMirrorPlugins() { return [ - new be({ + new Se({ key: new ve("aie-paste"), props: { handlePaste: (t, e) => { @@ -73485,22 +73673,23 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ return a(o.replaceSelection(new H(i, 0, 0)).scrollIntoView()), !0; } } else if (r) { + r = fL(r); const { options: i } = this.editor.aiEditor; if (i.htmlPasteConfig) { if (i.htmlPasteConfig.pasteAsText) - r = lL(r, ["p", "br"]); + r = pL(r, ["p", "br"]); else if (i.htmlPasteConfig.pasteClean) { - r = sL(r, ["a", "span", "strong", "b", "em", "i", "u"]); + r = dL(r, ["a", "span", "strong", "b", "em", "i", "u"]); const s = new DOMParser().parseFromString(r, "text/html").documentElement.querySelector("body"); s && (s == null || s.querySelectorAll("*").forEach((l) => { l.removeAttribute("style"); }), r = s == null ? void 0 : s.innerHTML); } - if (i.htmlPasteConfig.removeEmptyParagraphs !== !1 && (r = uL(r)), i.htmlPasteConfig.pasteProcessor && (r = i.htmlPasteConfig.pasteProcessor(r)), r) + if (i.htmlPasteConfig.removeEmptyParagraphs !== !1 && (r = mL(r)), i.htmlPasteConfig.pasteProcessor && (r = i.htmlPasteConfig.pasteProcessor(r)), r) return this.editor.commands.insertContent(r), !0; } else if (n && r) { const a = new DOMParser().parseFromString(r, "text/html"), s = a.querySelector("table"); - if (s && cL(a)) + if (s && _L(a)) return this.editor.commands.insertContent(s.outerHTML, { parseOptions: { preserveWhitespace: !1 @@ -73513,7 +73702,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ }) ]; } -}), pL = ge.create({ +}), hL = ge.create({ name: "className", addOptions() { return { @@ -73569,37 +73758,37 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ } }); } -}), _L = (t, e) => { - var r, i, o, a, s, l, c, u, d, p, _, m, f, g, E, S, b, h, C, T, R, x, O, M, B, Y, $, q, V; - const n = [RR.configure({ +}), EL = (t, e) => { + var r, i, o, a, s, l, c, u, d, p, _, m, f, g, S, E, b, h, C, T, R, x, O, M, B, Y, $, q, V; + const n = [xR.configure({ codeBlock: !1, heading: !1 })]; return n.push( - OR, - NR, - AR, - nL, - MR.configure({ + DR, + MR, + wR, + aL, + FR.configure({ uploadUrl: (r = e.attachment) == null ? void 0 : r.uploadUrl, uploadHeaders: (i = e.attachment) == null ? void 0 : i.uploadHeaders, uploadFormName: (o = e.attachment) == null ? void 0 : o.uploadFormName, uploader: ((a = e.attachment) == null ? void 0 : a.uploader) || e.uploader, uploaderEvent: (s = e.attachment) == null ? void 0 : s.uploaderEvent }), - wR, - j2, - PR.configure({ + BR, + nL, + GR.configure({ multicolor: !0 }), - FR, - BR, - UR, - HR.configure({ + VR, + YR, + zR, + $R.configure({ types: ["heading", "paragraph"] }), - GR, - $R.configure({ + qR, + ZR.configure({ allowBase64: typeof ((l = e.image) == null ? void 0 : l.allowBase64) > "u" ? !0 : (c = e.image) == null ? void 0 : c.allowBase64, defaultSize: ((u = e.image) == null ? void 0 : u.defaultSize) || 350, uploadUrl: (d = e.image) == null ? void 0 : d.uploadUrl, @@ -73608,36 +73797,36 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ uploader: ((m = e.image) == null ? void 0 : m.uploader) || e.uploader, uploaderEvent: (f = e.image) == null ? void 0 : f.uploaderEvent }), - QO.configure({ + JO.configure({ resizable: !0, lastColumnResizable: !0, allowTableNodeSelection: !0 }), - ZO, - XO, - jO, - typeof e.textCounter == "function" ? zp.configure({ + eN, + tN, + nN, + typeof e.textCounter == "function" ? Zp.configure({ textCounter: e.textCounter - }) : zp, - CN.configure({ + }) : Zp, + ON.configure({ openOnClick: !1, - autolink: typeof ((g = e.link) == null ? void 0 : g.autolink) > "u" ? !0 : (E = e.link) == null ? void 0 : E.autolink, + autolink: typeof ((g = e.link) == null ? void 0 : g.autolink) > "u" ? !0 : (S = e.link) == null ? void 0 : S.autolink, HTMLAttributes: { - ref: (S = e == null ? void 0 : e.link) == null ? void 0 : S.rel, + ref: (E = e == null ? void 0 : e.link) == null ? void 0 : E.rel, class: (b = e == null ? void 0 : e.link) == null ? void 0 : b.class } }), - yN, - vN, - RN, - NN.configure({ + NN, + AN, + IN, + DN.configure({ nested: !0 }), - DA.configure({ - lowlight: r2(sw), + kA.configure({ + lowlight: s2(dw), defaultLanguage: "auto", languageClassPrefix: "language-", - languages: ((h = e.codeBlock) == null ? void 0 : h.languages) || Gg, + languages: ((h = e.codeBlock) == null ? void 0 : h.languages) || Kg, codeExplainAi: ((T = (C = e.ai) == null ? void 0 : C.codeBlock) == null ? void 0 : T.codeExplain) || { model: "auto", prompt: ((R = e.codeBlock) == null ? void 0 : R.codeExplainPrompt) || "帮我对这个代码进行解释,返回代码的解释内容,注意,不需要对代码的注释进行解释" @@ -73647,34 +73836,34 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ prompt: ((M = e.codeBlock) == null ? void 0 : M.codeCommentsPrompt) || "帮我对这个代码添加一些注释,并返回添加注释的代码,只返回代码" } }), - a2.configure({ + u2.configure({ uploadUrl: (B = e.video) == null ? void 0 : B.uploadUrl, uploadHeaders: (Y = e.video) == null ? void 0 : Y.uploadHeaders, uploadFormName: ($ = e.video) == null ? void 0 : $.uploadFormName, uploader: ((q = e.video) == null ? void 0 : q.uploader) || e.uploader, uploaderEvent: (V = e.video) == null ? void 0 : V.uploaderEvent }), - s2, - iL, - oL, - rL.configure({ + d2, + lL, + cL, + sL.configure({ onSave: e.onSave }), - dL, - pL, - tL, - ...Y2(t) - ), e.placeholder && n.push(z2.configure({ + gL, + hL, + oL, + ...W2(t) + ), e.placeholder && n.push(K2.configure({ placeholder: e.placeholder - })), n.push(X2.configure({ + })), n.push(tL.configure({ suggestion: { items: (J) => { var v; - return ((v = e.ai) == null ? void 0 : v.commands) || Z2; + return ((v = e.ai) == null ? void 0 : v.commands) || eL; } } - })), e.onMentionQuery && n.push(Q2(e.onMentionQuery)), n; -}, mL = { + })), e.onMentionQuery && n.push(J2(e.onMentionQuery)), n; +}, SL = { ////commons default: "默认", delete: "删除", @@ -73784,7 +73973,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI 优化", "ai-proofreading": "AI 校对", "ai-translation": "AI 翻译" -}, fL = { +}, bL = { ////commons default: "Default", delete: "Delete", @@ -73894,7 +74083,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "Optimization", "ai-proofreading": "Proofreading", "ai-translation": "Translation" -}, gL = { +}, TL = { //// commons default: "Standard", delete: "Löschen", @@ -74004,7 +74193,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "Optimierung", "ai-proofreading": "Korrekturlesen", "ai-translation": "Übersetzung" -}, hL = { +}, CL = { //// commons default: "Padrão", delete: "Excluir", @@ -74114,7 +74303,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "Otimização", "ai-proofreading": "Revisão", "ai-translation": "Tradução" -}, EL = { +}, yL = { ////commons default: "Predeterminado", delete: "Eliminar", @@ -74224,7 +74413,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "Optimización con IA", "ai-proofreading": "Corrección con IA", "ai-translation": "Traducción con IA" -}, SL = { +}, vL = { ////commons default: "डिफ़ॉल्ट", delete: "हटाएं", @@ -74334,7 +74523,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI अनुकूलन", "ai-proofreading": "AI प्रूफरीडिंग", "ai-translation": "AI अनुवाद" -}, bL = { +}, RL = { ////commons default: "Default", delete: "Hapus", @@ -74444,7 +74633,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI Optimasi", "ai-proofreading": "AI Koreksi", "ai-translation": "AI Terjemahan" -}, TL = { +}, OL = { ////commons default: "デフォルト", delete: "削除", @@ -74554,7 +74743,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI最適化", "ai-proofreading": "AI校正", "ai-translation": "AI翻訳" -}, CL = { +}, NL = { ////commons default: "기본값", delete: "삭제", @@ -74664,7 +74853,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI 최적화", "ai-proofreading": "AI 교정", "ai-translation": "AI 번역" -}, yL = { +}, AL = { ////commons default: "ค่าเริ่มต้น", delete: "ลบ", @@ -74774,7 +74963,7 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI ปรับแต่ง", "ai-proofreading": "AI พิสูจน์อักษร", "ai-translation": "AI แปล" -}, vL = { +}, IL = { ////commons default: "Mặc định", delete: "Xóa", @@ -74884,12 +75073,12 @@ const eL = /^:::([a-z]+)?[\s\n]$/, tL = Ne.create({ "ai-optimization": "AI Tối ưu hóa", "ai-proofreading": "AI Hiệu đính", "ai-translation": "AI Dịch" -}, x_ = {}; -function RL(t) { - let e = x_[t]; +}, k_ = {}; +function xL(t) { + let e = k_[t]; if (e) return e; - e = x_[t] = []; + e = k_[t] = []; for (let n = 0; n < 128; n++) { const r = String.fromCharCode(n); e.push(r); @@ -74902,7 +75091,7 @@ function RL(t) { } function di(t, e) { typeof e != "string" && (e = di.defaultChars); - const n = RL(e); + const n = xL(e); return t.replace(/(%[a-f0-9]{2})+/gi, function(r) { let i = ""; for (let o = 0, a = r.length; o < a; o += 3) { @@ -74942,12 +75131,12 @@ function di(t, e) { } di.defaultChars = ";/?:@&=+$,#"; di.componentChars = ""; -const D_ = {}; -function OL(t) { - let e = D_[t]; +const P_ = {}; +function DL(t) { + let e = P_[t]; if (e) return e; - e = D_[t] = []; + e = P_[t] = []; for (let n = 0; n < 128; n++) { const r = String.fromCharCode(n); /^[0-9a-z]$/i.test(r) ? e.push(r) : e.push("%" + ("0" + n.toString(16).toUpperCase()).slice(-2)); @@ -74956,9 +75145,9 @@ function OL(t) { e[t.charCodeAt(n)] = t[n]; return e; } -function Eo(t, e, n) { - typeof e != "string" && (n = e, e = Eo.defaultChars), typeof n > "u" && (n = !0); - const r = OL(e); +function So(t, e, n) { + typeof e != "string" && (n = e, e = So.defaultChars), typeof n > "u" && (n = !0); + const r = DL(e); let i = ""; for (let o = 0, a = t.length; o < a; o++) { const s = t.charCodeAt(o); @@ -74985,20 +75174,20 @@ function Eo(t, e, n) { } return i; } -Eo.defaultChars = ";/?:@&=+$,-_.!~*'()#"; -Eo.componentChars = "-_.!~*'()"; -function fu(t) { +So.defaultChars = ";/?:@&=+$,-_.!~*'()#"; +So.componentChars = "-_.!~*'()"; +function Su(t) { let e = ""; return e += t.protocol || "", e += t.slashes ? "//" : "", e += t.auth ? t.auth + "@" : "", t.hostname && t.hostname.indexOf(":") !== -1 ? e += "[" + t.hostname + "]" : e += t.hostname || "", e += t.port ? ":" + t.port : "", e += t.pathname || "", e += t.search || "", e += t.hash || "", e; } -function Wa() { +function Ka() { this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null; } -const NL = /^([a-z0-9.+-]+:)/i, AL = /:[0-9]*$/, IL = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, xL = ["<", ">", '"', "`", " ", "\r", ` -`, " "], DL = ["{", "}", "|", "\\", "^", "`"].concat(xL), ML = ["'"].concat(DL), M_ = ["%", "/", "?", ";", "#"].concat(ML), w_ = ["/", "?", "#"], wL = 255, L_ = /^[+a-z0-9A-Z_-]{0,63}$/, LL = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, k_ = { +const ML = /^([a-z0-9.+-]+:)/i, wL = /:[0-9]*$/, LL = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, kL = ["<", ">", '"', "`", " ", "\r", ` +`, " "], PL = ["{", "}", "|", "\\", "^", "`"].concat(kL), FL = ["'"].concat(PL), F_ = ["%", "/", "?", ";", "#"].concat(FL), B_ = ["/", "?", "#"], BL = 255, U_ = /^[+a-z0-9A-Z_-]{0,63}$/, UL = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, H_ = { javascript: !0, "javascript:": !0 -}, P_ = { +}, G_ = { http: !0, https: !0, ftp: !0, @@ -75010,27 +75199,27 @@ const NL = /^([a-z0-9.+-]+:)/i, AL = /:[0-9]*$/, IL = /^(\/\/?(?!\/)[^\?\s]*)(\? "gopher:": !0, "file:": !0 }; -function gu(t, e) { - if (t && t instanceof Wa) return t; - const n = new Wa(); +function bu(t, e) { + if (t && t instanceof Ka) return t; + const n = new Ka(); return n.parse(t, e), n; } -Wa.prototype.parse = function(t, e) { +Ka.prototype.parse = function(t, e) { let n, r, i, o = t; if (o = o.trim(), !e && t.split("#").length === 1) { - const c = IL.exec(o); + const c = LL.exec(o); if (c) return this.pathname = c[1], c[2] && (this.search = c[2]), this; } - let a = NL.exec(o); - if (a && (a = a[0], n = a.toLowerCase(), this.protocol = a, o = o.substr(a.length)), (e || a || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (i = o.substr(0, 2) === "//", i && !(a && k_[a]) && (o = o.substr(2), this.slashes = !0)), !k_[a] && (i || a && !P_[a])) { + let a = ML.exec(o); + if (a && (a = a[0], n = a.toLowerCase(), this.protocol = a, o = o.substr(a.length)), (e || a || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (i = o.substr(0, 2) === "//", i && !(a && H_[a]) && (o = o.substr(2), this.slashes = !0)), !H_[a] && (i || a && !G_[a])) { let c = -1; - for (let m = 0; m < w_.length; m++) - r = o.indexOf(w_[m]), r !== -1 && (c === -1 || r < c) && (c = r); + for (let m = 0; m < B_.length; m++) + r = o.indexOf(B_[m]), r !== -1 && (c === -1 || r < c) && (c = r); let u, d; c === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", c), d !== -1 && (u = o.slice(0, d), o = o.slice(d + 1), this.auth = u), c = -1; - for (let m = 0; m < M_.length; m++) - r = o.indexOf(M_[m]), r !== -1 && (c === -1 || r < c) && (c = r); + for (let m = 0; m < F_.length; m++) + r = o.indexOf(F_[m]), r !== -1 && (c === -1 || r < c) && (c = r); c === -1 && (c = o.length), o[c - 1] === ":" && c--; const p = o.slice(0, c); o = o.slice(c), this.parseHost(p), this.hostname = this.hostname || ""; @@ -75038,53 +75227,53 @@ Wa.prototype.parse = function(t, e) { if (!_) { const m = this.hostname.split(/\./); for (let f = 0, g = m.length; f < g; f++) { - const E = m[f]; - if (E && !E.match(L_)) { - let S = ""; - for (let b = 0, h = E.length; b < h; b++) - E.charCodeAt(b) > 127 ? S += "x" : S += E[b]; - if (!S.match(L_)) { - const b = m.slice(0, f), h = m.slice(f + 1), C = E.match(LL); + const S = m[f]; + if (S && !S.match(U_)) { + let E = ""; + for (let b = 0, h = S.length; b < h; b++) + S.charCodeAt(b) > 127 ? E += "x" : E += S[b]; + if (!E.match(U_)) { + const b = m.slice(0, f), h = m.slice(f + 1), C = S.match(UL); C && (b.push(C[1]), h.unshift(C[2])), h.length && (o = h.join(".") + o), this.hostname = b.join("."); break; } } } } - this.hostname.length > wL && (this.hostname = ""), _ && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > BL && (this.hostname = ""), _ && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } const s = o.indexOf("#"); s !== -1 && (this.hash = o.substr(s), o = o.slice(0, s)); const l = o.indexOf("?"); - return l !== -1 && (this.search = o.substr(l), o = o.slice(0, l)), o && (this.pathname = o), P_[n] && this.hostname && !this.pathname && (this.pathname = ""), this; + return l !== -1 && (this.search = o.substr(l), o = o.slice(0, l)), o && (this.pathname = o), G_[n] && this.hostname && !this.pathname && (this.pathname = ""), this; }; -Wa.prototype.parseHost = function(t) { - let e = AL.exec(t); +Ka.prototype.parseHost = function(t) { + let e = wL.exec(t); e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); }; -const kL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const HL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, decode: di, - encode: Eo, - format: fu, - parse: gu -}, Symbol.toStringTag, { value: "Module" })), Th = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ch = /[\0-\x1F\x7F-\x9F]/, PL = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, hu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, yh = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, vh = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, FL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + encode: So, + format: Su, + parse: bu +}, Symbol.toStringTag, { value: "Module" })), Ah = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ih = /[\0-\x1F\x7F-\x9F]/, GL = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Tu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, xh = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Dh = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, VL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - Any: Th, - Cc: Ch, - Cf: PL, - P: hu, - S: yh, - Z: vh -}, Symbol.toStringTag, { value: "Module" })), BL = new Uint16Array( + Any: Ah, + Cc: Ih, + Cf: GL, + P: Tu, + S: xh, + Z: Dh +}, Symbol.toStringTag, { value: "Module" })), YL = new Uint16Array( // prettier-ignore 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t) => t.charCodeAt(0)) -), UL = new Uint16Array( +), zL = new Uint16Array( // prettier-ignore "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t) => t.charCodeAt(0)) ); -var gl; -const HL = /* @__PURE__ */ new Map([ +var El; +const $L = /* @__PURE__ */ new Map([ [0, 65533], // C1 Unicode control character reference replacements [128, 8364], @@ -75114,37 +75303,37 @@ const HL = /* @__PURE__ */ new Map([ [156, 339], [158, 382], [159, 376] -]), GL = ( +]), qL = ( // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins - (gl = String.fromCodePoint) !== null && gl !== void 0 ? gl : function(t) { + (El = String.fromCodePoint) !== null && El !== void 0 ? El : function(t) { let e = ""; return t > 65535 && (t -= 65536, e += String.fromCharCode(t >>> 10 & 1023 | 55296), t = 56320 | t & 1023), e += String.fromCharCode(t), e; } ); -function VL(t) { +function WL(t) { var e; - return t >= 55296 && t <= 57343 || t > 1114111 ? 65533 : (e = HL.get(t)) !== null && e !== void 0 ? e : t; + return t >= 55296 && t <= 57343 || t > 1114111 ? 65533 : (e = $L.get(t)) !== null && e !== void 0 ? e : t; } var Ye; (function(t) { t[t.NUM = 35] = "NUM", t[t.SEMI = 59] = "SEMI", t[t.EQUALS = 61] = "EQUALS", t[t.ZERO = 48] = "ZERO", t[t.NINE = 57] = "NINE", t[t.LOWER_A = 97] = "LOWER_A", t[t.LOWER_F = 102] = "LOWER_F", t[t.LOWER_X = 120] = "LOWER_X", t[t.LOWER_Z = 122] = "LOWER_Z", t[t.UPPER_A = 65] = "UPPER_A", t[t.UPPER_F = 70] = "UPPER_F", t[t.UPPER_Z = 90] = "UPPER_Z"; })(Ye || (Ye = {})); -const YL = 32; +const KL = 32; var Pn; (function(t) { t[t.VALUE_LENGTH = 49152] = "VALUE_LENGTH", t[t.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", t[t.JUMP_TABLE = 127] = "JUMP_TABLE"; })(Pn || (Pn = {})); -function _c(t) { +function fc(t) { return t >= Ye.ZERO && t <= Ye.NINE; } -function zL(t) { +function QL(t) { return t >= Ye.UPPER_A && t <= Ye.UPPER_F || t >= Ye.LOWER_A && t <= Ye.LOWER_F; } -function $L(t) { - return t >= Ye.UPPER_A && t <= Ye.UPPER_Z || t >= Ye.LOWER_A && t <= Ye.LOWER_Z || _c(t); +function ZL(t) { + return t >= Ye.UPPER_A && t <= Ye.UPPER_Z || t >= Ye.LOWER_A && t <= Ye.LOWER_Z || fc(t); } -function qL(t) { - return t === Ye.EQUALS || $L(t); +function XL(t) { + return t === Ye.EQUALS || ZL(t); } var Ve; (function(t) { @@ -75154,7 +75343,7 @@ var In; (function(t) { t[t.Legacy = 0] = "Legacy", t[t.Strict = 1] = "Strict", t[t.Attribute = 2] = "Attribute"; })(In || (In = {})); -class WL { +class jL { constructor(e, n, r) { this.decodeTree = e, this.emitCodePoint = n, this.errors = r, this.state = Ve.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = In.Strict; } @@ -75197,7 +75386,7 @@ class WL { * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ stateNumericStart(e, n) { - return n >= e.length ? -1 : (e.charCodeAt(n) | YL) === Ye.LOWER_X ? (this.state = Ve.NumericHex, this.consumed += 1, this.stateNumericHex(e, n + 1)) : (this.state = Ve.NumericDecimal, this.stateNumericDecimal(e, n)); + return n >= e.length ? -1 : (e.charCodeAt(n) | KL) === Ye.LOWER_X ? (this.state = Ve.NumericHex, this.consumed += 1, this.stateNumericHex(e, n + 1)) : (this.state = Ve.NumericDecimal, this.stateNumericDecimal(e, n)); } addToNumericResult(e, n, r, i) { if (n !== r) { @@ -75218,7 +75407,7 @@ class WL { const r = n; for (; n < e.length; ) { const i = e.charCodeAt(n); - if (_c(i) || zL(i)) + if (fc(i) || QL(i)) n += 1; else return this.addToNumericResult(e, r, n, 16), this.emitNumericEntity(i, 3); @@ -75238,7 +75427,7 @@ class WL { const r = n; for (; n < e.length; ) { const i = e.charCodeAt(n); - if (_c(i)) + if (fc(i)) n += 1; else return this.addToNumericResult(e, r, n, 10), this.emitNumericEntity(i, 2); @@ -75266,7 +75455,7 @@ class WL { this.consumed += 1; else if (this.decodeMode === In.Strict) return 0; - return this.emitCodePoint(VL(this.result), this.consumed), this.errors && (e !== Ye.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; + return this.emitCodePoint(WL(this.result), this.consumed), this.errors && (e !== Ye.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; } /** * Parses a named entity. @@ -75282,11 +75471,11 @@ class WL { let i = r[this.treeIndex], o = (i & Pn.VALUE_LENGTH) >> 14; for (; n < e.length; n++, this.excess++) { const a = e.charCodeAt(n); - if (this.treeIndex = KL(r, i, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0) + if (this.treeIndex = JL(r, i, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0) return this.result === 0 || // If we are parsing an attribute this.decodeMode === In.Attribute && // We shouldn't have consumed any characters after the entity, (o === 0 || // And there should be no invalid characters. - qL(a)) ? 0 : this.emitNotTerminatedNamedEntity(); + XL(a)) ? 0 : this.emitNotTerminatedNamedEntity(); if (i = r[this.treeIndex], o = (i & Pn.VALUE_LENGTH) >> 14, o !== 0) { if (a === Ye.SEMI) return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess); @@ -75341,9 +75530,9 @@ class WL { } } } -function Rh(t) { +function Mh(t) { let e = ""; - const n = new WL(t, (r) => e += GL(r)); + const n = new jL(t, (r) => e += qL(r)); return function(i, o) { let a = 0, s = 0; for (; (s = i.indexOf("&", s)) >= 0; ) { @@ -75363,7 +75552,7 @@ function Rh(t) { return e = "", l; }; } -function KL(t, e, n, r) { +function JL(t, e, n, r) { const i = (e & Pn.BRANCH_LENGTH) >> 7, o = e & Pn.JUMP_TABLE; if (i === 0) return o !== 0 && r === o ? n : -1; @@ -75383,22 +75572,22 @@ function KL(t, e, n, r) { } return -1; } -const QL = Rh(BL); -Rh(UL); -function Oh(t, e = In.Legacy) { - return QL(t, e); +const ek = Mh(YL); +Mh(zL); +function wh(t, e = In.Legacy) { + return ek(t, e); } -function ZL(t) { +function tk(t) { return Object.prototype.toString.call(t); } -function Eu(t) { - return ZL(t) === "[object String]"; +function Cu(t) { + return tk(t) === "[object String]"; } -const XL = Object.prototype.hasOwnProperty; -function jL(t, e) { - return XL.call(t, e); +const nk = Object.prototype.hasOwnProperty; +function rk(t, e) { + return nk.call(t, e); } -function Rs(t) { +function Os(t) { return Array.prototype.slice.call(arguments, 1).forEach(function(n) { if (n) { if (typeof n != "object") @@ -75409,13 +75598,13 @@ function Rs(t) { } }), t; } -function Nh(t, e, n) { +function Lh(t, e, n) { return [].concat(t.slice(0, e), n, t.slice(e + 1)); } -function Su(t) { +function yu(t) { return !(t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534 || t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t >= 127 && t <= 159 || t > 1114111); } -function Ka(t) { +function Qa(t) { if (t > 65535) { t -= 65536; const e = 55296 + (t >> 10), n = 56320 + (t & 1023); @@ -75423,38 +75612,38 @@ function Ka(t) { } return String.fromCharCode(t); } -const Ah = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, JL = /&([a-z#][a-z0-9]{1,31});/gi, ek = new RegExp(Ah.source + "|" + JL.source, "gi"), tk = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i; -function nk(t, e) { - if (e.charCodeAt(0) === 35 && tk.test(e)) { +const kh = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, ik = /&([a-z#][a-z0-9]{1,31});/gi, ok = new RegExp(kh.source + "|" + ik.source, "gi"), ak = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i; +function sk(t, e) { + if (e.charCodeAt(0) === 35 && ak.test(e)) { const r = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10); - return Su(r) ? Ka(r) : t; + return yu(r) ? Qa(r) : t; } - const n = Oh(t); + const n = wh(t); return n !== t ? n : t; } -function rk(t) { - return t.indexOf("\\") < 0 ? t : t.replace(Ah, "$1"); +function lk(t) { + return t.indexOf("\\") < 0 ? t : t.replace(kh, "$1"); } function pi(t) { - return t.indexOf("\\") < 0 && t.indexOf("&") < 0 ? t : t.replace(ek, function(e, n, r) { - return n || nk(e, r); + return t.indexOf("\\") < 0 && t.indexOf("&") < 0 ? t : t.replace(ok, function(e, n, r) { + return n || sk(e, r); }); } -const ik = /[&<>"]/, ok = /[&<>"]/g, ak = { +const ck = /[&<>"]/, uk = /[&<>"]/g, dk = { "&": "&", "<": "<", ">": ">", '"': """ }; -function sk(t) { - return ak[t]; +function pk(t) { + return dk[t]; } -function Yn(t) { - return ik.test(t) ? t.replace(ok, sk) : t; +function zn(t) { + return ck.test(t) ? t.replace(uk, pk) : t; } -const lk = /[.?*+^$[\]\\(){}|-]/g; -function ck(t) { - return t.replace(lk, "\\$&"); +const _k = /[.?*+^$[\]\\(){}|-]/g; +function mk(t) { + return t.replace(_k, "\\$&"); } function Oe(t) { switch (t) { @@ -75464,7 +75653,7 @@ function Oe(t) { } return !1; } -function ao(t) { +function so(t) { if (t >= 8192 && t <= 8202) return !0; switch (t) { @@ -75483,10 +75672,10 @@ function ao(t) { } return !1; } -function so(t) { - return hu.test(t) || yh.test(t); -} function lo(t) { + return Tu.test(t) || xh.test(t); +} +function co(t) { switch (t) { case 33: case 34: @@ -75525,29 +75714,29 @@ function lo(t) { return !1; } } -function Os(t) { +function Ns(t) { return t = t.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (t = t.replace(/ẞ/g, "ß")), t.toLowerCase().toUpperCase(); } -const uk = { mdurl: kL, ucmicro: FL }, dk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const fk = { mdurl: HL, ucmicro: VL }, gk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - arrayReplaceAt: Nh, - assign: Rs, - escapeHtml: Yn, - escapeRE: ck, - fromCodePoint: Ka, - has: jL, - isMdAsciiPunct: lo, - isPunctChar: so, + arrayReplaceAt: Lh, + assign: Os, + escapeHtml: zn, + escapeRE: mk, + fromCodePoint: Qa, + has: rk, + isMdAsciiPunct: co, + isPunctChar: lo, isSpace: Oe, - isString: Eu, - isValidEntityCode: Su, - isWhiteSpace: ao, - lib: uk, - normalizeReference: Os, + isString: Cu, + isValidEntityCode: yu, + isWhiteSpace: so, + lib: fk, + normalizeReference: Ns, unescapeAll: pi, - unescapeMd: rk + unescapeMd: lk }, Symbol.toStringTag, { value: "Module" })); -function pk(t, e, n) { +function hk(t, e, n) { let r, i, o, a; const s = t.posMax, l = t.pos; for (t.pos = e + 1, r = 1; t.pos < s; ) { @@ -75565,7 +75754,7 @@ function pk(t, e, n) { let c = -1; return i && (c = t.pos), t.pos = l, c; } -function _k(t, e, n) { +function Ek(t, e, n) { let r, i = e; const o = { ok: !1, @@ -75605,7 +75794,7 @@ function _k(t, e, n) { } return e === i || a !== 0 || (o.str = pi(t.slice(e, i)), o.pos = i, o.ok = !0), o; } -function mk(t, e, n, r) { +function Sk(t, e, n, r) { let i, o = e; const a = { // if `true`, this is a valid link title @@ -75638,19 +75827,19 @@ function mk(t, e, n, r) { } return a.can_continue = !0, a.str += pi(t.slice(e, o)), a; } -const fk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const bk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - parseLinkDestination: _k, - parseLinkLabel: pk, - parseLinkTitle: mk + parseLinkDestination: Ek, + parseLinkLabel: hk, + parseLinkTitle: Sk }, Symbol.toStringTag, { value: "Module" })), an = {}; an.code_inline = function(t, e, n, r, i) { const o = t[e]; - return "" + Yn(o.content) + ""; + return "" + zn(o.content) + ""; }; an.code_block = function(t, e, n, r, i) { const o = t[e]; - return "" + Yn(t[e].content) + ` + return "" + zn(t[e].content) + ` `; }; an.fence = function(t, e, n, r, i) { @@ -75661,7 +75850,7 @@ an.fence = function(t, e, n, r, i) { s = u[0], l = u.slice(2).join(""); } let c; - if (n.highlight ? c = n.highlight(o.content, s, l) || Yn(o.content) : c = Yn(o.content), c.indexOf("\s]/i.test(t); } -function Ck(t) { +function Nk(t) { return /^<\/a\s*>/i.test(t); } -function yk(t) { +function Ak(t) { const e = t.tokens; if (t.md.options.linkify) for (let n = 0, r = e.length; n < r; n++) { @@ -75927,7 +76116,7 @@ function yk(t) { a--; continue; } - if (s.type === "html_inline" && (Tk(s.content) && o > 0 && o--, Ck(s.content) && o++), !(o > 0) && s.type === "text" && t.md.linkify.test(s.content)) { + if (s.type === "html_inline" && (Ok(s.content) && o > 0 && o--, Nk(s.content) && o++), !(o > 0) && s.type === "text" && t.md.linkify.test(s.content)) { const l = s.content; let c = t.md.linkify.match(l); const u = []; @@ -75939,13 +76128,13 @@ function yk(t) { continue; let g = c[_].text; c[_].schema ? c[_].schema === "mailto:" && !/^mailto:/i.test(g) ? g = t.md.normalizeLinkText("mailto:" + g).replace(/^mailto:/, "") : g = t.md.normalizeLinkText(g) : g = t.md.normalizeLinkText("http://" + g).replace(/^http:\/\//, ""); - const E = c[_].index; - if (E > p) { + const S = c[_].index; + if (S > p) { const C = new t.Token("text", "", 0); - C.content = l.slice(p, E), C.level = d, u.push(C); + C.content = l.slice(p, S), C.level = d, u.push(C); } - const S = new t.Token("link_open", "a", 1); - S.attrs = [["href", f]], S.level = d++, S.markup = "linkify", S.info = "auto", u.push(S); + const E = new t.Token("link_open", "a", 1); + E.attrs = [["href", f]], E.level = d++, E.markup = "linkify", E.info = "auto", u.push(E); const b = new t.Token("text", "", 0); b.content = g, b.level = d, u.push(b); const h = new t.Token("link_close", "a", -1); @@ -75955,44 +76144,44 @@ function yk(t) { const _ = new t.Token("text", "", 0); _.content = l.slice(p), _.level = d, u.push(_); } - e[n].children = i = Nh(i, a, u); + e[n].children = i = Lh(i, a, u); } } } } -const xh = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, vk = /\((c|tm|r)\)/i, Rk = /\((c|tm|r)\)/ig, Ok = { +const Fh = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Ik = /\((c|tm|r)\)/i, xk = /\((c|tm|r)\)/ig, Dk = { c: "©", r: "®", tm: "™" }; -function Nk(t, e) { - return Ok[e.toLowerCase()]; +function Mk(t, e) { + return Dk[e.toLowerCase()]; } -function Ak(t) { +function wk(t) { let e = 0; for (let n = t.length - 1; n >= 0; n--) { const r = t[n]; - r.type === "text" && !e && (r.content = r.content.replace(Rk, Nk)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++; + r.type === "text" && !e && (r.content = r.content.replace(xk, Mk)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++; } } -function Ik(t) { +function Lk(t) { let e = 0; for (let n = t.length - 1; n >= 0; n--) { const r = t[n]; - r.type === "text" && !e && xh.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++; + r.type === "text" && !e && Fh.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++; } } -function xk(t) { +function kk(t) { let e; if (t.md.options.typographer) for (e = t.tokens.length - 1; e >= 0; e--) - t.tokens[e].type === "inline" && (vk.test(t.tokens[e].content) && Ak(t.tokens[e].children), xh.test(t.tokens[e].content) && Ik(t.tokens[e].children)); + t.tokens[e].type === "inline" && (Ik.test(t.tokens[e].content) && wk(t.tokens[e].children), Fh.test(t.tokens[e].content) && Lk(t.tokens[e].children)); } -const Dk = /['"]/, F_ = /['"]/g, B_ = "’"; -function Ko(t, e, n) { +const Pk = /['"]/, V_ = /['"]/g, Y_ = "’"; +function Qo(t, e, n) { return t.slice(0, e) + n + t.slice(e + 1); } -function Mk(t, e) { +function Fk(t, e) { let n; const r = []; for (let i = 0; i < t.length; i++) { @@ -76004,8 +76193,8 @@ function Mk(t, e) { let s = o.content, l = 0, c = s.length; e: for (; l < c; ) { - F_.lastIndex = l; - const u = F_.exec(s); + V_.lastIndex = l; + const u = V_.exec(s); if (!u) break; let d = !0, p = !0; @@ -76029,9 +76218,9 @@ function Mk(t, e) { f = t[n].content.charCodeAt(0); break; } - const g = lo(m) || so(String.fromCharCode(m)), E = lo(f) || so(String.fromCharCode(f)), S = ao(m), b = ao(f); - if (b ? d = !1 : E && (S || g || (d = !1)), S ? p = !1 : g && (b || E || (p = !1)), f === 34 && u[0] === '"' && m >= 48 && m <= 57 && (p = d = !1), d && p && (d = g, p = E), !d && !p) { - _ && (o.content = Ko(o.content, u.index, B_)); + const g = co(m) || lo(String.fromCharCode(m)), S = co(f) || lo(String.fromCharCode(f)), E = so(m), b = so(f); + if (b ? d = !1 : S && (E || g || (d = !1)), E ? p = !1 : g && (b || S || (p = !1)), f === 34 && u[0] === '"' && m >= 48 && m <= 57 && (p = d = !1), d && p && (d = g, p = S), !d && !p) { + _ && (o.content = Qo(o.content, u.index, Y_)); continue; } if (p) @@ -76042,7 +76231,7 @@ function Mk(t, e) { if (h.single === _ && r[n].level === a) { h = r[n]; let C, T; - _ ? (C = e.md.options.quotes[2], T = e.md.options.quotes[3]) : (C = e.md.options.quotes[0], T = e.md.options.quotes[1]), o.content = Ko(o.content, u.index, T), t[h.token].content = Ko( + _ ? (C = e.md.options.quotes[2], T = e.md.options.quotes[3]) : (C = e.md.options.quotes[0], T = e.md.options.quotes[1]), o.content = Qo(o.content, u.index, T), t[h.token].content = Qo( t[h.token].content, h.pos, C @@ -76055,16 +76244,16 @@ function Mk(t, e) { pos: u.index, single: _, level: a - }) : p && _ && (o.content = Ko(o.content, u.index, B_)); + }) : p && _ && (o.content = Qo(o.content, u.index, Y_)); } } } -function wk(t) { +function Bk(t) { if (t.md.options.typographer) for (let e = t.tokens.length - 1; e >= 0; e--) - t.tokens[e].type !== "inline" || !Dk.test(t.tokens[e].content) || Mk(t.tokens[e].children, t); + t.tokens[e].type !== "inline" || !Pk.test(t.tokens[e].content) || Fk(t.tokens[e].children, t); } -function Lk(t) { +function Uk(t) { let e, n; const r = t.tokens, i = r.length; for (let o = 0; o < i; o++) { @@ -76077,28 +76266,28 @@ function Lk(t) { e !== n && (a.length = n); } } -const hl = [ - ["normalize", Ek], - ["block", Sk], - ["inline", bk], - ["linkify", yk], - ["replacements", xk], - ["smartquotes", wk], +const Sl = [ + ["normalize", yk], + ["block", vk], + ["inline", Rk], + ["linkify", Ak], + ["replacements", kk], + ["smartquotes", Bk], // `text_join` finds `text_special` tokens (for escape sequences) // and joins them with the rest of the text - ["text_join", Lk] + ["text_join", Uk] ]; -function bu() { +function vu() { this.ruler = new gt(); - for (let t = 0; t < hl.length; t++) - this.ruler.push(hl[t][0], hl[t][1]); + for (let t = 0; t < Sl.length; t++) + this.ruler.push(Sl[t][0], Sl[t][1]); } -bu.prototype.process = function(t) { +vu.prototype.process = function(t) { const e = this.ruler.getRules(""); for (let n = 0, r = e.length; n < r; n++) e[n](t); }; -bu.prototype.State = Ih; +vu.prototype.State = Ph; function sn(t, e, n, r) { this.src = t, this.md = e, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0; const i = this.src; @@ -76178,19 +76367,19 @@ sn.prototype.getLines = function(e, n, r, i) { return o.join(""); }; sn.prototype.Token = Yt; -const kk = 65536; -function El(t, e) { +const Hk = 65536; +function bl(t, e) { const n = t.bMarks[e] + t.tShift[e], r = t.eMarks[e]; return t.src.slice(n, r); } -function U_(t) { +function z_(t) { const e = [], n = t.length; let r = 0, i = t.charCodeAt(r), o = !1, a = 0, s = ""; for (; r < n; ) i === 124 && (o ? (s += t.substring(a, r - 1), a = r) : (e.push(s + t.substring(a, r)), s = "", a = r + 1)), o = i === 92, r++, i = t.charCodeAt(r); return e.push(s + t.substring(a)), e; } -function Pk(t, e, n, r) { +function Gk(t, e, n, r) { if (e + 2 > n) return !1; let i = e + 1; @@ -76211,7 +76400,7 @@ function Pk(t, e, n, r) { return !1; o++; } - let l = El(t, e + 1), c = l.split("|"); + let l = bl(t, e + 1), c = l.split("|"); const u = []; for (let h = 0; h < c.length; h++) { const C = c[h].trim(); @@ -76224,9 +76413,9 @@ function Pk(t, e, n, r) { return !1; C.charCodeAt(C.length - 1) === 58 ? u.push(C.charCodeAt(0) === 58 ? "center" : "right") : C.charCodeAt(0) === 58 ? u.push("left") : u.push(""); } - if (l = El(t, e).trim(), l.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4) + if (l = bl(t, e).trim(), l.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4) return !1; - c = U_(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(); + c = z_(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(); const d = c.length; if (d === 0 || d !== u.length) return !1; @@ -76238,8 +76427,8 @@ function Pk(t, e, n, r) { m.map = f; const g = t.push("thead_open", "thead", 1); g.map = [e, e + 1]; - const E = t.push("tr_open", "tr", 1); - E.map = [e, e + 1]; + const S = t.push("tr_open", "tr", 1); + S.map = [e, e + 1]; for (let h = 0; h < c.length; h++) { const C = t.push("th_open", "th", 1); u[h] && (C.attrs = [["style", "text-align:" + u[h]]]); @@ -76247,7 +76436,7 @@ function Pk(t, e, n, r) { T.content = c[h].trim(), T.children = [], t.push("th_close", "th", -1); } t.push("tr_close", "tr", -1), t.push("thead_close", "thead", -1); - let S, b = 0; + let E, b = 0; for (i = e + 2; i < n && !(t.sCount[i] < t.blkIndent); i++) { let h = !1; for (let T = 0, R = _.length; T < R; T++) @@ -76255,11 +76444,11 @@ function Pk(t, e, n, r) { h = !0; break; } - if (h || (l = El(t, i).trim(), !l) || t.sCount[i] - t.blkIndent >= 4 || (c = U_(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), b += d - c.length, b > kk)) + if (h || (l = bl(t, i).trim(), !l) || t.sCount[i] - t.blkIndent >= 4 || (c = z_(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), b += d - c.length, b > Hk)) break; if (i === e + 2) { const T = t.push("tbody_open", "tbody", 1); - T.map = S = [e + 2, 0]; + T.map = E = [e + 2, 0]; } const C = t.push("tr_open", "tr", 1); C.map = [i, i + 1]; @@ -76271,9 +76460,9 @@ function Pk(t, e, n, r) { } t.push("tr_close", "tr", -1); } - return S && (t.push("tbody_close", "tbody", -1), S[1] = i), t.push("table_close", "table", -1), f[1] = i, t.parentType = p, t.line = i, !0; + return E && (t.push("tbody_close", "tbody", -1), E[1] = i), t.push("table_close", "table", -1), f[1] = i, t.parentType = p, t.line = i, !0; } -function Fk(t, e, n) { +function Vk(t, e, n) { if (t.sCount[e] - t.blkIndent < 4) return !1; let r = e + 1, i = r; @@ -76293,7 +76482,7 @@ function Fk(t, e, n) { return o.content = t.getLines(e, i, 4 + t.blkIndent, !1) + ` `, o.map = [e, t.line], !0; } -function Bk(t, e, n, r) { +function Yk(t, e, n, r) { let i = t.bMarks[e] + t.tShift[e], o = t.eMarks[e]; if (t.sCount[e] - t.blkIndent >= 4 || i + 3 > o) return !1; @@ -76320,7 +76509,7 @@ function Bk(t, e, n, r) { const _ = t.push("fence", "code", 0); return _.info = u, _.content = t.getLines(e + 1, d, l, !0), _.markup = c, _.map = [e, t.line], !0; } -function Uk(t, e, n, r) { +function zk(t, e, n, r) { let i = t.bMarks[e] + t.tShift[e], o = t.eMarks[e]; const a = t.lineMax; if (t.sCount[e] - t.blkIndent >= 4 || t.src.charCodeAt(i) !== 62) @@ -76367,15 +76556,15 @@ function Uk(t, e, n, r) { t.blkIndent = 0; const g = t.push("blockquote_open", "blockquote", 1); g.markup = ">"; - const E = [e, 0]; - g.map = E, t.md.block.tokenize(t, e, m); - const S = t.push("blockquote_close", "blockquote", -1); - S.markup = ">", t.lineMax = a, t.parentType = p, E[1] = t.line; + const S = [e, 0]; + g.map = S, t.md.block.tokenize(t, e, m); + const E = t.push("blockquote_close", "blockquote", -1); + E.markup = ">", t.lineMax = a, t.parentType = p, S[1] = t.line; for (let b = 0; b < u.length; b++) t.bMarks[b + e] = s[b], t.tShift[b + e] = u[b], t.sCount[b + e] = c[b], t.bsCount[b + e] = l[b]; return t.blkIndent = f, !0; } -function Hk(t, e, n, r) { +function $k(t, e, n, r) { const i = t.eMarks[e]; if (t.sCount[e] - t.blkIndent >= 4) return !1; @@ -76398,7 +76587,7 @@ function Hk(t, e, n, r) { const l = t.push("hr", "hr", 0); return l.map = [e, t.line], l.markup = Array(s + 1).join(String.fromCharCode(a)), !0; } -function H_(t, e) { +function $_(t, e) { const n = t.eMarks[e]; let r = t.bMarks[e] + t.tShift[e]; const i = t.src.charCodeAt(r++); @@ -76411,7 +76600,7 @@ function H_(t, e) { } return r; } -function G_(t, e) { +function q_(t, e) { const n = t.bMarks[e] + t.tShift[e], r = t.eMarks[e]; let i = n; if (i + 1 >= r) @@ -76433,21 +76622,21 @@ function G_(t, e) { } return i < r && (o = t.src.charCodeAt(i), !Oe(o)) ? -1 : i; } -function Gk(t, e) { +function qk(t, e) { const n = t.level + 2; for (let r = e + 2, i = t.tokens.length - 2; r < i; r++) t.tokens[r].level === n && t.tokens[r].type === "paragraph_open" && (t.tokens[r + 2].hidden = !0, t.tokens[r].hidden = !0, r += 2); } -function Vk(t, e, n, r) { +function Wk(t, e, n, r) { let i, o, a, s, l = e, c = !0; if (t.sCount[l] - t.blkIndent >= 4 || t.listIndent >= 0 && t.sCount[l] - t.listIndent >= 4 && t.sCount[l] < t.blkIndent) return !1; let u = !1; r && t.parentType === "paragraph" && t.sCount[l] >= t.blkIndent && (u = !0); let d, p, _; - if ((_ = G_(t, l)) >= 0) { + if ((_ = q_(t, l)) >= 0) { if (d = !0, a = t.bMarks[l] + t.tShift[l], p = Number(t.src.slice(a, _ - 1)), u && p !== 1) return !1; - } else if ((_ = H_(t, l)) >= 0) + } else if ((_ = $_(t, l)) >= 0) d = !1; else return !1; @@ -76459,8 +76648,8 @@ function Vk(t, e, n, r) { d ? (s = t.push("ordered_list_open", "ol", 1), p !== 1 && (s.attrs = [["start", p]])) : s = t.push("bullet_list_open", "ul", 1); const g = [l, 0]; s.map = g, s.markup = String.fromCharCode(m); - let E = !1; - const S = t.md.block.ruler.getRules("list"), b = t.parentType; + let S = !1; + const E = t.md.block.ruler.getRules("list"), b = t.parentType; for (t.parentType = "list"; l < n; ) { o = _, i = t.eMarks[l]; const h = t.sCount[l] + _ - (t.bMarks[l] + t.tShift[l]); @@ -76483,65 +76672,65 @@ function Vk(t, e, n, r) { const O = [l, 0]; s.map = O, d && (s.info = t.src.slice(a, _ - 1)); const M = t.tight, B = t.tShift[l], Y = t.sCount[l], $ = t.listIndent; - if (t.listIndent = t.blkIndent, t.blkIndent = x, t.tight = !0, t.tShift[l] = T - t.bMarks[l], t.sCount[l] = C, T >= i && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || E) && (c = !1), E = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = $, t.tShift[l] = B, t.sCount[l] = Y, t.tight = M, s = t.push("list_item_close", "li", -1), s.markup = String.fromCharCode(m), l = t.line, O[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4) + if (t.listIndent = t.blkIndent, t.blkIndent = x, t.tight = !0, t.tShift[l] = T - t.bMarks[l], t.sCount[l] = C, T >= i && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || S) && (c = !1), S = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = $, t.tShift[l] = B, t.sCount[l] = Y, t.tight = M, s = t.push("list_item_close", "li", -1), s.markup = String.fromCharCode(m), l = t.line, O[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4) break; let q = !1; - for (let V = 0, J = S.length; V < J; V++) - if (S[V](t, l, n, !0)) { + for (let V = 0, J = E.length; V < J; V++) + if (E[V](t, l, n, !0)) { q = !0; break; } if (q) break; if (d) { - if (_ = G_(t, l), _ < 0) + if (_ = q_(t, l), _ < 0) break; a = t.bMarks[l] + t.tShift[l]; - } else if (_ = H_(t, l), _ < 0) + } else if (_ = $_(t, l), _ < 0) break; if (m !== t.src.charCodeAt(_ - 1)) break; } - return d ? s = t.push("ordered_list_close", "ol", -1) : s = t.push("bullet_list_close", "ul", -1), s.markup = String.fromCharCode(m), g[1] = l, t.line = l, t.parentType = b, c && Gk(t, f), !0; + return d ? s = t.push("ordered_list_close", "ol", -1) : s = t.push("bullet_list_close", "ul", -1), s.markup = String.fromCharCode(m), g[1] = l, t.line = l, t.parentType = b, c && qk(t, f), !0; } -function Yk(t, e, n, r) { +function Kk(t, e, n, r) { let i = t.bMarks[e] + t.tShift[e], o = t.eMarks[e], a = e + 1; if (t.sCount[e] - t.blkIndent >= 4 || t.src.charCodeAt(i) !== 91) return !1; - function s(S) { + function s(E) { const b = t.lineMax; - if (S >= b || t.isEmpty(S)) + if (E >= b || t.isEmpty(E)) return null; let h = !1; - if (t.sCount[S] - t.blkIndent > 3 && (h = !0), t.sCount[S] < 0 && (h = !0), !h) { + if (t.sCount[E] - t.blkIndent > 3 && (h = !0), t.sCount[E] < 0 && (h = !0), !h) { const R = t.md.block.ruler.getRules("reference"), x = t.parentType; t.parentType = "reference"; let O = !1; for (let M = 0, B = R.length; M < B; M++) - if (R[M](t, S, b, !0)) { + if (R[M](t, E, b, !0)) { O = !0; break; } if (t.parentType = x, O) return null; } - const C = t.bMarks[S] + t.tShift[S], T = t.eMarks[S]; + const C = t.bMarks[E] + t.tShift[E], T = t.eMarks[E]; return t.src.slice(C, T + 1); } let l = t.src.slice(i, o + 1); o = l.length; let c = -1; for (i = 1; i < o; i++) { - const S = l.charCodeAt(i); - if (S === 91) + const E = l.charCodeAt(i); + if (E === 91) return !1; - if (S === 93) { + if (E === 93) { c = i; break; - } else if (S === 10) { + } else if (E === 10) { const b = s(a); b !== null && (l += b, o = l.length, a++); - } else if (S === 92 && (i++, i < o && l.charCodeAt(i) === 10)) { + } else if (E === 92 && (i++, i < o && l.charCodeAt(i) === 10)) { const b = s(a); b !== null && (l += b, o = l.length, a++); } @@ -76549,11 +76738,11 @@ function Yk(t, e, n, r) { if (c < 0 || l.charCodeAt(c + 1) !== 58) return !1; for (i = c + 2; i < o; i++) { - const S = l.charCodeAt(i); - if (S === 10) { + const E = l.charCodeAt(i); + if (E === 10) { const b = s(a); b !== null && (l += b, o = l.length, a++); - } else if (!Oe(S)) break; + } else if (!Oe(E)) break; } const u = t.md.helpers.parseLinkDestination(l, i, o); if (!u.ok) @@ -76564,38 +76753,38 @@ function Yk(t, e, n, r) { i = u.pos; const p = i, _ = a, m = i; for (; i < o; i++) { - const S = l.charCodeAt(i); - if (S === 10) { + const E = l.charCodeAt(i); + if (E === 10) { const b = s(a); b !== null && (l += b, o = l.length, a++); - } else if (!Oe(S)) break; + } else if (!Oe(E)) break; } let f = t.md.helpers.parseLinkTitle(l, i, o); for (; f.can_continue; ) { - const S = s(a); - if (S === null) break; - l += S, i = o, o = l.length, a++, f = t.md.helpers.parseLinkTitle(l, i, o, f); + const E = s(a); + if (E === null) break; + l += E, i = o, o = l.length, a++, f = t.md.helpers.parseLinkTitle(l, i, o, f); } let g; for (i < o && m !== i && f.ok ? (g = f.str, i = f.pos) : (g = "", i = p, a = _); i < o; ) { - const S = l.charCodeAt(i); - if (!Oe(S)) + const E = l.charCodeAt(i); + if (!Oe(E)) break; i++; } if (i < o && l.charCodeAt(i) !== 10 && g) for (g = "", i = p, a = _; i < o; ) { - const S = l.charCodeAt(i); - if (!Oe(S)) + const E = l.charCodeAt(i); + if (!Oe(E)) break; i++; } if (i < o && l.charCodeAt(i) !== 10) return !1; - const E = Os(l.slice(1, c)); - return E ? (r || (typeof t.env.references > "u" && (t.env.references = {}), typeof t.env.references[E] > "u" && (t.env.references[E] = { title: g, href: d }), t.line = a), !0) : !1; + const S = Ns(l.slice(1, c)); + return S ? (r || (typeof t.env.references > "u" && (t.env.references = {}), typeof t.env.references[S] > "u" && (t.env.references[S] = { title: g, href: d }), t.line = a), !0) : !1; } -const zk = [ +const Qk = [ "address", "article", "aside", @@ -76658,16 +76847,16 @@ const zk = [ "tr", "track", "ul" -], $k = "[a-zA-Z_:][a-zA-Z0-9:._-]*", qk = "[^\"'=<>`\\x00-\\x20]+", Wk = "'[^']*'", Kk = '"[^"]*"', Qk = "(?:" + qk + "|" + Wk + "|" + Kk + ")", Zk = "(?:\\s+" + $k + "(?:\\s*=\\s*" + Qk + ")?)", Dh = "<[A-Za-z][A-Za-z0-9\\-]*" + Zk + "*\\s*\\/?>", Mh = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Xk = "", jk = "<[?][\\s\\S]*?[?]>", Jk = "]*>", eP = "", tP = new RegExp("^(?:" + Dh + "|" + Mh + "|" + Xk + "|" + jk + "|" + Jk + "|" + eP + ")"), nP = new RegExp("^(?:" + Dh + "|" + Mh + ")"), kr = [ +], Zk = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Xk = "[^\"'=<>`\\x00-\\x20]+", jk = "'[^']*'", Jk = '"[^"]*"', eP = "(?:" + Xk + "|" + jk + "|" + Jk + ")", tP = "(?:\\s+" + Zk + "(?:\\s*=\\s*" + eP + ")?)", Bh = "<[A-Za-z][A-Za-z0-9\\-]*" + tP + "*\\s*\\/?>", Uh = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", nP = "", rP = "<[?][\\s\\S]*?[?]>", iP = "]*>", oP = "", aP = new RegExp("^(?:" + Bh + "|" + Uh + "|" + nP + "|" + rP + "|" + iP + "|" + oP + ")"), sP = new RegExp("^(?:" + Bh + "|" + Uh + ")"), kr = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(nP.source + "\\s*$"), /^$/, !1] + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(sP.source + "\\s*$"), /^$/, !1] ]; -function rP(t, e, n, r) { +function lP(t, e, n, r) { let i = t.bMarks[e] + t.tShift[e], o = t.eMarks[e]; if (t.sCount[e] - t.blkIndent >= 4 || !t.md.options.html || t.src.charCodeAt(i) !== 60) return !1; @@ -76690,7 +76879,7 @@ function rP(t, e, n, r) { const c = t.push("html_block", "", 0); return c.map = [e, l], c.content = t.getLines(e, l, t.blkIndent, !0), !0; } -function iP(t, e, n, r) { +function cP(t, e, n, r) { let i = t.bMarks[e] + t.tShift[e], o = t.eMarks[e]; if (t.sCount[e] - t.blkIndent >= 4) return !1; @@ -76714,7 +76903,7 @@ function iP(t, e, n, r) { const d = t.push("heading_close", "h" + String(s), -1); return d.markup = "########".slice(0, s), !0; } -function oP(t, e, n) { +function uP(t, e, n) { const r = t.md.block.ruler.getRules("paragraph"); if (t.sCount[e] - t.blkIndent >= 4) return !1; @@ -76754,7 +76943,7 @@ function oP(t, e, n) { const d = t.push("heading_close", "h" + String(o), -1); return d.markup = String.fromCharCode(a), t.parentType = i, !0; } -function aP(t, e, n) { +function dP(t, e, n) { const r = t.md.block.ruler.getRules("paragraph"), i = t.parentType; let o = e + 1; for (t.parentType = "paragraph"; o < n && !t.isEmpty(o); o++) { @@ -76776,27 +76965,27 @@ function aP(t, e, n) { const l = t.push("inline", "", 0); return l.content = a, l.map = [e, t.line], l.children = [], t.push("paragraph_close", "p", -1), t.parentType = i, !0; } -const Qo = [ +const Zo = [ // First 2 params - rule name & source. Secondary array - list of rules, // which can be terminated by this one. - ["table", Pk, ["paragraph", "reference"]], - ["code", Fk], - ["fence", Bk, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", Uk, ["paragraph", "reference", "blockquote", "list"]], - ["hr", Hk, ["paragraph", "reference", "blockquote", "list"]], - ["list", Vk, ["paragraph", "reference", "blockquote"]], - ["reference", Yk], - ["html_block", rP, ["paragraph", "reference", "blockquote"]], - ["heading", iP, ["paragraph", "reference", "blockquote"]], - ["lheading", oP], - ["paragraph", aP] + ["table", Gk, ["paragraph", "reference"]], + ["code", Vk], + ["fence", Yk, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", zk, ["paragraph", "reference", "blockquote", "list"]], + ["hr", $k, ["paragraph", "reference", "blockquote", "list"]], + ["list", Wk, ["paragraph", "reference", "blockquote"]], + ["reference", Kk], + ["html_block", lP, ["paragraph", "reference", "blockquote"]], + ["heading", cP, ["paragraph", "reference", "blockquote"]], + ["lheading", uP], + ["paragraph", dP] ]; -function Ns() { +function As() { this.ruler = new gt(); - for (let t = 0; t < Qo.length; t++) - this.ruler.push(Qo[t][0], Qo[t][1], { alt: (Qo[t][2] || []).slice() }); + for (let t = 0; t < Zo.length; t++) + this.ruler.push(Zo[t][0], Zo[t][1], { alt: (Zo[t][2] || []).slice() }); } -Ns.prototype.tokenize = function(t, e, n) { +As.prototype.tokenize = function(t, e, n) { const r = this.ruler.getRules(""), i = r.length, o = t.md.options.maxNesting; let a = e, s = !1; for (; a < n && (t.line = a = t.skipEmptyLines(a), !(a >= n || t.sCount[a] < t.blkIndent)); ) { @@ -76816,36 +77005,36 @@ Ns.prototype.tokenize = function(t, e, n) { t.tight = !s, t.isEmpty(t.line - 1) && (s = !0), a = t.line, a < n && t.isEmpty(a) && (s = !0, a++, t.line = a); } }; -Ns.prototype.parse = function(t, e, n, r) { +As.prototype.parse = function(t, e, n, r) { if (!t) return; const i = new this.State(t, e, n, r); this.tokenize(i, i.line, i.lineMax); }; -Ns.prototype.State = sn; -function So(t, e, n, r) { +As.prototype.State = sn; +function bo(t, e, n, r) { this.src = t, this.env = n, this.md = e, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0; } -So.prototype.pushPending = function() { +bo.prototype.pushPending = function() { const t = new Yt("text", "", 0); return t.content = this.pending, t.level = this.pendingLevel, this.tokens.push(t), this.pending = "", t; }; -So.prototype.push = function(t, e, n) { +bo.prototype.push = function(t, e, n) { this.pending && this.pushPending(); const r = new Yt(t, e, n); let i = null; return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(i), r; }; -So.prototype.scanDelims = function(t, e) { +bo.prototype.scanDelims = function(t, e) { const n = this.posMax, r = this.src.charCodeAt(t), i = t > 0 ? this.src.charCodeAt(t - 1) : 32; let o = t; for (; o < n && this.src.charCodeAt(o) === r; ) o++; - const a = o - t, s = o < n ? this.src.charCodeAt(o) : 32, l = lo(i) || so(String.fromCharCode(i)), c = lo(s) || so(String.fromCharCode(s)), u = ao(i), d = ao(s), p = !d && (!c || u || l), _ = !u && (!l || d || c); + const a = o - t, s = o < n ? this.src.charCodeAt(o) : 32, l = co(i) || lo(String.fromCharCode(i)), c = co(s) || lo(String.fromCharCode(s)), u = so(i), d = so(s), p = !d && (!c || u || l), _ = !u && (!l || d || c); return { can_open: p && (e || !_ || l), can_close: _ && (e || !p || c), length: a }; }; -So.prototype.Token = Yt; -function sP(t) { +bo.prototype.Token = Yt; +function pP(t) { switch (t) { case 10: case 33: @@ -76875,18 +77064,18 @@ function sP(t) { return !1; } } -function lP(t, e) { +function _P(t, e) { let n = t.pos; - for (; n < t.posMax && !sP(t.src.charCodeAt(n)); ) + for (; n < t.posMax && !pP(t.src.charCodeAt(n)); ) n++; return n === t.pos ? !1 : (e || (t.pending += t.src.slice(t.pos, n)), t.pos = n, !0); } -const cP = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i; -function uP(t, e) { +const mP = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i; +function fP(t, e) { if (!t.md.options.linkify || t.linkLevel > 0) return !1; const n = t.pos, r = t.posMax; if (n + 3 > r || t.src.charCodeAt(n) !== 58 || t.src.charCodeAt(n + 1) !== 47 || t.src.charCodeAt(n + 2) !== 47) return !1; - const i = t.pending.match(cP); + const i = t.pending.match(mP); if (!i) return !1; const o = i[1], a = t.md.linkify.matchAtStart(t.src.slice(n - o.length)); if (!a) return !1; @@ -76906,7 +77095,7 @@ function uP(t, e) { } return t.pos += s.length - o.length, !0; } -function dP(t, e) { +function gP(t, e) { let n = t.pos; if (t.src.charCodeAt(n) !== 10) return !1; @@ -76925,13 +77114,13 @@ function dP(t, e) { n++; return t.pos = n, !0; } -const Tu = []; +const Ru = []; for (let t = 0; t < 256; t++) - Tu.push(0); + Ru.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { - Tu[t.charCodeAt(0)] = 1; + Ru[t.charCodeAt(0)] = 1; }); -function pP(t, e) { +function hP(t, e) { let n = t.pos; const r = t.posMax; if (t.src.charCodeAt(n) !== 92 || (n++, n >= r)) return !1; @@ -76949,11 +77138,11 @@ function pP(t, e) { const a = "\\" + o; if (!e) { const s = t.push("text_special", "", 0); - i < 256 && Tu[i] !== 0 ? s.content = o : s.content = a, s.markup = a, s.info = "escape"; + i < 256 && Ru[i] !== 0 ? s.content = o : s.content = a, s.markup = a, s.info = "escape"; } return t.pos = n + 1, !0; } -function _P(t, e) { +function EP(t, e) { let n = t.pos; if (t.src.charCodeAt(n) !== 96) return !1; @@ -76981,7 +77170,7 @@ function _P(t, e) { } return t.backticksScanned = !0, e || (t.pending += a), t.pos += s, !0; } -function mP(t, e) { +function SP(t, e) { const n = t.pos, r = t.src.charCodeAt(n); if (e || r !== 126) return !1; @@ -77004,7 +77193,7 @@ function mP(t, e) { }); return t.pos += i.length, !0; } -function V_(t, e) { +function W_(t, e) { let n; const r = [], i = e.length; for (let o = 0; o < i; o++) { @@ -77022,17 +77211,17 @@ function V_(t, e) { a--, o !== a && (n = t.tokens[a], t.tokens[a] = t.tokens[o], t.tokens[o] = n); } } -function fP(t) { +function bP(t) { const e = t.tokens_meta, n = t.tokens_meta.length; - V_(t, t.delimiters); + W_(t, t.delimiters); for (let r = 0; r < n; r++) - e[r] && e[r].delimiters && V_(t, e[r].delimiters); + e[r] && e[r].delimiters && W_(t, e[r].delimiters); } -const wh = { - tokenize: mP, - postProcess: fP +const Hh = { + tokenize: SP, + postProcess: bP }; -function gP(t, e) { +function TP(t, e) { const n = t.pos, r = t.src.charCodeAt(n); if (e || r !== 95 && r !== 42) return !1; @@ -77062,7 +77251,7 @@ function gP(t, e) { } return t.pos += i.length, !0; } -function Y_(t, e) { +function K_(t, e) { const n = e.length; for (let r = n - 1; r >= 0; r--) { const i = e[r]; @@ -77076,17 +77265,17 @@ function Y_(t, e) { c.type = a ? "strong_close" : "em_close", c.tag = a ? "strong" : "em", c.nesting = -1, c.markup = a ? s + s : s, c.content = "", a && (t.tokens[e[r - 1].token].content = "", t.tokens[e[i.end + 1].token].content = "", r--); } } -function hP(t) { +function CP(t) { const e = t.tokens_meta, n = t.tokens_meta.length; - Y_(t, t.delimiters); + K_(t, t.delimiters); for (let r = 0; r < n; r++) - e[r] && e[r].delimiters && Y_(t, e[r].delimiters); + e[r] && e[r].delimiters && K_(t, e[r].delimiters); } -const Lh = { - tokenize: gP, - postProcess: hP +const Gh = { + tokenize: TP, + postProcess: CP }; -function EP(t, e) { +function yP(t, e) { let n, r, i, o, a = "", s = "", l = t.pos, c = !0; if (t.src.charCodeAt(t.pos) !== 91) return !1; @@ -77111,7 +77300,7 @@ function EP(t, e) { if (c) { if (typeof t.env.references > "u") return !1; - if (m < d && t.src.charCodeAt(m) === 91 ? (l = m + 1, m = t.md.helpers.parseLinkLabel(t, m), m >= 0 ? r = t.src.slice(l, m++) : m = _ + 1) : m = _ + 1, r || (r = t.src.slice(p, _)), o = t.env.references[Os(r)], !o) + if (m < d && t.src.charCodeAt(m) === 91 ? (l = m + 1, m = t.md.helpers.parseLinkLabel(t, m), m >= 0 ? r = t.src.slice(l, m++) : m = _ + 1) : m = _ + 1, r || (r = t.src.slice(p, _)), o = t.env.references[Ns(r)], !o) return t.pos = u, !1; a = o.href, s = o.title; } @@ -77122,7 +77311,7 @@ function EP(t, e) { } return t.pos = m, t.posMax = d, !0; } -function SP(t, e) { +function vP(t, e) { let n, r, i, o, a, s, l, c, u = ""; const d = t.pos, p = t.posMax; if (t.src.charCodeAt(t.pos) !== 33 || t.src.charCodeAt(t.pos + 1) !== 91) @@ -77148,7 +77337,7 @@ function SP(t, e) { } else { if (typeof t.env.references > "u") return !1; - if (o < p && t.src.charCodeAt(o) === 91 ? (c = o + 1, o = t.md.helpers.parseLinkLabel(t, o), o >= 0 ? i = t.src.slice(c, o++) : o = m + 1) : o = m + 1, i || (i = t.src.slice(_, m)), a = t.env.references[Os(i)], !a) + if (o < p && t.src.charCodeAt(o) === 91 ? (c = o + 1, o = t.md.helpers.parseLinkLabel(t, o), o >= 0 ? i = t.src.slice(c, o++) : o = m + 1) : o = m + 1, i || (i = t.src.slice(_, m)), a = t.env.references[Ns(i)], !a) return t.pos = d, !1; u = a.href, l = a.title; } @@ -77161,13 +77350,13 @@ function SP(t, e) { t.env, f ); - const g = t.push("image", "img", 0), E = [["src", u], ["alt", ""]]; - g.attrs = E, g.children = f, g.content = r, l && E.push(["title", l]); + const g = t.push("image", "img", 0), S = [["src", u], ["alt", ""]]; + g.attrs = S, g.children = f, g.content = r, l && S.push(["title", l]); } return t.pos = o, t.posMax = p, !0; } -const bP = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, TP = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/; -function CP(t, e) { +const RP = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, OP = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/; +function NP(t, e) { let n = t.pos; if (t.src.charCodeAt(n) !== 60) return !1; @@ -77179,7 +77368,7 @@ function CP(t, e) { if (a === 62) break; } const o = t.src.slice(r + 1, n); - if (TP.test(o)) { + if (OP.test(o)) { const a = t.md.normalizeLink(o); if (!t.md.validateLink(a)) return !1; @@ -77193,7 +77382,7 @@ function CP(t, e) { } return t.pos += o.length + 2, !0; } - if (bP.test(o)) { + if (RP.test(o)) { const a = t.md.normalizeLink("mailto:" + o); if (!t.md.validateLink(a)) return !1; @@ -77209,51 +77398,51 @@ function CP(t, e) { } return !1; } -function yP(t) { +function AP(t) { return /^\s]/i.test(t); } -function vP(t) { +function IP(t) { return /^<\/a\s*>/i.test(t); } -function RP(t) { +function xP(t) { const e = t | 32; return e >= 97 && e <= 122; } -function OP(t, e) { +function DP(t, e) { if (!t.md.options.html) return !1; const n = t.posMax, r = t.pos; if (t.src.charCodeAt(r) !== 60 || r + 2 >= n) return !1; const i = t.src.charCodeAt(r + 1); - if (i !== 33 && i !== 63 && i !== 47 && !RP(i)) + if (i !== 33 && i !== 63 && i !== 47 && !xP(i)) return !1; - const o = t.src.slice(r).match(tP); + const o = t.src.slice(r).match(aP); if (!o) return !1; if (!e) { const a = t.push("html_inline", "", 0); - a.content = o[0], yP(a.content) && t.linkLevel++, vP(a.content) && t.linkLevel--; + a.content = o[0], AP(a.content) && t.linkLevel++, IP(a.content) && t.linkLevel--; } return t.pos += o[0].length, !0; } -const NP = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, AP = /^&([a-z][a-z0-9]{1,31});/i; -function IP(t, e) { +const MP = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, wP = /^&([a-z][a-z0-9]{1,31});/i; +function LP(t, e) { const n = t.pos, r = t.posMax; if (t.src.charCodeAt(n) !== 38 || n + 1 >= r) return !1; if (t.src.charCodeAt(n + 1) === 35) { - const o = t.src.slice(n).match(NP); + const o = t.src.slice(n).match(MP); if (o) { if (!e) { const a = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), s = t.push("text_special", "", 0); - s.content = Su(a) ? Ka(a) : Ka(65533), s.markup = o[0], s.info = "entity"; + s.content = yu(a) ? Qa(a) : Qa(65533), s.markup = o[0], s.info = "entity"; } return t.pos += o[0].length, !0; } } else { - const o = t.src.slice(n).match(AP); + const o = t.src.slice(n).match(wP); if (o) { - const a = Oh(o[0]); + const a = wh(o[0]); if (a !== o[0]) { if (!e) { const s = t.push("text_special", "", 0); @@ -77265,7 +77454,7 @@ function IP(t, e) { } return !1; } -function z_(t) { +function Q_(t) { const e = {}, n = t.length; if (!n) return; let r = 0, i = -2; @@ -77290,49 +77479,49 @@ function z_(t) { u !== -1 && (e[s.marker][(s.open ? 3 : 0) + (s.length || 0) % 3] = u); } } -function xP(t) { +function kP(t) { const e = t.tokens_meta, n = t.tokens_meta.length; - z_(t.delimiters); + Q_(t.delimiters); for (let r = 0; r < n; r++) - e[r] && e[r].delimiters && z_(e[r].delimiters); + e[r] && e[r].delimiters && Q_(e[r].delimiters); } -function DP(t) { +function PP(t) { let e, n, r = 0; const i = t.tokens, o = t.tokens.length; for (e = n = 0; e < o; e++) i[e].nesting < 0 && r--, i[e].level = r, i[e].nesting > 0 && r++, i[e].type === "text" && e + 1 < o && i[e + 1].type === "text" ? i[e + 1].content = i[e].content + i[e + 1].content : (e !== n && (i[n] = i[e]), n++); e !== n && (i.length = n); } -const Sl = [ - ["text", lP], - ["linkify", uP], - ["newline", dP], - ["escape", pP], - ["backticks", _P], - ["strikethrough", wh.tokenize], - ["emphasis", Lh.tokenize], - ["link", EP], - ["image", SP], - ["autolink", CP], - ["html_inline", OP], - ["entity", IP] -], bl = [ - ["balance_pairs", xP], - ["strikethrough", wh.postProcess], - ["emphasis", Lh.postProcess], +const Tl = [ + ["text", _P], + ["linkify", fP], + ["newline", gP], + ["escape", hP], + ["backticks", EP], + ["strikethrough", Hh.tokenize], + ["emphasis", Gh.tokenize], + ["link", yP], + ["image", vP], + ["autolink", NP], + ["html_inline", DP], + ["entity", LP] +], Cl = [ + ["balance_pairs", kP], + ["strikethrough", Hh.postProcess], + ["emphasis", Gh.postProcess], // rules for pairs separate '**' into its own text tokens, which may be left unused, // rule below merges unused segments back with the rest of the text - ["fragments_join", DP] + ["fragments_join", PP] ]; -function bo() { +function To() { this.ruler = new gt(); - for (let t = 0; t < Sl.length; t++) - this.ruler.push(Sl[t][0], Sl[t][1]); + for (let t = 0; t < Tl.length; t++) + this.ruler.push(Tl[t][0], Tl[t][1]); this.ruler2 = new gt(); - for (let t = 0; t < bl.length; t++) - this.ruler2.push(bl[t][0], bl[t][1]); + for (let t = 0; t < Cl.length; t++) + this.ruler2.push(Cl[t][0], Cl[t][1]); } -bo.prototype.skipToken = function(t) { +To.prototype.skipToken = function(t) { const e = t.pos, n = this.ruler.getRules(""), r = n.length, i = t.md.options.maxNesting, o = t.cache; if (typeof o[e] < "u") { t.pos = o[e]; @@ -77350,7 +77539,7 @@ bo.prototype.skipToken = function(t) { t.pos = t.posMax; a || t.pos++, o[e] = t.pos; }; -bo.prototype.tokenize = function(t) { +To.prototype.tokenize = function(t) { const e = this.ruler.getRules(""), n = e.length, r = t.posMax, i = t.md.options.maxNesting; for (; t.pos < r; ) { const o = t.pos; @@ -77372,17 +77561,17 @@ bo.prototype.tokenize = function(t) { } t.pending && t.pushPending(); }; -bo.prototype.parse = function(t, e, n, r) { +To.prototype.parse = function(t, e, n, r) { const i = new this.State(t, e, n, r); this.tokenize(i); const o = this.ruler2.getRules(""), a = o.length; for (let s = 0; s < a; s++) o[s](i); }; -bo.prototype.State = So; -function MP(t) { +To.prototype.State = bo; +function FP(t) { const e = {}; - t = t || {}, e.src_Any = Th.source, e.src_Cc = Ch.source, e.src_Z = vh.source, e.src_P = hu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); + t = t || {}, e.src_Any = Ah.source, e.src_Cc = Ih.source, e.src_Z = Dh.source, e.src_P = Tu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); const n = "[><|]"; return e.src_pseudo_letter = "(?:(?!" + n + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + n + "|" + e.src_ZPCc + ")(?!" + (t["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + n + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths ",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1) @@ -77392,42 +77581,42 @@ function MP(t) { // but can start with > (markdown blockquote) "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e; } -function mc(t) { +function gc(t) { return Array.prototype.slice.call(arguments, 1).forEach(function(n) { n && Object.keys(n).forEach(function(r) { t[r] = n[r]; }); }), t; } -function As(t) { +function Is(t) { return Object.prototype.toString.call(t); } -function wP(t) { - return As(t) === "[object String]"; +function BP(t) { + return Is(t) === "[object String]"; } -function LP(t) { - return As(t) === "[object Object]"; +function UP(t) { + return Is(t) === "[object Object]"; } -function kP(t) { - return As(t) === "[object RegExp]"; +function HP(t) { + return Is(t) === "[object RegExp]"; } -function $_(t) { - return As(t) === "[object Function]"; +function Z_(t) { + return Is(t) === "[object Function]"; } -function PP(t) { +function GP(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -const kh = { +const Vh = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; -function FP(t) { +function VP(t) { return Object.keys(t || {}).reduce(function(e, n) { - return e || kh.hasOwnProperty(n); + return e || Vh.hasOwnProperty(n); }, !1); } -const BP = { +const YP = { "http:": { validate: function(t, e, n) { const r = t.slice(e); @@ -77459,24 +77648,24 @@ const BP = { )), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0; } } -}, UP = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", HP = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|"); -function GP(t) { +}, zP = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", $P = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|"); +function qP(t) { t.__index__ = -1, t.__text_cache__ = ""; } -function VP(t) { +function WP(t) { return function(e, n) { const r = e.slice(n); return t.test(r) ? r.match(t)[0].length : 0; }; } -function q_() { +function X_() { return function(t, e) { e.normalize(t); }; } -function Qa(t) { - const e = t.re = MP(t.__opts__), n = t.__tlds__.slice(); - t.onCompile(), t.__tlds_replaced__ || n.push(UP), n.push(e.src_xn), e.src_tlds = n.join("|"); +function Za(t) { + const e = t.re = FP(t.__opts__), n = t.__tlds__.slice(); + t.onCompile(), t.__tlds_replaced__ || n.push(zP), n.push(e.src_xn), e.src_tlds = n.join("|"); function r(s) { return s.replace("%TLDS%", e.src_tlds); } @@ -77491,46 +77680,46 @@ function Qa(t) { if (l === null) return; const c = { validate: null, link: null }; - if (t.__compiled__[s] = c, LP(l)) { - kP(l.validate) ? c.validate = VP(l.validate) : $_(l.validate) ? c.validate = l.validate : o(s, l), $_(l.normalize) ? c.normalize = l.normalize : l.normalize ? o(s, l) : c.normalize = q_(); + if (t.__compiled__[s] = c, UP(l)) { + HP(l.validate) ? c.validate = WP(l.validate) : Z_(l.validate) ? c.validate = l.validate : o(s, l), Z_(l.normalize) ? c.normalize = l.normalize : l.normalize ? o(s, l) : c.normalize = X_(); return; } - if (wP(l)) { + if (BP(l)) { i.push(s); return; } o(s, l); }), i.forEach(function(s) { t.__compiled__[t.__schemas__[s]] && (t.__compiled__[s].validate = t.__compiled__[t.__schemas__[s]].validate, t.__compiled__[s].normalize = t.__compiled__[t.__schemas__[s]].normalize); - }), t.__compiled__[""] = { validate: null, normalize: q_() }; + }), t.__compiled__[""] = { validate: null, normalize: X_() }; const a = Object.keys(t.__compiled__).filter(function(s) { return s.length > 0 && t.__compiled__[s]; - }).map(PP).join("|"); + }).map(GP).join("|"); t.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + a + ")", "i"), t.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + a + ")", "ig"), t.re.schema_at_start = RegExp("^" + t.re.schema_search.source, "i"), t.re.pretest = RegExp( "(" + t.re.schema_test.source + ")|(" + t.re.host_fuzzy_test.source + ")|@", "i" - ), GP(t); + ), qP(t); } -function YP(t, e) { +function KP(t, e) { const n = t.__index__, r = t.__last_index__, i = t.__text_cache__.slice(n, r); this.schema = t.__schema__.toLowerCase(), this.index = n + e, this.lastIndex = r + e, this.raw = i, this.text = i, this.url = i; } -function fc(t, e) { - const n = new YP(t, e); +function hc(t, e) { + const n = new KP(t, e); return t.__compiled__[n.schema].normalize(n, t), n; } -function Rt(t, e) { - if (!(this instanceof Rt)) - return new Rt(t, e); - e || FP(t) && (e = t, t = {}), this.__opts__ = mc({}, kh, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = mc({}, BP, t), this.__compiled__ = {}, this.__tlds__ = HP, this.__tlds_replaced__ = !1, this.re = {}, Qa(this); +function Ot(t, e) { + if (!(this instanceof Ot)) + return new Ot(t, e); + e || VP(t) && (e = t, t = {}), this.__opts__ = gc({}, Vh, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = gc({}, YP, t), this.__compiled__ = {}, this.__tlds__ = $P, this.__tlds_replaced__ = !1, this.re = {}, Za(this); } -Rt.prototype.add = function(e, n) { - return this.__schemas__[e] = n, Qa(this), this; +Ot.prototype.add = function(e, n) { + return this.__schemas__[e] = n, Za(this), this; }; -Rt.prototype.set = function(e) { - return this.__opts__ = mc(this.__opts__, e), this; +Ot.prototype.set = function(e) { + return this.__opts__ = gc(this.__opts__, e), this; }; -Rt.prototype.test = function(e) { +Ot.prototype.test = function(e) { if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return !1; let n, r, i, o, a, s, l, c, u; @@ -77543,61 +77732,61 @@ Rt.prototype.test = function(e) { } return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (c = e.search(this.re.host_fuzzy_test), c >= 0 && (this.__index__ < 0 || c < this.__index__) && (r = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = r.index + r[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = r.index + r[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (u = e.indexOf("@"), u >= 0 && (i = e.match(this.re.email_fuzzy)) !== null && (a = i.index + i[1].length, s = i.index + i[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && s > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = s))), this.__index__ >= 0; }; -Rt.prototype.pretest = function(e) { +Ot.prototype.pretest = function(e) { return this.re.pretest.test(e); }; -Rt.prototype.testSchemaAt = function(e, n, r) { +Ot.prototype.testSchemaAt = function(e, n, r) { return this.__compiled__[n.toLowerCase()] ? this.__compiled__[n.toLowerCase()].validate(e, r, this) : 0; }; -Rt.prototype.match = function(e) { +Ot.prototype.match = function(e) { const n = []; let r = 0; - this.__index__ >= 0 && this.__text_cache__ === e && (n.push(fc(this, r)), r = this.__last_index__); + this.__index__ >= 0 && this.__text_cache__ === e && (n.push(hc(this, r)), r = this.__last_index__); let i = r ? e.slice(r) : e; for (; this.test(i); ) - n.push(fc(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; + n.push(hc(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; return n.length ? n : null; }; -Rt.prototype.matchAtStart = function(e) { +Ot.prototype.matchAtStart = function(e) { if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null; const n = this.re.schema_at_start.exec(e); if (!n) return null; const r = this.testSchemaAt(e, n[2], n[0].length); - return r ? (this.__schema__ = n[2], this.__index__ = n.index + n[1].length, this.__last_index__ = n.index + n[0].length + r, fc(this, 0)) : null; + return r ? (this.__schema__ = n[2], this.__index__ = n.index + n[1].length, this.__last_index__ = n.index + n[0].length + r, hc(this, 0)) : null; }; -Rt.prototype.tlds = function(e, n) { +Ot.prototype.tlds = function(e, n) { return e = Array.isArray(e) ? e : [e], n ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(r, i, o) { return r !== o[i - 1]; - }).reverse(), Qa(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Qa(this), this); + }).reverse(), Za(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Za(this), this); }; -Rt.prototype.normalize = function(e) { +Ot.prototype.normalize = function(e) { e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url); }; -Rt.prototype.onCompile = function() { +Ot.prototype.onCompile = function() { }; -const jr = 2147483647, jt = 36, Cu = 1, co = 26, zP = 38, $P = 700, Ph = 72, Fh = 128, Bh = "-", qP = /^xn--/, WP = /[^\0-\x7F]/, KP = /[\x2E\u3002\uFF0E\uFF61]/g, QP = { +const jr = 2147483647, jt = 36, Ou = 1, uo = 26, QP = 38, ZP = 700, Yh = 72, zh = 128, $h = "-", XP = /^xn--/, jP = /[^\0-\x7F]/, JP = /[\x2E\u3002\uFF0E\uFF61]/g, e3 = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" -}, Tl = jt - Cu, Jt = Math.floor, Cl = String.fromCharCode; +}, yl = jt - Ou, Jt = Math.floor, vl = String.fromCharCode; function Rn(t) { - throw new RangeError(QP[t]); + throw new RangeError(e3[t]); } -function ZP(t, e) { +function t3(t, e) { const n = []; let r = t.length; for (; r--; ) n[r] = e(t[r]); return n; } -function Uh(t, e) { +function qh(t, e) { const n = t.split("@"); let r = ""; - n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(KP, "."); - const i = t.split("."), o = ZP(i, e).join("."); + n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(JP, "."); + const i = t.split("."), o = t3(i, e).join("."); return r + o; } -function Hh(t) { +function Wh(t) { const e = []; let n = 0; const r = t.length; @@ -77611,18 +77800,18 @@ function Hh(t) { } return e; } -const XP = (t) => String.fromCodePoint(...t), jP = function(t) { +const n3 = (t) => String.fromCodePoint(...t), r3 = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : jt; -}, W_ = function(t, e) { +}, j_ = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); -}, Gh = function(t, e, n) { +}, Kh = function(t, e, n) { let r = 0; - for (t = n ? Jt(t / $P) : t >> 1, t += Jt(t / e); t > Tl * co >> 1; r += jt) - t = Jt(t / Tl); - return Jt(r + (Tl + 1) * t / (t + zP)); -}, Vh = function(t) { + for (t = n ? Jt(t / ZP) : t >> 1, t += Jt(t / e); t > yl * uo >> 1; r += jt) + t = Jt(t / yl); + return Jt(r + (yl + 1) * t / (t + QP)); +}, Qh = function(t) { const e = [], n = t.length; - let r = 0, i = Fh, o = Ph, a = t.lastIndexOf(Bh); + let r = 0, i = zh, o = Yh, a = t.lastIndexOf($h); a < 0 && (a = 0); for (let s = 0; s < a; ++s) t.charCodeAt(s) >= 128 && Rn("not-basic"), e.push(t.charCodeAt(s)); @@ -77630,28 +77819,28 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { const l = r; for (let u = 1, d = jt; ; d += jt) { s >= n && Rn("invalid-input"); - const p = jP(t.charCodeAt(s++)); + const p = r3(t.charCodeAt(s++)); p >= jt && Rn("invalid-input"), p > Jt((jr - r) / u) && Rn("overflow"), r += p * u; - const _ = d <= o ? Cu : d >= o + co ? co : d - o; + const _ = d <= o ? Ou : d >= o + uo ? uo : d - o; if (p < _) break; const m = jt - _; u > Jt(jr / m) && Rn("overflow"), u *= m; } const c = e.length + 1; - o = Gh(r - l, c, l == 0), Jt(r / c) > jr - i && Rn("overflow"), i += Jt(r / c), r %= c, e.splice(r++, 0, i); + o = Kh(r - l, c, l == 0), Jt(r / c) > jr - i && Rn("overflow"), i += Jt(r / c), r %= c, e.splice(r++, 0, i); } return String.fromCodePoint(...e); -}, Yh = function(t) { +}, Zh = function(t) { const e = []; - t = Hh(t); + t = Wh(t); const n = t.length; - let r = Fh, i = 0, o = Ph; + let r = zh, i = 0, o = Yh; for (const l of t) - l < 128 && e.push(Cl(l)); + l < 128 && e.push(vl(l)); const a = e.length; let s = a; - for (a && e.push(Bh); s < n; ) { + for (a && e.push($h); s < n; ) { let l = jr; for (const u of t) u >= r && u < l && (l = u); @@ -77661,28 +77850,28 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { if (u < r && ++i > jr && Rn("overflow"), u === r) { let d = i; for (let p = jt; ; p += jt) { - const _ = p <= o ? Cu : p >= o + co ? co : p - o; + const _ = p <= o ? Ou : p >= o + uo ? uo : p - o; if (d < _) break; const m = d - _, f = jt - _; e.push( - Cl(W_(_ + m % f, 0)) + vl(j_(_ + m % f, 0)) ), d = Jt(m / f); } - e.push(Cl(W_(d, 0))), o = Gh(i, c, s === a), i = 0, ++s; + e.push(vl(j_(d, 0))), o = Kh(i, c, s === a), i = 0, ++s; } ++i, ++r; } return e.join(""); -}, JP = function(t) { - return Uh(t, function(e) { - return qP.test(e) ? Vh(e.slice(4).toLowerCase()) : e; +}, i3 = function(t) { + return qh(t, function(e) { + return XP.test(e) ? Qh(e.slice(4).toLowerCase()) : e; }); -}, e3 = function(t) { - return Uh(t, function(e) { - return WP.test(e) ? "xn--" + Yh(e) : e; +}, o3 = function(t) { + return qh(t, function(e) { + return jP.test(e) ? "xn--" + Zh(e) : e; }); -}, zh = { +}, Xh = { /** * A string representing the current Punycode.js version number. * @memberOf punycode @@ -77697,14 +77886,14 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { * @type Object */ ucs2: { - decode: Hh, - encode: XP + decode: Wh, + encode: n3 }, - decode: Vh, - encode: Yh, - toASCII: e3, - toUnicode: JP -}, t3 = { + decode: Qh, + encode: Zh, + toASCII: o3, + toUnicode: i3 +}, a3 = { options: { // Enable HTML tags in source html: !1, @@ -77740,7 +77929,7 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { block: {}, inline: {} } -}, n3 = { +}, s3 = { options: { // Enable HTML tags in source html: !1, @@ -77795,7 +77984,7 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { ] } } -}, r3 = { +}, l3 = { options: { // Enable HTML tags in source html: !0, @@ -77869,47 +78058,47 @@ const XP = (t) => String.fromCodePoint(...t), jP = function(t) { ] } } -}, i3 = { - default: t3, - zero: n3, - commonmark: r3 -}, o3 = /^(vbscript|javascript|file|data):/, a3 = /^data:image\/(gif|png|jpeg|webp);/; -function s3(t) { +}, c3 = { + default: a3, + zero: s3, + commonmark: l3 +}, u3 = /^(vbscript|javascript|file|data):/, d3 = /^data:image\/(gif|png|jpeg|webp);/; +function p3(t) { const e = t.trim().toLowerCase(); - return o3.test(e) ? a3.test(e) : !0; + return u3.test(e) ? d3.test(e) : !0; } -const $h = ["http:", "https:", "mailto:"]; -function l3(t) { - const e = gu(t, !0); - if (e.hostname && (!e.protocol || $h.indexOf(e.protocol) >= 0)) +const jh = ["http:", "https:", "mailto:"]; +function _3(t) { + const e = bu(t, !0); + if (e.hostname && (!e.protocol || jh.indexOf(e.protocol) >= 0)) try { - e.hostname = zh.toASCII(e.hostname); + e.hostname = Xh.toASCII(e.hostname); } catch { } - return Eo(fu(e)); + return So(Su(e)); } -function c3(t) { - const e = gu(t, !0); - if (e.hostname && (!e.protocol || $h.indexOf(e.protocol) >= 0)) +function m3(t) { + const e = bu(t, !0); + if (e.hostname && (!e.protocol || jh.indexOf(e.protocol) >= 0)) try { - e.hostname = zh.toUnicode(e.hostname); + e.hostname = Xh.toUnicode(e.hostname); } catch { } - return di(fu(e), di.defaultChars + "%"); + return di(Su(e), di.defaultChars + "%"); } function Pt(t, e) { if (!(this instanceof Pt)) return new Pt(t, e); - e || Eu(t) || (e = t || {}, t = "default"), this.inline = new bo(), this.block = new Ns(), this.core = new bu(), this.renderer = new gi(), this.linkify = new Rt(), this.validateLink = s3, this.normalizeLink = l3, this.normalizeLinkText = c3, this.utils = dk, this.helpers = Rs({}, fk), this.options = {}, this.configure(t), e && this.set(e); + e || Cu(t) || (e = t || {}, t = "default"), this.inline = new To(), this.block = new As(), this.core = new vu(), this.renderer = new gi(), this.linkify = new Ot(), this.validateLink = p3, this.normalizeLink = _3, this.normalizeLinkText = m3, this.utils = gk, this.helpers = Os({}, bk), this.options = {}, this.configure(t), e && this.set(e); } Pt.prototype.set = function(t) { - return Rs(this.options, t), this; + return Os(this.options, t), this; }; Pt.prototype.configure = function(t) { const e = this; - if (Eu(t)) { + if (Cu(t)) { const n = t; - if (t = i3[n], !t) + if (t = c3[n], !t) throw new Error('Wrong `markdown-it` preset "' + n + '", check name'); } if (!t) @@ -77962,7 +78151,7 @@ Pt.prototype.parseInline = function(t, e) { Pt.prototype.renderInline = function(t, e) { return e = e || {}, this.renderer.render(this.parseInline(t, e), this.options, e); }; -function u3(t) { +function f3(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var r in n) @@ -77970,18 +78159,18 @@ function u3(t) { } return t; } -function gc(t, e) { +function Ec(t, e) { return Array(e + 1).join(t); } -function d3(t) { +function g3(t) { return t.replace(/^\n*/, ""); } -function p3(t) { +function h3(t) { for (var e = t.length; e > 0 && t[e - 1] === ` `; ) e--; return t.substring(0, e); } -var _3 = [ +var E3 = [ "ADDRESS", "ARTICLE", "ASIDE", @@ -78032,10 +78221,10 @@ var _3 = [ "TR", "UL" ]; -function yu(t) { - return vu(t, _3); +function Nu(t) { + return Au(t, E3); } -var qh = [ +var Jh = [ "AREA", "BASE", "BR", @@ -78053,13 +78242,13 @@ var qh = [ "TRACK", "WBR" ]; -function Wh(t) { - return vu(t, qh); +function eE(t) { + return Au(t, Jh); } -function m3(t) { - return Qh(t, qh); +function S3(t) { + return nE(t, Jh); } -var Kh = [ +var tE = [ "A", "TABLE", "THEAD", @@ -78072,16 +78261,16 @@ var Kh = [ "AUDIO", "VIDEO" ]; -function f3(t) { - return vu(t, Kh); +function b3(t) { + return Au(t, tE); } -function g3(t) { - return Qh(t, Kh); +function T3(t) { + return nE(t, tE); } -function vu(t, e) { +function Au(t, e) { return e.indexOf(t.nodeName) >= 0; } -function Qh(t, e) { +function nE(t, e) { return t.getElementsByTagName && e.some(function(n) { return t.getElementsByTagName(n).length; }); @@ -78109,7 +78298,7 @@ at.heading = { replacement: function(t, e, n) { var r = Number(e.nodeName.charAt(1)); if (n.headingStyle === "setext" && r < 3) { - var i = gc(r === 1 ? "=" : "-", t.length); + var i = Ec(r === 1 ? "=" : "-", t.length); return ` ` + t + ` @@ -78119,7 +78308,7 @@ at.heading = { } else return ` -` + gc("#", r) + " " + t + ` +` + Ec("#", r) + " " + t + ` `; } @@ -78181,7 +78370,7 @@ at.fencedCodeBlock = { replacement: function(t, e, n) { for (var r = e.firstChild.getAttribute("class") || "", i = (r.match(/language-(\S+)/) || [null, ""])[1], o = e.firstChild.textContent, a = n.fence.charAt(0), s = 3, l = new RegExp("^" + a + "{3,}", "gm"), c; c = l.exec(o); ) c[0].length >= s && (s = c[0].length + 1); - var u = gc(a, s); + var u = Ec(a, s); return ` ` + u + i + ` @@ -78208,7 +78397,7 @@ at.inlineLink = { replacement: function(t, e) { var n = e.getAttribute("href"); n && (n = n.replace(/([()])/g, "\\$1")); - var r = Za(e.getAttribute("title")); + var r = Xa(e.getAttribute("title")); return r && (r = ' "' + r.replace(/"/g, '\\"') + '"'), "[" + t + "](" + n + r + ")"; } }; @@ -78217,7 +78406,7 @@ at.referenceLink = { return e.linkStyle === "referenced" && t.nodeName === "A" && t.getAttribute("href"); }, replacement: function(t, e, n) { - var r = e.getAttribute("href"), i = Za(e.getAttribute("title")); + var r = e.getAttribute("href"), i = Xa(e.getAttribute("title")); i && (i = ' "' + i + '"'); var o, a; switch (n.linkReferenceStyle) { @@ -78271,15 +78460,15 @@ at.code = { at.image = { filter: "img", replacement: function(t, e) { - var n = Za(e.getAttribute("alt")), r = e.getAttribute("src") || "", i = Za(e.getAttribute("title")), o = i ? ' "' + i + '"' : ""; + var n = Xa(e.getAttribute("alt")), r = e.getAttribute("src") || "", i = Xa(e.getAttribute("title")), o = i ? ' "' + i + '"' : ""; return r ? "![" + n + "](" + r + o + ")" : ""; } }; -function Za(t) { +function Xa(t) { return t ? t.replace(/(\n+\s*)+/g, ` `) : ""; } -function Zh(t) { +function rE(t) { this.options = t, this._keep = [], this._remove = [], this.blankRule = { replacement: t.blankReplacement }, this.keepReplacement = t.keepReplacement, this.defaultRule = { @@ -78287,7 +78476,7 @@ function Zh(t) { }, this.array = []; for (var e in t.rules) this.array.push(t.rules[e]); } -Zh.prototype = { +rE.prototype = { add: function(t, e) { this.array.unshift(e); }, @@ -78308,19 +78497,19 @@ Zh.prototype = { forNode: function(t) { if (t.isBlank) return this.blankRule; var e; - return (e = yl(this.array, t, this.options)) || (e = yl(this._keep, t, this.options)) || (e = yl(this._remove, t, this.options)) ? e : this.defaultRule; + return (e = Rl(this.array, t, this.options)) || (e = Rl(this._keep, t, this.options)) || (e = Rl(this._remove, t, this.options)) ? e : this.defaultRule; }, forEach: function(t) { for (var e = 0; e < this.array.length; e++) t(this.array[e], e); } }; -function yl(t, e, n) { +function Rl(t, e, n) { for (var r = 0; r < t.length; r++) { var i = t[r]; - if (h3(i, e, n)) return i; + if (C3(i, e, n)) return i; } } -function h3(t, e, n) { +function C3(t, e, n) { var r = t.filter; if (typeof r == "string") { if (r === e.nodeName.toLowerCase()) return !0; @@ -78331,51 +78520,51 @@ function h3(t, e, n) { } else throw new TypeError("`filter` needs to be a string, array, or function"); } -function E3(t) { +function y3(t) { var e = t.element, n = t.isBlock, r = t.isVoid, i = t.isPre || function(d) { return d.nodeName === "PRE"; }; if (!(!e.firstChild || i(e))) { - for (var o = null, a = !1, s = null, l = K_(s, e, i); l !== e; ) { + for (var o = null, a = !1, s = null, l = J_(s, e, i); l !== e; ) { if (l.nodeType === 3 || l.nodeType === 4) { var c = l.data.replace(/[ \r\n\t]+/g, " "); if ((!o || / $/.test(o.data)) && !a && c[0] === " " && (c = c.substr(1)), !c) { - l = vl(l); + l = Ol(l); continue; } l.data = c, o = l; } else if (l.nodeType === 1) n(l) || l.nodeName === "BR" ? (o && (o.data = o.data.replace(/ $/, "")), o = null, a = !1) : r(l) || i(l) ? (o = null, a = !0) : o && (a = !1); else { - l = vl(l); + l = Ol(l); continue; } - var u = K_(s, l, i); + var u = J_(s, l, i); s = l, l = u; } - o && (o.data = o.data.replace(/ $/, ""), o.data || vl(o)); + o && (o.data = o.data.replace(/ $/, ""), o.data || Ol(o)); } } -function vl(t) { +function Ol(t) { var e = t.nextSibling || t.parentNode; return t.parentNode.removeChild(t), e; } -function K_(t, e, n) { +function J_(t, e, n) { return t && t.parentNode === e || n(e) ? e.nextSibling || e.parentNode : e.firstChild || e.nextSibling || e.parentNode; } -var Ru = typeof window < "u" ? window : {}; -function S3() { - var t = Ru.DOMParser, e = !1; +var Iu = typeof window < "u" ? window : {}; +function v3() { + var t = Iu.DOMParser, e = !1; try { new t().parseFromString("", "text/html") && (e = !0); } catch { } return e; } -function b3() { +function R3() { var t = function() { }; - return T3() ? t.prototype.parseFromString = function(e) { + return O3() ? t.prototype.parseFromString = function(e) { var n = new window.ActiveXObject("htmlfile"); return n.designMode = "on", n.open(), n.write(e), n.close(), n; } : t.prototype.parseFromString = function(e) { @@ -78383,20 +78572,20 @@ function b3() { return n.open(), n.write(e), n.close(), n; }, t; } -function T3() { +function O3() { var t = !1; try { document.implementation.createHTMLDocument("").open(); } catch { - Ru.ActiveXObject && (t = !0); + Iu.ActiveXObject && (t = !0); } return t; } -var C3 = S3() ? Ru.DOMParser : b3(); -function y3(t, e) { +var N3 = v3() ? Iu.DOMParser : R3(); +function A3(t, e) { var n; if (typeof t == "string") { - var r = v3().parseFromString( + var r = I3().parseFromString( // DOM parsers arrange elements in the and . // Wrapping in a custom element ensures elements are reliably arranged in // a single element. @@ -78406,33 +78595,33 @@ function y3(t, e) { n = r.getElementById("turndown-root"); } else n = t.cloneNode(!0); - return E3({ + return y3({ element: n, - isBlock: yu, - isVoid: Wh, - isPre: e.preformattedCode ? R3 : null + isBlock: Nu, + isVoid: eE, + isPre: e.preformattedCode ? x3 : null }), n; } -var Rl; -function v3() { - return Rl = Rl || new C3(), Rl; +var Nl; +function I3() { + return Nl = Nl || new N3(), Nl; } -function R3(t) { +function x3(t) { return t.nodeName === "PRE" || t.nodeName === "CODE"; } -function O3(t, e) { - return t.isBlock = yu(t), t.isCode = t.nodeName === "CODE" || t.parentNode.isCode, t.isBlank = N3(t), t.flankingWhitespace = A3(t, e), t; +function D3(t, e) { + return t.isBlock = Nu(t), t.isCode = t.nodeName === "CODE" || t.parentNode.isCode, t.isBlank = M3(t), t.flankingWhitespace = w3(t, e), t; } -function N3(t) { - return !Wh(t) && !f3(t) && /^\s*$/i.test(t.textContent) && !m3(t) && !g3(t); +function M3(t) { + return !eE(t) && !b3(t) && /^\s*$/i.test(t.textContent) && !S3(t) && !T3(t); } -function A3(t, e) { +function w3(t, e) { if (t.isBlock || e.preformattedCode && t.isCode) return { leading: "", trailing: "" }; - var n = I3(t.textContent); - return n.leadingAscii && Q_("left", t, e) && (n.leading = n.leadingNonAscii), n.trailingAscii && Q_("right", t, e) && (n.trailing = n.trailingNonAscii), { leading: n.leading, trailing: n.trailing }; + var n = L3(t.textContent); + return n.leadingAscii && em("left", t, e) && (n.leading = n.leadingNonAscii), n.trailingAscii && em("right", t, e) && (n.trailing = n.trailingNonAscii), { leading: n.leading, trailing: n.trailing }; } -function I3(t) { +function L3(t) { var e = t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/); return { leading: e[1], @@ -78445,11 +78634,11 @@ function I3(t) { trailingAscii: e[6] }; } -function Q_(t, e, n) { +function em(t, e, n) { var r, i, o; - return t === "left" ? (r = e.previousSibling, i = / $/) : (r = e.nextSibling, i = /^ /), r && (r.nodeType === 3 ? o = i.test(r.nodeValue) : n.preformattedCode && r.nodeName === "CODE" ? o = !1 : r.nodeType === 1 && !yu(r) && (o = i.test(r.textContent))), o; + return t === "left" ? (r = e.previousSibling, i = / $/) : (r = e.nextSibling, i = /^ /), r && (r.nodeType === 3 ? o = i.test(r.nodeValue) : n.preformattedCode && r.nodeName === "CODE" ? o = !1 : r.nodeType === 1 && !Nu(r) && (o = i.test(r.textContent))), o; } -var x3 = Array.prototype.reduce, D3 = [ +var k3 = Array.prototype.reduce, P3 = [ [/\\/g, "\\\\"], [/\*/g, "\\*"], [/^-/g, "\\-"], @@ -78464,8 +78653,8 @@ var x3 = Array.prototype.reduce, D3 = [ [/_/g, "\\_"], [/^(\d+)\. /g, "$1\\. "] ]; -function Xa(t) { - if (!(this instanceof Xa)) return new Xa(t); +function ja(t) { + if (!(this instanceof ja)) return new ja(t); var e = { rules: at, headingStyle: "setext", @@ -78499,9 +78688,9 @@ function Xa(t) { ` : n; } }; - this.options = u3({}, e, t), this.rules = new Zh(this.options); + this.options = f3({}, e, t), this.rules = new rE(this.options); } -Xa.prototype = { +ja.prototype = { /** * The entry point for converting a string or DOM node to Markdown * @public @@ -78510,13 +78699,13 @@ Xa.prototype = { * @type String */ turndown: function(t) { - if (!L3(t)) + if (!U3(t)) throw new TypeError( t + " is not a string, or an element/document/fragment node." ); if (t === "") return ""; - var e = Xh.call(this, new y3(t, this.options)); - return M3.call(this, e); + var e = iE.call(this, new A3(t, this.options)); + return F3.call(this, e); }, /** * Add one or more plugins @@ -78573,43 +78762,43 @@ Xa.prototype = { * @type String */ escape: function(t) { - return D3.reduce(function(e, n) { + return P3.reduce(function(e, n) { return e.replace(n[0], n[1]); }, t); } }; -function Xh(t) { +function iE(t) { var e = this; - return x3.call(t.childNodes, function(n, r) { - r = new O3(r, e.options); + return k3.call(t.childNodes, function(n, r) { + r = new D3(r, e.options); var i = ""; - return r.nodeType === 3 ? i = r.isCode ? r.nodeValue : e.escape(r.nodeValue) : r.nodeType === 1 && (i = w3.call(e, r)), jh(n, i); + return r.nodeType === 3 ? i = r.isCode ? r.nodeValue : e.escape(r.nodeValue) : r.nodeType === 1 && (i = B3.call(e, r)), oE(n, i); }, ""); } -function M3(t) { +function F3(t) { var e = this; return this.rules.forEach(function(n) { - typeof n.append == "function" && (t = jh(t, n.append(e.options))); + typeof n.append == "function" && (t = oE(t, n.append(e.options))); }), t.replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, ""); } -function w3(t) { - var e = this.rules.forNode(t), n = Xh.call(this, t), r = t.flankingWhitespace; +function B3(t) { + var e = this.rules.forNode(t), n = iE.call(this, t), r = t.flankingWhitespace; return (r.leading || r.trailing) && (n = n.trim()), r.leading + e.replacement(n, t, this.options) + r.trailing; } -function jh(t, e) { - var n = p3(t), r = d3(e), i = Math.max(t.length - n.length, e.length - r.length), o = ` +function oE(t, e) { + var n = h3(t), r = g3(e), i = Math.max(t.length - n.length, e.length - r.length), o = ` `.substring(0, i); return n + o + r; } -function L3(t) { +function U3(t) { return t != null && (typeof t == "string" || t.nodeType && (t.nodeType === 1 || t.nodeType === 9 || t.nodeType === 11)); } -const k3 = Pt({ +const H3 = Pt({ html: !0, linkify: !0, typographer: !0 -}), P3 = new Xa({ +}), aE = new ja({ headingStyle: "atx", hr: "---", bulletListMarker: "-", @@ -78620,10 +78809,23 @@ const k3 = Pt({ linkStyle: "inlined", linkReferenceStyle: "full", preformattedCode: !1 -}), ja = (t) => k3.render(t), F3 = (t) => P3.turndown(t); -re("aie-header", tg); -re("aie-footer", ng); -const B3 = { +}); +aE.keep((t) => !(t && t.nodeName === "DIV")); +const Ja = (t) => { + if (!t) return t; + const e = H3.render(t).trim(); + if (!e) return t; + const r = new DOMParser().parseFromString(e, "text/html"); + let i = ""; + for (let o = 0; o < r.body.children.length; o++) { + const a = r.body.children[o]; + o == 0 && a.tagName === "P" ? i += a.innerHTML : i += a.querySelector("img") ? a.innerHTML : a.outerHTML; + } + return i; +}, G3 = (t) => t && aE.turndown(t); +re("aie-header", lg); +re("aie-footer", cg); +const V3 = { theme: "light", lang: "zh", contentRetentionKey: "ai-editor-content", @@ -78632,10 +78834,10 @@ const B3 = { placeholder: "", toolbarSize: "small" }; -class U3 extends lC { +class Y3 extends _C { constructor(n, r = {}) { super(r); - w(this, "aiEditor"); + L(this, "aiEditor"); this.aiEditor = n; } parseHtml(n) { @@ -78645,38 +78847,38 @@ class U3 extends lC { return Wr.fromSchema(this.schema).parse(r(n), {}).content; } parseMarkdown(n) { - const r = ja(n); + const r = Ja(n); return this.parseHtml(r); } insertMarkdown(n) { - this.commands.insertContent(ja(n)); + this.commands.insertContent(Ja(n)); } } -class e4 { +class i4 { constructor(e) { - w(this, "customLayout", !1); - w(this, "innerEditor"); - w(this, "container"); - w(this, "header"); - w(this, "mainEl"); - w(this, "footer"); - w(this, "options"); - w(this, "eventComponents", []); - this.options = { ...B3, ...e }, this.initI18nAndInnerEditor(); + L(this, "customLayout", !1); + L(this, "innerEditor"); + L(this, "container"); + L(this, "header"); + L(this, "mainEl"); + L(this, "footer"); + L(this, "options"); + L(this, "eventComponents", []); + this.options = { ...V3, ...e }, this.initI18nAndInnerEditor(); } initI18nAndInnerEditor() { const e = this.options.i18n || {}, n = { - de: { translation: { ...gL, ...e.de } }, - en: { translation: { ...fL, ...e.en } }, - pt: { translation: { ...hL, ...e.pt } }, - zh: { translation: { ...mL, ...e.zh } }, - es: { translation: { ...EL, ...e.es } }, - hi: { translation: { ...SL, ...e.hi } }, - id: { translation: { ...bL, ...e.id } }, - ja: { translation: { ...TL, ...e.ja } }, - ko: { translation: { ...CL, ...e.ko } }, - th: { translation: { ...yL, ...e.th } }, - vi: { translation: { ...vL, ...e.vi } } + de: { translation: { ...TL, ...e.de } }, + en: { translation: { ...bL, ...e.en } }, + pt: { translation: { ...CL, ...e.pt } }, + zh: { translation: { ...SL, ...e.zh } }, + es: { translation: { ...yL, ...e.es } }, + hi: { translation: { ...vL, ...e.hi } }, + id: { translation: { ...RL, ...e.id } }, + ja: { translation: { ...OL, ...e.ja } }, + ko: { translation: { ...NL, ...e.ko } }, + th: { translation: { ...AL, ...e.th } }, + vi: { translation: { ...IL, ...e.vi } } }; for (let r of Object.keys(e)) r != "de" && r != "en" && r != "pt" && r != "zh" && (n[r] = { @@ -78691,9 +78893,9 @@ class e4 { } initInnerEditor() { const e = typeof this.options.element == "string" ? document.querySelector(this.options.element) : this.options.element; - e.classList.add(`aie-theme-${this.options.theme}`), this.container = e.querySelector(".aie-container"), this.container ? this.customLayout = !0 : (this.container = document.createElement("div"), this.container.classList.add("aie-container")), e.appendChild(this.container), this.mainEl = document.createElement("div"), this.mainEl.style.flexGrow = "1", this.mainEl.style.overflow = "auto", this.header = new tg(), this.eventComponents.push(this.header), this.footer = new ng(), this.footer.initDraggable(this.options.draggable), this.eventComponents.push(this.footer); + e.classList.add(`aie-theme-${this.options.theme}`), this.container = e.querySelector(".aie-container"), this.container ? this.customLayout = !0 : (this.container = document.createElement("div"), this.container.classList.add("aie-container")), e.appendChild(this.container), this.mainEl = document.createElement("div"), this.mainEl.style.flexGrow = "1", this.mainEl.style.overflow = "auto", this.header = new lg(), this.eventComponents.push(this.header), this.footer = new cg(), this.footer.initDraggable(this.options.draggable), this.eventComponents.push(this.footer); let n = this.options.content; - if (this.options.contentRetention && this.options.contentRetentionKey) { + if (n && this.options.contentIsMarkdown && (n = Ja(n)), this.options.contentRetention && this.options.contentRetentionKey) { const r = localStorage.getItem(this.options.contentRetentionKey); if (r) try { @@ -78702,9 +78904,9 @@ class e4 { console.error(i, "Can not parse the cache content from localStorage."); } } - this.innerEditor = new U3(this, { + this.innerEditor = new Y3(this, { element: this.mainEl, - content: this.options.contentIsMarkdown === !0 && typeof n == "string" ? ja(n) : n, + content: n, editable: this.options.editable, extensions: this.getExtensions(), onCreate: (r) => this.onCreate(r), @@ -78729,7 +78931,7 @@ class e4 { }); } getExtensions() { - let e = _L(this, this.options); + let e = EL(this, this.options); if (this.options.onCreateBefore) { const n = this.options.onCreateBefore(this, e); n && (e = n); @@ -78739,7 +78941,7 @@ class e4 { onCreate(e) { this.innerEditor.view.dom.style.height = "calc(100% - 20px)", this.eventComponents.forEach((o) => { o.onCreate && o.onCreate(e, this.options); - }), (this.container.querySelector(".aie-container-header") || this.container).appendChild(this.header), (this.container.querySelector(".aie-container-main") || this.container).appendChild(this.mainEl), (this.container.querySelector(".aie-container-footer") || this.container).appendChild(this.footer), this.options.ai && Vn.init(this.innerEditor, this.options.ai), this.options.onCreated && this.options.onCreated(this); + }), (this.container.querySelector(".aie-container-header") || this.container).appendChild(this.header), (this.container.querySelector(".aie-container-main") || this.container).appendChild(this.mainEl), (this.container.querySelector(".aie-container-footer") || this.container).appendChild(this.footer), this.options.ai && Yn.init(this.innerEditor, this.options.ai), this.options.onCreated && this.options.onCreated(this); } onTransaction(e) { var n, r; @@ -78766,10 +78968,10 @@ class e4 { } getSelectedText() { const e = this.innerEditor.state.selection; - return e.empty ? "" : ds(this.innerEditor.state.doc, { from: e.from, to: e.to }); + return e.empty ? "" : ps(this.innerEditor.state.doc, { from: e.from, to: e.to }); } getMarkdown() { - return F3(this.getHtml()); + return G3(this.getHtml()); } getOptions() { return this.options; @@ -78847,7 +79049,7 @@ class e4 { return this.focus().clear().insert(e), this; } setMarkdownContent(e) { - const n = ja(e); + const n = Ja(e); return this.setContent(n); } clear() { @@ -78871,11 +79073,11 @@ class e4 { } } export { - e4 as AiEditor, - Vn as AiModelManager, - Ev as CustomAiModel, - U3 as InnerEditor, - Sv as OpenaiAiModel, - pv as SparkAiModel, - _v as WenXinAiModel + i4 as AiEditor, + Yn as AiModelManager, + yv as CustomAiModel, + Y3 as InnerEditor, + vv as OpenaiAiModel, + hv as SparkAiModel, + Ev as WenXinAiModel }; diff --git a/dist/style.css b/dist/style.css index a845792..21f9db9 100644 --- a/dist/style.css +++ b/dist/style.css @@ -1 +1 @@ -:root,:root .aie-theme-light{--aie-text-color: #333;--aie-text-placeholder-color: #adb5bd;--aie-bg-color: #fff;--aie-container-border: #eee;--aie-pre-bg-color: #f6f6f7;--aie-blockquote-bg-color: #f6f6f7;--aie-blockquote-border-color: #e3e3e3;--aie-blockquote-text-color: #888888;--aie-dropdown-container-bg-color: #ffffff;--aie-dropdown-container-border-color: #e9e9e9;--aie-dropdown-container-item-hover-color: #efefef;--aie-dropdown-color-panel-title-color: #666;--aie-dropdown-color-panel-button-border-color: #eaeaea;--aie-aie-popover-border-color: #eee;--aie-aie-popover-text-color: #333;--aie-suggestion-selected-border-color: #eee;--aie-suggestion-selected-bg-color: #eee;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #ffffff;--aie-menus-svg-color: #353535;--aie-menus-item-hover-color: #eee;--aie-menus-divider-color: #eaeaea;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #ffffff;--aie-menus-tip-bg-color: #333;--aie-menus-tip-text-color: #eee;--aie-menus-table-cell-border-color: #ccc;--aie-menus-table-cell-border-active-color: #000;--aie-content-container-info-color: #eff1f3;--aie-content-container-warning-color: #fcf5e4;--aie-content-container-danger-color: #ffe7ea;--aie-content-table-th-bg-color: #efefef;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .3);--aie-content-table-border-color: #ced4da;--aie-content-table-handler-color: #adf;--aie-content-scrollbar-track-piece: #f1f1f1;--aie-content-scrollbar-thumb: #c1c1c1;--aie-content-scrollbar-thumb-hover: #a9a9a9;--aie-content-scrollbar-thumb-active: #787878;--aie-content-link-a-color: blue;--aie-content-link-a-hover-color: red;--aie-content-link-a-visited-color: purple;--aie-content-link-a-active-color: green;--aie-ai-panel-bg-color: #fff;--aie-ai-panel-border: #e9e9e9;--aie-textarea-border: #eaeaea;--aie-textarea-bg-color: #e9e9e9;--aie-actions-button-bg-color: #eaeaea;--aie-actions-button-color: #666;--aie-input-bg-color: #fff;--aie-input-border-color: #e9e9e9;--aie-input-button-bg-color: #e9e9e9}:root .aie-theme-dark{--aie-text-color: #ccc;--aie-text-placeholder-color: #5d5d5d;--aie-bg-color: #1e2022;--aie-container-border: #333;--aie-pre-bg-color: #282c34;--aie-blockquote-bg-color: #282c34;--aie-blockquote-border-color: #505050;--aie-blockquote-text-color: #888888;--aie-dropdown-container-bg-color: #505050;--aie-dropdown-container-border-color: #606060;--aie-dropdown-container-item-hover-color: #696969;--aie-dropdown-color-panel-title-color: #ccc;--aie-dropdown-color-panel-button-border-color: #606060;--aie-aie-popover-border-color: #606060;--aie-aie-popover-text-color: #ccc;--aie-suggestion-selected-border-color: #444;--aie-suggestion-selected-bg-color: #444;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #1a1b1e;--aie-menus-svg-color: #cccccc;--aie-menus-item-hover-color: #333;--aie-menus-divider-color: #2c2c2c;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #000;--aie-menus-tip-bg-color: #eee;--aie-menus-tip-text-color: #333;--aie-menus-table-cell-border-color: #888;--aie-menus-table-cell-border-active-color: #ccc;--aie-content-container-info-color: #2a2c30;--aie-content-container-warning-color: #40361d;--aie-content-container-danger-color: #46222a;--aie-content-table-th-bg-color: #2c2c2c;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .2);--aie-content-table-border-color: #353535;--aie-content-table-handler-color: #566a77;--aie-content-scrollbar-track-piece: #404040;--aie-content-scrollbar-thumb: #dddddd50;--aie-content-scrollbar-thumb-hover: #dddddd70;--aie-content-scrollbar-thumb-active: #dddddda0;--aie-content-link-a-color: #4ca3f5;--aie-content-link-a-hover-color: #ff4f4f;--aie-content-link-a-visited-color: #ff00ff;--aie-content-link-a-active-color: #00ff00;--aie-ai-panel-bg-color: #505050;--aie-ai-panel-border: #444;--aie-textarea-border: #666;--aie-textarea-bg-color: #505050;--aie-actions-button-bg-color: #999;--aie-actions-button-color: #444;--aie-input-bg-color: #505050;--aie-input-border-color: #666;--aie-input-button-bg-color: #999}.aie-container{display:flex;flex-direction:column;height:100%;border:1px solid;border-color:var(--aie-container-border);background:var(--aie-bg-color)}.aie-container *,.aie-container :before,.aie-container :after{box-sizing:content-box}.aie-container .aie-translate-panel{margin-top:-5px}.aie-container .aie-translate-panel-body{width:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-translate-panel-body p{width:100%;margin:0;cursor:pointer;display:flex;align-items:center;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:var(--aie-text-color);text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-translate-panel-body p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-translate-result-panel{width:fit-content;height:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000040;overflow:hidden}.aie-container .aie-translate-result-panel textarea{width:500px;padding:5px;box-sizing:border-box;font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;margin:10px 10px 0;background:var(--aie-input-bg-color);color:var(--aie-aie-popover-text-color);resize:none;max-height:300px}.aie-container .aie-translate-result-panel textarea:focus-visible{outline:0}.aie-container .aie-translate-result-panel div{display:flex;justify-content:end;border-top:solid 1px var();padding:10px;background-color:#fafafa}.aie-container .aie-translate-result-panel div button{margin-left:10px;background:var(--aie-input-bg-color);color:var(--aie-text-color);border:solid 1px #eaeaea;padding:5px 15px;font-size:14px;border-radius:3px;display:flex;align-items:center}.aie-container .aie-translate-result-panel div button svg{width:16px;height:16px;margin-right:3px}.aie-container .aie-translate-result-panel div button:hover{background-color:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-body{width:500px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-ai-panel-body-tips{width:100%;padding:10px;color:#999;background-color:#fafafa;box-sizing:border-box;display:flex;align-items:center}.aie-container .aie-ai-panel-body-tips svg{width:16px;height:16px;margin-right:5px}.aie-container .aie-ai-panel-body-content{width:100%;position:relative}.aie-container .aie-ai-panel-body-content .loader{position:absolute;top:10px;right:10px;display:none}.aie-container .aie-ai-panel-body-content .loader svg{width:16px;color:#999;animation:rotate 2s linear infinite}.aie-container .aie-ai-panel-body-content textarea{width:100%;height:100%;max-height:300px;padding:15px;box-sizing:border-box;font-size:14px;line-height:1.6em;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;resize:none}.aie-container .aie-ai-panel-body-content textarea:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input{display:flex;justify-content:space-between;box-sizing:border-box;border-bottom:1px solid;border-bottom-color:var(--aie-input-border-color);align-items:center;padding:10px 20px 10px 10px}.aie-container .aie-ai-panel-body-input input{width:92%;height:100%;border:none;margin:0;background:var(--aie-input-bg-color);font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background-color:#edf0f5;padding:10px;box-sizing:border-box;border-radius:4px}.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder{color:#ccc;font-size:14px}.aie-container .aie-ai-panel-body-input input:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input button{border:none;border-radius:50%;padding:0;background:#609eec}.aie-container .aie-ai-panel-body-input button svg{fill:#fff;width:18px;margin-left:2px;margin-top:2px}.aie-container .aie-ai-panel-body-input button:hover{background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-footer{width:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;padding:10px 0;flex-direction:column;margin-top:5px}.aie-container .aie-ai-panel-footer-tips{padding:5px 10px;color:#999;margin-bottom:5px}.aie-container .aie-ai-panel-footer hr{height:1px;width:100%;margin:5px 0;background-color:#eaeaea;border:none}.aie-container .aie-ai-panel-footer p{width:100%;margin:0}.aie-container .aie-ai-panel-footer p{cursor:pointer;display:flex;align-items:center;width:100%;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:#666;text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-ai-panel-footer p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-ai-panel-footer svg{width:20px;height:20px;margin-right:10px}.aie-container aie-header{color:var(--aie-menus-text-color);background:var(--aie-menus-bg-color);z-index:1}.aie-container aie-header>div{border-bottom:1px solid var(--aie-container-border)}.aie-container aie-header .aie-menu-divider{background:var(--aie-menus-divider-color);width:1px;height:16px;margin:auto}.aie-container aie-header .aie-menu-item{height:fit-content;padding:5px 1px;display:flex;align-items:center}.aie-container aie-header .aie-menu-item #text{font-size:14px}.aie-container aie-header .aie-menu-item svg{fill:var(--aie-menus-svg-color);width:16px;height:16px}.aie-container aie-header .aie-menu-item .menu-ai{display:flex;align-items:center;font-size:14px;text-align:center;background:var(--aie-menus-ai-bg-color);color:var(--aie-menus-ai-color);border-radius:3px;width:30px;padding:0 1px 0 5px;white-space:nowrap}.aie-container aie-header .aie-menu-item .menu-ai svg{fill:var(--aie-menus-ai-color)}.aie-container aie-header .aie-menu-item .colors-menu{display:flex;padding-right:0}.aie-container aie-header .aie-menu-item .colors-menu .currentColor{width:16px;height:16px}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon{height:calc(100% - 3px);width:100%;display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status{width:100%;height:3px;background:#333}.aie-container aie-header .aie-menu-item .colors-menu #dropdown{display:flex}.aie-container aie-header .aie-menu-item .active{background:var(--aie-menus-item-hover-color)}.aie-container aie-header .aie-menu-item[data-size=medium] #text{font-size:16px}.aie-container aie-header .aie-menu-item[data-size=medium] svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg{width:16px;height:16px}.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] #text{font-size:17px}.aie-container aie-header .aie-menu-item[data-size=large] #text svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=large] svg{width:24px;height:24px}.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor{width:20px;height:20px}.aie-container aie-header .aie-menu-item>div{height:18px;padding:5px;display:flex;justify-content:center;align-items:center}.aie-container aie-header .aie-menu-item>div:hover:not([no-hover]){background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-content:focus-visible{outline:none}.aie-container .aie-content ::selection{background:none}.aie-container .aie-content .selection-marker{background:#85c3ff6d;padding:2px 0}.aie-container .suggestion{background:var(--aie-menus-bg-color);border-radius:5px}.aie-container .suggestion .items{box-shadow:0 0 7px #0000001a;overflow:hidden;border-radius:5px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color)}.aie-container .suggestion .items .item{display:block;height:20px;width:150px;margin:0;color:var(--aie-text-color);background:var(--aie-menus-bg-color);border:none;text-align:left;padding:10px 20px;cursor:pointer}.aie-container .suggestion .items .item-selected{background:var(--aie-suggestion-selected-bg-color)}.aie-container .aie-bubble-menu{height:30px;background:var(--aie-dropdown-container-bg-color);border:solid 1px var(--aie-dropdown-container-border-color);border-radius:3px;box-shadow:0 2px 5px 2px #0000001a;display:flex;align-items:center;padding:5px;color:var(--aie-text-color)}.aie-container .aie-bubble-menu .active{background:var(--aie-menus-item-hover-color)}.aie-container .aie-bubble-menu-item{height:20px;margin:3px;padding:5px;cursor:pointer}.aie-container .aie-bubble-menu-item svg{width:20px;height:20px;fill:var(--aie-text-color)}.aie-container .aie-bubble-menu-item:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-dropdown-container{background:var(--aie-dropdown-container-bg-color);border:solid 1px var(--aie-dropdown-container-border-color);overflow:auto;box-shadow:0 2px 5px 2px #0000001a;padding:5px 0;border-radius:3px;color:var(--aie-menus-text-color)}.aie-container .aie-dropdown-container svg{fill:var(--aie-menus-text-color);width:16px;height:16px}.aie-container .aie-dropdown-container .aie-dropdown-item{display:flex;padding:3px 0}.aie-container .aie-dropdown-container .aie-dropdown-item .text{padding:2px 15px 0 0;overflow:hidden;font-size:14px;display:flex}.aie-container .aie-dropdown-container .aie-dropdown-item .text svg{width:18px;height:18px}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1,.aie-container .aie-dropdown-container .aie-dropdown-item .text h2,.aie-container .aie-dropdown-container .aie-dropdown-item .text h3,.aie-container .aie-dropdown-container .aie-dropdown-item .text h4,.aie-container .aie-dropdown-container .aie-dropdown-item .text h5,.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{padding:0;margin:0;border:none}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1{font-size:1.7em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h2{font-size:1.6em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h3{font-size:1.5em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h4{font-size:1.4em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h5{font-size:1.3em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{font-size:1.2em}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container{display:flex;width:30px;overflow:hidden;padding-bottom:5px}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot{width:10px;height:6px;border-left:2px solid var(--aie-text-color);border-bottom:2px solid var(--aie-text-color);rotate:-45deg;margin:auto}.aie-container .aie-dropdown-container .aie-dropdown-item:hover{background:var(--aie-dropdown-container-item-hover-color);cursor:pointer}.aie-container .aie-dropdown-container .emoji-cells{display:flex;flex-wrap:wrap;align-items:center;margin:0 3px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell{width:20px;height:20px;margin:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px 1px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span{margin-top:2px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover{background:#efefef}.aie-container .aie-dropdown-container #table-cells .table-cell{border:solid 1px var(--aie-menus-table-cell-border-color)}.aie-container .aie-dropdown-container #table-cells .active{background:var(--aie-dropdown-container-item-hover-color)}.aie-container .aie-dropdown-container .color-panel{margin:0 5px}.aie-container .aie-dropdown-container .color-panel-title{padding-top:5px;font-size:14px;color:var(--aie-dropdown-color-panel-title-color)}.aie-container .aie-dropdown-container .color-panel-default-button{text-align:center;border:1px solid var(--aie-dropdown-color-panel-button-border-color);color:var(--aie-dropdown-color-panel-title-color);line-height:24px;font-size:14px;border-radius:3px}.aie-container .aie-resize-wrapper{position:relative;display:inline-flex}.aie-container .aie-resize-wrapper img{position:relative}.aie-container .aie-resize-wrapper:hover .aie-resize{display:inline-block}.aie-container .aie-resize-wrapper .aie-resize{display:none;position:absolute;top:-2px;left:-2px;border:2px solid #609eec;width:100%;height:100%}.aie-container .aie-resize-wrapper .aie-resize div{position:absolute;display:flex;width:20px;height:20px;z-index:1}.aie-container .aie-resize-wrapper .aie-resize div:after{content:"";display:block;margin:auto;width:8px;height:8px;background:#609eec;border-radius:50%}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left{left:-10px;top:-10px;cursor:nwse-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right{right:-10px;top:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left{left:-10px;bottom:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right{right:-10px;bottom:-10px;cursor:nwse-resize}.aie-container .aie-loader-placeholder{width:200px;height:200px;background:#efefef;display:flex}.aie-container .aie-loader-placeholder svg{margin:auto;width:80px;fill:#ccc;animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aie-container .aie-codeblock-wrapper{background:var(--aie-pre-bg-color);word-wrap:normal;white-space:normal;padding-top:5px;border-radius:5px}.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools{display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools{display:flex;justify-content:flex-end}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div{color:var(--aie-text-color);display:flex;cursor:pointer;align-items:center;font-size:14px;margin:0 3px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg{fill:var(--aie-text-color);margin:2px;height:16px;width:16px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap{margin:0 10px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg{fill:var(--aie-text-color);margin:2px;height:14px;width:14px}.aie-container .aie-codeblock-langs{background:var(--aie-dropdown-container-bg-color);width:150px;max-height:300px;overflow:auto;border:solid 1px var(--aie-dropdown-container-border-color);color:var(--aie-menus-text-color)}.aie-container .aie-codeblock-langs-item{padding:5px;font-size:14px;height:20px;line-height:20px;cursor:pointer}.aie-container .aie-codeblock-langs-item:hover{background:var(--aie-dropdown-container-item-hover-color)}.aie-container aie-footer>div{border-top:solid 1px var(--aie-container-border);height:20px;line-height:20px;font-size:14px;text-align:right;color:#666}.aie-container aie-footer>div span{margin-left:auto}.aie-container aie-footer>div svg{fill:#666;rotate:-45deg;transform:translateY(5px);cursor:nwse-resize}.aie-container .tippy-box{max-width:1000px!important}.aie-container .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.aie-container [data-tippy-root]{max-width:calc(100vw - 10px)}.aie-container .tippy-box{position:relative;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.aie-container .tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.aie-container .tippy-arrow{width:16px;height:16px}.aie-container .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.aie-container .tippy-content{position:relative;padding:5px 9px;z-index:1}.aie-container .tippy-box[data-theme~=aietip]{background-color:var(--aie-menus-tip-bg-color);color:var(--aie-menus-tip-text-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--aie-menus-tip-bg-color)}.aie-theme-light pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-light code.hljs{padding:3px 5px}.aie-theme-light .hljs{color:#383a42;background:#fafafa}.aie-theme-light .hljs-comment,.aie-theme-light .hljs-quote{color:#a0a1a7;font-style:italic}.aie-theme-light .hljs-doctag,.aie-theme-light .hljs-keyword,.aie-theme-light .hljs-formula{color:#a626a4}.aie-theme-light .hljs-section,.aie-theme-light .hljs-name,.aie-theme-light .hljs-selector-tag,.aie-theme-light .hljs-deletion,.aie-theme-light .hljs-subst{color:#e45649}.aie-theme-light .hljs-literal{color:#0184bb}.aie-theme-light .hljs-string,.aie-theme-light .hljs-regexp,.aie-theme-light .hljs-addition,.aie-theme-light .hljs-attribute,.aie-theme-light .hljs-meta .hljs-string{color:#50a14f}.aie-theme-light .hljs-attr,.aie-theme-light .hljs-variable,.aie-theme-light .hljs-template-variable,.aie-theme-light .hljs-type,.aie-theme-light .hljs-selector-class,.aie-theme-light .hljs-selector-attr,.aie-theme-light .hljs-selector-pseudo,.aie-theme-light .hljs-number{color:#986801}.aie-theme-light .hljs-symbol,.aie-theme-light .hljs-bullet,.aie-theme-light .hljs-link,.aie-theme-light .hljs-meta,.aie-theme-light .hljs-selector-id,.aie-theme-light .hljs-title{color:#4078f2}.aie-theme-light .hljs-built_in,.aie-theme-light .hljs-title.class_,.aie-theme-light .hljs-class .hljs-title{color:#c18401}.aie-theme-light .hljs-emphasis{font-style:italic}.aie-theme-light .hljs-strong{font-weight:700}.aie-theme-light .hljs-link{text-decoration:underline}.aie-theme-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-dark code.hljs{padding:3px 5px}.aie-theme-dark .hljs{color:#abb2bf;background:#282c34}.aie-theme-dark .hljs-comment,.aie-theme-dark .hljs-quote{color:#5c6370;font-style:italic}.aie-theme-dark .hljs-doctag,.aie-theme-dark .hljs-keyword,.aie-theme-dark .hljs-formula{color:#c678dd}.aie-theme-dark .hljs-section,.aie-theme-dark .hljs-name,.aie-theme-dark .hljs-selector-tag,.aie-theme-dark .hljs-deletion,.aie-theme-dark .hljs-subst{color:#e06c75}.aie-theme-dark .hljs-literal{color:#56b6c2}.aie-theme-dark .hljs-string,.aie-theme-dark .hljs-regexp,.aie-theme-dark .hljs-addition,.aie-theme-dark .hljs-attribute,.aie-theme-dark .hljs-meta .hljs-string{color:#98c379}.aie-theme-dark .hljs-attr,.aie-theme-dark .hljs-variable,.aie-theme-dark .hljs-template-variable,.aie-theme-dark .hljs-type,.aie-theme-dark .hljs-selector-class,.aie-theme-dark .hljs-selector-attr,.aie-theme-dark .hljs-selector-pseudo,.aie-theme-dark .hljs-number{color:#d19a66}.aie-theme-dark .hljs-symbol,.aie-theme-dark .hljs-bullet,.aie-theme-dark .hljs-link,.aie-theme-dark .hljs-meta,.aie-theme-dark .hljs-selector-id,.aie-theme-dark .hljs-title{color:#61aeee}.aie-theme-dark .hljs-built_in,.aie-theme-dark .hljs-title.class_,.aie-theme-dark .hljs-class .hljs-title{color:#e6c07b}.aie-theme-dark .hljs-emphasis{font-style:italic}.aie-theme-dark .hljs-strong{font-weight:700}.aie-theme-dark .hljs-link{text-decoration:underline}.aie-popover{min-width:100px;min-height:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 5px 2px #0000001a;background:var(--aie-dropdown-container-bg-color);border:1px solid var(--aie-aie-popover-border-color);border-radius:3px}.aie-popover-header{height:20px;display:flex;padding:5px 5px 0}.aie-popover-header-close{height:20px;width:20px;margin-left:auto;cursor:pointer}.aie-popover-header svg{fill:var(--aie-aie-popover-text-color)}.aie-popover-content{flex-grow:1;padding:0 10px}.aie-popover-content>div{color:var(--aie-aie-popover-text-color);font-size:14px}.aie-popover-content input,.aie-popover-content select,.aie-popover-content textarea{border:solid 1px #ccc;height:25px;padding-inline:5px;border-radius:3px}.aie-popover-content input:focus-visible,.aie-popover-content select:focus-visible,.aie-popover-content textarea:focus-visible{outline:0;border:solid 1px #999999}.aie-popover-content select{height:30px}.aie-popover-footer{display:flex;padding:10px}.aie-popover-footer-confirm{margin-left:auto;background:#fff;border:solid 1px #ccc;padding:5px 10px;font-size:14px;border-radius:3px}.aie-popover-footer-confirm:hover{border-color:#999;color:#333;cursor:pointer}.ai-command-container{width:200px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #0000001a;display:flex;padding:10px 0;flex-direction:column}.ai-command-container .active{background:#eee}.ai-command-container-title,.ai-command-container hr{width:100%;height:1px;background-color:#eaeaea;border:none;margin:5px 0}.ai-command-container-header{display:flex;flex-wrap:wrap;align-items:center;padding:0 10px}.ai-command-container-header-item{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.ai-command-container-header-item:hover{background-color:#eee}.ai-command-container-header svg{fill:#666;width:18px;height:18px}.ai-command-container-item{padding:10px 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;color:#333;display:flex;align-items:center;cursor:pointer}.ai-command-container-item svg{width:16px;height:16px;margin-right:10px}.ai-command-container-item:hover{background-color:#eee}.aie-content{overflow:auto;padding:10px;margin:0;color:var(--aie-text-color)}.aie-content>:first-child{margin-top:0}.aie-content::-webkit-scrollbar{width:4px}.aie-content::-webkit-scrollbar-track-piece{background-color:var(--aie-content-scrollbar-track-piece)}.aie-content::-webkit-scrollbar-thumb{background-color:var(--aie-content-scrollbar-thumb)}.aie-content::-webkit-scrollbar-thumb:hover{background-color:var(--aie-content-scrollbar-thumb-hover)}.aie-content::-webkit-scrollbar-thumb:active{background-color:var(--aie-content-scrollbar-thumb-active)}.aie-content a{color:var(--aie-content-link-a-color)}.aie-content a :visited{color:var(--aie-content-link-a-visited-color)}.aie-content a :active{color:var(--aie-content-link-a-active-color)}.aie-content p{margin:16px 0;line-height:26px}.aie-content ul,.aie-content ol{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:20px}.aie-content li p{padding:0;margin:5px 0}.aie-content ul[data-type=taskList]{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:0px}.aie-content ul[data-type=taskList] li{display:flex;align-items:baseline}.aie-content ul[data-type=taskList] li p{padding-left:2px}.aie-content blockquote{margin:16px 0;padding:5px 10px;border-left:2px solid var(--aie-blockquote-border-color);background:var(--aie-blockquote-bg-color)}.aie-content blockquote p{margin:5px 0;color:var(--aie-blockquote-text-color)}.aie-content img{border:1px solid #efefef}.aie-content code{border-radius:3px;padding:3px 6px;background:var(--aie-pre-bg-color)}.aie-content pre{margin:0;padding:0 10px 10px;border-radius:5px;background:var(--aie-pre-bg-color);overflow:auto}.aie-content pre code{padding:0;background:var(--aie-pre-bg-color)}.aie-content h1{padding-top:24px;letter-spacing:-.02em;line-height:40px;font-size:32px}.aie-content h2{padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.aie-content h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.aie-content strong{font-weight:600}.aie-content table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.aie-content table td,.aie-content table th{border:2px solid var(--aie-content-table-border-color);box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.aie-content table td>*,.aie-content table th>*{margin-bottom:0}.aie-content table th{background-color:var(--aie-content-table-th-bg-color);font-weight:700;text-align:left}.aie-content table .selectedCell:after{background:var(--aie-content-table-selected-bg-color);content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.aie-content table .column-resize-handle{background-color:var(--aie-content-table-handler-color);bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:3px}.aie-content table p{margin:0}.aie-content .align-left{text-align:left}.aie-content .align-right{text-align:right}.aie-content .align-center{text-align:center}.aie-content span[data-type=mention]{border:1px solid #cccccc;border-radius:5px;padding:0 3px}.aie-content p.is-editor-empty:first-child:before{color:var(--aie-text-placeholder-color);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.aie-content div.container-wrapper{margin:1rem 0;padding:0 1rem;border:1px solid var(--aie-container-border);border-radius:3px}.aie-content div.info{background:var(--aie-content-container-info-color)}.aie-content div.warning{background:var(--aie-content-container-warning-color)}.aie-content div.danger{background:var(--aie-content-container-danger-color)}.tableWrapper{padding:1rem 0}.resize-cursor{cursor:ew-resize;cursor:col-resize} +:root,:root .aie-theme-light{--aie-text-color: #333;--aie-text-placeholder-color: #adb5bd;--aie-bg-color: #fff;--aie-container-border: #eee;--aie-pre-bg-color: #f6f6f7;--aie-blockquote-bg-color: #f6f6f7;--aie-blockquote-border-color: #e3e3e3;--aie-blockquote-text-color: #888888;--aie-dropdown-container-bg-color: #ffffff;--aie-dropdown-container-border-color: #e9e9e9;--aie-dropdown-container-item-hover-color: #efefef;--aie-dropdown-color-panel-title-color: #666;--aie-dropdown-color-panel-button-border-color: #eaeaea;--aie-aie-popover-border-color: #eee;--aie-aie-popover-text-color: #333;--aie-suggestion-selected-border-color: #eee;--aie-suggestion-selected-bg-color: #eee;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #ffffff;--aie-menus-svg-color: #353535;--aie-menus-item-hover-color: #eee;--aie-menus-divider-color: #eaeaea;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #ffffff;--aie-menus-tip-bg-color: #333;--aie-menus-tip-text-color: #eee;--aie-menus-table-cell-border-color: #ccc;--aie-menus-table-cell-border-active-color: #000;--aie-content-container-info-color: #eff1f3;--aie-content-container-warning-color: #fcf5e4;--aie-content-container-danger-color: #ffe7ea;--aie-content-table-th-bg-color: #efefef;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .3);--aie-content-table-border-color: #ced4da;--aie-content-table-handler-color: #adf;--aie-content-scrollbar-track-piece: #f1f1f1;--aie-content-scrollbar-thumb: #c1c1c1;--aie-content-scrollbar-thumb-hover: #a9a9a9;--aie-content-scrollbar-thumb-active: #787878;--aie-content-link-a-color: blue;--aie-content-link-a-hover-color: red;--aie-content-link-a-visited-color: purple;--aie-content-link-a-active-color: green;--aie-ai-panel-bg-color: #fff;--aie-ai-panel-border: #e9e9e9;--aie-textarea-border: #eaeaea;--aie-textarea-bg-color: #e9e9e9;--aie-actions-button-bg-color: #eaeaea;--aie-actions-button-color: #666;--aie-input-bg-color: #fff;--aie-input-border-color: #e9e9e9;--aie-input-button-bg-color: #e9e9e9}:root .aie-theme-dark{--aie-text-color: #ccc;--aie-text-placeholder-color: #5d5d5d;--aie-bg-color: #1e2022;--aie-container-border: #333;--aie-pre-bg-color: #282c34;--aie-blockquote-bg-color: #282c34;--aie-blockquote-border-color: #505050;--aie-blockquote-text-color: #888888;--aie-dropdown-container-bg-color: #505050;--aie-dropdown-container-border-color: #606060;--aie-dropdown-container-item-hover-color: #696969;--aie-dropdown-color-panel-title-color: #ccc;--aie-dropdown-color-panel-button-border-color: #606060;--aie-aie-popover-border-color: #606060;--aie-aie-popover-text-color: #ccc;--aie-suggestion-selected-border-color: #444;--aie-suggestion-selected-bg-color: #444;--aie-menus-text-color: var(--aie-text-color);--aie-menus-bg-color: #1a1b1e;--aie-menus-svg-color: #cccccc;--aie-menus-item-hover-color: #333;--aie-menus-divider-color: #2c2c2c;--aie-menus-ai-bg-color: var(--aie-menus-svg-color);--aie-menus-ai-color: #000;--aie-menus-tip-bg-color: #eee;--aie-menus-tip-text-color: #333;--aie-menus-table-cell-border-color: #888;--aie-menus-table-cell-border-active-color: #ccc;--aie-content-container-info-color: #2a2c30;--aie-content-container-warning-color: #40361d;--aie-content-container-danger-color: #46222a;--aie-content-table-th-bg-color: #2c2c2c;--aie-content-table-selected-bg-color: rgba(200, 200, 255, .2);--aie-content-table-border-color: #353535;--aie-content-table-handler-color: #566a77;--aie-content-scrollbar-track-piece: #404040;--aie-content-scrollbar-thumb: #dddddd50;--aie-content-scrollbar-thumb-hover: #dddddd70;--aie-content-scrollbar-thumb-active: #dddddda0;--aie-content-link-a-color: #4ca3f5;--aie-content-link-a-hover-color: #ff4f4f;--aie-content-link-a-visited-color: #ff00ff;--aie-content-link-a-active-color: #00ff00;--aie-ai-panel-bg-color: #505050;--aie-ai-panel-border: #444;--aie-textarea-border: #666;--aie-textarea-bg-color: #505050;--aie-actions-button-bg-color: #999;--aie-actions-button-color: #444;--aie-input-bg-color: #505050;--aie-input-border-color: #666;--aie-input-button-bg-color: #999}.aie-container{display:flex;flex-direction:column;height:100%;border:1px solid;border-color:var(--aie-container-border);background:var(--aie-bg-color)}.aie-container *,.aie-container :before,.aie-container :after{box-sizing:content-box}.aie-container .aie-translate-panel{margin-top:-5px}.aie-container .aie-translate-panel-body{width:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-translate-panel-body p{width:100%;margin:0;cursor:pointer;display:flex;align-items:center;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:var(--aie-text-color);text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-translate-panel-body p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-translate-result-panel{width:fit-content;height:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000040;overflow:hidden}.aie-container .aie-translate-result-panel textarea{width:500px;padding:5px;box-sizing:border-box;font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;margin:10px 10px 0;background:var(--aie-input-bg-color);color:var(--aie-aie-popover-text-color);resize:none;max-height:300px}.aie-container .aie-translate-result-panel textarea:focus-visible{outline:0}.aie-container .aie-translate-result-panel div{display:flex;justify-content:end;border-top:solid 1px var();padding:10px;background-color:#fafafa}.aie-container .aie-translate-result-panel div button{margin-left:10px;background:var(--aie-input-bg-color);color:var(--aie-text-color);border:solid 1px #eaeaea;padding:5px 15px;font-size:14px;border-radius:3px;display:flex;align-items:center}.aie-container .aie-translate-result-panel div button svg{width:16px;height:16px;margin-right:3px}.aie-container .aie-translate-result-panel div button:hover{background-color:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-body{width:500px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;flex-direction:column;overflow:hidden}.aie-container .aie-ai-panel-body-tips{width:100%;padding:10px;color:#999;background-color:#fafafa;box-sizing:border-box;display:flex;align-items:center}.aie-container .aie-ai-panel-body-tips svg{width:16px;height:16px;margin-right:5px}.aie-container .aie-ai-panel-body-content{width:100%;position:relative}.aie-container .aie-ai-panel-body-content .loader{position:absolute;top:10px;right:10px;display:none}.aie-container .aie-ai-panel-body-content .loader svg{width:16px;color:#999;animation:rotate 2s linear infinite}.aie-container .aie-ai-panel-body-content textarea{width:100%;height:100%;max-height:300px;padding:15px;box-sizing:border-box;font-size:14px;line-height:1.6em;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;border:none;resize:none}.aie-container .aie-ai-panel-body-content textarea:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input{display:flex;justify-content:space-between;box-sizing:border-box;border-bottom:1px solid;border-bottom-color:var(--aie-input-border-color);align-items:center;padding:10px 20px 10px 10px}.aie-container .aie-ai-panel-body-input input{width:92%;height:100%;border:none;margin:0;background:var(--aie-input-bg-color);font-size:14px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background-color:#edf0f5;padding:10px;box-sizing:border-box;border-radius:4px}.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder{color:#ccc;font-size:14px}.aie-container .aie-ai-panel-body-input input:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input button{border:none;border-radius:50%;padding:0;background:#609eec}.aie-container .aie-ai-panel-body-input button svg{fill:#fff;width:18px;margin-left:2px;margin-top:2px}.aie-container .aie-ai-panel-body-input button:hover{background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-footer{width:fit-content;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #00000026;display:flex;padding:10px 0;flex-direction:column;margin-top:5px}.aie-container .aie-ai-panel-footer-tips{padding:5px 10px;color:#999;margin-bottom:5px}.aie-container .aie-ai-panel-footer hr{height:1px;width:100%;margin:5px 0;background-color:#eaeaea;border:none}.aie-container .aie-ai-panel-footer p{width:100%;margin:0}.aie-container .aie-ai-panel-footer p{cursor:pointer;display:flex;align-items:center;width:100%;box-sizing:border-box;height:40px;line-height:40px;font-weight:600;font-size:14px;padding:0 20px;color:#666;text-decoration:none;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.aie-container .aie-ai-panel-footer p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-ai-panel-footer svg{width:20px;height:20px;margin-right:10px}.aie-container aie-header{color:var(--aie-menus-text-color);background:var(--aie-menus-bg-color);z-index:1}.aie-container aie-header>div{border-bottom:1px solid var(--aie-container-border)}.aie-container aie-header .aie-menu-divider{background:var(--aie-menus-divider-color);width:1px;height:16px;margin:auto}.aie-container aie-header .aie-menu-item{height:fit-content;padding:5px 1px;display:flex;align-items:center}.aie-container aie-header .aie-menu-item #text{font-size:14px}.aie-container aie-header .aie-menu-item svg{fill:var(--aie-menus-svg-color);width:16px;height:16px}.aie-container aie-header .aie-menu-item .menu-ai{display:flex;align-items:center;font-size:14px;text-align:center;background:var(--aie-menus-ai-bg-color);color:var(--aie-menus-ai-color);border-radius:3px;width:30px;padding:0 1px 0 5px;white-space:nowrap}.aie-container aie-header .aie-menu-item .menu-ai svg{fill:var(--aie-menus-ai-color)}.aie-container aie-header .aie-menu-item .colors-menu{display:flex;padding-right:0}.aie-container aie-header .aie-menu-item .colors-menu .currentColor{width:16px;height:16px}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon{height:calc(100% - 3px);width:100%;display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status{width:100%;height:3px;background:#333}.aie-container aie-header .aie-menu-item .colors-menu #dropdown{display:flex}.aie-container aie-header .aie-menu-item .active{background:var(--aie-menus-item-hover-color)}.aie-container aie-header .aie-menu-item[data-size=medium] #text{font-size:16px}.aie-container aie-header .aie-menu-item[data-size=medium] svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg{width:16px;height:16px}.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] #text{font-size:17px}.aie-container aie-header .aie-menu-item[data-size=large] #text svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=large] svg{width:24px;height:24px}.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor{width:20px;height:20px}.aie-container aie-header .aie-menu-item>div{height:18px;padding:5px;display:flex;justify-content:center;align-items:center}.aie-container aie-header .aie-menu-item>div:hover:not([no-hover]){background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-content:focus-visible{outline:none}.aie-container .aie-content ::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]:focus-visible{outline:none}.aie-container .aie-content .selection-marker{background:#88c6ff66;padding:0}.aie-container .suggestion{background:var(--aie-menus-bg-color);border-radius:5px}.aie-container .suggestion .items{box-shadow:0 0 7px #0000001a;overflow:hidden;border-radius:5px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color)}.aie-container .suggestion .items .item{display:block;height:20px;width:150px;margin:0;color:var(--aie-text-color);background:var(--aie-menus-bg-color);border:none;text-align:left;padding:10px 20px;cursor:pointer}.aie-container .suggestion .items .item-selected{background:var(--aie-suggestion-selected-bg-color)}.aie-container .aie-bubble-menu{height:30px;background:var(--aie-dropdown-container-bg-color);border:solid 1px var(--aie-dropdown-container-border-color);border-radius:3px;box-shadow:0 2px 5px 2px #0000001a;display:flex;align-items:center;padding:5px;color:var(--aie-text-color)}.aie-container .aie-bubble-menu .active{background:var(--aie-menus-item-hover-color)}.aie-container .aie-bubble-menu-item{height:20px;margin:3px;padding:5px;cursor:pointer}.aie-container .aie-bubble-menu-item svg{width:20px;height:20px;fill:var(--aie-text-color)}.aie-container .aie-bubble-menu-item:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-dropdown-container{background:var(--aie-dropdown-container-bg-color);border:solid 1px var(--aie-dropdown-container-border-color);overflow:auto;box-shadow:0 2px 5px 2px #0000001a;padding:5px 0;border-radius:3px;color:var(--aie-menus-text-color)}.aie-container .aie-dropdown-container svg{fill:var(--aie-menus-text-color);width:16px;height:16px}.aie-container .aie-dropdown-container .aie-dropdown-item{display:flex;padding:3px 0}.aie-container .aie-dropdown-container .aie-dropdown-item .text{padding:2px 15px 0 0;overflow:hidden;font-size:14px;display:flex}.aie-container .aie-dropdown-container .aie-dropdown-item .text svg{width:18px;height:18px}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1,.aie-container .aie-dropdown-container .aie-dropdown-item .text h2,.aie-container .aie-dropdown-container .aie-dropdown-item .text h3,.aie-container .aie-dropdown-container .aie-dropdown-item .text h4,.aie-container .aie-dropdown-container .aie-dropdown-item .text h5,.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{padding:0;margin:0;border:none}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1{font-size:1.7em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h2{font-size:1.6em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h3{font-size:1.5em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h4{font-size:1.4em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h5{font-size:1.3em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{font-size:1.2em}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container{display:flex;width:30px;overflow:hidden;padding-bottom:5px}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot{width:10px;height:6px;border-left:2px solid var(--aie-text-color);border-bottom:2px solid var(--aie-text-color);rotate:-45deg;margin:auto}.aie-container .aie-dropdown-container .aie-dropdown-item:hover{background:var(--aie-dropdown-container-item-hover-color);cursor:pointer}.aie-container .aie-dropdown-container .emoji-cells{display:flex;flex-wrap:wrap;align-items:center;margin:0 3px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell{width:20px;height:20px;margin:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px 1px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span{margin-top:2px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover{background:#efefef}.aie-container .aie-dropdown-container #table-cells .table-cell{border:solid 1px var(--aie-menus-table-cell-border-color)}.aie-container .aie-dropdown-container #table-cells .active{background:var(--aie-dropdown-container-item-hover-color)}.aie-container .aie-dropdown-container .color-panel{margin:0 5px}.aie-container .aie-dropdown-container .color-panel-title{padding-top:5px;font-size:14px;color:var(--aie-dropdown-color-panel-title-color)}.aie-container .aie-dropdown-container .color-panel-default-button{text-align:center;border:1px solid var(--aie-dropdown-color-panel-button-border-color);color:var(--aie-dropdown-color-panel-title-color);line-height:24px;font-size:14px;border-radius:3px}.aie-container .aie-resize-wrapper{position:relative;display:inline-flex}.aie-container .aie-resize-wrapper img{position:relative}.aie-container .aie-resize-wrapper:hover .aie-resize{display:inline-block}.aie-container .aie-resize-wrapper .aie-resize{display:none;position:absolute;top:-2px;left:-2px;border:2px solid #609eec;width:100%;height:100%}.aie-container .aie-resize-wrapper .aie-resize div{position:absolute;display:flex;width:20px;height:20px;z-index:1}.aie-container .aie-resize-wrapper .aie-resize div:after{content:"";display:block;margin:auto;width:8px;height:8px;background:#609eec;border-radius:50%}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left{left:-10px;top:-10px;cursor:nwse-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right{right:-10px;top:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left{left:-10px;bottom:-10px;cursor:nesw-resize}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right{right:-10px;bottom:-10px;cursor:nwse-resize}.aie-container .aie-loader-placeholder{width:200px;height:200px;background:#efefef;display:flex}.aie-container .aie-loader-placeholder svg{margin:auto;width:80px;fill:#ccc;animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aie-container .aie-codeblock-wrapper{background:var(--aie-pre-bg-color);word-wrap:normal;white-space:normal;padding-top:5px;border-radius:5px}.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools{display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools{display:flex;justify-content:flex-end}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div{color:var(--aie-text-color);display:flex;cursor:pointer;align-items:center;font-size:14px;margin:0 3px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg{fill:var(--aie-text-color);margin:2px;height:16px;width:16px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap{margin:0 10px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg{fill:var(--aie-text-color);margin:2px;height:14px;width:14px}.aie-container .aie-codeblock-langs{background:var(--aie-dropdown-container-bg-color);width:150px;max-height:300px;overflow:auto;border:solid 1px var(--aie-dropdown-container-border-color);color:var(--aie-menus-text-color)}.aie-container .aie-codeblock-langs-item{padding:5px;font-size:14px;height:20px;line-height:20px;cursor:pointer}.aie-container .aie-codeblock-langs-item:hover{background:var(--aie-dropdown-container-item-hover-color)}.aie-container aie-footer>div{border-top:solid 1px var(--aie-container-border);height:20px;line-height:20px;font-size:14px;text-align:right;color:#666}.aie-container aie-footer>div span{margin-left:auto}.aie-container aie-footer>div svg{fill:#666;rotate:-45deg;transform:translateY(5px);cursor:nwse-resize}.aie-container .tippy-box{max-width:1000px!important}.aie-container .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.aie-container [data-tippy-root]{max-width:calc(100vw - 10px)}.aie-container .tippy-box{position:relative;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.aie-container .tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.aie-container .tippy-arrow{width:16px;height:16px}.aie-container .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.aie-container .tippy-content{position:relative;padding:5px 9px;z-index:1}.aie-container .tippy-box[data-theme~=aietip]{background-color:var(--aie-menus-tip-bg-color);color:var(--aie-menus-tip-text-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--aie-menus-tip-bg-color)}.aie-theme-light pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-light code.hljs{padding:3px 5px}.aie-theme-light .hljs{color:#383a42;background:#fafafa}.aie-theme-light .hljs-comment,.aie-theme-light .hljs-quote{color:#a0a1a7;font-style:italic}.aie-theme-light .hljs-doctag,.aie-theme-light .hljs-keyword,.aie-theme-light .hljs-formula{color:#a626a4}.aie-theme-light .hljs-section,.aie-theme-light .hljs-name,.aie-theme-light .hljs-selector-tag,.aie-theme-light .hljs-deletion,.aie-theme-light .hljs-subst{color:#e45649}.aie-theme-light .hljs-literal{color:#0184bb}.aie-theme-light .hljs-string,.aie-theme-light .hljs-regexp,.aie-theme-light .hljs-addition,.aie-theme-light .hljs-attribute,.aie-theme-light .hljs-meta .hljs-string{color:#50a14f}.aie-theme-light .hljs-attr,.aie-theme-light .hljs-variable,.aie-theme-light .hljs-template-variable,.aie-theme-light .hljs-type,.aie-theme-light .hljs-selector-class,.aie-theme-light .hljs-selector-attr,.aie-theme-light .hljs-selector-pseudo,.aie-theme-light .hljs-number{color:#986801}.aie-theme-light .hljs-symbol,.aie-theme-light .hljs-bullet,.aie-theme-light .hljs-link,.aie-theme-light .hljs-meta,.aie-theme-light .hljs-selector-id,.aie-theme-light .hljs-title{color:#4078f2}.aie-theme-light .hljs-built_in,.aie-theme-light .hljs-title.class_,.aie-theme-light .hljs-class .hljs-title{color:#c18401}.aie-theme-light .hljs-emphasis{font-style:italic}.aie-theme-light .hljs-strong{font-weight:700}.aie-theme-light .hljs-link{text-decoration:underline}.aie-theme-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.aie-theme-dark code.hljs{padding:3px 5px}.aie-theme-dark .hljs{color:#abb2bf;background:#282c34}.aie-theme-dark .hljs-comment,.aie-theme-dark .hljs-quote{color:#5c6370;font-style:italic}.aie-theme-dark .hljs-doctag,.aie-theme-dark .hljs-keyword,.aie-theme-dark .hljs-formula{color:#c678dd}.aie-theme-dark .hljs-section,.aie-theme-dark .hljs-name,.aie-theme-dark .hljs-selector-tag,.aie-theme-dark .hljs-deletion,.aie-theme-dark .hljs-subst{color:#e06c75}.aie-theme-dark .hljs-literal{color:#56b6c2}.aie-theme-dark .hljs-string,.aie-theme-dark .hljs-regexp,.aie-theme-dark .hljs-addition,.aie-theme-dark .hljs-attribute,.aie-theme-dark .hljs-meta .hljs-string{color:#98c379}.aie-theme-dark .hljs-attr,.aie-theme-dark .hljs-variable,.aie-theme-dark .hljs-template-variable,.aie-theme-dark .hljs-type,.aie-theme-dark .hljs-selector-class,.aie-theme-dark .hljs-selector-attr,.aie-theme-dark .hljs-selector-pseudo,.aie-theme-dark .hljs-number{color:#d19a66}.aie-theme-dark .hljs-symbol,.aie-theme-dark .hljs-bullet,.aie-theme-dark .hljs-link,.aie-theme-dark .hljs-meta,.aie-theme-dark .hljs-selector-id,.aie-theme-dark .hljs-title{color:#61aeee}.aie-theme-dark .hljs-built_in,.aie-theme-dark .hljs-title.class_,.aie-theme-dark .hljs-class .hljs-title{color:#e6c07b}.aie-theme-dark .hljs-emphasis{font-style:italic}.aie-theme-dark .hljs-strong{font-weight:700}.aie-theme-dark .hljs-link{text-decoration:underline}.aie-popover{min-width:100px;min-height:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 5px 2px #0000001a;background:var(--aie-dropdown-container-bg-color);border:1px solid var(--aie-aie-popover-border-color);border-radius:3px}.aie-popover-header{height:20px;display:flex;padding:5px 5px 0}.aie-popover-header-close{height:20px;width:20px;margin-left:auto;cursor:pointer}.aie-popover-header svg{fill:var(--aie-aie-popover-text-color)}.aie-popover-content{flex-grow:1;padding:0 10px}.aie-popover-content>div{color:var(--aie-aie-popover-text-color);font-size:14px}.aie-popover-content input,.aie-popover-content select,.aie-popover-content textarea{border:solid 1px #ccc;height:25px;padding-inline:5px;border-radius:3px}.aie-popover-content input:focus-visible,.aie-popover-content select:focus-visible,.aie-popover-content textarea:focus-visible{outline:0;border:solid 1px #999999}.aie-popover-content select{height:30px}.aie-popover-footer{display:flex;padding:10px}.aie-popover-footer-confirm{margin-left:auto;background:#fff;border:solid 1px #ccc;padding:5px 10px;font-size:14px;border-radius:3px}.aie-popover-footer-confirm:hover{border-color:#999;color:#333;cursor:pointer}.ai-command-container{width:200px;border:solid 1px;border-color:var(--aie-ai-panel-border);background:var(--aie-ai-panel-bg-color);border-radius:5px;box-shadow:0 0 7px #0000001a;display:flex;padding:10px 0;flex-direction:column}.ai-command-container .active{background:#eee}.ai-command-container-title,.ai-command-container hr{width:100%;height:1px;background-color:#eaeaea;border:none;margin:5px 0}.ai-command-container-header{display:flex;flex-wrap:wrap;align-items:center;padding:0 10px}.ai-command-container-header-item{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.ai-command-container-header-item:hover{background-color:#eee}.ai-command-container-header svg{fill:#666;width:18px;height:18px}.ai-command-container-item{padding:10px 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;color:#333;display:flex;align-items:center;cursor:pointer}.ai-command-container-item svg{width:16px;height:16px;margin-right:10px}.ai-command-container-item:hover{background-color:#eee}.aie-content{overflow:auto;padding:10px;margin:0;color:var(--aie-text-color)}.aie-content>:first-child{margin-top:0}.aie-content::-webkit-scrollbar{width:4px}.aie-content::-webkit-scrollbar-track-piece{background-color:var(--aie-content-scrollbar-track-piece)}.aie-content::-webkit-scrollbar-thumb{background-color:var(--aie-content-scrollbar-thumb)}.aie-content::-webkit-scrollbar-thumb:hover{background-color:var(--aie-content-scrollbar-thumb-hover)}.aie-content::-webkit-scrollbar-thumb:active{background-color:var(--aie-content-scrollbar-thumb-active)}.aie-content a{color:var(--aie-content-link-a-color)}.aie-content a :visited{color:var(--aie-content-link-a-visited-color)}.aie-content a :active{color:var(--aie-content-link-a-active-color)}.aie-content p{margin:16px 0;line-height:26px;min-height:26px}.aie-content ul,.aie-content ol{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:20px}.aie-content li p{padding:0;margin:5px 0}.aie-content ul[data-type=taskList]{display:block;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:0px}.aie-content ul[data-type=taskList] li{display:flex;align-items:baseline}.aie-content ul[data-type=taskList] li p{padding-left:2px}.aie-content blockquote{margin:16px 0;padding:5px 10px;border-left:2px solid var(--aie-blockquote-border-color);background:var(--aie-blockquote-bg-color)}.aie-content blockquote p{margin:5px 0;color:var(--aie-blockquote-text-color)}.aie-content img{border:1px solid #efefef}.aie-content code{border-radius:3px;padding:3px 6px;background:var(--aie-pre-bg-color)}.aie-content pre{margin:0;padding:0 10px 10px;border-radius:5px;background:var(--aie-pre-bg-color);overflow:auto}.aie-content pre code{padding:0;background:var(--aie-pre-bg-color)}.aie-content h1{padding-top:24px;letter-spacing:-.02em;line-height:40px;font-size:32px}.aie-content h2{padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.aie-content h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.aie-content strong{font-weight:600}.aie-content table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.aie-content table td,.aie-content table th{border:2px solid var(--aie-content-table-border-color);box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.aie-content table td>*,.aie-content table th>*{margin-bottom:0}.aie-content table th{background-color:var(--aie-content-table-th-bg-color);font-weight:700;text-align:left}.aie-content table .selectedCell:after{background:var(--aie-content-table-selected-bg-color);content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.aie-content table .column-resize-handle{background-color:var(--aie-content-table-handler-color);bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:3px}.aie-content table p{margin:0}.aie-content .align-left{text-align:left}.aie-content .align-right{text-align:right}.aie-content .align-center{text-align:center}.aie-content span[data-type=mention]{border:1px solid #cccccc;border-radius:5px;padding:0 3px}.aie-content p.is-editor-empty:first-child:before{color:var(--aie-text-placeholder-color);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.aie-content div.container-wrapper{margin:1rem 0;padding:0 1rem;border:1px solid var(--aie-container-border);border-radius:3px}.aie-content div.info{background:var(--aie-content-container-info-color)}.aie-content div.warning{background:var(--aie-content-container-warning-color)}.aie-content div.danger{background:var(--aie-content-container-danger-color)}.tableWrapper{padding:1rem 0}.resize-cursor{cursor:ew-resize;cursor:col-resize} diff --git a/src/extensions/CodeBlockExt.ts b/src/extensions/CodeBlockExt.ts index eceb2a8..759b412 100644 --- a/src/extensions/CodeBlockExt.ts +++ b/src/extensions/CodeBlockExt.ts @@ -185,7 +185,7 @@ export const CodeBlockExt = CodeBlockLowlight.extend lowlight: {}, defaultLanguage: null, languages: [], - } + } as any }, diff --git a/src/extensions/ImageExt.ts b/src/extensions/ImageExt.ts index 3566c7a..24ed1b6 100644 --- a/src/extensions/ImageExt.ts +++ b/src/extensions/ImageExt.ts @@ -53,7 +53,7 @@ export const ImageExt = Image.extend({ uploadHeaders: {}, uploader: void 0, defaultSize: 350, - } + } as any }, allowGapCursor() {