kempo 4.2.24 → 4.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ import{$c as Ct,A as lt,Aa as ft,B as ut,Ia as ht,Jc as yt,Kb as ke,M as de,Nb as ne,Q as Fe,R as U,S as pe,Uc as At,Vb as bt,X as gt,Xb as $e,Yb as he,Za as G,_b as re,a as Jt,aa as ct,b as ve,bd as Nt,c as at,e as it,fa as dt,ja as T,l as st,m as X,na as z,o as we,ob as mt,oc as me,p as te,qc as ae,ra as w,s as B,sa as fe,t as ot,vb as K,ya as pt,yc as Et,zb as Oe}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var ze=Jt((Tn,xe)=>{var on=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var b=(function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,s={},n={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function i(a){return a instanceof l?new l(a.type,i(a.content),a.alias):Array.isArray(a)?a.map(i):a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(i){return Object.prototype.toString.call(i).slice(8,-1)},objId:function(i){return i.__id||Object.defineProperty(i,"__id",{value:++r}),i.__id},clone:function i(a,o){o=o||{};var u,g;switch(n.util.type(a)){case"Object":if(g=n.util.objId(a),o[g])return o[g];u={},o[g]=u;for(var m in a)a.hasOwnProperty(m)&&(u[m]=i(a[m],o));return u;case"Array":return g=n.util.objId(a),o[g]?o[g]:(u=[],o[g]=u,a.forEach(function(N,h){u[h]=i(N,o)}),u);default:return a}},getLanguage:function(i){for(;i;){var a=e.exec(i.className);if(a)return a[1].toLowerCase();i=i.parentElement}return"none"},setLanguage:function(i,a){i.className=i.className.replace(RegExp(e,"gi"),""),i.classList.add("language-"+a)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(u){var i=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(u.stack)||[])[1];if(i){var a=document.getElementsByTagName("script");for(var o in a)if(a[o].src==i)return a[o]}return null}},isActive:function(i,a,o){for(var u="no-"+a;i;){var g=i.classList;if(g.contains(a))return!0;if(g.contains(u))return!1;i=i.parentElement}return!!o}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(i,a){var o=n.util.clone(n.languages[i]);for(var u in a)o[u]=a[u];return o},insertBefore:function(i,a,o,u){u=u||n.languages;var g=u[i],m={};for(var N in g)if(g.hasOwnProperty(N)){if(N==a)for(var h in o)o.hasOwnProperty(h)&&(m[h]=o[h]);o.hasOwnProperty(N)||(m[N]=g[N])}var _=u[i];return u[i]=m,n.languages.DFS(n.languages,function(L,$){$===_&&L!=i&&(this[L]=m)}),m},DFS:function i(a,o,u,g){g=g||{};var m=n.util.objId;for(var N in a)if(a.hasOwnProperty(N)){o.call(a,N,a[N],u||N);var h=a[N],_=n.util.type(h);_==="Object"&&!g[m(h)]?(g[m(h)]=!0,i(h,o,null,g)):_==="Array"&&!g[m(h)]&&(g[m(h)]=!0,i(h,o,N,g))}}},plugins:{},highlightAll:function(i,a){n.highlightAllUnder(document,i,a)},highlightAllUnder:function(i,a,o){var u={callback:o,container:i,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",u),u.elements=Array.prototype.slice.apply(u.container.querySelectorAll(u.selector)),n.hooks.run("before-all-elements-highlight",u);for(var g=0,m;m=u.elements[g++];)n.highlightElement(m,a===!0,u.callback)},highlightElement:function(i,a,o){var u=n.util.getLanguage(i),g=n.languages[u];n.util.setLanguage(i,u);var m=i.parentElement;m&&m.nodeName.toLowerCase()==="pre"&&n.util.setLanguage(m,u);var N=i.textContent,h={element:i,language:u,grammar:g,code:N};function _($){h.highlightedCode=$,n.hooks.run("before-insert",h),h.element.innerHTML=h.highlightedCode,n.hooks.run("after-highlight",h),n.hooks.run("complete",h),o&&o.call(h.element)}if(n.hooks.run("before-sanity-check",h),m=h.element.parentElement,m&&m.nodeName.toLowerCase()==="pre"&&!m.hasAttribute("tabindex")&&m.setAttribute("tabindex","0"),!h.code){n.hooks.run("complete",h),o&&o.call(h.element);return}if(n.hooks.run("before-highlight",h),!h.grammar){_(n.util.encode(h.code));return}if(a&&t.Worker){var L=new Worker(n.filename);L.onmessage=function($){_($.data)},L.postMessage(JSON.stringify({language:h.language,code:h.code,immediateClose:!0}))}else _(n.highlight(h.code,h.grammar,h.language))},highlight:function(i,a,o){var u={code:i,grammar:a,language:o};if(n.hooks.run("before-tokenize",u),!u.grammar)throw new Error('The language "'+u.language+'" has no grammar.');return u.tokens=n.tokenize(u.code,u.grammar),n.hooks.run("after-tokenize",u),l.stringify(n.util.encode(u.tokens),u.language)},tokenize:function(i,a){var o=a.rest;if(o){for(var u in o)a[u]=o[u];delete a.rest}var g=new f;return x(g,g.head,i),c(i,g,a,g.head,0),d(g)},hooks:{all:{},add:function(i,a){var o=n.hooks.all;o[i]=o[i]||[],o[i].push(a)},run:function(i,a){var o=n.hooks.all[i];if(!(!o||!o.length))for(var u=0,g;g=o[u++];)g(a)}},Token:l};t.Prism=n;function l(i,a,o,u){this.type=i,this.content=a,this.alias=o,this.length=(u||"").length|0}l.stringify=function i(a,o){if(typeof a=="string")return a;if(Array.isArray(a)){var u="";return a.forEach(function(_){u+=i(_,o)}),u}var g={type:a.type,content:i(a.content,o),tag:"span",classes:["token",a.type],attributes:{},language:o},m=a.alias;m&&(Array.isArray(m)?Array.prototype.push.apply(g.classes,m):g.classes.push(m)),n.hooks.run("wrap",g);var N="";for(var h in g.attributes)N+=" "+h+'="'+(g.attributes[h]||"").replace(/"/g,"&quot;")+'"';return"<"+g.tag+' class="'+g.classes.join(" ")+'"'+N+">"+g.content+"</"+g.tag+">"};function y(i,a,o,u){i.lastIndex=a;var g=i.exec(o);if(g&&u&&g[1]){var m=g[1].length;g.index+=m,g[0]=g[0].slice(m)}return g}function c(i,a,o,u,g,m){for(var N in o)if(!(!o.hasOwnProperty(N)||!o[N])){var h=o[N];h=Array.isArray(h)?h:[h];for(var _=0;_<h.length;++_){if(m&&m.cause==N+","+_)return;var L=h[_],$=L.inside,et=!!L.lookbehind,tt=!!L.greedy,Zt=L.alias;if(tt&&!L.pattern.global){var Xt=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,Xt+"g")}for(var nt=L.pattern||L,v=u.next,P=g;v!==a.tail&&!(m&&P>=m.reach);P+=v.value.length,v=v.next){var Z=v.value;if(a.length>i.length)return;if(!(Z instanceof l)){var le=1,I;if(tt){if(I=y(nt,P,i,et),!I||I.index>=i.length)break;var ue=I.index,qt=I.index+I[0].length,H=P;for(H+=v.value.length;ue>=H;)v=v.next,H+=v.value.length;if(H-=v.value.length,P=H,v.value instanceof l)continue;for(var ee=v;ee!==a.tail&&(H<qt||typeof ee.value=="string");ee=ee.next)le++,H+=ee.value.length;le--,Z=i.slice(P,H),I.index-=P}else if(I=y(nt,0,Z,et),!I)continue;var ue=I.index,ge=I[0],Le=Z.slice(0,ue),rt=Z.slice(ue+ge.length),Se=P+Z.length;m&&Se>m.reach&&(m.reach=Se);var ce=v.prev;Le&&(ce=x(a,ce,Le),P+=Le.length),C(a,ce,le);var Vt=new l(N,$?n.tokenize(ge,$):ge,Zt,ge);if(v=x(a,ce,Vt),rt&&x(a,v,rt),le>1){var Te={cause:N+","+_,reach:Se};c(i,a,o,v.prev,P,Te),m&&Te.reach>m.reach&&(m.reach=Te.reach)}}}}}}function f(){var i={value:null,prev:null,next:null},a={value:null,prev:i,next:null};i.next=a,this.head=i,this.tail=a,this.length=0}function x(i,a,o){var u=a.next,g={value:o,prev:a,next:u};return a.next=g,u.prev=g,i.length++,g}function C(i,a,o){for(var u=a.next,g=0;g<o&&u!==i.tail;g++)u=u.next;a.next=u,u.prev=a,i.length-=g}function d(i){for(var a=[],o=i.head.next;o!==i.tail;)a.push(o.value),o=o.next;return a}if(!t.document)return t.addEventListener&&(n.disableWorkerMessageHandler||t.addEventListener("message",function(i){var a=JSON.parse(i.data),o=a.language,u=a.code,g=a.immediateClose;t.postMessage(n.highlight(u,n.languages[o],o)),g&&t.close()},!1)),n;var A=n.util.currentScript();A&&(n.filename=A.src,A.hasAttribute("data-manual")&&(n.manual=!0));function p(){n.manual||n.highlightAll()}if(!n.manual){var E=document.readyState;E==="loading"||E==="interactive"&&A&&A.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return n})(on);typeof xe<"u"&&xe.exports&&(xe.exports=b);typeof global<"u"&&(global.Prism=b);b.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};b.languages.markup.tag.inside["attr-value"].inside.entity=b.languages.markup.entity;b.languages.markup.doctype.inside["internal-subset"].inside=b.languages.markup;b.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(b.languages.markup.tag,"addInlined",{value:function(e,r){var s={};s["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:b.languages[r]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};n["language-"+r]={pattern:/[\s\S]+/,inside:b.languages[r]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},b.languages.insertBefore("markup","cdata",l)}});Object.defineProperty(b.languages.markup.tag,"addAttribute",{value:function(t,e){b.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:b.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});b.languages.html=b.languages.markup;b.languages.mathml=b.languages.markup;b.languages.svg=b.languages.markup;b.languages.xml=b.languages.extend("markup",{});b.languages.ssml=b.languages.xml;b.languages.atom=b.languages.xml;b.languages.rss=b.languages.xml;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(b);b.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};b.languages.javascript=b.languages.extend("clike",{"class-name":[b.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});b.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;b.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:b.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:b.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:b.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:b.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:b.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});b.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:b.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});b.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});b.languages.markup&&(b.languages.markup.tag.addInlined("script","javascript"),b.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));b.languages.js=b.languages.javascript;(function(){if(typeof b>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading\u2026",e=function(A,p){return"\u2716 Error "+A+" while fetching file: "+p},r="\u2716 Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",l="loading",y="loaded",c="failed",f="pre[data-src]:not(["+n+'="'+y+'"]):not(['+n+'="'+l+'"])';function x(A,p,E){var i=new XMLHttpRequest;i.open("GET",A,!0),i.onreadystatechange=function(){i.readyState==4&&(i.status<400&&i.responseText?p(i.responseText):i.status>=400?E(e(i.status,i.statusText)):E(r))},i.send(null)}function C(A){var p=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(A||"");if(p){var E=Number(p[1]),i=p[2],a=p[3];return i?a?[E,Number(a)]:[E,void 0]:[E,E]}}b.hooks.add("before-highlightall",function(A){A.selector+=", "+f}),b.hooks.add("before-sanity-check",function(A){var p=A.element;if(p.matches(f)){A.code="",p.setAttribute(n,l);var E=p.appendChild(document.createElement("CODE"));E.textContent=t;var i=p.getAttribute("data-src"),a=A.language;if(a==="none"){var o=(/\.(\w+)$/.exec(i)||[,"none"])[1];a=s[o]||o}b.util.setLanguage(E,a),b.util.setLanguage(p,a);var u=b.plugins.autoloader;u&&u.loadLanguages(a),x(i,function(g){p.setAttribute(n,y);var m=C(p.getAttribute("data-range"));if(m){var N=g.split(/\r\n?|\n/g),h=m[0],_=m[1]==null?N.length:m[1];h<0&&(h+=N.length),h=Math.max(0,Math.min(h-1,N.length)),_<0&&(_+=N.length),_=Math.max(0,Math.min(_,N.length)),g=N.slice(h,_).join(`
2
+ `),p.hasAttribute("data-start")||p.setAttribute("data-start",String(h+1))}E.textContent=g,b.highlightElement(E)},function(g){p.setAttribute(n,c),E.textContent=g})}}),b.plugins.fileHighlight={highlight:function(p){for(var E=(p||document).querySelectorAll(f),i=0,a;a=E[i++];)b.highlightElement(a)}};var d=!1;b.fileHighlight=function(){d||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),d=!0),b.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var Ue={};ve(Ue,{$createCodeHighlightNode:()=>Me,$createCodeNode:()=>J,$getCodeLineDirection:()=>Qt,$getEndOfCodeInLine:()=>tn,$getFirstCodeNodeOfLine:()=>De,$getLastCodeNodeOfLine:()=>Pe,$getStartOfCodeInLine:()=>en,$isCodeHighlightNode:()=>R,$isCodeNode:()=>Ft,CodeExtension:()=>sn,CodeHighlightNode:()=>V,CodeNode:()=>q,DEFAULT_CODE_LANGUAGE:()=>vt,getDefaultCodeLanguage:()=>nn});function St(t,...e){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(let n of e)s.append("v",n);throw r.search=s.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Tt(t,e){let r=t;for(let s=pe(t,e);s&&(R(s.origin)||w(s.origin));s=s.getAdjacentCaret())r=s.origin;return r}function De(t){return Tt(t,"previous")}function Pe(t){return Tt(t,"next")}function Qt(t){let e=De(t),r=Pe(t),s=e;for(;s!==null;){if(R(s)){let l=yt(s.getTextContent());if(l!==null)return l}if(s===r)break;s=s.getNextSibling()}let n=e.getParent();if(dt(n)){let l=n.getDirection();if(l==="ltr"||l==="rtl")return l}return null}function en(t,e){let r=null,s=null,n=t,l=e,y=t.getTextContent();for(;;){if(l===0){if(n=n.getPreviousSibling(),n===null)break;if(R(n)||w(n)||T(n)||St(167),T(n)){r={node:n,offset:1};break}l=Math.max(0,n.getTextContentSize()-1),y=n.getTextContent()}else l--;let f=y[l];R(n)&&f!==" "&&(s={node:n,offset:l})}if(s!==null)return s;let c=null;if(e<t.getTextContentSize())R(t)&&(c=t.getTextContent()[e]);else{let f=t.getNextSibling();R(f)&&(c=f.getTextContent()[0])}if(c!==null&&c!==" ")return r;{let f=(function(x,C){let d=x,A=C,p=x.getTextContent(),E=x.getTextContentSize();for(;;){if(!R(d)||A===E){if(d=d.getNextSibling(),d===null||T(d))return null;R(d)&&(A=0,p=d.getTextContent(),E=d.getTextContentSize())}if(R(d)){if(p[A]!==" ")return{node:d,offset:A};A++}}})(t,e);return f!==null?f:r}}function tn(t){let e=Pe(t);return T(e)&&St(168),e}var vt="javascript",nn=()=>vt;function wt(t,e){for(let r of t.childNodes){if(At(r)&&r.tagName===e)return!0;wt(r,e)}return!1}var se="data-language",ie="data-highlight-language",be="data-theme",q=class t extends mt{__language;__theme;__isSyntaxHighlightSupported;static getType(){return"code"}static clone(e){return new t(e.__language,e.__key)}constructor(e,r){super(r),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let r=document.createElement("code");ae(r,e.theme.code),r.setAttribute("spellcheck","false");let s=this.getLanguage();s&&(r.setAttribute(se,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(ie,s));let n=this.getTheme();n&&r.setAttribute(be,n);let l=this.getStyle();return l&&r.setAttribute("style",l),r}updateDOM(e,r,s){let n=this.__language,l=e.__language;n?n!==l&&r.setAttribute(se,n):l&&r.removeAttribute(se);let y=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&l?y&&n?n!==l&&r.setAttribute(ie,n):r.removeAttribute(ie):y&&n&&r.setAttribute(ie,n);let c=this.__theme,f=e.__theme;c?c!==f&&r.setAttribute(be,c):f&&r.removeAttribute(be);let x=this.__style,C=e.__style;return x?x!==C&&r.setAttribute("style",x):C&&r.removeAttribute("style"),!1}exportDOM(e){let r=document.createElement("pre");ae(r,e._config.theme.code),r.setAttribute("spellcheck","false");let s=this.getLanguage();s&&(r.setAttribute(se,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(ie,s));let n=this.getTheme();n&&r.setAttribute(be,n);let l=this.getStyle();return l&&r.setAttribute("style",l),{element:r}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||wt(e,"BR"))?{conversion:xt,priority:1}:null,div:()=>({conversion:rn,priority:1}),pre:()=>({conversion:xt,priority:0}),table:e=>Ie(e)?{conversion:an,priority:3}:null,td:e=>{let r=e,s=r.closest("table");return r.classList.contains("js-file-line")||s&&Ie(s)?{conversion:_t,priority:3}:null},tr:e=>{let r=e.closest("table");return r&&Ie(r)?{conversion:_t,priority:3}:null}}}static importJSON(e){return J().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,r=!0){let s=this.getChildren(),n=s.length;if(n>=2&&s[n-1].getTextContent()===`
3
+ `&&s[n-2].getTextContent()===`
4
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===n){s[n-1].remove(),s[n-2].remove();let f=we();return this.insertAfter(f,r),f}let{anchor:l,focus:y}=e,c=(l.isBefore(y)?l:y).getNode();if(fe(c)){let f=De(c),x=[];for(;;)if(w(f))x.push(B()),f=f.getNextSibling();else{if(!R(f))break;{let a=0,o=f.getTextContent(),u=f.getTextContentSize();for(;a<u&&o[a]===" ";)a++;if(a!==0&&x.push(Me(" ".repeat(a))),a!==u)break;f=f.getNextSibling()}}let C=c.splitText(l.offset)[0],d=l.offset===0?0:1,A=C.getIndexWithinParent()+d,p=c.getParentOrThrow(),E=[X(),...x];p.splice(A,0,E);let i=x[x.length-1];i?i.select():l.offset===0?C.selectPrevious():C.getNextSibling().selectNext(0,0)}if(Ft(c)){let{offset:f}=e.anchor;c.splice(f,0,[X()]),c.select(f+1,f+1)}return null}canIndent(){return!1}collapseAtStart(){let e=we();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}setLanguage(e){let r=this.getWritable();return r.__language=e||void 0,r}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let r=this.getWritable();return r.__isSyntaxHighlightSupported=e,r}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let r=this.getWritable();return r.__theme=e||void 0,r}getTheme(){return this.getLatest().__theme}};function J(t,e){return st(q).setLanguage(t).setTheme(e)}function Ft(t){return t instanceof q}function xt(t){return{node:J(t.getAttribute(se))}}function rn(t){let e=t,r=Lt(e);return r||(function(s){let n=s.parentElement;for(;n!==null;){if(Lt(n))return!0;n=n.parentElement}return!1})(e)?{node:r?J():null}:{node:null}}function an(){return{node:J()}}function _t(){return{node:null}}function Lt(t){return t.style.fontFamily.match("monospace")!==null}function Ie(t){return t.classList.contains("js-file-line-container")}var V=class t extends me{__highlightType;constructor(e="",r,s){super(e,s),this.__highlightType=r}static getType(){return"code-highlight"}static clone(e){return new t(e.__text,e.__highlightType||void 0,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let r=this.getWritable();return r.__highlightType=e||void 0,r}canHaveFormat(){return!1}createDOM(e){let r=super.createDOM(e),s=Re(e.theme,this.__highlightType);return ae(r,s),r}updateDOM(e,r,s){let n=super.updateDOM(e,r,s),l=Re(s.theme,e.__highlightType),y=Re(s.theme,this.__highlightType);return l!==y&&(l&&Nt(r,l),y&&ae(r,y)),n}static importJSON(e){return Me().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return J()}};function Re(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Me(t="",e){return it(new V(t,e))}function R(t){return t instanceof V}var sn=Et({name:"@lexical/code",nodes:()=>[q,V]});var F=Ue,Ee=F.$createCodeHighlightNode,Ot=F.$createCodeNode,ye=F.$getCodeLineDirection,Ae=F.$getEndOfCodeInLine,j=F.$getFirstCodeNodeOfLine,Y=F.$getLastCodeNodeOfLine,Ce=F.$getStartOfCodeInLine,O=F.$isCodeHighlightNode,M=F.$isCodeNode,kt=F.CodeExtension,oe=F.CodeHighlightNode,Q=F.CodeNode,Ne=F.DEFAULT_CODE_LANGUAGE,$t=F.getDefaultCodeLanguage;var vn=at(ze(),1);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,r){var s={};s["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[r]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};n["language-"+r]={pattern:/[\s\S]+/,inside:Prism.languages[r]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",l)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(C){return C=C.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+C+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,n=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+n+l+"(?:"+n+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+n+l+")(?:"+n+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+n+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+n+"$"),inside:{"table-header":{pattern:RegExp(s),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(C){["url","bold","italic","strike","code-snippet"].forEach(function(d){C!==d&&(t.languages.markdown[C].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(C){if(C.language!=="markdown"&&C.language!=="md")return;function d(A){if(!(!A||typeof A=="string"))for(var p=0,E=A.length;p<E;p++){var i=A[p];if(i.type!=="code"){d(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type==="code-language"&&o.type==="code-block"&&typeof a.content=="string"){var u=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase();var g="language-"+u;o.alias?typeof o.alias=="string"?o.alias=[o.alias,g]:o.alias.push(g):o.alias=[g]}}}d(C.tokens)}),t.hooks.add("wrap",function(C){if(C.type==="code-block"){for(var d="",A=0,p=C.classes.length;A<p;A++){var E=C.classes[A],i=/language-(.+)/.exec(E);if(i){d=i[1];break}}var a=t.languages[d];if(a)C.content=t.highlight(x(C.content),a,d);else if(d&&d!=="none"&&t.plugins.autoloader){var o="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);C.attributes.id=o,t.plugins.autoloader.loadLanguages(d,function(){var u=document.getElementById(o);u&&(u.innerHTML=t.highlight(u.textContent,t.languages[d],d))})}}});var y=RegExp(t.languages.markup.tag.pattern.source,"gi"),c={amp:"&",lt:"<",gt:">",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function x(C){var d=C.replace(y,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(A,p){if(p=p.toLowerCase(),p[0]==="#"){var E;return p[1]==="x"?E=parseInt(p.slice(2),16):E=Number(p.slice(1)),f(E)}else{var i=c[p];return i||A}}),d}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[s,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:s.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:s.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":s,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:s.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(r){var s=e[r],n=[];/^\w+$/.test(r)||n.push(/\w+/.exec(r)[0]),r==="diff"&&n.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+s+`].*(?:\r
5
+ ?|
6
+ |(?![\\s\\S])))+`,"m"),alias:n,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);var jn=globalThis.Prism||window.Prism;var je={};ve(je,{CODE_LANGUAGE_FRIENDLY_NAME_MAP:()=>Be,CODE_LANGUAGE_MAP:()=>zt,PrismTokenizer:()=>jt,getCodeLanguageOptions:()=>gn,getCodeLanguages:()=>un,getCodeThemeOptions:()=>cn,getLanguageFriendlyName:()=>ln,isCodeLanguageLoaded:()=>Ht,loadCodeLanguage:()=>Bt,normalizeCodeLanguage:()=>Gt,registerCodeHighlighting:()=>fn});var Zn=at(ze(),1);function Ut(t,...e){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(let n of e)s.append("v",n);throw r.search=s.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(r){var s=e[r],n=[];/^\w+$/.test(r)||n.push(/\w+/.exec(r)[0]),r==="diff"&&n.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+s+`].*(?:\r
7
+ ?|
8
+ |(?![\\s\\S])))+`,"m"),alias:n,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);var k=globalThis.Prism||window.Prism,Be={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},zt={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function Gt(t){return zt[t]||t}function ln(t){let e=Gt(t);return Be[e]||e}var un=()=>Object.keys(k.languages).filter(t=>typeof k.languages[t]!="function").sort();function gn(){let t=[];for(let[e,r]of Object.entries(Be))t.push([e,r]);return t}function cn(){return[]}function Ht(t){let e=(function(s){let n=/^diff-([\w-]+)/i.exec(s);return n?n[1]:null})(t),r=e||t;try{return!!r&&k.languages.hasOwnProperty(r)}catch{return!1}}async function Bt(t,e,r){}function Ge(t){return typeof t=="string"?t:Array.isArray(t)?t.map(Ge).join(""):Ge(t.content)}function dn(t,e){let r=/^diff-([\w-]+)/i.exec(e),s=t.getTextContent(),n=k.tokenize(s,k.languages[r?"diff":e]);return r&&(n=(function(l,y){let c=y,f=k.languages[c],x={tokens:l},C=k.languages.diff.PREFIXES;for(let d of x.tokens){if(typeof d=="string"||!(d.type in C)||!Array.isArray(d.content))continue;let A=d.type,p=0,E=()=>(p++,new k.Token("prefix",C[A],A.replace(/^(\w+).*/,"$1"))),i=d.content.filter(N=>typeof N=="string"||N.type!=="prefix"),a=d.content.length-i.length,o=k.tokenize(Ge(i),f);o.unshift(E());let u=/\r\n|\n/g,g=N=>{let h=[];u.lastIndex=0;let _,L=0;for(;p<a&&(_=u.exec(N));){let $=_.index+_[0].length;h.push(N.slice(L,$)),L=$,h.push(E())}if(h.length!==0)return L<N.length&&h.push(N.slice(L)),h},m=N=>{for(let h=0;h<N.length&&p<a;h++){let _=N[h];if(typeof _=="string"){let L=g(_);L&&(N.splice(h,1,...L),h+=L.length-1)}else if(typeof _.content=="string"){let L=g(_.content);L&&(_.content=L)}else Array.isArray(_.content)?m(_.content):m([_.content])}};m(o),p<a&&o.push(E()),d.content=o}return x.tokens})(n,r[1])),He(n)}function He(t,e){let r=[];for(let s of t)if(typeof s=="string"){let n=s.split(/(\n|\t)/),l=n.length;for(let y=0;y<l;y++){let c=n[y];c===`
9
+ `||c===`\r
10
+ `?r.push(X()):c===" "?r.push(B()):c.length>0&&r.push(Ee(c,e))}}else{let{content:n,alias:l}=s;typeof n=="string"?r.push(...He([n],s.type==="prefix"&&typeof l=="string"?l:s.type)):Array.isArray(n)&&r.push(...He(n,s.type==="unchanged"?void 0:s.type))}return r}var jt={$tokenize(t,e){return dn(t,e||this.defaultLanguage)},defaultLanguage:Ne,tokenize(t,e){return k.tokenize(t,k.languages[e||""]||k.languages[this.defaultLanguage])}};function It(t,e,r,s){let n=s.getParent();M(n)?Kt(t,e,r,n):O(s)&&s.replace(ot(s.__text))}function pn(t,e){let r=e.getElementByKey(t.getKey());if(r===null)return;let s=t.getChildren(),n=s.length;if(n===r.__cachedChildrenLength)return;r.__cachedChildrenLength=n;let l="1",y=1;for(let c=0;c<n;c++)T(s[c])&&(l+=`
11
+ `+ ++y);r.setAttribute("data-gutter",l)}function Kt(t,e,r,s){let{nodesCurrentlyHighlighting:n}=r,l=s.getKey();s.getLanguage()===void 0&&s.setLanguage(e.defaultLanguage);let y=s.getLanguage()||e.defaultLanguage;if(!Ht(y))return s.getIsSyntaxHighlightSupported()&&s.setIsSyntaxHighlightSupported(!1),void Bt();s.getIsSyntaxHighlightSupported()||s.setIsSyntaxHighlightSupported(!0),n.has(l)||(n.add(l),r.didTransform||(r.didTransform=!0,ft(()=>{r.didTransform=!1,n.clear()})),(function(c,f){let x=de(c);if(!M(x)||!x.isAttached())return;let C=U();if(!z(C))return void f();let d=C.anchor,A=d.offset,p=d.type==="element"&&T(x.getChildAtIndex(d.offset-1)),E=0;if(!p){let i=d.getNode();E=A+i.getPreviousSiblings().reduce((a,o)=>a+o.getTextContentSize(),0)}if(f()){if(p)return void d.getNode().select(A,A);x.getChildren().some(i=>{let a=fe(i);if(a||T(i)){let o=i.getTextContentSize();if(a&&o>=E)return i.select(E,E),!0;E-=o}return!1})}})(l,()=>{let c=de(l);if(!M(c)||!c.isAttached())return!1;let f=c.getLanguage()||e.defaultLanguage,x=e.$tokenize(c,f),C=(function(E,i){let a=0;for(;a<E.length&&Rt(E[a],i[a]);)a++;let o=E.length,u=i.length,g=Math.min(o,u)-a,m=0;for(;m<g;)if(m++,!Rt(E[o-m],i[u-m])){m--;break}let N=a,h=o-m,_=i.slice(a,u-m);return{from:N,nodesForReplacement:_,to:h}})(c.getChildren(),x),{from:d,to:A,nodesForReplacement:p}=C;return!(d===A&&!p.length)&&(s.splice(d,A-d,p),!0)}))}function Rt(t,e){return O(t)&&O(e)&&t.__text===e.__text&&t.__highlightType===e.__highlightType||w(t)&&w(e)||T(t)&&T(e)}function W(t){if(!z(t))return!1;let e=t.anchor.getNode(),r=M(e)?e:e.getParent(),s=t.focus.getNode(),n=M(s)?s:s.getParent();return M(r)&&r.is(n)}function Yt(t){let e=t.getNodes(),r=[];if(e.length===1&&M(e[0]))return r;let s=[];for(let n=0;n<e.length;n++){let l=e[n];O(l)||w(l)||T(l)||Ut(169),T(l)?s.length>0&&(r.push(s),s=[]):s.push(l)}if(s.length>0){let n=t.isBackward()?t.anchor:t.focus,l=te(s[0].getKey(),0,"text");n.is(l)||r.push(s)}return r}function Dt(t){let e=U();if(!z(e)||!W(e))return!1;let r=Yt(e),s=r.length;if(s===0&&e.isCollapsed())return t===K&&e.insertNodes([B()]),!0;if(s===0&&t===K&&e.getTextContent()===`
12
+ `){let n=B(),l=X(),y=e.isBackward()?"previous":"next";return e.insertNodes([n,l]),ht(ut(lt(gt(n,"next",0),pt(pe(l,"next"))),y)),!0}for(let n=0;n<s;n++){let l=r[n];if(l.length>0){let y=l[0];if(n===0&&(y=j(y)),t===K){let c=B();if(y.insertBefore(c),n===0){let f=e.isBackward()?"focus":"anchor",x=te(y.getKey(),0,"text");e[f].is(x)&&e[f].set(c.getKey(),0,"text")}}else w(y)&&y.remove()}}return!0}function Pt(t,e){let r=U();if(!z(r))return!1;let{anchor:s,focus:n}=r,l=s.offset,y=n.offset,c=s.getNode(),f=n.getNode(),x=t===ne;if(!W(r)||!O(c)&&!w(c)||!O(f)&&!w(f))return!1;if(!e.altKey){if(r.isCollapsed()){let o=c.getParentOrThrow();if(x&&l===0&&c.getPreviousSibling()===null){if(o.getPreviousSibling()===null)return o.selectPrevious(),e.preventDefault(),!0}else if(!x&&l===c.getTextContentSize()&&c.getNextSibling()===null&&o.getNextSibling()===null)return o.selectNext(),e.preventDefault(),!0}return!1}let C,d;if(c.isBefore(f)?(C=j(c),d=Y(f)):(C=j(f),d=Y(c)),C==null||d==null)return!1;let A=C.getNodesBetween(d);for(let o=0;o<A.length;o++){let u=A[o];if(!O(u)&&!w(u)&&!T(u))return!1}e.preventDefault(),e.stopPropagation();let p=x?C.getPreviousSibling():d.getNextSibling();if(!T(p))return!0;let E=x?p.getPreviousSibling():p.getNextSibling();if(E==null)return!0;let i=O(E)||w(E)||T(E)?x?j(E):Y(E):null,a=i??E;return p.remove(),A.forEach(o=>o.remove()),t===ne?(A.forEach(o=>a.insertBefore(o)),a.insertBefore(p)):(a.insertAfter(p),a=p,A.forEach(o=>{a.insertAfter(o),a=o})),r.setTextNodeRange(c,l,f,y),!0}function Mt(t,e){let r=U();if(!z(r))return!1;let{anchor:s,focus:n}=r,l=s.getNode(),y=n.getNode(),c=t===he;if(!W(r)||!O(l)&&!w(l)||!O(y)&&!w(y))return!1;let f=y;if(ye(f)==="rtl"?!c:c){let x=Ce(f,n.offset);if(x!==null){let{node:C,offset:d}=x;T(C)?C.selectNext(0,0):r.setTextNodeRange(C,d,C,d)}else f.getParentOrThrow().selectStart()}else Ae(f).select();return e.preventDefault(),e.stopPropagation(),!0}function fn(t,e){if(!t.hasNodes([Q,oe]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");e==null&&(e=jt);let r=[];t._headless!==!0&&r.push(t.registerMutationListener(Q,n=>{t.getEditorState().read(()=>{for(let[l,y]of n)if(y!=="destroyed"){let c=de(l);c!==null&&pn(c,t)}})},{skipInitialization:!1}));let s={didTransform:!1,nodesCurrentlyHighlighting:new Set};return r.push(t.registerNodeTransform(Q,Kt.bind(null,t,e,s)),t.registerNodeTransform(me,It.bind(null,t,e,s)),t.registerNodeTransform(oe,It.bind(null,t,e,s)),t.registerCommand(bt,n=>{let l=(function(y){let c=U();if(!z(c)||!W(c))return null;let f=y?re:K,x=y?re:Oe,C=c.anchor,d=c.focus;if(C.is(d))return x;let A=Yt(c);if(A.length!==1)return f;let p=A[0],E,i;p.length===0&&Ut(285),c.isBackward()?(E=d,i=C):(E=C,i=d);let a=j(p[0]),o=Y(p[0]),u=te(a.getKey(),0,"text"),g=te(o.getKey(),o.getTextContentSize(),"text");return E.isBefore(u)||g.isBefore(i)?f:u.isBefore(E)||i.isBefore(g)?x:f})(n.shiftKey);return l!==null&&(n.preventDefault(),t.dispatchCommand(l,void 0),!0)},G),t.registerCommand(Oe,()=>!!W(U())&&(ct([B()]),!0),G),t.registerCommand(K,n=>Dt(K),G),t.registerCommand(re,n=>Dt(re),G),t.registerCommand(ne,n=>{let l=U();if(!z(l)||!W(l))return!1;let y=Fe().getFirstDescendant(),{anchor:c}=l,f=c.getNode();return(!y||!f||y.getKey()!==f.getKey())&&Pt(ne,n)},G),t.registerCommand(ke,n=>{let l=U();if(!z(l)||!W(l))return!1;let y=Fe().getLastDescendant(),{anchor:c}=l,f=c.getNode();return(!y||!f||y.getKey()!==f.getKey())&&Pt(ke,n)},G),t.registerCommand(he,n=>Mt(he,n),G),t.registerCommand($e,n=>Mt($e,n),G)),Ct(...r)}var D=je,Ke=D.CODE_LANGUAGE_FRIENDLY_NAME_MAP,Ye=D.CODE_LANGUAGE_MAP,We=D.PrismTokenizer,Ze=D.getCodeLanguageOptions,Xe=D.getCodeLanguages,qe=D.getCodeThemeOptions,Ve=D.getLanguageFriendlyName,cr=D.isCodeLanguageLoaded,dr=D.loadCodeLanguage,_e=D.normalizeCodeLanguage,Je=D.registerCodeHighlighting;var Qe={};ve(Qe,{$createCodeHighlightNode:()=>Ee,$createCodeNode:()=>Ot,$getCodeLineDirection:()=>ye,$getEndOfCodeInLine:()=>Ae,$getFirstCodeNodeOfLine:()=>j,$getLastCodeNodeOfLine:()=>Y,$getStartOfCodeInLine:()=>Ce,$isCodeHighlightNode:()=>O,$isCodeNode:()=>M,CODE_LANGUAGE_FRIENDLY_NAME_MAP:()=>hn,CODE_LANGUAGE_MAP:()=>mn,CodeExtension:()=>kt,CodeHighlightNode:()=>oe,CodeNode:()=>Q,DEFAULT_CODE_LANGUAGE:()=>Ne,PrismTokenizer:()=>xn,getCodeLanguageOptions:()=>bn,getCodeLanguages:()=>En,getCodeThemeOptions:()=>yn,getDefaultCodeLanguage:()=>$t,getLanguageFriendlyName:()=>An,normalizeCodeLang:()=>Cn,normalizeCodeLanguage:()=>Nn,registerCodeHighlighting:()=>_n});var hn=Ke,mn=Ye,bn=Ze,En=Xe,yn=qe,An=Ve,Cn=_e,Nn=_e,xn=We,_n=Je;var S=Qe,mr=S.$createCodeHighlightNode,br=S.$createCodeNode,Er=S.$getCodeLineDirection,yr=S.$getEndOfCodeInLine,Ar=S.$getFirstCodeNodeOfLine,Cr=S.$getLastCodeNodeOfLine,Nr=S.$getStartOfCodeInLine,xr=S.$isCodeHighlightNode,_r=S.$isCodeNode,Lr=S.CODE_LANGUAGE_FRIENDLY_NAME_MAP,Sr=S.CODE_LANGUAGE_MAP,Tr=S.CodeExtension,vr=S.CodeHighlightNode,wr=S.CodeNode,Fr=S.DEFAULT_CODE_LANGUAGE,Or=S.PrismTokenizer,kr=S.getCodeLanguageOptions,$r=S.getCodeLanguages,Ir=S.getCodeThemeOptions,Rr=S.getDefaultCodeLanguage,Dr=S.getLanguageFriendlyName,Pr=S.normalizeCodeLang,Mr=S.normalizeCodeLanguage,Ur=S.registerCodeHighlighting;export{mr as $createCodeHighlightNode,br as $createCodeNode,Er as $getCodeLineDirection,yr as $getEndOfCodeInLine,Ar as $getFirstCodeNodeOfLine,Cr as $getLastCodeNodeOfLine,Nr as $getStartOfCodeInLine,xr as $isCodeHighlightNode,_r as $isCodeNode,Lr as CODE_LANGUAGE_FRIENDLY_NAME_MAP,Sr as CODE_LANGUAGE_MAP,Tr as CodeExtension,vr as CodeHighlightNode,wr as CodeNode,Fr as DEFAULT_CODE_LANGUAGE,Or as PrismTokenizer,kr as getCodeLanguageOptions,$r as getCodeLanguages,Ir as getCodeThemeOptions,Rr as getDefaultCodeLanguage,Dr as getLanguageFriendlyName,Pr as normalizeCodeLang,Mr as normalizeCodeLanguage,Ur as registerCodeHighlighting};
@@ -0,0 +1 @@
1
+ import{a as X,b as P,c as Z,d as J}from"/kempo/vendor/lexical/chunks/chunk-ERAFEOAX.js";import{p as W}from"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import{Qa as v,Ra as D,Sa as Y,Ta as $,Xa as H,ab as F,b as ot,cb as V,cc as B,ed as G,na as N,oa as U,pc as K,sa as C,sb as A,sc as Q,tb as j,ub as q,yc as z}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var L={};ot(L,{HistoryExtension:()=>b,SharedHistoryExtension:()=>at,createEmptyHistoryState:()=>nt,registerHistory:()=>et});function rt(t,e,d,a,u){if(t===null||d.size===0&&a.size===0&&!u)return 0;let n=e._selection,o=t._selection;if(u)return 1;if(!(N(n)&&N(o)&&o.isCollapsed()&&n.isCollapsed()))return 0;let i=(function(S,m,M){let k=S._nodeMap,O=[];for(let g of m){let h=k.get(g);h!==void 0&&O.push(h)}for(let[g,h]of M){if(!h)continue;let E=k.get(g);E===void 0||U(E)||O.push(E)}return O})(e,d,a);if(i.length===0)return 0;if(i.length>1){let S=e._nodeMap,m=S.get(n.anchor.key),M=S.get(o.anchor.key);return m&&M&&!t._nodeMap.has(m.__key)&&C(m)&&m.__text.length===1&&n.anchor.offset===1?2:0}let s=i[0],c=t._nodeMap.get(s.__key);if(!C(c)||!C(s)||c.__mode!==s.__mode)return 0;let r=c.__text,p=s.__text;if(r===p)return 0;let _=n.anchor,l=o.anchor;if(_.key!==l.key||_.type!=="text")return 0;let f=_.offset,y=l.offset,x=p.length-r.length;return x===1&&y===f-1?2:x===-1&&y===f+1?3:x===-1&&y===f?4:0}function st(t,e,d){let a=d(),u=0,n=a,o=0,i=null;return(s,c,r,p,_,l)=>{let f=d();if(l.has(V)&&(n=a,o=u,i=s),l.has(A))return u=0,a=f,2;l.has(F)&&i&&(a=n,u=o,s=i);let y=rt(s,c,p,_,t.isComposing()),x=(()=>{let S=r===null||r.editor===t,m=l.has(q);if(!m&&S&&l.has(j))return 0;if(y===1)return 2;if(s===null)return 1;let M=c._selection;if(!(p.size>0||_.size>0))return M!==null?0:2;let k=typeof e=="number"?e:e.peek();return m===!1&&y!==0&&y===u&&f<a+k&&S||p.size===1&&(function(O,g,h){let E=g._nodeMap.get(O),T=h._nodeMap.get(O),I=g._selection,w=h._selection;return!(N(I)&&N(w)&&I.anchor.type==="element"&&I.focus.type==="element"&&w.anchor.type==="text"&&w.focus.type==="text"||!C(E)||!C(T)||E.__parent!==T.__parent)&&JSON.stringify(g.read(()=>E.exportJSON()))===JSON.stringify(h.read(()=>T.exportJSON()))})(Array.from(p)[0],s,c)?0:1})();return a=f,u=y,x}}function tt(t){t.undoStack=[],t.redoStack=[],t.current=null}function et(t,e,d,a=Date.now){let u=st(t,d,a);return W(t.registerCommand(K,()=>((function(n,o){let i=o.redoStack,s=o.undoStack;if(s.length!==0){let c=o.current,r=s.pop();c!==null&&(i.push(c),n.dispatchCommand(v,!0)),s.length===0&&n.dispatchCommand(D,!1),o.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:A})}})(t,e),!0),H),t.registerCommand(B,()=>((function(n,o){let i=o.redoStack,s=o.undoStack;if(i.length!==0){let c=o.current;c!==null&&(s.push(c),n.dispatchCommand(D,!0));let r=i.pop();i.length===0&&n.dispatchCommand(v,!1),o.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:A})}})(t,e),!0),H),t.registerCommand(Y,()=>(tt(e),!1),H),t.registerCommand($,()=>(tt(e),t.dispatchCommand(v,!1),t.dispatchCommand(D,!1),!0),H),t.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:s,tags:c})=>{let r=e.current,p=e.redoStack,_=e.undoStack,l=r===null?null:r.editorState;if(r!==null&&n===l)return;let f=u(o,n,r,i,s,c);if(f===1)p.length!==0&&(e.redoStack=[],t.dispatchCommand(v,!1)),r!==null&&(_.push({...r}),t.dispatchCommand(D,!0));else if(f===2)return;e.current={editor:t,editorState:n}}))}function nt(){return{current:null,redoStack:[],undoStack:[]}}var b=z({build:(t,{delay:e,createInitialHistoryState:d,disabled:a,now:u})=>J({delay:e,disabled:a,historyState:d(t),now:u}),config:G({createInitialHistoryState:nt,delay:300,disabled:typeof window>"u",now:Date.now}),name:"@lexical/history/History",register:(t,e,d)=>{let a=d.getOutput();return P(()=>a.disabled.value?void 0:et(t,a.historyState.value,a.delay,()=>a.now.peek()()))}}),at=z({build:(t,{disabled:e,parentEditor:d})=>J({disabled:e,parentEditor:d||t._parentEditor}),config:G({disabled:!1,parentEditor:null}),dependencies:[Q(b,{disabled:!0})],name:"@lexical/history/SharedHistory",register:(t,e,d)=>P(()=>{let{disabled:a,parentEditor:u}=d.getOutput();if(!a.value){let{output:n}=d.getDependency(b),o=(function(s){return s?Z(s,b.name):null})(u.value);if(!o)return;let i=o.output;X(()=>{n.delay.value=i.delay.value,n.historyState.value=i.historyState.value,n.now.value=i.now.value,n.disabled.value=i.disabled.value})}})});var R=L,ut=R.HistoryExtension,lt=R.SharedHistoryExtension,ft=R.createEmptyHistoryState,pt=R.registerHistory;export{ut as HistoryExtension,lt as SharedHistoryExtension,ft as createEmptyHistoryState,pt as registerHistory};
@@ -0,0 +1 @@
1
+ import{a,b}from"/kempo/vendor/lexical/chunks/chunk-LMH5Y7M4.js";import"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";export{a as $generateHtmlFromNodes,b as $generateNodesFromDOM};
@@ -0,0 +1 @@
1
+ import{b as Te,d as ne}from"/kempo/vendor/lexical/chunks/chunk-ERAFEOAX.js";import{c as E,i as be,k as Ce,n as G,p as te,q as ve}from"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import{$b as _e,D as V,Da as ge,Fc as xe,Ga as fe,Ha as de,K as ue,Oc as Le,R as U,Xa as he,Za as ee,b as Ie,e as Z,ed as Ne,f as ae,fa as A,hd as z,ja as X,k as W,la as K,na as T,ob as pe,oc as me,qa as ce,sa as S,t as q,tc as ke,ya as Q,yc as B,za as J}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var le={};Ie(le,{$createAutoLinkNode:()=>j,$createLinkNode:()=>D,$isAutoLinkNode:()=>b,$isLinkNode:()=>C,$toggleLink:()=>M,AutoLinkExtension:()=>Ye,AutoLinkNode:()=>R,ClickableLinkExtension:()=>Je,LinkExtension:()=>oe,LinkNode:()=>O,TOGGLE_LINK_COMMAND:()=>H,createLinkMatcherWithRegExp:()=>Be,formatUrl:()=>re,registerAutoLink:()=>ye,registerClickableLink:()=>Re,registerLink:()=>Se,toggleLink:()=>Ze});var we=new Set(["http:","https:","mailto:","sms:","tel:"]),O=class n extends pe{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new n(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},i){super(i);let{target:d=null,rel:s=null,title:r=null}=t;this.__url=e,this.__target=d,this.__rel=s,this.__title=r}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),Ce(t,e.theme.link),t}updateLinkDOM(e,t,i){if(G(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let d of["target","rel","title"]){let s=`__${d}`,r=this[s];e&&e[s]===r||(r?t[d]=r:t.removeAttribute(d))}}}updateDOM(e,t,i){return this.updateLinkDOM(e,t,i),!1}static importDOM(){return{a:e=>({conversion:We,priority:1})}}static importJSON(e){return D().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=re(e);try{let t=new URL(re(e));if(!we.has(t.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let i=W(this);return this.insertAfter(i,t),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,i){if(!T(t))return!1;let d=t.anchor.getNode(),s=t.focus.getNode();return this.isParentOf(d)&&this.isParentOf(s)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}};function Ue(n){let e=ae(n,"next");return[e,e.getFlipped()]}function Ae(n,e){for(let t of e)if(t.origin.isAttached()){let i=Q(t);return void fe(n,i)}}function Fe(n){let e=U(),t=null,i=null;function d(){T(e)&&(Ae(e.anchor,t),Ae(e.focus,i),J(e))}T(e)&&(t=Ue(e.anchor),i=Ue(e.focus));let s=!1;for(let l of V(n,"next")){let g=l.origin;if(A(g)&&!g.isInline()){let f=g.getChildren();if(f.length>0){let o=W(n);o.append(...f),g.append(o),s=!0}be(g,ge(l),{$shouldSplit:()=>!1})}}function r(l,g,f){let[o,a]=l,u=h=>ce(h)&&h.origin.is(g);if(!u(o)&&!u(a))return l;let c=Q(V(f,"next"));return[c,c.getFlipped()]}if(n.isAttached()){let l=n.getPreviousSibling();if(C(l)&&l.shouldMergeAdjacentLink(n))return t&&(t=r(t,l,n)),i&&(i=r(i,l,n)),l.append(...n.getChildren()),n.remove(),void d();let g=n.getNextSibling();C(g)&&n.shouldMergeAdjacentLink(g)&&(t&&(t=r(t,n,g)),i&&(i=r(i,n,g)),n.append(...g.getChildren()),g.remove(),s=!0)}if(s){if(!n.canBeEmpty()&&n.isEmpty()){let l=n.getParent();n.remove(),l&&l.isEmpty()&&l.remove()}d()}}function We(n){let e=null;if(G(n)){let t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=D(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function D(n="",e){return Z(new O(n,e))}function C(n){return n instanceof O}var R=class n extends O{__isUnlinked;constructor(e="",t={},i){super(e,t,i),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}static getType(){return"autolink"}static clone(e){return new n(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,i){return super.updateDOM(e,t,i)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return j().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let i=j(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(i,t),i}};function j(n="",e){return Z(new R(n,e))}function b(n){return n instanceof R}var H=ke("TOGGLE_LINK_COMMAND");function Ee(n,e){if(n.type==="element"){let t=n.getNode();return A(t)||(function(i,...d){let s=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",i);for(let l of d)r.append("v",l);throw s.search=r.toString(),Error(`Minified Lexical error #${i}; visit ${s.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),t.getChildren()[n.offset+e]||null}return null}function M(n,e={}){let t;if(n&&typeof n=="object"){let{url:o,...a}=n;t=o,e={...a,...e}}else t=n;let{target:i,title:d}=e,s=e.rel===void 0?"noreferrer":e.rel,r=U();if(r===null||!T(r)&&!K(r))return;if(K(r)){let o=r.getNodes();return o.length===0?void 0:void o.forEach(a=>{if(t===null){let u=E(a,c=>!b(c)&&C(c));u&&(u.insertBefore(a),u.getChildren().length===0&&u.remove())}else{let u=E(a,c=>!b(c)&&C(c));if(u)u.setURL(t),i!==void 0&&u.setTarget(i),s!==void 0&&u.setRel(s);else{let c=D(t,{rel:s,target:i});a.insertBefore(c),c.append(a)}}})}if(r.isCollapsed()&&t===null)for(let o of r.getNodes()){let a=E(o,u=>!b(u)&&C(u));return void(a!==null&&(a.getChildren().forEach(u=>{a.insertBefore(u)}),a.remove()))}let l=r.extract();if(t===null){let o=new Set;return void l.forEach(a=>{let u=E(a,c=>!b(c)&&C(c));if(u!==null){let c=u.getKey();if(o.has(c))return;(function(h,m){let L=new Set(m.filter(x=>h.isParentOf(x)).map(x=>x.getKey())),p=h.getChildren(),k=x=>L.has(x.getKey())||A(x)&&m.some(v=>h.isParentOf(v)&&x.isParentOf(v)),_=p.filter(k);if(_.length===p.length)return p.forEach(x=>h.insertBefore(x)),void h.remove();let y=p.findIndex(k),$=p.findLastIndex(k),I=y===0,w=$===p.length-1;if(I)_.forEach(x=>h.insertBefore(x));else if(w)for(let x=_.length-1;x>=0;x--)h.insertAfter(_[x]);else{for(let v=_.length-1;v>=0;v--)h.insertAfter(_[v]);let x=p.slice($+1);if(x.length>0){let v=W(h);_[_.length-1].insertAfter(v),x.forEach(F=>v.append(F))}}})(u,l),o.add(c)}})}let g=new Set,f=o=>{g.has(o.getKey())||(g.add(o.getKey()),o.setURL(t),i!==void 0&&o.setTarget(i),s!==void 0&&o.setRel(s),d!==void 0&&o.setTitle(d))};if(l.length===1){let o=l[0],a=E(o,C);if(a!==null)return f(a)}(function(o){let a=U();if(!T(a))return o();let u=J(a),c=u.isBackward(),h=Ee(u.anchor,c?-1:0),m=Ee(u.focus,c?0:-1),L=o();if(h||m){let p=U();if(T(p)){let k=p.clone();if(h){let _=h.getParent();_&&k.anchor.set(_.getKey(),h.getIndexWithinParent()+(c?1:0),"element")}if(m){let _=m.getParent();_&&k.focus.set(_.getKey(),m.getIndexWithinParent()+(c?0:1),"element")}de(J(k))}}})(()=>{let o=null;for(let a of l){if(!a.isAttached())continue;let u=E(a,C);if(u){f(u);continue}if(A(a)){if(!a.isInline())continue;if(C(a)){if(!(b(a)||o!==null&&o.getParentOrThrow().isParentOf(a))){f(a),o=a;continue}for(let h of a.getChildren())a.insertBefore(h);a.remove();continue}}let c=a.getPreviousSibling();C(c)&&c.is(o)?c.append(a):(o=D(t,{rel:s,target:i,title:d}),a.insertAfter(o),o.append(a))}})}var Ke=/^\+?[0-9\s()-]{5,}$/;function re(n){return n.match(/^[a-z][a-z0-9+.-]*:/i)||n.match(/^[/#.]/)?n:n.includes("@")?`mailto:${n}`:Ke.test(n)?`tel:${n}`:`https://${n}`}function Se(n,e){return te(n.registerNodeTransform(O,Fe),n.registerCommand(H,t=>{let i=e.validateUrl.peek(),d=e.attributes.peek();if(t===null)return M(null),!0;if(typeof t=="string")return!(i!==void 0&&!i(t))&&(M(t,d),!0);{let{url:s,target:r,rel:l,title:g}=t;return M(s,{...d,rel:l,target:r,title:g}),!0}},he),Te(()=>{let t=e.validateUrl.value;if(!t)return;let i=e.attributes.value;return n.registerCommand(_e,d=>{let s=U();if(!T(s)||s.isCollapsed()||!ve(d,ClipboardEvent)||d.clipboardData===null)return!1;let r=d.clipboardData.getData("text");return!!t(r)&&!s.getNodes().some(l=>A(l))&&(n.dispatchCommand(H,{...i,url:r}),d.preventDefault(),!0)},ee)}))}var oe=B({build:(n,e,t)=>ne(e),config:{attributes:void 0,validateUrl:void 0},mergeConfig(n,e){let t=z(n,e);return n.attributes&&(t.attributes=z(n.attributes,t.attributes)),t},name:"@lexical/link/Link",nodes:()=>[O],register:(n,e,t)=>Se(n,t.getOutput())});function Re(n,e,t={}){let i=s=>{let r=s.target;if(!Le(r))return;let l=xe(r);if(l===null)return;let g=null,f=null;if(l.update(()=>{let u=ue(r);if(u!==null){let c=E(u,A);if(!e.disabled.peek())if(C(c))g=c.sanitizeUrl(c.getURL()),f=c.getTarget();else{let h=(function(m,L){let p=m;for(;p!=null;){if(L(p))return p;p=p.parentNode}return null})(r,G);h!==null&&(g=h.href,f=h.target)}}}),g===null||g==="")return;let o=n.getEditorState().read(U);if(T(o)&&!o.isCollapsed())return void s.preventDefault();let a=s.type==="auxclick"&&s.button===1;window.open(g,e.newTab.peek()||a||s.metaKey||s.ctrlKey||f==="_blank"?"_blank":"_self"),s.preventDefault()},d=s=>{s.button===1&&i(s)};return n.registerRootListener(s=>{if(s)return s.addEventListener("click",i,t),s.addEventListener("mouseup",d,t),()=>{s.removeEventListener("click",i),s.removeEventListener("mouseup",d)}})}var Je=B({build:(n,e,t)=>ne(e),config:Ne({disabled:!1,newTab:!1}),dependencies:[oe],name:"@lexical/link/ClickableLink",register:(n,e,t)=>Re(n,t.getOutput())});function Be(n,e=t=>t){return t=>{let i=n.exec(t);return i===null?null:{index:i.index,length:i[0].length,text:i[0],url:e(i[0])}}}function ie(n,e){for(let t=0;t<e.length;t++){let i=e[t](n);if(i)return i}return null}var ze=/[.,;\s]/;function Y(n){return ze.test(n)}function $e(n){return Y(n[n.length-1])}function se(n){return Y(n[0])}function Me(n){let e=n.getPreviousSibling();return A(e)&&(e=e.getLastDescendant()),e===null||X(e)||S(e)&&$e(e.getTextContent())}function Pe(n){let e=n.getNextSibling();return A(e)&&(e=e.getFirstDescendant()),e===null||X(e)||S(e)&&se(e.getTextContent())}function Ge(n,e,t,i){return(n>0?Y(t[n-1]):Me(i[0]))?e<t.length?Y(t[e]):Pe(i[i.length-1]):!1}function je(n,e,t){let i=[],d=[],s=[],r=0,l=0,g=[...n];for(;g.length>0;){let f=g[0],o=f.getTextContent().length,a=l;l+o<=e?(i.push(f),r+=o):a>=t?s.push(f):d.push(f),l+=o,g.shift()}return[r,i,d,s]}function He(n,e,t,i){let d=j(i.url,i.attributes);if(n.length===1){let s,r=n[0];e===0?[s,r]=r.splitText(t):[,s,r]=r.splitText(e,t);let l=q(i.text);return l.setFormat(s.getFormat()),l.setDetail(s.getDetail()),l.setStyle(s.getStyle()),d.append(l),s.replace(d),r}if(n.length>1){let s=n[0],r,l=s.getTextContent().length;e===0?r=s:[,r]=s.splitText(e);let g=[],f;for(let c=1;c<n.length;c++){let h=n[c],m=h.getTextContent().length,L=l;if(L<t)if(l+m<=t)g.push(h);else{let[p,k]=h.splitText(t-L);g.push(p),f=k}l+=m}let o=U(),a=o?o.getNodes().find(S):void 0,u=q(r.getTextContent());return u.setFormat(r.getFormat()),u.setDetail(r.getDetail()),u.setStyle(r.getStyle()),d.append(u,...g),a&&a===r&&(T(o)?u.select(o.anchor.offset,o.focus.offset):K(o)&&u.select(0,u.getTextContent().length)),r.replace(d),f}}function Oe(n,e,t){let i=n.getChildren(),d=i.length;for(let g=0;g<d;g++){let f=i[g];if(!S(f)||!f.isSimpleText())return P(n),void t(null,n.getURL())}let s=n.getTextContent(),r=ie(s,e);if(r===null||r.text!==s||!Me(n)||!Pe(n))return P(n),void t(null,n.getURL());let l=n.getURL();if(l!==r.url&&(n.setURL(r.url),t(r.url,l)),r.attributes){let g=n.getRel();g!==r.attributes.rel&&(n.setRel(r.attributes.rel||null),t(r.attributes.rel||null,g));let f=n.getTarget();f!==r.attributes.target&&(n.setTarget(r.attributes.target||null),t(r.attributes.target||null,f))}}function P(n){let e=n.getChildren();for(let t=e.length-1;t>=0;t--)n.insertAfter(e[t]);return n.remove(),e.map(t=>t.getLatest())}var De={changeHandlers:[],excludeParents:[],matchers:[]};function ye(n,e=De){let{matchers:t,changeHandlers:i,excludeParents:d}=e,s=(r,l)=>{for(let g of i)g(r,l)};return te(n.registerNodeTransform(me,r=>{let l=r.getParentOrThrow(),g=r.getPreviousSibling();if(b(l))Oe(l,t,s);else if(!C(l)&&!d.some(f=>f(l))){if(r.isSimpleText()&&(se(r.getTextContent())||!b(g))){let f=(function(o){let a=[o],u=o.getNextSibling();for(;u!==null&&S(u)&&u.isSimpleText()&&(a.push(u),!/[\s]/.test(u.getTextContent()));)u=u.getNextSibling();return a})(r);(function(o,a,u){for(let k of o){let _=k.getParent();if(b(_)&&!_.getIsUnlinked())return}let c=[...o],h=c.map(k=>k.getTextContent()).join(""),m,L=h,p=0;for(;(m=ie(L,a))&&m!==null;){let k=m.index,_=k+m.length;if(Ge(p+k,p+_,h,c)){let[y,,$,I]=je(c,p+k,p+_),w=!1;for(let v of $){let F=v.getParent();if(b(F)&&!F.getIsUnlinked()){w=!0;break}}if(w){p+=_,L=L.substring(_);continue}let x=He($,p+k-y,p+_-y,m);c=x?[x,...I]:I,u(m.url,null),p=0}else p+=_;L=L.substring(_)}})(f,t,s)}(function(f,o,a){let u=f.getParent(),c=f.getPreviousSibling(),h=f.getNextSibling(),m=f.getTextContent();if(!b(u)||u.getIsUnlinked()){if(b(c)&&!c.getIsUnlinked()&&c.is(f.getPreviousSibling())&&f.getParent()===c.getParent()){if(!se(m))return P(c),void a(null,c.getURL());if(L=m,c.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(L):/^\.[a-zA-Z0-9]{1,}/.test(L)){let p=c.getTextContent()+m,k=ie(p,o);k!==null&&k.text===p&&(c.append(f),Oe(c,o,a),a(null,c.getURL()))}}var L;!b(h)||h.getIsUnlinked()||$e(m)||h.is(f.getNextSibling())&&f.getParent()===h.getParent()&&(P(h),a(null,h.getURL()))}})(r,t,s)}}),n.registerCommand(H,r=>{let l=U();return r!==null||!T(l)||l.extract().forEach(g=>{let f=g.getParent();b(f)&&(f.setIsUnlinked(!f.getIsUnlinked()),f.markDirty())}),!1},ee))}var Ye=B({config:De,dependencies:[oe],mergeConfig(n,e){let t=z(n,e);for(let i of["matchers","changeHandlers","excludeParents"]){let d=e[i];Array.isArray(d)&&(t[i]=[...n[i],...d])}return t},name:"@lexical/link/AutoLink",nodes:[R],register:ye}),Ze=M;var N=le,Qe=N.$createAutoLinkNode,et=N.$createLinkNode,tt=N.$isAutoLinkNode,nt=N.$isLinkNode,rt=N.$toggleLink,it=N.AutoLinkExtension,st=N.AutoLinkNode,ot=N.ClickableLinkExtension,lt=N.LinkExtension,at=N.LinkNode,ut=N.TOGGLE_LINK_COMMAND,ct=N.createLinkMatcherWithRegExp,gt=N.formatUrl,ft=N.registerAutoLink,dt=N.registerClickableLink,ht=N.registerLink,pt=N.toggleLink;export{Qe as $createAutoLinkNode,et as $createLinkNode,tt as $isAutoLinkNode,nt as $isLinkNode,rt as $toggleLink,it as AutoLinkExtension,st as AutoLinkNode,ot as ClickableLinkExtension,lt as LinkExtension,at as LinkNode,ut as TOGGLE_LINK_COMMAND,ct as createLinkMatcherWithRegExp,gt as formatUrl,ft as registerAutoLink,dt as registerClickableLink,ht as registerLink,pt as toggleLink};
@@ -0,0 +1 @@
1
+ import{b as nt,d as rt}from"/kempo/vendor/lexical/chunks/chunk-ERAFEOAX.js";import{c as Q,e as St,k as tt,l as yt,o as O,p as U,r as et}from"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import{x as Z}from"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import{D as z,Fc as Lt,Ga as G,K as w,Kb as ht,Lb as ft,M as gt,Nb as pt,R as E,Sb as _t,Ub as mt,Za as C,ad as R,b as Jt,d as V,e as J,ed as q,fa as x,ia as H,jc as Ct,k as _,lc as Nt,ma as ut,na as L,o as P,ob as F,oc as Tt,pa as D,rc as X,sa as K,t as lt,tc as M,ya as Y,yb as dt,yc as j}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var ct={};Jt(ct,{$createListItemNode:()=>b,$createListNode:()=>y,$getListDepth:()=>W,$handleListInsertParagraph:()=>Dt,$insertList:()=>$,$isListItemNode:()=>h,$isListNode:()=>u,$removeList:()=>at,CheckListExtension:()=>Zt,INSERT_CHECK_LIST_COMMAND:()=>Ft,INSERT_ORDERED_LIST_COMMAND:()=>Kt,INSERT_UNORDERED_LIST_COMMAND:()=>wt,ListExtension:()=>Vt,ListItemNode:()=>v,ListNode:()=>A,REMOVE_LIST_COMMAND:()=>Ut,UPDATE_LIST_START_COMMAND:()=>$t,insertList:()=>jt,registerCheckList:()=>Rt,registerList:()=>Wt,registerListStrictIndentTransform:()=>Bt,removeList:()=>qt});function S(r,...e){let t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",r);for(let i of e)n.append("v",i);throw t.search=n.toString(),Error(`Minified Lexical error #${r}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function W(r){let e=1,t=r.getParent();for(;t!=null;){if(h(t)){let n=t.getParent();if(u(n)){e++,t=n.getParent();continue}S(40)}return e}return e}function st(r){let e=r.getParent();u(e)||S(40);let t=e;for(;t!==null;)t=t.getParent(),u(t)&&(e=t);return e}function Mt(r){let e=[],t=r.getChildren().filter(h);for(let n=0;n<t.length;n++){let i=t[n],o=i.getFirstChild();u(o)?e=e.concat(Mt(o)):e.push(i)}return e}function T(r){return h(r)&&u(r.getFirstChild())}function vt(r){return b().append(r)}function It(r,e){return h(r)&&(e.length===0||e.length===1&&r.is(e[0])&&r.getChildrenSize()===0)}function $(r){let e=E();if(e!==null){let t=e.getNodes();if(L(e)){let i=e.getStartEndPoints();i===null&&S(143);let[o]=i,s=o.getNode(),a=s.getParent();if(D(s)){let c=s.getFirstChild();if(c)t=c.selectStart().getNodes();else{let l=P();s.append(l),t=l.select().getNodes()}}else if(It(s,t)){let c=y(r);if(D(a)){s.replace(c);let l=b();x(s)&&(l.setFormat(s.getFormatType()),l.setIndent(s.getIndent())),c.append(l)}else if(h(s)){let l=s.getParentOrThrow();k(c,l.getChildren()),l.replace(c)}return}}let n=new Set;for(let i=0;i<t.length;i++){let o=t[i];if(x(o)&&o.isEmpty()&&!h(o)&&!n.has(o.getKey())){Et(o,r);continue}let s=H(o)?o.getParent():h(o)&&o.isEmpty()?o:null;for(;s!=null;){let a=s.getKey();if(u(s)){if(!n.has(a)){let c=y(r);k(c,s.getChildren()),s.replace(c),n.add(a)}break}{let c=s.getParent();if(D(c)&&!n.has(a)){n.add(a),Et(s,r);break}s=c}}}}}function k(r,e){r.splice(r.getChildrenSize(),0,e)}function Et(r,e){if(u(r))return r;let t=r.getPreviousSibling(),n=r.getNextSibling(),i=b(),o;if(k(i,r.getChildren()),u(t)&&e===t.getListType())t.append(i),u(n)&&e===n.getListType()&&(k(t,n.getChildren()),n.remove()),o=t;else if(u(n)&&e===n.getListType())n.getFirstChildOrThrow().insertBefore(i),o=n;else{let a=y(e);a.append(i),r.replace(a),o=a}i.setFormat(r.getFormatType()),i.setIndent(r.getIndent());let s=E();return L(s)&&(o.getKey()===s.anchor.key&&s.anchor.set(i.getKey(),s.anchor.offset,"element"),o.getKey()===s.focus.key&&s.focus.set(i.getKey(),s.focus.offset,"element")),r.remove(),o}function ot(r,e){let t=r.getLastChild(),n=e.getFirstChild();t&&n&&T(t)&&T(n)&&(ot(t.getFirstChild(),n.getFirstChild()),n.remove());let i=e.getChildren();i.length>0&&r.append(...i),e.remove()}function at(){let r=E();if(L(r)){let e=new Set,t=r.getNodes(),n=r.anchor.getNode();if(It(n,t))e.add(st(n));else for(let i=0;i<t.length;i++){let o=t[i];if(H(o)){let s=St(o,v);s!=null&&e.add(st(s))}}for(let i of e){let o=i,s=Mt(i);for(let a of s){let c=P().setTextStyle(r.style).setTextFormat(r.format);k(c,a.getChildren()),o.insertAfter(c),o=c,a.__key===r.anchor.key&&G(r.anchor,Y(z(c,"next"))),a.__key===r.focus.key&&G(r.focus,Y(z(c,"next"))),a.remove()}i.remove()}}}function Pt(r){let e=r.getListType()!=="check",t=r.getStart();for(let n of r.getChildren())h(n)&&(n.getValue()!==t&&n.setValue(t),e&&n.getLatest().__checked!=null&&n.setChecked(void 0),u(n.getFirstChild())||t++)}function zt(r){let e=new Set;if(T(r)||e.has(r.getKey()))return;let t=r.getParent(),n=r.getNextSibling(),i=r.getPreviousSibling();if(T(n)&&T(i)){let o=i.getFirstChild();if(u(o)){o.append(r);let s=n.getFirstChild();u(s)&&(k(o,s.getChildren()),n.remove(),e.add(n.getKey()))}}else if(T(n)){let o=n.getFirstChild();if(u(o)){let s=o.getFirstChild();s!==null&&s.insertBefore(r)}}else if(T(i)){let o=i.getFirstChild();u(o)&&o.append(r)}else if(u(t)){let o=_(r),s=_(t);o.append(s),s.append(r),i?i.insertAfter(o):n?n.insertBefore(o):t.append(o)}}function Ht(r){if(T(r))return;let e=r.getParent(),t=e?e.getParent():void 0;if(u(t?t.getParent():void 0)&&h(t)&&u(e)){let n=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(r.is(n))t.insertBefore(r),e.isEmpty()&&t.remove();else if(r.is(i))t.insertAfter(r),e.isEmpty()&&t.remove();else{let o=_(r),s=_(e);o.append(s),r.getPreviousSiblings().forEach(l=>s.append(l));let a=_(r),c=_(e);a.append(c),k(c,r.getNextSiblings()),t.insertBefore(o),t.insertAfter(a),t.replace(r)}}}function Dt(r=!1){let e=E();if(!L(e)||!e.isCollapsed())return!1;let t=e.anchor.getNode(),n=null;if(h(t)&&t.getChildrenSize()===0)n=t;else if(K(t)){let l=t.getParent();h(l)&&l.getChildren().every(g=>K(g)&&g.getTextContent().trim()==="")&&(n=l)}if(n===null)return!1;let i=st(n),o=n.getParent();u(o)||S(40);let s=o.getParent(),a;if(D(s))a=P(),i.insertAfter(a);else{if(!h(s))return!1;a=_(s),s.insertAfter(a)}a.setTextStyle(e.style).setTextFormat(e.format).select();let c=n.getNextSiblings();if(c.length>0){let l=r?(function(d,p){return d.getStart()+p.getIndexWithinParent()})(o,n):1,g=_(o).setStart(l);if(h(a)){let d=_(a);d.append(g),a.insertAfter(d)}else a.insertAfter(g);g.append(...c)}return(function(l){let g=l;for(;g.getNextSibling()==null&&g.getPreviousSibling()==null;){let d=g.getParent();if(d==null||!h(d)&&!u(d))break;g=d}g.remove()})(n),!0}var v=class extends F{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(e.__checked==null)return;let t=e.getParent();u(t)&&t.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)},extends:F,importDOM:X({li:()=>({conversion:Yt,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){(function(s,a,c){let l=a.getParent();!u(l)||l.getListType()!=="check"||u(a.getFirstChild())?(s.removeAttribute("role"),s.removeAttribute("tabIndex"),s.removeAttribute("aria-checked")):(s.setAttribute("role","checkbox"),s.setAttribute("tabIndex","-1"),c&&a.__checked===c.__checked||s.setAttribute("aria-checked",a.getChecked()?"true":"false"))})(t,this,e),t.value=this.__value,(function(s,a,c){let l=[],g=[],d=a.list,p=d?d.listitem:void 0,N;if(d&&d.nested&&(N=d.nested.listitem),p!==void 0&&l.push(...R(p)),d){let m=c.getParent(),I=u(m)&&m.getListType()==="check",B=c.getChecked();I&&!B||g.push(d.listitemUnchecked),I&&B||g.push(d.listitemChecked),I&&l.push(B?d.listitemChecked:d.listitemUnchecked)}if(N!==void 0){let m=R(N);c.getChildren().some(I=>u(I))?l.push(...m):g.push(...m)}g.length>0&&et(s,...g),l.length>0&&tt(s,...l)})(t,n.theme,this);let i=e?e.__style:"",o=this.__style;i!==o&&(o===""?t.removeAttribute("style"):t.style.cssText=o),(function(s,a,c){let l=Z(a.__textStyle);for(let g in l)s.style.setProperty(`--listitem-marker-${g}`,l[g]);if(c)for(let g in Z(c.__textStyle))g in l||s.style.removeProperty(`--listitem-marker-${g}`)})(t,this,e)}updateDOM(e,t,n){let i=t;return this.updateListItemDOM(e,i,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let i=this.getDirection();return i&&(t.dir=i),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(x(n)&&this.canMergeWith(n)){let i=n.getChildren();this.append(...i),n.remove()}else super.append(n)}return this}replace(e,t){if(h(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!u(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let i=_(n),o=this.getNextSibling();for(;o;){let s=o;o=o.getNextSibling(),i.append(s)}n.insertAfter(e),e.insertAfter(i)}return t&&(x(e)||S(139),this.getChildren().forEach(i=>{e.append(i)})),this.remove(),n.getChildrenSize()===0&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(u(n)||S(39),h(e))return super.insertAfter(e,t);let i=this.getNextSiblings();if(n.insertAfter(e,t),i.length!==0){let o=_(n);i.forEach(s=>o.append(s)),e.insertAfter(o,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&T(t)&&T(n)&&(ot(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=_(this);return this.insertAfter(n,t),n}collapseAtStart(e){let t=P();this.getChildren().forEach(s=>t.append(s));let n=this.getParentOrThrow(),i=n.getParentOrThrow(),o=h(i);if(n.getChildrenSize()===1)if(o)n.remove(),i.select();else{n.insertBefore(t),n.remove();let s=e.anchor,a=e.focus,c=t.getKey();s.type==="element"&&s.getNode().is(this)&&s.set(c,s.offset,"element"),a.type==="element"&&a.getNode().is(this)&&a.set(c,a.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return u(n)&&(t=n.getListType()),t==="check"?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;h(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!="number"&&S(117),(e=Math.floor(e))>=0||S(199);let t=this.getIndent();for(;t!==e;)t<e?(zt(this),t++):(Ht(this),t--);return this}canInsertAfter(e){return h(e)}canReplaceWith(e){return h(e)}canMergeWith(e){return h(e)||ut(e)}extractWithChild(e,t){if(!L(t))return!1;let n=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(i)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return y("bullet")}canMergeWhenEmpty(){return!0}};function Yt(r){if(r.classList.contains("task-list-item")){for(let t of r.children)if(t.tagName==="INPUT")return xt(t)}if(r.classList.contains("joplin-checkbox")){for(let t of r.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&t.children[0].tagName==="INPUT")return xt(t.children[0])}let e=r.getAttribute("aria-checked");return{node:b(e==="true"||e!=="false"&&void 0)}}function xt(r){return r.getAttribute("type")!=="checkbox"?{node:null}:{node:b(r.hasAttribute("checked"))}}function b(r){return J(new v(void 0,r))}function h(r){return r instanceof v}var A=class extends F{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{(function(t){let n=t.getNextSibling();u(n)&&t.getListType()===n.getListType()&&ot(t,n)})(e),Pt(e)},extends:F,importDOM:X({ol:()=>({conversion:kt,priority:0}),ul:()=>({conversion:kt,priority:0})})})}constructor(e="number",t=1,n){super(n);let i=Xt[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e==="number"?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,i=document.createElement(n);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Ot(i,e.theme,this),i}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Ot(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return O(t)&&(this.__start!==1&&t.setAttribute("start",String(this.__start)),this.__listType==="check"&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let i=n.find(h)??this.getChildren().find(h),o=i?()=>_(i):b,s=n;for(let a=0;a<n.length;a++){let c=n[a];h(c)||(s===n&&(s=[...n]),s[a]=o().append(!x(c)||u(c)||c.isInline()?c:lt(c.getTextContent())))}return super.splice(e,t,s)}extractWithChild(e){return h(e)}};function Ot(r,e,t){let n=[],i=[],o=e.list;if(o!==void 0){let s=o[`${t.__tag}Depth`]||[],a=W(t)-1,c=a%s.length,l=s[c],g=o[t.__tag],d,p=o.nested,N=o.checklist;if(p!==void 0&&p.list&&(d=p.list),g!==void 0&&n.push(g),N!==void 0&&t.__listType==="check"&&n.push(N),l!==void 0){n.push(...R(l));for(let m=0;m<s.length;m++)m!==c&&i.push(t.__tag+m)}if(d!==void 0){let m=R(d);a>1?n.push(...m):i.push(...m)}}i.length>0&&et(r,...i),n.length>0&&tt(r,...n)}function Gt(r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];if(h(n)){e.push(n);let i=n.getChildren();i.length>1&&i.forEach(o=>{u(o)&&e.push(vt(o))})}else e.push(vt(n))}return e}function kt(r){let e=r.nodeName.toLowerCase(),t=null;return e==="ol"?t=y("number",r.start):e==="ul"&&(t=(function(n){if(n.getAttribute("__lexicallisttype")==="check"||n.classList.contains("contains-task-list")||n.getAttribute("data-is-checklist")==="1")return!0;for(let i of n.childNodes)if(O(i)&&i.hasAttribute("aria-checked"))return!0;return!1})(r)?y("check"):y("bullet")),{after:Gt,node:t}}var Xt={ol:"number",ul:"bullet"};function y(r="number",e=1){return J(new A(r,e))}function u(r){return r instanceof A}var Ft=M("INSERT_CHECK_LIST_COMMAND");function Rt(r,e){let t=e&&e.disableTakeFocusOnClick||!1,n=typeof t=="boolean"?()=>t:t.peek.bind(t),i=s=>{(function(a,c){At(a,()=>{if(O(a.target)){let l=a.target,g=Lt(l);g!=null&&g.isEditable()&&g.update(()=>{let d=w(l);h(d)&&(c?(V(Nt),V(Ct)):l.focus(),d.toggleChecked())})}})})(s,n())},o=s=>{(function(a,c){At(a,()=>{a.preventDefault(),c&&a.stopPropagation()})})(s,n())};return U(r.registerCommand(Ft,()=>($("check"),!0),C),r.registerCommand(ht,s=>bt(s,r,!1),C),r.registerCommand(pt,s=>bt(s,r,!0),C),r.registerCommand(_t,()=>{if(it()!=null){let s=r.getRootElement();return s?.focus(),!0}return!1},C),r.registerCommand(mt,s=>{let a=it();return!(a==null||!r.isEditable())&&(r.update(()=>{let c=w(a);h(c)&&(s.preventDefault(),c.toggleChecked())}),!0)},C),r.registerCommand(ft,s=>r.getEditorState().read(()=>{let a=E();if(L(a)&&a.isCollapsed()){let{anchor:c}=a,l=c.type==="element";if(l||c.offset===0){let g=c.getNode(),d=Q(g,p=>x(p)&&!p.isInline());if(h(d)){let p=d.getParent();if(u(p)&&p.getListType()==="check"&&(l||d.getFirstDescendant()===g)){let N=r.getElementByKey(d.__key);if(N!=null&&document.activeElement!==N)return N.focus(),s.preventDefault(),!0}}}}return!1}),C),r.registerRootListener(s=>{if(s!==null)return s.addEventListener("click",i),s.addEventListener("pointerdown",o,{capture:!0}),s.addEventListener("mousedown",o,{capture:!0}),s.addEventListener("touchstart",o,{capture:!0,passive:!1}),()=>{s.removeEventListener("click",i),s.removeEventListener("pointerdown",o,{capture:!0}),s.removeEventListener("mousedown",o,{capture:!0}),s.removeEventListener("touchstart",o,{capture:!0})}}))}function At(r,e){let t=r.target;if(!O(t))return;let n=t.firstChild;if(O(n)&&(n.tagName==="UL"||n.tagName==="OL"))return;let i=t.parentNode;if(!i||i.__lexicalListType!=="check")return;let o=null,s=null;if("clientX"in r)o=r.clientX;else if("touches"in r){let p=r.touches;p.length>0&&(o=p[0].clientX,s="touch")}if(o==null)return;let a=t.getBoundingClientRect(),c=o/yt(t),l=window.getComputedStyle?window.getComputedStyle(t,"::before"):{width:"0px"},g=parseFloat(l.width),d=s==="touch"||r.pointerType==="touch"?32:0;(t.dir==="rtl"?c<a.right+d&&c>a.right-g-d:c>a.left-d&&c<a.left+g+d)&&e()}function it(){let r=document.activeElement;return O(r)&&r.tagName==="LI"&&r.parentNode!=null&&r.parentNode.__lexicalListType==="check"?r:null}function bt(r,e,t){let n=it();return n!=null&&e.update(()=>{let i=w(n);if(!h(i))return;let o=(function(s,a){let c=a?s.getPreviousSibling():s.getNextSibling(),l=s;for(;c==null&&h(l);)l=l.getParentOrThrow().getParent(),l!=null&&(c=a?l.getPreviousSibling():l.getNextSibling());for(;h(c);){let g=a?c.getLastChild():c.getFirstChild();if(!u(g))return c;c=a?g.getLastChild():g.getFirstChild()}return null})(i,t);if(o!=null){o.selectStart();let s=e.getElementByKey(o.__key);s!=null&&(r.preventDefault(),setTimeout(()=>{s.focus()},0))}}),!1}var $t=M("UPDATE_LIST_START_COMMAND"),wt=M("INSERT_UNORDERED_LIST_COMMAND"),Kt=M("INSERT_ORDERED_LIST_COMMAND"),Ut=M("REMOVE_LIST_COMMAND");function Wt(r,e){return U(r.registerCommand(Kt,()=>($("number"),!0),C),r.registerCommand($t,t=>{let{listNodeKey:n,newStart:i}=t,o=gt(n);return!!u(o)&&(o.getListType()==="number"&&(o.setStart(i),Pt(o)),!0)},C),r.registerCommand(wt,()=>($("bullet"),!0),C),r.registerCommand(Ut,()=>(at(),!0),C),r.registerCommand(dt,()=>Dt(!!(e&&e.restoreNumbering)),C),r.registerNodeTransform(v,t=>{let n=t.getFirstChild();if(n){if(K(n)){let i=n.getStyle(),o=n.getFormat();t.getTextStyle()!==i&&t.setTextStyle(i),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{let i=E();L(i)&&(i.style!==t.getTextStyle()||i.format!==t.getTextFormat())&&i.isCollapsed()&&t.is(i.anchor.getNode())&&t.setTextStyle(i.style).setTextFormat(i.format)}}),r.registerNodeTransform(Tt,t=>{let n=t.getParent();if(h(n)&&t.is(n.getFirstChild())){let i=t.getStyle(),o=t.getFormat();i===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(i).setTextFormat(o)}}))}function Bt(r){let e=t=>{let n=t.getParent();if(u(t.getFirstChild())||!u(n))return;let i=Q(t,o=>h(o)&&u(o.getParent())&&h(o.getPreviousSibling()));if(i===null&&t.getIndent()>0)t.setIndent(0);else if(h(i)){let o=i.getPreviousSibling();if(h(o)){let s=(function(c){let l=c,g=l.getFirstChild();for(;u(g);){let d=g.getLastChild();if(!h(d))break;l=d,g=l.getFirstChild()}return l})(o),a=s.getParent();if(u(a)){let c=W(a);c+1<W(n)&&t.setIndent(c)}}}};return r.registerNodeTransform(A,t=>{let n=[t];for(;n.length>0;){let i=n.shift();if(u(i)){for(let o of i.getChildren())if(h(o)){e(o);let s=o.getFirstChild();u(s)&&n.push(s)}}}})}function jt(r,e){r.update(()=>$(e))}function qt(r){r.update(()=>at())}var Vt=j({build:(r,e,t)=>rt(e),config:q({hasStrictIndent:!1,shouldPreserveNumbering:!1}),name:"@lexical/list/List",nodes:()=>[A,v],register(r,e,t){let n=t.getOutput();return U(nt(()=>Wt(r,{restoreNumbering:n.shouldPreserveNumbering.value})),nt(()=>n.hasStrictIndent.value?Bt(r):void 0))}}),Zt=j({build:(r,e)=>rt(e),config:q({disableTakeFocusOnClick:!1}),dependencies:[Vt],name:"@lexical/list/CheckList",register:(r,e,t)=>Rt(r,t.getOutput())});var f=ct,re=f.$createListItemNode,se=f.$createListNode,ie=f.$getListDepth,oe=f.$handleListInsertParagraph,ae=f.$insertList,ce=f.$isListItemNode,le=f.$isListNode,ge=f.$removeList,ue=f.CheckListExtension,de=f.INSERT_CHECK_LIST_COMMAND,he=f.INSERT_ORDERED_LIST_COMMAND,fe=f.INSERT_UNORDERED_LIST_COMMAND,pe=f.ListExtension,_e=f.ListItemNode,me=f.ListNode,Ce=f.REMOVE_LIST_COMMAND,Ne=f.UPDATE_LIST_START_COMMAND,Te=f.insertList,Le=f.registerCheckList,Se=f.registerList,ye=f.registerListStrictIndentTransform,ve=f.removeList;export{re as $createListItemNode,se as $createListNode,ie as $getListDepth,oe as $handleListInsertParagraph,ae as $insertList,ce as $isListItemNode,le as $isListNode,ge as $removeList,ue as CheckListExtension,de as INSERT_CHECK_LIST_COMMAND,he as INSERT_ORDERED_LIST_COMMAND,fe as INSERT_UNORDERED_LIST_COMMAND,pe as ListExtension,_e as ListItemNode,me as ListNode,Ce as REMOVE_LIST_COMMAND,Ne as UPDATE_LIST_START_COMMAND,Te as insertList,Le as registerCheckList,Se as registerList,ye as registerListStrictIndentTransform,ve as removeList};
@@ -0,0 +1 @@
1
+ import{b as B,c as X}from"/kempo/vendor/lexical/chunks/chunk-3XOIGVQI.js";import"/kempo/vendor/lexical/chunks/chunk-LMH5Y7M4.js";import{b as ze,d as Be}from"/kempo/vendor/lexical/chunks/chunk-ERAFEOAX.js";import{c as Ge,d as Qe,f as Q,k as q,o as z,p as qe,q as h}from"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import{k,m as J,q as G}from"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import{$b as Ke,Ea as le,Ha as me,K as $,Kb as ve,Lb as xe,Mb as Re,Nb as ye,Ob as Se,Oc as He,Pb as Pe,Q as ie,R as i,Rb as $e,Sb as Ie,Ua as ge,Ub as we,Vb as Fe,Xa as s,Yc as ke,_b as Y,aa as ae,ac as Le,b as re,da as R,db as fe,dc as be,e as F,eb as pe,ed as Je,fa as ce,fb as Ne,gb as I,gd as H,hb as De,hc as We,ib as he,kb as Ce,la as l,lb as Ee,mb as _e,na as c,o as C,oa as de,ob as L,q as oe,qb as Me,rb as Ae,s as se,sa as y,tc as Ye,vb as Oe,x as K,xb as b,yb as W,yc as w,za as ue,zb as Te}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var V={};re(V,{DragonExtension:()=>ot,registerDragonSupport:()=>Xe});function Xe(n){let e=window.location.origin,t=r=>{if(r.origin!==e)return;let o=n.getRootElement();if(document.activeElement!==o)return;let a=r.data;if(typeof a=="string"){let d;try{d=JSON.parse(a)}catch{return}if(d&&d.protocol==="nuanria_messaging"&&d.type==="request"){let u=d.payload;if(u&&u.functionId==="makeChanges"){let g=u.args;if(g){let[O,T,v,te,rt]=g;n.update(()=>{let x=i();if(c(x)){let ne=x.anchor,f=ne.getNode(),p=0,N=0;if(y(f)&&O>=0&&T>=0&&(p=O,N=O+T,x.setTextNodeRange(f,p,f,N)),p===N&&v===""||(x.insertRawText(v),f=ne.getNode()),y(f)){p=te,N=te+rt;let P=f.getTextContentSize();p=p>P?P:p,N=N>P?P:N,x.setTextNodeRange(f,p,f,N)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}var ot=w({build:(n,e,t)=>Be(e),config:Je({disabled:typeof window>"u"}),name:"@lexical/dragon",register:(n,e,t)=>ze(()=>t.getOutput().disabled.value?void 0:Xe(n))});var Ve=V,Ue=Ve.DragonExtension,ht=Ve.registerDragonSupport;var ee={};re(ee,{$createHeadingNode:()=>_,$createQuoteNode:()=>Z,$isHeadingNode:()=>ft,$isQuoteNode:()=>mt,DRAG_DROP_PASTE:()=>j,HeadingNode:()=>A,QuoteNode:()=>M,RichTextExtension:()=>pt,eventFiles:()=>S,registerRichText:()=>nt});function je(n,e){if(document.caretRangeFromPoint!==void 0){let t=document.caretRangeFromPoint(n,e);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){let t=document.caretPositionFromPoint(n,e);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}var D=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,st=D&&"documentMode"in document?document.documentMode:null,it=D&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),at=!(!D||!("InputEvent"in window)||st)&&"getTargetRanges"in new window.InputEvent("input"),Ze=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ct=D&&/Android/.test(navigator.userAgent),dt=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!ct,ut=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),lt=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&it&&!ut,j=Ye("DRAG_DROP_PASTE_FILE"),M=class n extends L{static getType(){return"quote"}static clone(e){return new n(e.__key)}createDOM(e){let t=document.createElement("blockquote");return q(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:gt,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(z(t)){this.isEmpty()&&t.append(document.createElement("br"));let r=this.getFormatType();r&&(t.style.textAlign=r);let o=this.getDirection();o&&(t.dir=o)}return{element:t}}static importJSON(e){return Z().updateFromJSON(e)}insertNewAfter(e,t){let r=C(),o=this.getDirection();return r.setDirection(o),this.insertAfter(r,t),r}collapseAtStart(){let e=C();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Z(){return F(new M)}function mt(n){return n instanceof M}var A=class n extends L{__tag;static getType(){return"heading"}static clone(e){return new n(e.__tag,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){let t=this.getWritable();return t.__tag=e,t}createDOM(e){let t=this.__tag,r=document.createElement(t),o=e.theme.heading;if(o!==void 0){let a=o[t];q(r,a)}return r}updateDOM(e,t,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:E,priority:0}),h2:e=>({conversion:E,priority:0}),h3:e=>({conversion:E,priority:0}),h4:e=>({conversion:E,priority:0}),h5:e=>({conversion:E,priority:0}),h6:e=>({conversion:E,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&et(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>et(e)?{conversion:t=>({node:_("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(z(t)){this.isEmpty()&&t.append(document.createElement("br"));let r=this.getFormatType();r&&(t.style.textAlign=r);let o=this.getDirection();o&&(t.dir=o)}return{element:t}}static importJSON(e){return _(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let r=e?e.anchor.offset:0,o=this.getLastDescendant(),a=!o||e&&e.anchor.key===o.getKey()&&r===o.getTextContentSize()||!e?C():_(this.getTag()),d=this.getDirection();if(a.setDirection(d),this.insertAfter(a,t),r===0&&!this.isEmpty()&&e){let u=C();u.select(),this.replace(u,!0)}return a}collapseAtStart(){let e=this.isEmpty()?C():_(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function et(n){return n.nodeName.toLowerCase()==="span"&&n.style.fontSize==="26pt"}function E(n){let e=n.nodeName.toLowerCase(),t=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(t=_(e),n.style!==null&&(H(n,t),t.setFormat(n.style.textAlign))),{node:t}}function gt(n){let e=Z();return n.style!==null&&(e.setFormat(n.style.textAlign),H(n,e)),{node:e}}function _(n="h1"){return F(new A(n))}function ft(n){return n instanceof A}function S(n){let e=null;if(h(n,DragEvent)?e=n.dataTransfer:h(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];let t=e.types,r=t.includes("Files"),o=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),o]}function tt(n){let e=$(n);return R(e)}function U(n){for(let e of["lowercase","uppercase","capitalize"])n.hasFormat(e)&&n.toggleFormat(e)}function nt(n){return qe(n.registerCommand(ge,e=>{let t=i();return!!l(t)&&(t.clear(),!0)},s),n.registerCommand(I,e=>{let t=i();return c(t)?(t.deleteCharacter(e),!0):!!l(t)&&(t.deleteNodes(),!0)},s),n.registerCommand(he,e=>{let t=i();return!!c(t)&&(t.deleteWord(e),!0)},s),n.registerCommand(De,e=>{let t=i();return!!c(t)&&(t.deleteLine(e),!0)},s),n.registerCommand(fe,e=>{let t=i();if(typeof e=="string")t!==null&&t.insertText(e);else{if(t===null)return!1;let r=e.dataTransfer;if(r!=null)B(r,t,n);else if(c(t)){let o=e.data;return o&&t.insertText(o),!0}}return!0},s),n.registerCommand(be,()=>{let e=i();return!!c(e)&&(e.removeText(),!0)},s),n.registerCommand(Ae,e=>{let t=i();return!!c(t)&&(t.formatText(e),!0)},s),n.registerCommand(Me,e=>{let t=i();if(!c(t)&&!l(t))return!1;let r=t.getNodes();for(let o of r){let a=Ge(o,d=>ce(d)&&!d.isInline());a!==null&&a.setFormat(e)}return!0},s),n.registerCommand(b,e=>{let t=i();return!!c(t)&&(t.insertLineBreak(e),!0)},s),n.registerCommand(W,()=>{let e=i();return!!c(e)&&(e.insertParagraph(),!0)},s),n.registerCommand(Te,()=>{let e=se(),t=i();return c(t)&&(e.setFormat(t.format),e.setStyle(t.style)),ae([e]),!0},s),n.registerCommand(Oe,()=>Q(e=>{let t=e.getIndent();e.setIndent(t+1)}),s),n.registerCommand(Y,()=>Q(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),s),n.registerCommand(ye,e=>{let t=i();if(l(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}else if(c(t)){let r=K(t.focus,!0);if(!e.shiftKey&&R(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},s),n.registerCommand(ve,e=>{let t=i();if(l(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectNext(0,0),!0}else if(c(t)){if((function(o){let a=o.focus;return a.key==="root"&&a.offset===ie().getChildrenSize()})(t))return e.preventDefault(),!0;let r=K(t.focus,!1);if(!e.shiftKey&&R(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},s),n.registerCommand(xe,e=>{let t=i();if(l(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),k(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!c(t))return!1;if(G(t,!0)){let r=e.shiftKey;return e.preventDefault(),J(t,r,!0),!0}return!1},s),n.registerCommand(Re,e=>{let t=i();if(l(t)){let o=t.getNodes();if(o.length>0)return e.preventDefault(),k(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!c(t))return!1;let r=e.shiftKey;return!!G(t,!1)&&(e.preventDefault(),J(t,r,!1),!0)},s),n.registerCommand(Se,e=>{if(tt(e.target))return!1;let t=i();if(c(t)){if((function(r){if(!r.isCollapsed())return!1;let{anchor:o}=r;if(o.offset!==0)return!1;let a=o.getNode();if(de(a))return!1;let d=Qe(a);return d.getIndent()>0&&(d.is(a)||a.is(d.getFirstDescendant()))})(t))return e.preventDefault(),n.dispatchCommand(Y,void 0);if(Ze&&navigator.language==="ko-KR")return!1}else if(!l(t))return!1;return e.preventDefault(),n.dispatchCommand(I,!0)},s),n.registerCommand(Pe,e=>{if(tt(e.target))return!1;let t=i();return!(!c(t)&&!l(t))&&(e.preventDefault(),n.dispatchCommand(I,!1))},s),n.registerCommand($e,e=>{let t=i();if(!c(t))return!1;if(U(t),e!==null){if((Ze||dt||lt)&&at)return!1;if(e.preventDefault(),e.shiftKey)return n.dispatchCommand(b,!1)}return n.dispatchCommand(W,void 0)},s),n.registerCommand(Ie,()=>{let e=i();return!!c(e)&&(n.blur(),!0)},s),n.registerCommand(_e,e=>{let[,t]=S(e);if(t.length>0){let o=je(e.clientX,e.clientY);if(o!==null){let{offset:a,node:d}=o,u=$(d);if(u!==null){let g=oe();if(y(u))g.anchor.set(u.getKey(),a,"text"),g.focus.set(u.getKey(),a,"text");else{let T=u.getParentOrThrow().getKey(),v=u.getIndexWithinParent()+1;g.anchor.set(T,v,"element"),g.focus.set(T,v,"element")}let O=ue(g);me(O)}n.dispatchCommand(j,t)}return e.preventDefault(),!0}let r=i();return!!c(r)},s),n.registerCommand(Ee,e=>{let[t]=S(e),r=i();return!(t&&!c(r))},s),n.registerCommand(Ce,e=>{let[t]=S(e),r=i();if(t&&!c(r))return!1;let o=je(e.clientX,e.clientY);if(o!==null){let a=$(o.node);R(a)&&e.preventDefault()}return!0},s),n.registerCommand(We,()=>(le(),!0),s),n.registerCommand(pe,e=>(X(n,h(e,ClipboardEvent)?e:null),!0),s),n.registerCommand(Ne,e=>((async function(t,r){await X(r,h(t,ClipboardEvent)?t:null),r.update(()=>{let o=i();c(o)?o.removeText():l(o)&&o.getNodes().forEach(a=>a.remove())})})(e,n),!0),s),n.registerCommand(Ke,e=>{let[,t,r]=S(e);return t.length>0&&!r?(n.dispatchCommand(j,t),!0):He(e.target)&&ke(e.target)?!1:i()!==null&&((function(o,a){o.preventDefault(),a.update(()=>{let d=i(),u=h(o,InputEvent)||h(o,KeyboardEvent)?null:o.clipboardData;u!=null&&d!==null&&B(u,d,a)},{tag:Le})})(e,n),!0)},s),n.registerCommand(we,e=>{let t=i();return c(t)&&U(t),!1},s),n.registerCommand(Fe,e=>{let t=i();return c(t)&&U(t),!1},s))}var pt=w({conflictsWith:["@lexical/plain-text"],dependencies:[Ue],name:"@lexical/rich-text",nodes:()=>[A,M],register:nt});var m=ee,Tt=m.$createHeadingNode,vt=m.$createQuoteNode,xt=m.$isHeadingNode,Rt=m.$isQuoteNode,yt=m.DRAG_DROP_PASTE,St=m.HeadingNode,Pt=m.QuoteNode,$t=m.RichTextExtension,It=m.eventFiles,wt=m.registerRichText;export{Tt as $createHeadingNode,vt as $createQuoteNode,xt as $isHeadingNode,Rt as $isQuoteNode,yt as DRAG_DROP_PASTE,St as HeadingNode,Pt as QuoteNode,$t as RichTextExtension,It as eventFiles,wt as registerRichText};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";export{a as $addNodeStyle,b as $cloneWithProperties,c as $copyBlockFormatIndent,d as $ensureForwardRangeSelection,e as $forEachSelectedTextNode,f as $getComputedStyleForElement,g as $getComputedStyleForParent,h as $getSelectionStyleValueForProperty,i as $isAtNodeEnd,j as $isParentElementRTL,k as $isParentRTL,l as $moveCaretSelection,m as $moveCharacter,n as $patchStyleText,o as $selectAll,p as $setBlocksType,q as $shouldOverrideDefaultCharacterSelection,r as $sliceSelectedTextNodeContent,s as $trimTextContentFromAnchor,t as $wrapNodes,u as createDOMRange,v as createRectsFromDOMRange,w as getCSSFromStyleObject,x as getStyleObjectFromCSS,y as trimTextContentFromAnchor};
@@ -0,0 +1,2 @@
1
+ import{a as To,c as wo}from"/kempo/vendor/lexical/chunks/chunk-3XOIGVQI.js";import"/kempo/vendor/lexical/chunks/chunk-LMH5Y7M4.js";import{b as Ae,d as No,e as yo}from"/kempo/vendor/lexical/chunks/chunk-ERAFEOAX.js";import{a as ht,b as po,c as O,g as _o,h as bo,j as gt,k as V,o as He,p as Be,q as So,r as he}from"/kempo/vendor/lexical/chunks/chunk-PZQA5MC4.js";import"/kempo/vendor/lexical/chunks/chunk-FYATIV3K.js";import{Bc as $e,D as Lt,Ga as Re,Ha as j,J as rt,K as ne,Kb as eo,Lb as to,M as se,Mb as oo,Mc as fo,N as xe,Nb as no,Ob as lo,Oc as Ee,P as ue,Pb as ro,Q as Pt,R as D,S as st,Sb as so,Ua as Ut,Uc as ve,Vb as io,Xa as We,Ya as Y,Za as Yt,b as rn,ca as it,db as Jt,e as De,ed as mo,f as Mt,fa as B,fb as qt,fc as ie,fd as Co,ga as Wt,gb as jt,gc as ao,ha as It,hb as ut,hc as co,ib as Vt,ja as at,ma as Pe,mc as uo,na as k,o as H,oa as Ht,ob as Ie,p as ye,pa as Bt,pb as Gt,q as Kt,qa as zt,qb as Qt,r as kt,rb as Zt,sa as de,t as Le,tc as ho,u as lt,w as Dt,ya as ct,yb as dt,yc as go,za as Xt}from"/kempo/vendor/lexical/chunks/chunk-ZMJQPFLE.js";var At={};rn(At,{$computeTableMap:()=>z,$computeTableMapSkipCellCheck:()=>Z,$createTableCellNode:()=>U,$createTableNode:()=>Qe,$createTableNodeWithDimensions:()=>Ko,$createTableRowNode:()=>me,$createTableSelection:()=>zo,$createTableSelectionFrom:()=>qe,$deleteTableColumn:()=>pn,$deleteTableColumnAtSelection:()=>Wo,$deleteTableColumn__EXPERIMENTAL:()=>bn,$deleteTableRowAtSelection:()=>Po,$deleteTableRow__EXPERIMENTAL:()=>_n,$findCellNode:()=>Se,$findTableNode:()=>Ce,$getElementForTableNode:()=>jo,$getNodeTriplet:()=>I,$getTableAndElementByKey:()=>vt,$getTableCellNodeFromLexicalNode:()=>cn,$getTableCellNodeRect:()=>bt,$getTableColumnIndexFromTableCellNode:()=>dn,$getTableNodeFromLexicalNodeOrThrow:()=>Ve,$getTableRowIndexFromTableCellNode:()=>un,$getTableRowNodeFromTableCellNodeOrThrow:()=>$t,$insertTableColumn:()=>mn,$insertTableColumnAtSelection:()=>Lo,$insertTableColumn__EXPERIMENTAL:()=>Cn,$insertTableRow:()=>gn,$insertTableRowAtSelection:()=>Do,$insertTableRow__EXPERIMENTAL:()=>fn,$isScrollableTablesActive:()=>Ke,$isSimpleTable:()=>Bo,$isTableCellNode:()=>w,$isTableNode:()=>L,$isTableRowNode:()=>F,$isTableSelection:()=>v,$mergeCells:()=>Io,$moveTableColumn:()=>wn,$removeTableRowAtIndex:()=>hn,$unmergeCell:()=>Tn,INSERT_TABLE_COMMAND:()=>Mo,TableCellHeaderStates:()=>A,TableCellNode:()=>ee,TableExtension:()=>Wn,TableNode:()=>te,TableObserver:()=>je,TableRowNode:()=>fe,applyTableHandlers:()=>Xo,getDOMCellFromTarget:()=>Me,getTableElement:()=>ae,getTableObserverFromTableElement:()=>Tt,registerTableCellUnmergeTransform:()=>Vo,registerTablePlugin:()=>Qo,registerTableSelectionObserver:()=>Go,setScrollableTablesActive:()=>qo});var xt=/^(\d+(?:\.\d+)?)px$/,A={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},ee=class o extends Ie{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new o(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign,this.__colSpan=e.__colSpan,this.__headerState=e.__headerState,this.__width=e.__width}static importDOM(){return{td:e=>({conversion:xo,priority:0}),th:e=>({conversion:xo,priority:0})}}static importJSON(e){return U().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=A.NO_STATUS,t=1,n,l){super(l),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(t.style.backgroundColor=this.__backgroundColor),mt(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),V(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(ve(t.element)){let n=t.element;n.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),n.style.border="1px solid black",this.__colSpan>1&&(n.colSpan=this.__colSpan),this.__rowSpan>1&&(n.rowSpan=this.__rowSpan),n.style.width=`${this.getWidth()||75}px`,n.style.verticalAlign=this.getVerticalAlign()||"top",n.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(n.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...mt(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=A.BOTH){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==A.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function mt(o){return o==="middle"||o==="bottom"}function xo(o){let e=o,t=o.nodeName.toLowerCase(),n;xt.test(e.style.width)&&(n=parseFloat(e.style.width));let l=A.NO_STATUS;if(t==="th"){let m=e.getAttribute("scope");if(m==="col")l=A.COLUMN;else if(m==="row")l=A.ROW;else{let f=e.parentElement,C=ve(f)&&f.nodeName.toLowerCase()==="tr"&&ve(f.parentElement)&&(f.parentElement.nodeName.toLowerCase()==="thead"||f.rowIndex===0),p=e.cellIndex===0;C&&(l|=A.ROW),p&&(l|=A.COLUMN),l===A.NO_STATUS&&(l=A.ROW)}}let s=U(l,e.colSpan,n);s.__rowSpan=e.rowSpan;let i=e.style.backgroundColor;i!==""&&(s.__backgroundColor=i);let r=e.style.verticalAlign;mt(r)&&(s.__verticalAlign=r);let a=e.style,h=(a&&a.textDecoration||"").split(" "),d=a.fontWeight==="700"||a.fontWeight==="bold",c=h.includes("line-through"),u=a.fontStyle==="italic",g=h.includes("underline");return{after:m=>{let f=[],C=null,p=()=>{if(C){let _=C.getFirstChild();at(_)&&C.getChildrenSize()===1&&_.remove()}};for(let _ of m)It(_)||de(_)||at(_)?(de(_)&&(d&&_.toggleFormat("bold"),c&&_.toggleFormat("strikethrough"),u&&_.toggleFormat("italic"),g&&_.toggleFormat("underline")),C?C.append(_):(C=H().append(_),f.push(C))):(f.push(_),p(),C=null);return p(),f.length===0&&f.push(H()),f},node:s}}function U(o=A.NO_STATUS,e=1,t){return De(new ee(o,e,t))}function w(o){return o instanceof ee}var Mo=ho("INSERT_TABLE_COMMAND");function S(o,...e){let t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",o);for(let l of e)n.append("v",l);throw t.search=n.toString(),Error(`Minified Lexical error #${o}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var fe=class o extends Ie{__height;static getType(){return"tablerow"}static clone(e){return new o(e.__height,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}static importDOM(){return{tr:e=>({conversion:sn,priority:0})}}static importJSON(e){return me().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),V(t,e.theme.tableRow),t}extractWithChild(e,t,n){return n==="html"}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};function sn(o){let e=o,t;return xt.test(e.style.height)&&(t=parseFloat(e.style.height)),{after:n=>ht(n,w),node:me(t)}}function me(o){return De(new fe(o))}function F(o){return o instanceof fe}var Rt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,an=Rt&&"documentMode"in document?document.documentMode:null,Ro=Rt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function Ko(o,e,t=!0){let n=Qe();for(let l=0;l<o;l++){let s=me();for(let i=0;i<e;i++){let r=A.NO_STATUS;typeof t=="object"?(l===0&&t.rows&&(r|=A.ROW),i===0&&t.columns&&(r|=A.COLUMN)):t&&(l===0&&(r|=A.ROW),i===0&&(r|=A.COLUMN));let a=U(r),h=H();h.append(Le()),a.append(h),s.append(a)}n.append(s)}return n}function cn(o){let e=O(o,t=>w(t));return w(e)?e:null}function $t(o){let e=O(o,t=>F(t));if(F(e))return e;throw new Error("Expected table cell to be inside of table row.")}function Ve(o){let e=O(o,t=>L(t));if(L(e))return e;throw new Error("Expected table cell to be inside of table.")}function un(o){let e=$t(o);return Ve(e).getChildren().findIndex(t=>t.is(e))}function dn(o){return $t(o).getChildren().findIndex(e=>e.is(o))}function ko(o,e){let t=Ve(o),{x:n,y:l}=t.getCordsFromCellNode(o,e);return{above:t.getCellNodeFromCords(n,l-1,e),below:t.getCellNodeFromCords(n,l+1,e),left:t.getCellNodeFromCords(n-1,l,e),right:t.getCellNodeFromCords(n+1,l,e)}}function hn(o,e){let t=o.getChildren();if(e>=t.length||e<0)throw new Error("Expected table cell to be inside of table row.");return t[e].remove(),o}function gn(o,e,t=!0,n,l){let s=o.getChildren();if(e>=s.length||e<0)throw new Error("Table row target index out of range");let i=s[e];if(!F(i))throw new Error("Row before insertion index does not exist.");for(let r=0;r<n;r++){let a=i.getChildren(),h=a.length,d=me();for(let c=0;c<h;c++){let u=a[c];w(u)||S(12);let{above:g,below:m}=ko(u,l),f=A.NO_STATUS,C=g&&g.getWidth()||m&&m.getWidth()||void 0;(g&&g.hasHeaderState(A.COLUMN)||m&&m.hasHeaderState(A.COLUMN))&&(f|=A.COLUMN);let p=U(f,1,C);p.append(H()),d.append(p)}t?i.insertAfter(d):i.insertBefore(d)}return o}Rt&&"InputEvent"in window&&!an&&new window.InputEvent("input");var Ct=(o,e)=>o===A.BOTH||o===e?e:A.NO_STATUS;function Do(o=!0){let e=D();k(e)||v(e)||S(188);let t=e.anchor.getNode(),n=e.focus.getNode(),[l]=I(t),[s,,i]=I(n),[,r,a]=z(i,s,l),{startRow:h}=a,{startRow:d}=r;return o?pt(h+l.__rowSpan>d+s.__rowSpan?l:s,!0):pt(d<h?s:l,!1)}var fn=Do;function pt(o,e=!0){let[,,t]=I(o),[n,l]=z(t,o,o),s=n[0].length,{startRow:i}=l,r=null;if(e){let a=i+o.__rowSpan-1,h=n[a],d=me();for(let u=0;u<s;u++){let{cell:g,startRow:m}=h[u];if(m+g.__rowSpan-1<=a){let f=h[u].cell.__headerState,C=Ct(f,A.COLUMN);d.append(U(C).append(H()))}else g.setRowSpan(g.__rowSpan+1)}let c=t.getChildAtIndex(a);F(c)||S(256),c.insertAfter(d),r=d}else{let a=i,h=n[a],d=me();for(let u=0;u<s;u++){let{cell:g,startRow:m}=h[u];if(m===a){let f=h[u].cell.__headerState,C=Ct(f,A.COLUMN);d.append(U(C).append(H()))}else g.setRowSpan(g.__rowSpan+1)}let c=t.getChildAtIndex(a);F(c)||S(257),c.insertBefore(d),r=d}return r}function mn(o,e,t=!0,n,l){let s=o.getChildren(),i=[];for(let r=0;r<s.length;r++){let a=s[r];if(F(a))for(let h=0;h<n;h++){let d=a.getChildren();if(e>=d.length||e<0)throw new Error("Table column target index out of range");let c=d[e];w(c)||S(12);let{left:u,right:g}=ko(c,l),m=A.NO_STATUS;(u&&u.hasHeaderState(A.ROW)||g&&g.hasHeaderState(A.ROW))&&(m|=A.ROW);let f=U(m);f.append(H()),i.push({newTableCell:f,targetCell:c})}}return i.forEach(({newTableCell:r,targetCell:a})=>{t?a.insertAfter(r):a.insertBefore(r)}),o}function Lo(o=!0){let e=D();k(e)||v(e)||S(188);let t=e.anchor.getNode(),n=e.focus.getNode(),[l]=I(t),[s,,i]=I(n),[,r,a]=z(i,s,l),{startColumn:h}=a,{startColumn:d}=r;return o?_t(h+l.__colSpan>d+s.__colSpan?l:s,!0):_t(d<h?s:l,!1)}var Cn=Lo;function _t(o,e=!0,t=!0){let[,,n]=I(o),[l,s]=z(n,o,o),i=l.length,{startColumn:r}=s,a=e?r+o.__colSpan-1:r-1,h=n.getFirstChild();F(h)||S(120);let d=null;function c(m=A.NO_STATUS){let f=U(m).append(H());return d===null&&(d=f),f}let u=h;e:for(let m=0;m<i;m++){if(m!==0){let x=u.getNextSibling();F(x)||S(121),u=x}let f=l[m],C=f[a<0?0:a].cell.__headerState,p=Ct(C,A.ROW);if(a<0){Et(u,c(p));continue}let{cell:_,startColumn:b,startRow:R}=f[a];if(b+_.__colSpan-1<=a){let x=_,T=R,y=a;for(;T!==m&&x.__rowSpan>1;){if(y-=_.__colSpan,!(y>=0)){u.append(c(p));continue e}{let{cell:$,startRow:E}=f[y];x=$,T=E}}x.insertAfter(c(p))}else _.setColSpan(_.__colSpan+1)}d!==null&&t&&Oe(d);let g=n.getColWidths();if(g){let m=[...g],f=a<0?0:a,C=m[f];m.splice(f,0,C),n.setColWidths(m)}return d}function pn(o,e){let t=o.getChildren();for(let n=0;n<t.length;n++){let l=t[n];if(F(l)){let s=l.getChildren();if(e>=s.length||e<0)throw new Error("Table column target index out of range");s[e].remove()}}return o}function Po(){let o=D();k(o)||v(o)||S(188);let[e,t]=o.isBackward()?[o.focus.getNode(),o.anchor.getNode()]:[o.anchor.getNode(),o.focus.getNode()],[n,,l]=I(e),[s]=I(t),[i,r,a]=z(l,n,s),{startRow:h}=r,{startRow:d}=a,c=d+s.__rowSpan-1;if(i.length===c-h+1)return void l.remove();let u=i[0].length,g=i[c+1],m=l.getChildAtIndex(c+1);for(let f=c;f>=h;f--){for(let p=u-1;p>=0;p--){let{cell:_,startRow:b,startColumn:R}=i[f][p];if(R===p){if(b<h||b+_.__rowSpan-1>c){let x=Math.max(b,h),T=Math.min(_.__rowSpan+b-1,c),y=x<=T?T-x+1:0;_.setRowSpan(_.__rowSpan-y)}if(b>=h&&b+_.__rowSpan-1>c&&f===c){m===null&&S(122);let x=null;for(let T=0;T<p;T++){let y=g[T],$=y.cell;y.startRow===f+1&&(x=$),$.__colSpan>1&&(T+=$.__colSpan-1)}x===null?Et(m,_):x.insertAfter(_)}}}let C=l.getChildAtIndex(f);F(C)||S(206,String(f)),C.remove()}if(g!==void 0){let{cell:f}=g[0];Oe(f)}else{let f=i[h-1],{cell:C}=f[0];Oe(C)}}var _n=Po;function Wo(){let o=D();k(o)||v(o)||S(188);let e=o.anchor.getNode(),t=o.focus.getNode(),[n,,l]=I(e),[s]=I(t),[i,r,a]=z(l,n,s),{startColumn:h}=r,{startRow:d,startColumn:c}=a,u=Math.min(h,c),g=Math.max(h+n.__colSpan-1,c+s.__colSpan-1),m=g-u+1;if(i[0].length===g-u+1)return l.selectPrevious(),void l.remove();let f=i.length;for(let b=0;b<f;b++)for(let R=u;R<=g;R++){let{cell:x,startColumn:T}=i[b][R];if(T<u){if(R===u){let y=u-T;x.setColSpan(x.__colSpan-Math.min(m,x.__colSpan-y))}}else if(T+x.__colSpan-1>g){if(R===g){let y=g-T+1;x.setColSpan(x.__colSpan-y)}}else x.remove()}let C=i[d],p=h>c?C[h+n.__colSpan]:C[c+s.__colSpan];if(p!==void 0){let{cell:b}=p;Oe(b)}else{let b=c<h?C[c-1]:C[h-1],{cell:R}=b;Oe(R)}let _=l.getColWidths();if(_){let b=[..._];b.splice(u,m),l.setColWidths(b)}}var bn=Wo;function Oe(o){let e=o.getFirstDescendant();e==null?o.selectStart():e.getParentOrThrow().selectStart()}function Et(o,e){let t=o.getFirstChild();t!==null?t.insertBefore(e):o.append(e)}function Io(o){if(o.length===0)return null;let e=Ve(o[0]),[t]=Z(e,null,null),n=1/0,l=-1/0,s=1/0,i=-1/0,r=new Set;for(let g of t)for(let m of g){if(!m||!m.cell)continue;let f=m.cell.getKey();if(!r.has(f)&&o.some(C=>C.is(m.cell))){r.add(f);let C=m.startRow,p=m.startColumn,_=m.cell.__rowSpan||1,b=m.cell.__colSpan||1;n=Math.min(n,C),l=Math.max(l,C+_-1),s=Math.min(s,p),i=Math.max(i,p+b-1)}}if(n===1/0||s===1/0)return null;let a=l-n+1,h=i-s+1,d=t[n][s];if(!d.cell)return null;let c=d.cell;c.setColSpan(h),c.setRowSpan(a);let u=new Set([c.getKey()]);for(let g=n;g<=l;g++)for(let m=s;m<=i;m++){let f=t[g][m];if(!f.cell)continue;let C=f.cell,p=C.getKey();u.has(p)||(u.add(p),Sn(C)||c.append(...C.getChildren()),C.remove())}return c.getChildrenSize()===0&&c.append(H()),c}function Sn(o){if(o.getChildrenSize()!==1)return!1;let e=o.getFirstChildOrThrow();return!(!Pe(e)||!e.isEmpty())}function Tn(){let o=D();k(o)||v(o)||S(188);let e=o.anchor.getNode(),t=O(e,w);return w(t)||S(148),Ho(t)}function Ho(o){let[e,t,n]=I(o),l=e.__colSpan,s=e.__rowSpan;if(l===1&&s===1)return;let[i,r]=z(n,e,e),{startColumn:a,startRow:h}=r,d=e.__headerState&A.COLUMN,c=Array.from({length:l},(m,f)=>{let C=d;for(let p=0;C!==0&&p<i.length;p++)C&=i[p][f+a].cell.__headerState;return C}),u=e.__headerState&A.ROW,g=Array.from({length:s},(m,f)=>{let C=u;for(let p=0;C!==0&&p<i[0].length;p++)C&=i[f+h][p].cell.__headerState;return C});if(l>1){for(let m=1;m<l;m++)e.insertAfter(U(c[m]|g[0]).append(H()));e.setColSpan(1)}if(s>1){let m;for(let f=1;f<s;f++){let C=h+f,p=i[C];m=(m||t).getNextSibling(),F(m)||S(125);let _=null;for(let b=0;b<a;b++){let R=p[b],x=R.cell;R.startRow===C&&(_=x),x.__colSpan>1&&(b+=x.__colSpan-1)}if(_===null)for(let b=l-1;b>=0;b--)Et(m,U(c[b]|g[f]).append(H()));else for(let b=l-1;b>=0;b--)_.insertAfter(U(c[b]|g[f]).append(H()))}e.setRowSpan(1)}}function z(o,e,t){let[n,l,s]=Z(o,e,t);return l===null&&S(207),s===null&&S(208),[n,l,s]}function Z(o,e,t){let n=[],l=null,s=null;function i(a){let h=n[a];return h===void 0&&(n[a]=h=[]),h}let r=o.getChildren();for(let a=0;a<r.length;a++){let h=r[a];F(h)||S(209);let d=i(a);for(let c=h.getFirstChild(),u=0;c!=null;c=c.getNextSibling()){for(w(c)||S(147);d[u]!==void 0;)u++;let g={cell:c,startColumn:u,startRow:a},{__rowSpan:m,__colSpan:f}=c;for(let C=0;C<m&&!(a+C>=r.length);C++){let p=i(a+C);for(let _=0;_<f;_++)p[u+_]=g}e!==null&&l===null&&e.is(c)&&(l=g),t!==null&&s===null&&t.is(c)&&(s=g)}}return[n,l,s]}function I(o){let e;if(o instanceof ee)e=o;else if("__type"in o){let l=O(o,w);w(l)||S(148),e=l}else{let l=O(o.getNode(),w);w(l)||S(148),e=l}let t=e.getParent();F(t)||S(149);let n=t.getParent();return L(n)||S(210),[e,t,n]}function Ye(o,e,t){let n,l=Math.min(e.startColumn,t.startColumn),s=Math.min(e.startRow,t.startRow),i=Math.max(e.startColumn+e.cell.__colSpan-1,t.startColumn+t.cell.__colSpan-1),r=Math.max(e.startRow+e.cell.__rowSpan-1,t.startRow+t.cell.__rowSpan-1);do{n=!1;for(let a=0;a<o.length;a++)for(let h=0;h<o[0].length;h++){let d=o[a][h];if(!d)continue;let c=d.startColumn+d.cell.__colSpan-1,u=d.startRow+d.cell.__rowSpan-1,g=d.startColumn<=i&&c>=l,m=d.startRow<=r&&u>=s;if(g&&m){let f=Math.min(l,d.startColumn),C=Math.max(i,c),p=Math.min(s,d.startRow),_=Math.max(r,u);f===l&&C===i&&p===s&&_===r||(l=f,i=C,s=p,r=_,n=!0)}}}while(n);return{maxColumn:i,maxRow:r,minColumn:l,minRow:s}}function Bo(o){let e=o.getChildren(),t=null;for(let n of e){if(!F(n)||(t===null&&(t=n.getChildrenSize()),n.getChildrenSize()!==t))return!1;let l=n.getChildren();for(let s of l)if(!w(s)||s.getRowSpan()!==1||s.getColSpan()!==1)return!1}return(t||0)>0}function wn(o,e,t){if(e===t)return;let n=o.getColumnCount();if(e<0||e>=n||t<0||t>=n||!Bo(o))return;o.getChildren().filter(F).forEach(s=>{let i=s.getChildren(),[r]=i.splice(e,1);i.splice(t,0,r),s.splice(0,i.length,i)});let l=o.getColWidths();if(l&&l.length===n){let s=[...l],[i]=s.splice(e,1);s.splice(t,0,i),o.setColWidths(s)}}function bt(o){let[e,,t]=I(o),n=t.getChildren(),l=n.length,s=n[0].getChildren().length,i=new Array(l);for(let r=0;r<l;r++)i[r]=new Array(s);for(let r=0;r<l;r++){let a=n[r].getChildren(),h=0;for(let d=0;d<a.length;d++){for(;i[r][h];)h++;let c=a[d],u=c.__rowSpan||1,g=c.__colSpan||1;for(let m=0;m<u;m++)for(let f=0;f<g;f++)i[r+m][h+f]=c;if(e===c)return{colSpan:g,columnIndex:h,rowIndex:r,rowSpan:u};h+=g}}return null}function $o(o){let[[e,t,n,l],[s,i,r,a]]=["anchor","focus"].map(h=>{let d=o[h].getNode(),c=O(d,w);w(c)||S(238,h,d.getKey(),d.getType());let u=c.getParent();F(u)||S(239,h);let g=u.getParent();return L(g)||S(240,h),[d,c,u,g]});return l.is(a)||S(241),{anchorCell:t,anchorNode:e,anchorRow:n,anchorTable:l,focusCell:i,focusNode:s,focusRow:r,focusTable:a}}var Je=class o{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,t,n){this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;let e=se(this.tableKey),t=se(this.anchor.key),n=se(this.focus.key);return e!==null&&t!==null&&n!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return v(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,n){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new o(this.tableKey,ye(this.anchor.key,this.anchor.offset,this.anchor.type),ye(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(w).forEach(l=>{let s=l.getFirstChild();Pe(s)&&(t|=s.getTextFormat())});let n=uo[e];return(t&n)!==0}insertNodes(e){let t=this.focus.getNode();B(t)||S(151),Xt(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=$o(this),n=bt(e);n===null&&S(153);let l=bt(t);l===null&&S(155);let s=Math.min(n.columnIndex,l.columnIndex),i=Math.max(n.columnIndex+n.colSpan-1,l.columnIndex+l.colSpan-1),r=Math.min(n.rowIndex,l.rowIndex),a=Math.max(n.rowIndex+n.rowSpan-1,l.rowIndex+l.rowSpan-1);return{fromX:Math.min(s,i),fromY:Math.min(r,a),toX:Math.max(s,i),toY:Math.max(r,a)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(e!==null)return e;let{anchorTable:t,anchorCell:n,focusCell:l}=$o(this),s=l.getParents()[1];if(s!==t){if(t.isParentOf(l)){let C=s.getParent();C==null&&S(159),this.set(this.tableKey,l.getKey(),C.getKey())}else{let C=t.getParent();C==null&&S(158),this.set(this.tableKey,C.getKey(),l.getKey())}return this.getNodes()}let[i,r,a]=z(t,n,l),{minColumn:h,maxColumn:d,minRow:c,maxRow:u}=Ye(i,r,a),g=new Map([[t.getKey(),t]]),m=null;for(let C=c;C<=u;C++)for(let p=h;p<=d;p++){let{cell:_}=i[C][p],b=_.getParent();F(b)||S(160),b!==m&&(g.set(b.getKey(),b),m=b),g.has(_.getKey())||Nn(_,R=>{g.set(R.getKey(),R)})}let f=Array.from(g.values());return fo()||(this._cachedNodes=f),f}getTextContent(){let e=this.getNodes().filter(n=>w(n)),t="";for(let n=0;n<e.length;n++){let l=e[n],s=l.__parent,i=(e[n+1]||{}).__parent;t+=l.getTextContent()+(i!==s?`
2
+ `:" ")}return t}};function v(o){return o instanceof Je}function zo(){let o=ye("root",0,"element"),e=ye("root",0,"element");return new Je("root",o,e)}function qe(o,e,t){o.getKey(),e.getKey(),t.getKey();let n=D(),l=v(n)?n.clone():zo();return l.set(o.getKey(),e.getKey(),t.getKey()),l}function Nn(o,e){let t=[[o]];for(let n=t.at(-1);n!==void 0&&t.length>0;n=t.at(-1)){let l=n.pop();l===void 0?t.pop():e(l)!==!1&&B(l)&&t.push(l.getChildren())}}function vt(o,e=rt()){let t=se(o);L(t)||S(231,o);let n=ae(t,e.getElementByKey(o));return n===null&&S(232,o),{tableElement:n,tableNode:t}}var St=class{observers;nextFocus;shouldCheckSelectionForTable;constructor(){this.observers=new Map,this.nextFocus=null,this.shouldCheckSelectionForTable=null}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return e!==null&&(this.nextFocus=null),e}setShouldCheckSelectionForTable(e){this.shouldCheckSelectionForTable=e}getAndClearShouldCheckSelectionForTable(){let{shouldCheckSelectionForTable:e}=this;return e?(this.shouldCheckSelectionForTable=null,e):null}},je=class{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;abortController;listenerOptions;constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return vt(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(t=>{this.editor.getEditorState().read(()=>{let n=!1;for(let i=0;i<t.length;i++){let r=t[i].target.nodeName;if(r==="TABLE"||r==="TBODY"||r==="THEAD"||r==="TR"){n=!0;break}}if(!n)return;let{tableNode:l,tableElement:s}=this.$lookup();this.table=we(l,s)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:n}=this.$lookup();this.table=we(t,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(e=!0){let t=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:n,tableElement:l}=this.$lookup();ze(t,we(n,l),null),e&&D()!==null&&(j(null),t.dispatchCommand(ie,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();he(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();V(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(e!==null){e.tableKey!==this.tableNodeKey&&S(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),ze(t,this.table,this.tableSelection)}else this.$clearHighlight()}updateDOMSelection(){if(this.anchorCell!==null&&this.focusCell!==null){let e=$e(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let n=this.editor,{tableNode:l}=this.$lookup(),s=e.x,i=e.y;if(this.focusCell=e,!this.isHighlightingCells&&(t||this.anchorX!==s||this.anchorY!==i||this.tableSelection!=null&&this.anchorCellNodeKey!=null)&&(this.isHighlightingCells=!0,this.$disableHighlightStyle()),this.focusX!==-1&&this.focusY!==-1&&s===this.focusX&&i===this.focusY)return!1;if(this.focusX=s,this.focusY=i,this.isHighlightingCells){let r=Nt(l,e.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null){let a=r;if(a===null&&t&&(a=l.getCellNodeFromCords(s,i,this.table)),a!==null){let h=this.$getAnchorTableCellOrThrow();return this.focusCellNodeKey=a.getKey(),this.tableSelection=qe(l,h,a),j(this.tableSelection),n.dispatchCommand(ie,void 0),ze(n,this.table,this.tableSelection),!0}}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?se(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return e===null&&S(234),e}$getFocusTableCell(){return this.focusCellNodeKey?se(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return e===null&&S(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.focusX=-1,this.focusY=-1,this.focusCell=null,this.focusCellNodeKey=null;let{tableNode:t}=this.$lookup(),n=Nt(t,e.elem);if(n!==null){let l=n.getKey();this.tableSelection!=null?(this.tableSelection=this.tableSelection.clone(),this.tableSelection.set(t.getKey(),l,l)):this.tableSelection=qe(t,n,n),this.anchorCellNodeKey=l}}$formatCells(e){let t=D();v(t)||S(236);let n=Kt(),l=n.anchor,s=n.focus,i=t.getNodes().filter(w);i.length>0||S(237);let r=i[0].getFirstChild(),a=Pe(r)?r.getFormatFlags(e,null):null;i.forEach(h=>{l.set(h.getKey(),0,"element"),s.set(h.getKey(),h.getChildrenSize(),"element"),n.formatText(e,a)}),j(t),this.editor.dispatchCommand(ie,void 0)}$clearText(){let{editor:e}=this,t=se(this.tableNodeKey);if(!L(t))throw new Error("Expected TableNode.");let n=D();v(n)||S(253);let l=n.getNodes().filter(w),s=t.getFirstChild(),i=t.getLastChild();if(l.length>0&&s!==null&&i!==null&&F(s)&&F(i)&&l[0]===s.getFirstChild()&&l[l.length-1]===i.getLastChild()){t.selectPrevious();let r=t.getParent();return t.remove(),void(Ht(r)&&r.isEmpty()&&e.dispatchCommand(dt,void 0))}l.forEach(r=>{if(B(r)){let a=H(),h=Le();a.append(h),r.append(a),r.getChildren().forEach(d=>{d!==a&&d.remove()})}}),ze(e,this.table,null),j(null),e.dispatchCommand(ie,void 0)}},Te="__lexicalTableSelection";function be(o){return ve(o)&&o.nodeName==="TABLE"}function ae(o,e){if(!e)return e;let t=be(e)?e:o.getDOMSlot(e).element;return t.nodeName!=="TABLE"&&S(245,e.nodeName),t}function Ge(o){return o._window}function Fe(o,e){for(let t=e,n=null;t!==null;t=t.getParent()){if(o.is(t))return n;w(t)&&(n=t)}return null}var yn=[[eo,"down"],[no,"up"],[to,"backward"],[oo,"forward"]],xn=[Vt,ut,jt],Rn=[lo,ro];function $n(o,e){let t=o.getRootElement(),n=o._window;if(!t||!n)return()=>{};let l=s=>{let i=s.target;if(s.button!==0||!Ee(i)||!t.contains(i))return;let r=(function(a){let h=Me(a);if(h===null)return null;let d=h.elem;for(;d!=null;){if(d.nodeName==="TABLE"&&Te in d&&d[Te])return{cellElement:h,tableElement:d,tableObserver:d[Te]};d=d.parentNode}return null})(i);o.update(()=>{if(v(D())){for(let[c]of e.observers.values())c.$clearHighlight(!1);j(null),o.dispatchCommand(ie,void 0)}if(!r)return;let{tableObserver:a,tableElement:h,cellElement:d}=r;(function(c,u,g,m,f,C){let p=c._window;if(!p)return;let _=x=>{if(f.isSelecting)return;f.isSelecting=!0,x!==null&&f.anchorCell===null&&c.update(()=>{f.$setAnchorCellForSelection(x)});let T=()=>{f.isSelecting=!1,p.removeEventListener("pointerup",T),p.removeEventListener("pointermove",y)},y=$=>{if(!(M=>!(1&~M.buttons))($)&&f.isSelecting)return f.isSelecting=!1,p.removeEventListener("pointerup",T),void p.removeEventListener("pointermove",y);if(!Ee($.target))return;let E=null,W=!(Ro||m.contains($.target));if(W)E=Eo(m,$.target);else for(let M of document.elementsFromPoint($.clientX,$.clientY))if(E=Eo(m,M),E)break;if(E){let M=E;f.anchorCell===null&&c.update(()=>{f.$setAnchorCellForSelection(M)}),f.focusCell!==null&&E.elem===f.focusCell.elem||(C.setNextFocus({focusCell:E,override:W,tableKey:f.tableNodeKey}),c.dispatchCommand(ie,void 0))}};p.addEventListener("pointerup",T,f.listenerOptions),p.addEventListener("pointermove",y,f.listenerOptions)};f.pointerType=u.pointerType;let b=xe(f.tableNodeKey),R=ue();if(Ro&&u.shiftKey&&le(R,b)&&(k(R)||v(R))){let x=R.anchor.getNode(),T=Fe(b,R.anchor.getNode());T?(f.$setAnchorCellForSelection(ge(f,T)),f.$setFocusCellForSelection(g),re(u)):(b.isBefore(x)?b.selectStart():b.selectEnd()).anchor.set(R.anchor.key,R.anchor.offset,R.anchor.type)}else u.pointerType!=="touch"&&f.$setAnchorCellForSelection(g);_(g)})(o,s,d,h,a,e)})};return n.addEventListener("pointerdown",l),()=>{n.removeEventListener("pointerdown",l)}}function Xo(o,e,t,n,l){let s=t.getRootElement(),i=Ge(t);s!==null&&i!==null||S(246);let r=new je(t,o.getKey()),a=ae(o,e);(function(u,g){Tt(u)!==null&&S(205),u[Te]=g})(a,r),r.listenersToRemove.add(()=>(function(u,g){Tt(u)===g&&delete u[Te]})(a,r));let h=u=>{u.detail>=3&&Ee(u.target)&&Me(u.target)!==null&&u.preventDefault()};a.addEventListener("mousedown",h,r.listenerOptions),r.listenersToRemove.add(()=>{a.removeEventListener("mousedown",h)});for(let[u,g]of yn)r.listenersToRemove.add(t.registerCommand(u,m=>Jo(t,m,g,o,r,l),Y));r.listenersToRemove.add(t.registerCommand(so,u=>{let g=D();if(v(g)){let m=Fe(o,g.focus.getNode());if(m!==null)return re(u),m.selectEnd(),!0}return!1},Y));let d=u=>()=>{let g=D();if(!le(g,o))return!1;if(v(g))return r.$clearText(),!0;if(k(g)){if(!w(Fe(o,g.anchor.getNode())))return!1;let m=g.anchor.getNode(),f=g.focus.getNode(),C=o.isParentOf(m),p=o.isParentOf(f);if(C&&!p||p&&!C)return r.$clearText(),!0;let _=O(g.anchor.getNode(),R=>B(R)),b=_&&O(_,R=>B(R)&&w(R.getParent()));if(!B(b)||!B(_))return!1;if(u===ut&&b.getPreviousSibling()===null)return!0}return!1};for(let u of xn)r.listenersToRemove.add(t.registerCommand(u,d(u),Y));let c=u=>{let g=D();if(!v(g)&&!k(g))return!1;let m=o.isParentOf(g.anchor.getNode());if(m!==o.isParentOf(g.focus.getNode())){let f=m?"anchor":"focus",C=m?"focus":"anchor",{key:p,offset:_,type:b}=g[C];return o[g[f].isBefore(g[C])?"selectPrevious":"selectNext"]()[C].set(p,_,b),!1}return!!le(g,o)&&!!v(g)&&(u&&(u.preventDefault(),u.stopPropagation()),r.$clearText(),!0)};for(let u of Rn)r.listenersToRemove.add(t.registerCommand(u,c,Y));return r.listenersToRemove.add(t.registerCommand(qt,u=>{let g=D();if(g){if(!v(g)&&!k(g))return!1;wo(t,So(u,ClipboardEvent)?u:null,To(g));let m=c(u);return k(g)?(g.removeText(),!0):m}return!1},Y)),r.listenersToRemove.add(t.registerCommand(Zt,u=>{let g=D();if(!le(g,o))return!1;if(v(g))return r.$formatCells(u),!0;if(k(g)){let m=O(g.anchor.getNode(),f=>w(f));if(!w(m))return!1}return!1},Y)),r.listenersToRemove.add(t.registerCommand(Qt,u=>{let g=D();if(!v(g)||!le(g,o))return!1;let m=g.anchor.getNode(),f=g.focus.getNode();if(!w(m)||!w(f))return!1;if((function($,E){if(v($)){let W=$.anchor.getNode(),M=$.focus.getNode();if(E&&W&&M){let[P]=z(E,W,M);return W.getKey()===P[0][0].cell.getKey()&&M.getKey()===P[P.length-1].at(-1).cell.getKey()}}return!1})(g,o))return o.setFormat(u),!0;let[C,p,_]=z(o,m,f),b=Math.max(p.startRow+p.cell.__rowSpan-1,_.startRow+_.cell.__rowSpan-1),R=Math.max(p.startColumn+p.cell.__colSpan-1,_.startColumn+_.cell.__colSpan-1),x=Math.min(p.startRow,_.startRow),T=Math.min(p.startColumn,_.startColumn),y=new Set;for(let $=x;$<=b;$++)for(let E=T;E<=R;E++){let W=C[$][E].cell;if(y.has(W))continue;y.add(W),W.setFormat(u);let M=W.getChildren();for(let P=0;P<M.length;P++){let X=M[P];B(X)&&!X.isInline()&&X.setFormat(u)}}return!0},Y)),r.listenersToRemove.add(t.registerCommand(Jt,u=>{let g=D();if(!le(g,o))return!1;if(v(g))return r.$clearHighlight(),!1;if(k(g)){let m=O(g.anchor.getNode(),f=>w(f));if(!w(m))return!1;if(typeof u=="string"){let f=Ao(t,g,o);if(f)return vo(f,o,[Le(u)]),!0}}return!1},Y)),n&&r.listenersToRemove.add(t.registerCommand(io,u=>{let g=D();if(!k(g)||!g.isCollapsed()||!le(g,o))return!1;let m=Se(g.anchor.getNode());return!(m===null||!o.is(Ce(m)))&&(re(u),(function(f,C){let p=C==="next"?"getNextSibling":"getPreviousSibling",_=C==="next"?"getFirstChild":"getLastChild",b=f[p]();if(B(b))return b.selectEnd();let R=O(f,F);R===null&&S(247);for(let T=R[p]();F(T);T=T[p]()){let y=T[_]();if(B(y))return y.selectEnd()}let x=O(R,L);x===null&&S(248),C==="next"?x.selectNext():x.selectPrevious()})(m,u.shiftKey?"previous":"next"),!0)},Y)),r.listenersToRemove.add(t.registerCommand(Gt,u=>o.isSelected(),Y)),r.listenersToRemove.add(t.registerCommand(dt,()=>{let u=D();if(!k(u)||!u.isCollapsed()||!le(u,o))return!1;let g=Ao(t,u,o);return!!g&&(vo(g,o),!0)},Y)),r}function En(o,e){let t=D(),n=ue(),l=o.getAndClearNextFocus();if(l!==null){let{tableKey:r,focusCell:a}=l,h=o.observers.get(r);h||S(335,r);let[d]=h;if(v(t)&&t.tableKey===d.tableNodeKey)return(a.x!==d.focusX||a.y!==d.focusY)&&(d.$setFocusCellForSelection(a),!0);if(d.anchorCell!==null&&d.anchorCellNodeKey!==null&&a.elem!==d.anchorCell.elem&&d.tableSelection!==null)return d.$setFocusCellForSelection(a,!0),!0}let s=o.getAndClearShouldCheckSelectionForTable();if(s&&k(n)&&k(t)&&t.isCollapsed()){let r=xe(s),a=t.anchor.getNode(),h=r.getFirstChild(),d=Se(a);if(d!==null&&F(h)){let c=h.getFirstChild();if(w(c)&&r.is(O(d,u=>u.is(r)||u.is(c))))return c.selectStart(),!0}}v(t)&&(function(r,a){let h=Ge(r),d=ue();if(!a.is(d))return;let c=xe(a.tableKey),u=$e(h);if(u&&u.anchorNode&&u.focusNode){let g=ne(u.focusNode),m=g&&!c.isParentOf(g),f=ne(u.anchorNode),C=f&&c.isParentOf(f);if(m&&C&&u.rangeCount>0){let p=kt(u,r);p&&(p.anchor.set(c.getKey(),a.isBackward()?c.getChildrenSize():0,"element"),u.removeAllRanges(),j(p))}}})(e,t),k(t)&&(function(r,a){let h=ue(),{anchor:d,focus:c}=r,u=d.getNode(),g=c.getNode(),m=Se(u),f=Se(g),C=m?Ce(m):null,p=f?Ce(f):null,_=r.isBackward(),b=m&&f&&C&&p&&C.is(p),R=p&&(!C||C.isParentOf(p)),x=C&&(!p||p.isParentOf(C));if(R){let T=r.clone(),[y]=z(p,f,f),$=y[0][0].cell,E=y[y.length-1].at(-1).cell;T.focus.set(_?$.getKey():E.getKey(),_?0:E.getChildrenSize(),"element"),j(T)}else if(x){let T=r.clone(),[y]=z(C,m,m),$=y[0][0].cell,E=y[y.length-1].at(-1).cell;T.anchor.set(_?E.getKey():$.getKey(),_?E.getChildrenSize():0,"element"),j(T)}else if(b){let T=a.observers.get(C.getKey());T||S(335,C.getKey());let[y]=T;if(m.is(f)||(y.$setAnchorCellForSelection(ge(y,m)),y.$setFocusCellForSelection(ge(y,f),!0)),y.pointerType==="touch"&&y.isSelecting&&r.isCollapsed()&&k(h)&&h.isCollapsed()){let $=Se(h.anchor.getNode());$&&!$.is(f)&&(y.$setAnchorCellForSelection(ge(y,$)),y.$setFocusCellForSelection(ge(y,f),!0),y.pointerType=null)}}})(t,o);let i=o.observers.entries().map(([r,[a]])=>({tableNode:xe(r),tableObserver:a})).toArray();for(let{tableNode:r,tableObserver:a}of i)vn(e,r,a);return!1}function vn(o,e,t){let n=D(),l=ue();n&&!n.is(l)&&(v(n)||v(l))&&t.tableSelection&&!t.tableSelection.is(l)&&(v(n)&&n.tableKey===t.tableNodeKey?t.$updateTableTableSelection(n):!v(n)&&v(l)&&l.tableKey===t.tableNodeKey&&t.$updateTableTableSelection(null)),t.hasHijackedSelectionStyles&&!e.isSelected()?(function(s,i){i.$enableHighlightStyle(),wt(i.table,r=>{let a=r.elem;r.highlighted=!1,Yo(s,r),a.getAttribute("style")||a.removeAttribute("style")})})(o,t):!t.hasHijackedSelectionStyles&&e.isSelected()&&(function(s,i){i.$disableHighlightStyle(),wt(i.table,r=>{r.highlighted=!0,Uo(s,r)})})(o,t)}function Tt(o){return o[Te]||null}function Me(o){let e=o;for(;e!=null;){let t=e.nodeName;if(t==="TD"||t==="TH"){let n=e._cell;return n===void 0?null:n}e=e.parentNode}return null}function Eo(o,e){if(!o.contains(e))return null;let t=null;for(let n=e;n!=null;n=n.parentNode){if(n===o)return t;let l=n.nodeName;l!=="TD"&&l!=="TH"||(t=n._cell||null)}return null}function we(o,e){let t=[],n={columns:0,domRows:t,rows:0},l=ae(o,e).querySelector("tr"),s=0,i=0;for(t.length=0;l!=null;){let r=l.nodeName;if(r==="TD"||r==="TH"){let d={elem:l,hasBackgroundColor:l.style.backgroundColor!=="",highlighted:!1,x:s,y:i};l._cell=d;let c=t[i];c===void 0&&(c=t[i]=[]),c[s]=d}else{let d=l.firstChild;if(d!=null){l=d;continue}}let a=l.nextSibling;if(a!=null){s++,l=a;continue}let h=l.parentNode;if(h!=null){let d=h.nextSibling;if(d==null)break;i++,s=0,l=d}}return n.columns=s+1,n.rows=i+1,n}function ze(o,e,t){let n=new Set(t?t.getNodes():[]);wt(e,(l,s)=>{let i=l.elem;n.has(s)?(l.highlighted=!0,Uo(o,l)):(l.highlighted=!1,Yo(o,l),i.getAttribute("style")||i.removeAttribute("style"))})}function wt(o,e){let{domRows:t}=o;for(let n=0;n<t.length;n++){let l=t[n];if(l)for(let s=0;s<l.length;s++){let i=l[s];if(!i)continue;let r=ne(i.elem);r!==null&&e(i,r,{x:s,y:n})}}}var An=(o,e,t,n,l)=>{let s=l==="forward";switch(l){case"backward":case"forward":return t!==(s?o.table.columns-1:0)?Ue(e.getCellNodeFromCordsOrThrow(t+(s?1:-1),n,o.table),s):n!==(s?o.table.rows-1:0)?Ue(e.getCellNodeFromCordsOrThrow(s?0:o.table.columns-1,n+(s?1:-1),o.table),s):s?e.selectNext():e.selectPrevious(),!0;case"up":return n!==0?Ue(e.getCellNodeFromCordsOrThrow(t,n-1,o.table),!1):e.selectPrevious(),!0;case"down":return n!==o.table.rows-1?Ue(e.getCellNodeFromCordsOrThrow(t,n+1,o.table),!0):e.selectNext(),!0;default:return!1}};function ft(o,e){let t,n;if(e.startColumn===o.minColumn)t="minColumn";else{if(e.startColumn+e.cell.__colSpan-1!==o.maxColumn)return null;t="maxColumn"}if(e.startRow===o.minRow)n="minRow";else{if(e.startRow+e.cell.__rowSpan-1!==o.maxRow)return null;n="maxRow"}return[t,n]}function Xe([o,e]){return[o==="minColumn"?"maxColumn":"minColumn",e==="minRow"?"maxRow":"minRow"]}function _e(o,e,[t,n]){let l=e[n],s=o[l];s===void 0&&S(250,n,String(l));let i=e[t],r=s[i];return r===void 0&&S(250,t,String(i)),r}function On(o,e,t,n,l){let s=Ye(e,t,n),i=(function(T,y){let{minColumn:$,maxColumn:E,minRow:W,maxRow:M}=y,P=1,X=1,G=1,ce=1,Ze=T[W],et=T[M];for(let J=$;J<=E;J++)P=Math.max(P,Ze[J].cell.__rowSpan),ce=Math.max(ce,et[J].cell.__rowSpan);for(let J=W;J<=M;J++)X=Math.max(X,T[J][$].cell.__colSpan),G=Math.max(G,T[J][E].cell.__colSpan);return{bottomSpan:ce,leftSpan:X,rightSpan:G,topSpan:P}})(e,s),{topSpan:r,leftSpan:a,bottomSpan:h,rightSpan:d}=i,c=(function(T,y){let $=ft(T,y);return $===null&&S(249,y.cell.getKey()),$})(s,t),[u,g]=Xe(c),m=s[u],f=s[g];l==="forward"?m+=u==="maxColumn"?1:a:l==="backward"?m-=u==="minColumn"?1:d:l==="down"?f+=g==="maxRow"?1:r:l==="up"&&(f-=g==="minRow"?1:h);let C=e[f];if(C===void 0)return!1;let p=C[m];if(p===void 0)return!1;let[_,b]=(function(T,y,$){let E=Ye(T,y,$),W=ft(E,y);if(W)return[_e(T,E,W),_e(T,E,Xe(W))];let M=ft(E,$);if(M)return[_e(T,E,Xe(M)),_e(T,E,M)];let P=["minColumn","minRow"];return[_e(T,E,P),_e(T,E,Xe(P))]})(e,t,p),R=ge(o,_.cell),x=ge(o,b.cell);return o.$setAnchorCellForSelection(R),o.$setFocusCellForSelection(x,!0),!0}function le(o,e){if(k(o)||v(o)){let t=e.isParentOf(o.anchor.getNode()),n=e.isParentOf(o.focus.getNode());return t&&n}return!1}function Ue(o,e){e?o.selectStart():o.selectEnd()}function Uo(o,e){let t=e.elem,n=o._config.theme;w(ne(t))||S(131),V(t,n.tableCellSelected)}function Yo(o,e){let t=e.elem;w(ne(t))||S(131);let n=o._config.theme;he(t,n.tableCellSelected)}function Se(o){let e=O(o,w);return w(e)?e:null}function Ce(o){let e=O(o,L);return L(e)?e:null}function Fn(o,e,t,n,l,s,i){let r=Mt(t.focus,l?"previous":"next");if(Wt(r))return!1;let a=r;for(let C of lt(r).iterNodeCarets("shadowRoot")){if(!zt(C)||!B(C.origin))return!1;a=C}let h=a.getParentAtCaret();if(!w(h))return!1;let d=h,c=(function(C){for(let p of lt(C).iterNodeCarets("root")){let{origin:_}=p;if(w(_)){if(it(p))return Lt(_,C.direction)}else if(!F(_))break}return null})(st(d,a.direction)),u=O(d,L);if(!u||!u.is(s))return!1;let g=o.getElementByKey(d.getKey()),m=Me(g);if(!g||!m)return!1;let f=jo(o,u);if(i.table=f,c)if(n==="extend"){let C=Me(o.getElementByKey(c.origin.getKey()));if(!C)return!1;i.$setAnchorCellForSelection(m),i.$setFocusCellForSelection(C,!0)}else{let C=ct(c);Re(t.anchor,C),Re(t.focus,C)}else if(n==="extend")i.$setAnchorCellForSelection(m),i.$setFocusCellForSelection(m,!0);else{let C=(function(p){let _=Dt(p);return it(_)?ct(_):p})(st(u,r.direction));Re(t.anchor,C),Re(t.focus,C)}return re(e),!0}function Jo(o,e,t,n,l,s){if((t==="up"||t==="down")&&(function(r){let a=r.getRootElement();return a?a.hasAttribute("aria-controls")&&a.getAttribute("aria-controls")==="typeahead-menu":!1})(o))return!1;let i=D();if(!le(i,n)){if(k(i)){if(t==="backward"){if(i.focus.offset>0)return!1;let r=(function(h){for(let d=h,c=h;c!==null;d=c,c=c.getParent())if(B(c)){if(c!==d&&c.getFirstChild()!==d)return null;if(!c.isInline())return c}return null})(i.focus.getNode());if(!r)return!1;let a=r.getPreviousSibling();return!!L(a)&&(re(e),e.shiftKey?i.focus.set(a.getParentOrThrow().getKey(),a.getIndexWithinParent(),"element"):a.selectEnd(),!0)}if(e.shiftKey&&(t==="up"||t==="down")){let r=i.focus.getNode();if(!i.isCollapsed()&&(t==="up"&&!i.isBackward()||t==="down"&&i.isBackward())){let a=O(r,g=>L(g));if(w(a)&&(a=O(a,L)),a!==n||!a)return!1;let h=t==="down"?a.getNextSibling():a.getPreviousSibling();if(!h)return!1;let d=0;t==="up"&&B(h)&&(d=h.getChildrenSize());let c=h;t==="up"&&B(h)&&(c=h.getLastChild()||h,d=de(c)?c.getTextContentSize():0);let u=i.clone();return u.focus.set(c.getKey(),d,de(c)?"text":"element"),j(u),re(e),!0}if(Bt(r)){let a=t==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(a&&Fe(n,a)!==null){let h=n.getFirstDescendant(),d=n.getLastDescendant();if(!h||!d)return!1;let[c]=I(h),[u]=I(d),g=n.getCordsFromCellNode(c,l.table),m=n.getCordsFromCellNode(u,l.table),f=n.getDOMCellFromCordsOrThrow(g.x,g.y,l.table),C=n.getDOMCellFromCordsOrThrow(m.x,m.y,l.table);return l.$setAnchorCellForSelection(f),l.$setFocusCellForSelection(C,!0),!0}return!1}{let a=O(r,d=>B(d)&&!d.isInline());if(w(a)&&(a=O(a,L)),!a)return!1;let h=t==="down"?a.getNextSibling():a.getPreviousSibling();if(L(h)&&l.tableNodeKey===h.getKey()){let d=h.getFirstDescendant(),c=h.getLastDescendant();if(!d||!c)return!1;let[u]=I(d),[g]=I(c),m=i.clone();return m.focus.set((t==="up"?u:g).getKey(),t==="up"?0:g.getChildrenSize(),"element"),re(e),j(m),!0}}}}return t==="down"&&Ke(o)&&s.setShouldCheckSelectionForTable(n.getKey()),!1}if(k(i)){if(t==="backward"||t==="forward")return Fn(o,e,i,e.shiftKey?"extend":"move",t==="backward",n,l);if(i.isCollapsed()){let{anchor:r,focus:a}=i,h=O(r.getNode(),w),d=O(a.getNode(),w);if(!w(h)||!h.is(d))return!1;let c=Ce(h);if(c!==n&&c!=null){let _=ae(c,o.getElementByKey(c.getKey()));if(_!=null)return l.table=we(c,_),Jo(o,e,t,c,l,s)}let u=o.getElementByKey(h.__key),g=o.getElementByKey(r.key);if(g==null||u==null)return!1;let m;if(r.type==="element")m=g.getBoundingClientRect();else{let _=$e(Ge(o));if(_===null||_.rangeCount===0)return!1;m=_.getRangeAt(0).getBoundingClientRect()}let f=t==="up"?h.getFirstChild():h.getLastChild();if(f==null)return!1;let C=o.getElementByKey(f.__key);if(C==null)return!1;let p=C.getBoundingClientRect();if(t==="up"?p.top>m.top-m.height:m.bottom+m.height>p.bottom){re(e);let _=n.getCordsFromCellNode(h,l.table);if(!e.shiftKey)return An(l,n,_.x,_.y,t);{let b=n.getDOMCellFromCordsOrThrow(_.x,_.y,l.table);l.$setAnchorCellForSelection(b),l.$setFocusCellForSelection(b,!0)}return!0}}}else if(v(i)){let{anchor:r,focus:a}=i,h=O(r.getNode(),w),d=O(a.getNode(),w),[c]=i.getNodes();L(c)||S(251);let u=ae(c,o.getElementByKey(c.getKey()));if(!w(h)||!w(d)||!L(c)||u==null)return!1;l.$updateTableTableSelection(i);let g=we(c,u),m=n.getCordsFromCellNode(h,g),f=n.getDOMCellFromCordsOrThrow(m.x,m.y,g);if(l.$setAnchorCellForSelection(f),re(e),e.shiftKey){let[C,p,_]=z(n,h,d);return On(l,C,p,_,t)}return d.selectEnd(),!0}return!1}function re(o){o.preventDefault(),o.stopImmediatePropagation(),o.stopPropagation()}function vo(o,e,t){let n=H();o==="first"?e.insertBefore(n):e.insertAfter(n),n.append(...t||[]),n.selectEnd()}function Ao(o,e,t){let n=t.getParent();if(!n)return;let l=$e(Ge(o));if(!l)return;let s=l.anchorNode,i=o.getElementByKey(n.getKey()),r=ae(t,o.getElementByKey(t.getKey()));if(!s||!i||!r||!i.contains(s)||r.contains(s))return;let a=O(e.anchor.getNode(),_=>w(_));if(!a)return;let h=O(a,_=>L(_));if(!L(h)||!h.is(t))return;let[d,c]=z(t,a,a),u=d[0][0],g=d[d.length-1][d[0].length-1],{startRow:m,startColumn:f}=c,C=m===u.startRow&&f===u.startColumn,p=m===g.startRow&&f===g.startColumn;return C?"first":p?"last":void 0}function ge(o,e){let{tableNode:t}=o.$lookup(),n=t.getCordsFromCellNode(e,o.table);return t.getDOMCellFromCordsOrThrow(n.x,n.y,o.table)}function Nt(o,e,t){return Fe(o,ne(e,t))}function Oo(o,e,t){let n=o.querySelector("colgroup");if(!n)return;let l=[];for(let s=0;s<e;s++){let i=document.createElement("col"),r=t&&t[s];r&&(i.style.width=`${r}px`),l.push(i)}n.replaceChildren(...l)}function Fo(o,e,t){if(!e.theme.tableAlignment)return;let n=[],l=[];for(let s of["center","right"]){let i=e.theme.tableAlignment[s];i&&(s===t?l:n).push(i)}he(o,...n),V(o,...l)}var yt=new WeakSet;function Ke(o=rt()){return yt.has(o)}function qo(o,e){e?yt.add(o):yt.delete(o)}var te=class o extends Ie{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new o(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:Mn,priority:1})}}static importJSON(e){return Qe().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return n==="html"}getDOMSlot(e){let t=be(e)?e:e.querySelector("table");return be(t)||S(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);let l=document.createElement("colgroup");if(n.appendChild(l),Co(l),V(n,e.theme.table),this.updateTableElement(null,n,e),Ke(t)){let s=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?V(s,i):s.style.cssText="overflow-x: auto;",s.appendChild(n),this.updateTableWrapper(null,s,n,e),s}return n}updateTableWrapper(e,t,n,l){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(function(s,i,r,a){a>0?(V(s,r.theme.tableFrozenColumn),i.setAttribute("data-lexical-frozen-column","true")):(he(s,r.theme.tableFrozenColumn),i.removeAttribute("data-lexical-frozen-column"))})(t,n,l,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(function(s,i,r,a){a>0?(V(s,r.theme.tableFrozenRow),i.setAttribute("data-lexical-frozen-row","true")):(he(s,r.theme.tableFrozenRow),i.removeAttribute("data-lexical-frozen-row"))})(t,n,l,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:"")&&(t.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(function(i,r,a){a?(V(i,r.theme.tableRowStriping),i.setAttribute("data-lexical-row-striping","true")):(he(i,r.theme.tableRowStriping),i.removeAttribute("data-lexical-row-striping"))})(t,n,this.__rowStriping);let l=e?e.getColumnCount():0,s=e?e.__colWidths:void 0;this.getColumnCount()===l&&this.getColWidths()===s||Oo(t,this.getColumnCount(),this.getColWidths()),Fo(t,n,this.getFormatType())}updateDOM(e,t,n){let l=this.getDOMSlot(t).element;return t===l===Ke()||(He(s=t)&&s.nodeName==="DIV"&&this.updateTableWrapper(e,t,l,n),this.updateTableElement(e,l,n),!1);var s}scaleDOMColWidths(e,t){let n=this.getColWidths();n&&Oo(this.getDOMSlot(e).element,this.getColumnCount(),n.map(l=>l*t))}exportDOM(e){let t=super.exportDOM(e),{element:n}=t;return{after:l=>{if(t.after&&(l=t.after(l)),!be(l)&&He(l)&&(l=l.querySelector("table")),!be(l))return null;Fo(l,e._config,this.getFormatType());let[s]=Z(this,null,null),i=new Map;for(let d of s)for(let c of d){let u=c.cell.getKey();i.has(u)||i.set(u,{colSpan:c.cell.getColSpan(),startColumn:c.startColumn})}let r=new Set;for(let d of l.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let c=d.getAttribute("data-temporary-table-cell-lexical-key");if(c){let u=i.get(c);if(d.removeAttribute("data-temporary-table-cell-lexical-key"),u){i.delete(c);for(let g=0;g<u.colSpan;g++)r.add(g+u.startColumn)}}}let a=l.querySelector(":scope > colgroup");if(a){let d=Array.from(l.querySelectorAll(":scope > colgroup > col")).filter((c,u)=>r.has(u));a.replaceChildren(...d)}let h=l.querySelectorAll(":scope > tr");if(h.length>0){let d=document.createElement("tbody");for(let c of h)d.appendChild(c);l.append(d)}return l},element:!be(n)&&He(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:l}=t;for(let s=0;s<n;s++){let i=l[s];if(i!=null)for(let r=0;r<i.length;r++){let a=i[r];if(a==null)continue;let{elem:h}=a,d=Nt(this,h);if(d!==null&&e.is(d))return{x:r,y:s}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,t,n){let{domRows:l}=n,s=l[t];if(s==null)return null;let i=s[e<s.length?e:s.length-1];return i??null}getDOMCellFromCordsOrThrow(e,t,n){let l=this.getDOMCellFromCords(e,t,n);if(!l)throw new Error("Cell not found at cords.");return l}getCellNodeFromCords(e,t,n){let l=this.getDOMCellFromCords(e,t,n);if(l==null)return null;let s=ne(l.elem);return w(s)?s:null}getCellNodeFromCordsOrThrow(e,t,n){let l=this.getCellNodeFromCords(e,t,n);if(!l)throw new Error("Node at cords not TableCellNode.");return l}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;return e.getChildren().forEach(n=>{w(n)&&(t+=n.getColSpan())}),t}};function jo(o,e){let t=o.getElementByKey(e.getKey());return t===null&&S(230),we(e,t)}function Mn(o){let e=Qe();o.hasAttribute("data-lexical-row-striping")&&e.setRowStriping(!0),o.hasAttribute("data-lexical-frozen-column")&&e.setFrozenColumns(1),o.hasAttribute("data-lexical-frozen-row")&&e.setFrozenRows(1);let t=o.querySelector(":scope > colgroup");if(t){let n=[];for(let l of t.querySelectorAll(":scope > col")){let s=l.style.width||"";if(!xt.test(s)&&(s=l.getAttribute("width")||"",!/^\d+$/.test(s))){n=void 0;break}n.push(parseFloat(s))}n&&e.setColWidths(n)}return{after:n=>ht(n,F),node:e}}function Qe(){return De(new te)}function L(o){return o instanceof te}function Kn(o){F(o.getParent())?o.isEmpty()&&o.append(H()):o.remove()}function kn(o){L(o.getParent())?gt(o,w):o.remove()}function Dn(o){gt(o,F);let[e]=Z(o,null,null),t=e.reduce((i,r)=>Math.max(i,r.length),0),n=o.getChildren();for(let i=0;i<e.length;++i){let r=n[i];if(!r)continue;F(r)||S(254,r.constructor.name,r.getType());let a=e[i].reduce((h,d)=>d?1+h:h,0);if(a!==t)for(let h=a;h<t;++h){let d=U();d.append(H()),r.append(d)}}let l=o.getColWidths(),s=o.getColumnCount();if(l&&l.length!==s){let i;if(s<l.length)i=l.slice(0,s);else if(l.length>0){let r=l[l.length-1];i=[...l,...Array(s-l.length).fill(r)]}o.setColWidths(i)}}function Ln(o){if(o.detail<3||!Ee(o.target))return!1;let e=ne(o.target);if(e===null)return!1;let t=O(e,n=>B(n)&&!n.isInline());return t===null?!1:!!w(t.getParent())&&(t.select(0),!0)}function Pn(){let o=D();if(!k(o))return!1;let e=Ce(o.anchor.getNode());if(e===null)return!1;let t=Pt();if(!t.is(e.getParent())||t.getChildrenSize()!==1)return!1;let[n]=Z(e,null,null);if(n.length===0||n[0].length===0)return!1;let l=n[0][0];if(!l||!l.cell)return!1;let s=n[n.length-1],i=s[s.length-1];if(!i||!i.cell)return!1;let r=qe(e,l.cell,i.cell);return j(r),!0}function Vo(o){return o.registerNodeTransform(ee,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=I(e),[n]=z(t,e,e),l=n.length,s=n[0].length,i=t.getFirstChild();F(i)||S(175);let r=[];for(let a=0;a<l;a++){a!==0&&(i=i.getNextSibling(),F(i)||S(175));let h=null;for(let d=0;d<s;d++){let c=n[a][d],u=c.cell;if(c.startRow===a&&c.startColumn===d)h=u,r.push(u);else if(u.getColSpan()>1||u.getRowSpan()>1){w(u)||S(176);let g=U(u.__headerState);h!==null?h.insertAfter(g):_o(i,g)}}}for(let a of r)a.setColSpan(1),a.setRowSpan(1)}})}function Go(o,e=!0){let t=new St,n=(l,s,i)=>{let r=ae(l,i),a=Xo(l,r,o,e,t);t.observers.set(s,[a,r])};return Be($n(o,t),o.registerCommand(ie,()=>En(t,o),Y),o.registerMutationListener(te,l=>{o.getEditorState().read(()=>{for(let[s,i]of l){let r=t.observers.get(s);if(i==="created"||i==="updated"){let{tableNode:a,tableElement:h}=vt(s);r===void 0?n(a,s,h):h!==r[1]&&(r[0].removeListeners(),t.observers.delete(s),n(a,s,h))}else i==="destroyed"&&r!==void 0&&(r[0].removeListeners(),t.observers.delete(s))}},{editor:o})},{skipInitialization:!1}),()=>{for(let[,[l]]of t.observers)l.removeListeners()})}function Qo(o,e){o.hasNodes([te])||S(255);let{hasNestedTables:t=yo(!1)}=e??{};return Be(o.registerCommand(Mo,n=>(function({rows:l,columns:s,includeHeaders:i},r){let a=D()||ue();if(!a||!k(a)||!r&&Ce(a.anchor.getNode()))return!1;let h=Ko(Number(l),Number(s),i);bo(h);let d=h.getFirstDescendant();return de(d)&&d.select(),!0})(n,t.peek()),We),o.registerCommand(ao,(n,l)=>o===l&&(function(s,i){let{nodes:r,selection:a}=s;if(!r.some(c=>L(c)||po(c).some(u=>L(u.node))))return!1;let h=v(a),d=k(a);return d&&O(a.anchor.getNode(),c=>w(c))!==null&&O(a.focus.getNode(),c=>w(c))!==null||h?r.length===1&&L(r[0])?(function(c,u){let g=u.getStartEndPoints(),m=v(u);if(g===null)return!1;let[f,C]=g,[p,_,b]=I(f),R=O(C.getNode(),K=>w(K));if(!(w(p)&&w(R)&&F(_)&&L(b)))return!1;let[x,T,y]=z(b,p,R),[$]=Z(c,null,null),E=x.length,W=E>0?x[0].length:0,M=T.startRow,P=T.startColumn,X=$.length,G=X>0?$[0].length:0;if(m){let K=Ye(x,T,y),q=K.maxRow-K.minRow+1,Q=K.maxColumn-K.minColumn+1;M=K.minRow,P=K.minColumn,X=Math.min(X,q),G=Math.min(G,Q)}let ce=!1,Ze=Math.min(E,M+X)-1,et=Math.min(W,P+G)-1,J=new Set;for(let K=M;K<=Ze;K++)for(let q=P;q<=et;q++){let Q=x[K][q];J.has(Q.cell.getKey())||Q.cell.__rowSpan===1&&Q.cell.__colSpan===1||(Ho(Q.cell),J.add(Q.cell.getKey()),ce=!0)}let[Ne]=Z(b.getWritable(),null,null),Zo=X-E+M;for(let K=0;K<Zo;K++)pt(Ne[E-1][0].cell);let en=G-W+P;for(let K=0;K<en;K++)_t(Ne[0][W-1].cell,!0,!1);[Ne]=Z(b.getWritable(),null,null);for(let K=M;K<M+X;K++)for(let q=P;q<P+G;q++){let Q=K-M,Ot=q-P,tt=$[Q][Ot];if(tt.startRow!==Q||tt.startColumn!==Ot)continue;let pe=tt.cell;if(pe.__rowSpan!==1||pe.__colSpan!==1){let oe=[],on=Math.min(K+pe.__rowSpan,M+X)-1,nn=Math.min(q+pe.__colSpan,P+G)-1;for(let ot=K;ot<=on;ot++)for(let nt=q;nt<=nn;nt++){let ln=Ne[ot][nt];oe.push(ln.cell)}Io(oe),ce=!0}let{cell:ke}=Ne[K][q],Ft=pe.getBackgroundColor();Ft!=null&&ke.setBackgroundColor(Ft);let tn=ke.getChildren();pe.getChildren().forEach(oe=>{de(oe)&&H().append(oe),ke.append(oe)}),tn.forEach(oe=>oe.remove())}if(m&&ce){let[K]=Z(b.getWritable(),null,null);K[T.startRow][T.startColumn].cell.selectEnd()}return!0})(r[0],a):!(d&&i.peek()&&!(function(c){return!!(v(c)&&!c.focus.getNode().is(c.anchor.getNode())||k(c)&&w(c.anchor.getNode())&&!c.anchor.getNode().is(c.focus.getNode()))})(a)):!1})(n,t),We),o.registerCommand(co,Pn,Yt),o.registerCommand(Ut,Ln,We),o.registerNodeTransform(te,Dn),o.registerNodeTransform(fe,kn),o.registerNodeTransform(ee,Kn))}var Wn=go({build:(o,e,t)=>No(e),config:mo({hasCellBackgroundColor:!0,hasCellMerge:!0,hasHorizontalScroll:!0,hasNestedTables:!1,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:()=>[te,fe,ee],register(o,e,t){let n=t.getOutput();return Be(Ae(()=>{let l=n.hasHorizontalScroll.value;Ke(o)!==l&&(qo(o,l),o.registerNodeTransform(te,()=>{})())}),Qo(o,n),Ae(()=>Go(o,n.hasTabHandler.value)),Ae(()=>n.hasCellMerge.value?void 0:Vo(o)),Ae(()=>n.hasCellBackgroundColor.value?void 0:o.registerNodeTransform(ee,l=>{l.getBackgroundColor()!==null&&l.setBackgroundColor(null)})))}});var N=At,Xn=N.$computeTableMap,Un=N.$computeTableMapSkipCellCheck,Yn=N.$createTableCellNode,Jn=N.$createTableNode,qn=N.$createTableNodeWithDimensions,jn=N.$createTableRowNode,Vn=N.$createTableSelection,Gn=N.$createTableSelectionFrom,Qn=N.$deleteTableColumn,Zn=N.$deleteTableColumnAtSelection,el=N.$deleteTableColumn__EXPERIMENTAL,tl=N.$deleteTableRowAtSelection,ol=N.$deleteTableRow__EXPERIMENTAL,nl=N.$findCellNode,ll=N.$findTableNode,rl=N.$getElementForTableNode,sl=N.$getNodeTriplet,il=N.$getTableAndElementByKey,al=N.$getTableCellNodeFromLexicalNode,cl=N.$getTableCellNodeRect,ul=N.$getTableColumnIndexFromTableCellNode,dl=N.$getTableNodeFromLexicalNodeOrThrow,hl=N.$getTableRowIndexFromTableCellNode,gl=N.$getTableRowNodeFromTableCellNodeOrThrow,fl=N.$insertTableColumn,ml=N.$insertTableColumnAtSelection,Cl=N.$insertTableColumn__EXPERIMENTAL,pl=N.$insertTableRow,_l=N.$insertTableRowAtSelection,bl=N.$insertTableRow__EXPERIMENTAL,Sl=N.$isScrollableTablesActive,Tl=N.$isSimpleTable,wl=N.$isTableCellNode,Nl=N.$isTableNode,yl=N.$isTableRowNode,xl=N.$isTableSelection,Rl=N.$mergeCells,$l=N.$moveTableColumn,El=N.$removeTableRowAtIndex,vl=N.$unmergeCell,Al=N.INSERT_TABLE_COMMAND,Ol=N.TableCellHeaderStates,Fl=N.TableCellNode,Ml=N.TableExtension,Kl=N.TableNode,kl=N.TableObserver,Dl=N.TableRowNode,Ll=N.applyTableHandlers,Pl=N.getDOMCellFromTarget,Wl=N.getTableElement,Il=N.getTableObserverFromTableElement,Hl=N.registerTableCellUnmergeTransform,Bl=N.registerTablePlugin,zl=N.registerTableSelectionObserver,Xl=N.setScrollableTablesActive;export{Xn as $computeTableMap,Un as $computeTableMapSkipCellCheck,Yn as $createTableCellNode,Jn as $createTableNode,qn as $createTableNodeWithDimensions,jn as $createTableRowNode,Vn as $createTableSelection,Gn as $createTableSelectionFrom,Qn as $deleteTableColumn,Zn as $deleteTableColumnAtSelection,el as $deleteTableColumn__EXPERIMENTAL,tl as $deleteTableRowAtSelection,ol as $deleteTableRow__EXPERIMENTAL,nl as $findCellNode,ll as $findTableNode,rl as $getElementForTableNode,sl as $getNodeTriplet,il as $getTableAndElementByKey,al as $getTableCellNodeFromLexicalNode,cl as $getTableCellNodeRect,ul as $getTableColumnIndexFromTableCellNode,dl as $getTableNodeFromLexicalNodeOrThrow,hl as $getTableRowIndexFromTableCellNode,gl as $getTableRowNodeFromTableCellNodeOrThrow,fl as $insertTableColumn,ml as $insertTableColumnAtSelection,Cl as $insertTableColumn__EXPERIMENTAL,pl as $insertTableRow,_l as $insertTableRowAtSelection,bl as $insertTableRow__EXPERIMENTAL,Sl as $isScrollableTablesActive,Tl as $isSimpleTable,wl as $isTableCellNode,Nl as $isTableNode,yl as $isTableRowNode,xl as $isTableSelection,Rl as $mergeCells,$l as $moveTableColumn,El as $removeTableRowAtIndex,vl as $unmergeCell,Al as INSERT_TABLE_COMMAND,Ol as TableCellHeaderStates,Fl as TableCellNode,Ml as TableExtension,Kl as TableNode,kl as TableObserver,Dl as TableRowNode,Ll as applyTableHandlers,Pl as getDOMCellFromTarget,Wl as getTableElement,Il as getTableObserverFromTableElement,Hl as registerTableCellUnmergeTransform,Bl as registerTablePlugin,zl as registerTableSelectionObserver,Xl as setScrollableTablesActive};
@@ -0,0 +1,14 @@
1
+ {
2
+ "version": "0.43.0",
3
+ "packages": [
4
+ "lexical",
5
+ "@lexical/rich-text",
6
+ "@lexical/html",
7
+ "@lexical/history",
8
+ "@lexical/list",
9
+ "@lexical/link",
10
+ "@lexical/selection",
11
+ "@lexical/table",
12
+ "@lexical/code"
13
+ ]
14
+ }