isorite 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/web/_app/immutable/assets/{0.BXPxx6Q0.css → 0.DqoJ_jEe.css} +1 -1
- package/web/_app/immutable/chunks/{CiMp12cC.js → 94XMxKlw.js} +1 -1
- package/web/_app/immutable/chunks/{4kgFUGOH.js → 9TpKhtgt.js} +1 -1
- package/web/_app/immutable/chunks/{BK6pLgdi.js → BBHd0LvJ.js} +1 -1
- package/web/_app/immutable/chunks/{DThNJvmp.js → BMcDEv5V.js} +1 -1
- package/web/_app/immutable/chunks/{8SS1q0nk.js → ChbZenhA.js} +1 -1
- package/web/_app/immutable/chunks/{D4YEq54N.js → CmExTt6_.js} +1 -1
- package/web/_app/immutable/chunks/{Bk_JinGf.js → CnR51TY0.js} +1 -1
- package/web/_app/immutable/chunks/{Uo6irDQW.js → CxAq1aod.js} +1 -1
- package/web/_app/immutable/chunks/{DsQj0LyB.js → DMzXaGgk.js} +3 -3
- package/web/_app/immutable/chunks/{D_jbSWJl.js → DSYLdqdc.js} +1 -1
- package/web/_app/immutable/chunks/{jTXVas70.js → DT2w6KyY.js} +1 -1
- package/web/_app/immutable/chunks/{DDCg82xL.js → rq7JUohF.js} +1 -1
- package/web/_app/immutable/chunks/{DbeMVOH4.js → wQPxmN7w.js} +1 -1
- package/web/_app/immutable/entry/{app.CvK8zypr.js → app.Z7pwf_yI.js} +2 -2
- package/web/_app/immutable/entry/start.B_WWh0TE.js +1 -0
- package/web/_app/immutable/nodes/0.zgVqViQf.js +26 -0
- package/web/_app/immutable/nodes/{1.Dchqgt4j.js → 1.D06ogNcd.js} +1 -1
- package/web/_app/immutable/nodes/2.Xq8_UpCY.js +1 -0
- package/web/_app/immutable/nodes/{3.MjtWDMWd.js → 3.CgpZ3cDm.js} +1 -1
- package/web/_app/immutable/nodes/{4.hhS0SQta.js → 4.DQfZbhoQ.js} +1 -1
- package/web/_app/immutable/nodes/{5.C33_cw2J.js → 5.BqLxxB44.js} +1 -1
- package/web/_app/immutable/nodes/6.Dg2_pK7R.js +1 -0
- package/web/_app/version.json +1 -1
- package/web/index.html +14 -14
- package/web/_app/immutable/entry/start.Dcgm6sQd.js +0 -1
- package/web/_app/immutable/nodes/0.0TdRBEoR.js +0 -26
- package/web/_app/immutable/nodes/2.C0CMUdSu.js +0 -1
- package/web/_app/immutable/nodes/6.owNfwwRl.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,M as l,O as u,Q as d,S as f,V as p,W as m,X as h,Y as g,Z as _,a as v,at as y,c as b,ct as x,d as S,et as C,f as w,ft as T,g as E,h as ee,i as D,j as O,k,n as te,p as A,pt as j,rt as M,st as ne,tt as N,v as re,z as P}from"./Iqr2CudW.js";import{o as F,t as I}from"./
|
|
1
|
+
import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,M as l,O as u,Q as d,S as f,V as p,W as m,X as h,Y as g,Z as _,a as v,at as y,c as b,ct as x,d as S,et as C,f as w,ft as T,g as E,h as ee,i as D,j as O,k,n as te,p as A,pt as j,rt as M,st as ne,tt as N,v as re,z as P}from"./Iqr2CudW.js";import{o as F,t as I}from"./9TpKhtgt.js";import"./xihTtKlq.js";import{C as L,E as ie,I as ae,P as oe,T as se,a as R,d as ce,g as le,h as ue,i as de,j as fe,l as pe,m as me,o as he,p as ge,s as _e,v as ve,y as ye}from"./CxAq1aod.js";import{C as be,S as xe,_ as Se,a as Ce,b as we,c as Te,d as Ee,f as De,g as Oe,h as ke,i as Ae,l as je,n as Me,o as Ne,r as Pe,s as Fe,v as Ie,x as Le,y as Re}from"./DMzXaGgk.js";import{B as ze,D as z,E as Be,F as B,G as Ve,H as He,I as Ue,J as V,K as We,L as H,M as U,N as W,P as Ge,R as Ke,S as qe,W as Je,X as Ye,Y as Xe,at as Ze,ct as Qe,et as $e,it as et,lt as tt,mt as nt,n as rt,nt as it,rt as at,t as ot,ut as st,v as ct,w as lt,x as ut,y as dt}from"./BxTFtVqu.js";import{i as ft,l as pt,n as mt,o as ht,r as gt}from"./yxd8jSz3.js";var _t=2e7,vt=[`kit.js`,`chart.js`,`model.js`,`math.js`,`math.css`,`isorite.css`,`plain.css`,`kit.css`],yt=e=>e.replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`).replace(/&/g,`&`);function bt(e,t){for(let n of e.matchAll(/<meta\b[^>]*>/gi)){let e=n[0];if((e.match(/\bname\s*=\s*["']([^"']*)["']/i)?.[1])?.toLowerCase()===t)return yt(e.match(/\bcontent\s*=\s*"([^"]*)"|\bcontent\s*=\s*'([^']*)'/i)?.slice(1).find(e=>e!==void 0)??``)}return null}function xt(e){return{title:yt(e.match(/<title[^>]*>([\s\S]*?)<\/title>/i)?.[1]?.trim()??``),description:bt(e,`description`)??``,author:bt(e,`author`)??``,date:bt(e,`date`)??``,kit:bt(e,`isorite:kit`),uses:(bt(e,`isorite:uses`)??``).split(/[\s,]+/).filter(Boolean)}}function St(e){let t=[];/<iso-chart[\s>]|\bPlot\.\w/.test(e)&&t.push(`chart`),/<iso-model[\s>]|<iso-chart3d[\s>]|\bTHREE\.\w/.test(e)&&t.push(`model`);let n=e.replace(/<script\b[\s\S]*?<\/script>/gi,``).replace(/<style\b[\s\S]*?<\/style>/gi,``);return(/<iso-math[\s>]|\biso\.math\(|\$\$[\s\S]+?\$\$|\\\(|\$(?=\S)[^$\n]+?(?<=\S)\$(?!\d)/.test(n)||/\biso\.math\(/.test(e))&&t.push(`math`),t}var Ct=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'">`,wt=e=>e.replace(/<\/(script|style)/gi,`<\\/$1`),Tt=e=>e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`);function Et(e,t,n={}){let r=n.look??`isorite`,i=n.ground??`lapis`,a=e.replace(/<link\b[^>]*\bhref\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*/gi,``).replace(/<script\b[^>]*\bsrc\s*=\s*["'](?:\.\/)?kit\/[^"']*["'][^>]*>\s*<\/script>\s*/gi,``),o=Object.entries(n.data??{}).map(([e,t])=>typeof t==`string`?`<script type="text/plain" data-path="${Tt(e)}">${wt(t)}<\/script>`:`<script type="application/octet-stream" data-encoding="base64" data-path="${Tt(e)}">${Dt(t)}<\/script>`),s=St(a).map(e=>`${e===`math`?`<style>\n${wt(t[`math.css`])}\n</style>\n`:``}<script>\n${wt(t[`${e}.js`])}\n<\/script>`),c=[Ct,`<style data-look="isorite">\n${wt(t[`isorite.css`])}\n</style>`,`<style data-look="plain">\n${wt(t[`plain.css`])}\n</style>`,`<style>\n${wt(t[`kit.css`])}\n</style>`,...o,`<script>\n${wt(t[`kit.js`])}\n<\/script>`,...s].join(`
|
|
2
2
|
`);return(/<head\b[^>]*>/i.test(a)?a.replace(/<head\b[^>]*>/i,e=>`${e}\n${c}\n`):`<!doctype html><html><head><meta charset="utf-8">\n${c}\n</head><body>${a}</body></html>`).replace(/<html\b([^>]*)>/i,(e,t)=>`<html${t.replace(/\s+data-(?:look|ground)\s*=\s*("[^"]*"|'[^']*'|\S+)/gi,``)} data-look="${r}" data-ground="${i}">`)}function Dt(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}var Ot=class{note;#e=N([]);get entries(){return P(this.#e)}set entries(e){C(this.#e,e)}#t=N(null);get prompt(){return P(this.#t)}set prompt(e){C(this.#t,e)}#n=N(null);get asking(){return P(this.#n)}set asking(e){C(this.#n,e)}#r=N(null);get failed(){return P(this.#r)}set failed(e){C(this.#r,e)}get tier(){return Oe.tier}#i=N(null);get cursor(){return P(this.#i)}set cursor(e){C(this.#i,e)}#a=N(``);get busy(){return P(this.#a)}set busy(e){C(this.#a,e,!0)}#o=N(null);get editing(){return P(this.#o)}set editing(e){C(this.#o,e,!0)}stop=null;constructor(e){this.note=e}#s=M(()=>ye(this.entries));get waiting(){return P(this.#s)}set waiting(e){C(this.#s,e)}#c=M(()=>this.waiting.filter(e=>e.form===`insert`));get proposals(){return P(this.#c)}set proposals(e){C(this.#c,e)}#l=M(()=>{let e=[],t=L(this.note.text);for(let n of this.waiting)if(n.form===`rewrite`)for(let r of n.open??[]){let i=n.regions[r],a=ge(this.note.text,i.old),o=a?this.note.text.slice(0,a.from).split(`
|
|
3
3
|
`).length-1:-1,s=t.find(e=>e.from<=o&&o<e.to);e.push({key:`r:${n.id}:${r}`,proposal:n,k:r,at:a,block:/\n/.test(i.old.text.trim())||/\n/.test(i.new.trim()),code:!!(s&&/^\s*(```|~~~)/.test(s.text))})}return e.sort((e,t)=>(e.at?.from??1/0)-(t.at?.from??1/0))});get changes(){return P(this.#l)}set changes(e){C(this.#l,e)}#u=M(()=>{try{let e=ie(this.note.text)[0];return{lines:e.split(`
|
|
4
4
|
`).length-1,chars:e.length}}catch{return{lines:0,chars:0}}});get head(){return P(this.#u)}set head(e){C(this.#u,e)}get foot(){return this.note.text.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./
|
|
1
|
+
import{u as e}from"./DMzXaGgk.js";import{A as t,M as n,bt as r,o as i,r as a}from"./BxTFtVqu.js";import{n as o,r as s}from"./Cq5C893B.js";import{javascriptLanguage as c}from"./K_3X9lyC.js";var l=1,u=33,d=34,f=35,p=36,m=new o(e=>{let t=e.pos;for(;;){if(e.next==10){e.advance();break}if(e.next==123&&e.peek(1)==123||e.next<0)break;e.advance()}e.pos>t&&e.acceptToken(l)});function h(e,t,n){return new o(r=>{let i=r.pos;for(;r.next!=e&&r.next>=0&&(n||r.next!=38&&(r.next!=123||r.peek(1)!=123));)r.advance();r.pos>i&&r.acceptToken(t)})}var g=h(39,u,!1),_=h(34,d,!1),v=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xRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",nodeNames:`⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue`,maxTerm:42,nodeProps:[[`openedBy`,3,`{{`,15,`(`],[`closedBy`,4,`}}`,14,`)`],[`isolate`,-4,5,19,25,27,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vQ#wTUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rQ$ZSO#q#r#r;'S#r;'S;=`$g<%lO#rQ$jP;=`<%l#rR$t[UQvPOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mq#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR%qTyPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&XTaPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&oXUQWPOp'[pq#rq!]'[!]!^#r!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R'aXUQOp'[pq#rq!]'[!]!^'|!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R(TTVPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR(gXOp'[pq#rq!]'[!]!^'|!^#q'[#q#r)S#r;'S'[;'S;=`)t<%lO'[P)VUOp)Sq!])S!]!^)i!^;'S)S;'S;=`)n<%lO)SP)nOVPP)qP;=`<%l)SR)wP;=`<%l'[R*RTzPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR*iT^PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+PT_PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+gThPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+}b[PUQO}#r}!O+v!O!Q#r!Q![+v![!]+v!]!c#r!c!}+v!}#R#r#R#S+v#S#T#r#T#o+v#o#q#r#q#r$W#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vR-YP;=`<%l+vR-dTwPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR-zTUQbPO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[m,g,_,v,y,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),x=c.parser.configure({top:`SingleExpression`}),S=b.configure({props:[t({Text:n.content,Is:n.definitionOperator,AttributeName:n.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":n.attributeValue,Entity:n.character,InvalidEntity:n.invalid,"BoundAttributeName/Identifier":n.attributeName,"EventName/Identifier":n.special(n.attributeName),"ReferenceName/Identifier":n.variableName,"DirectiveName/Identifier":n.keyword,"{{ }}":n.brace,"( )":n.paren,"[ ]":n.bracket,"# '*'":n.punctuation})]}),C={parser:x},w={parser:c.parser},T=S.configure({wrap:r((e,t)=>e.name==`InterpolationContent`?C:null)}),E=S.configure({wrap:r((e,t)=>e.name==`InterpolationContent`?C:e.name==`AttributeInterpolation`?e.node.parent?.name==`StatementAttributeValue`?w:C:null),top:`Attribute`}),D={parser:T},O={parser:E},k=e({selfClosingTags:!0});function A(e){return e.configure({wrap:r(M)},`angular`)}var j=A(k.language);function M(e,t){switch(e.name){case`Attribute`:return/^[*#(\[]|\{\{/.test(t.read(e.from,e.to))?O:null;case`Text`:return D}return null}function N(e={}){let t=k;if(e.base){if(e.base.language.name!=`html`||!(e.base.language instanceof a))throw RangeError(`The base option must be the result of calling html(...)`);t=e.base}return new i(t.language==k.language?j:A(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:[`[`,`{`,`"`]},indentOnInput:/^\s*[\}\]]$/})])}export{N as angular};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,C as t,E as n,F as r,I as i,L as a,M as o,O as s,Q as c,W as l,Y as u,Z as d,ct as f,d as p,et as m,f as h,g,i as _,p as v,pt as y,rt as b,st as x,tt as S,z as C}from"./Iqr2CudW.js";import"./xihTtKlq.js";import{a as w}from"./
|
|
1
|
+
import{A as e,C as t,E as n,F as r,I as i,L as a,M as o,O as s,Q as c,W as l,Y as u,Z as d,ct as f,d as p,et as m,f as h,g,i as _,p as v,pt as y,rt as b,st as x,tt as S,z as C}from"./Iqr2CudW.js";import"./xihTtKlq.js";import{a as w}from"./CxAq1aod.js";var T=o(`<li role="option"><button type="button" tabindex="-1" class="svelte-35e6rs"><span class="dir svelte-35e6rs"> </span><span class="detail svelte-35e6rs"> </span></button></li>`),E=o(`<ul class="suggest svelte-35e6rs" role="listbox" aria-label="folders"></ul>`),D=o(`<span class="field-wrap svelte-35e6rs"><input autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list"/> <!></span>`);function O(r,o){f(o,!0);let O=_(o,`value`,15,``),k=_(o,`placeholder`,3,``),A=_(o,`id`,3,`folder`),j=_(o,`quiet`,3,!1),M=S(!1),N=S(0),P=b(()=>O().trim().replace(/^\/+|\/+$/g,``).toLowerCase()),F=e=>w.listing.notes.filter(t=>t.dir===e).length,I=b(()=>{let e=w.listing.dirs.filter(e=>e.toLowerCase().includes(C(P))),t=e=>e.split(`/`).at(-1).toLowerCase().startsWith(C(P))?0:e.toLowerCase().startsWith(C(P))?1:2,n=e.sort((e,n)=>t(e)-t(n)||e.localeCompare(n)).map(e=>({dir:e,made:!1}));return C(P)&&!w.listing.dirs.some(e=>e.toLowerCase()===C(P))&&n.push({dir:O().trim().replace(/^\/+|\/+$/g,``),made:!0}),n.slice(0,8)});function L(e){O(e),m(M,!1),o.onpick?.(e)}function R(e){if(C(M)&&C(I).length){if(e.key===`ArrowDown`){m(N,(C(N)+1)%C(I).length),e.preventDefault();return}if(e.key===`ArrowUp`){m(N,(C(N)-1+C(I).length)%C(I).length),e.preventDefault();return}if((e.key===`Enter`||e.key===`Tab`)&&C(I)[C(N)]&&(e.key===`Enter`||C(P))){e.key===`Enter`&&e.preventDefault(),L(C(I)[C(N)].dir);return}if(e.key===`Escape`){m(M,!1),e.stopPropagation();return}}o.onkeydown?.(e)}var z=D(),B=u(z);h(B);let V;var H=c(B,2),U=n=>{var r=E();t(r,23,()=>C(I),e=>e.dir+e.made,(t,n,r)=>{var o=T();let f;var p=u(o),h=u(p),_=d(h,!0),b=c(h),x=d(b,!0);y(p),y(o),l(e=>{v(o,`id`,`${A()??``}-opt-${C(r)??``}`),v(o,`aria-selected`,C(r)===C(N)),f=g(o,1,`svelte-35e6rs`,null,f,{at:C(r)===C(N)}),s(_,C(n).dir),s(x,e)},[()=>C(n).made?`new folder`:`${F(C(n).dir)} ${F(C(n).dir)===1?`note`:`notes`}`]),i(`mousedown`,p,e=>e.preventDefault()),i(`click`,p,()=>L(C(n).dir)),a(`mouseenter`,p,()=>m(N,C(r),!0)),e(t,o)}),y(r),l(()=>v(r,`id`,`${A()??``}-list`)),e(n,r)};n(H,e=>{C(M)&&C(I).length&&e(U)}),y(z),l(()=>{v(B,`id`,A()),V=g(B,1,`mono svelte-35e6rs`,null,V,{field:!j(),quiet:j()}),v(B,`placeholder`,k()),v(B,`aria-label`,o.label),v(B,`aria-expanded`,C(M)&&C(I).length>0),v(B,`aria-controls`,`${A()??``}-list`),v(B,`aria-activedescendant`,C(M)&&C(I)[C(N)]?`${A()}-opt-${C(N)}`:void 0)}),a(`focus`,B,()=>{m(M,!0),m(N,0)}),i(`input`,B,()=>{m(M,!0),m(N,0)}),a(`blur`,B,()=>setTimeout(()=>m(M,!1),120)),i(`keydown`,B,R),p(B,O),e(r,z),x()}r([`input`,`keydown`,`mousedown`,`click`]);export{O as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,et as t,tt as n,vt as r,z as i}from"./Iqr2CudW.js";import{s as a,t as o}from"./
|
|
1
|
+
import{$ as e,et as t,tt as n,vt as r,z as i}from"./Iqr2CudW.js";import{s as a,t as o}from"./9TpKhtgt.js";var s=Symbol.for(`yaml.alias`),c=Symbol.for(`yaml.document`),l=Symbol.for(`yaml.map`),u=Symbol.for(`yaml.pair`),d=Symbol.for(`yaml.scalar`),f=Symbol.for(`yaml.seq`),p=Symbol.for(`yaml.node.type`),m=e=>!!e&&typeof e==`object`&&e[p]===s,h=e=>!!e&&typeof e==`object`&&e[p]===c,g=e=>!!e&&typeof e==`object`&&e[p]===l,_=e=>!!e&&typeof e==`object`&&e[p]===u,v=e=>!!e&&typeof e==`object`&&e[p]===d,y=e=>!!e&&typeof e==`object`&&e[p]===f;function b(e){if(e&&typeof e==`object`)switch(e[p]){case l:case f:return!0}return!1}function x(e){if(e&&typeof e==`object`)switch(e[p]){case s:case l:case d:case f:return!0}return!1}var S=e=>(v(e)||b(e))&&!!e.anchor,C=Symbol(`break visit`),ee=Symbol(`skip children`),w=Symbol(`remove node`);function T(e,t){let n=ne(t);h(e)?te(null,e.contents,n,Object.freeze([e]))===w&&(e.contents=null):te(null,e,n,Object.freeze([]))}T.BREAK=C,T.SKIP=ee,T.REMOVE=w;function te(e,t,n,r){let i=re(e,t,n,r);if(x(i)||_(i))return ie(e,r,i),te(e,i,n,r);if(typeof i!=`symbol`){if(b(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=te(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===C)return C;else i===w&&(t.items.splice(e,1),--e)}}else if(_(t)){r=Object.freeze(r.concat(t));let e=te(`key`,t.key,n,r);if(e===C)return C;e===w&&(t.key=null);let i=te(`value`,t.value,n,r);if(i===C)return C;i===w&&(t.value=null)}}return i}function ne(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function re(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(g(t))return n.Map?.(e,t,r);if(y(t))return n.Seq?.(e,t,r);if(_(t))return n.Pair?.(e,t,r);if(v(t))return n.Scalar?.(e,t,r);if(m(t))return n.Alias?.(e,t,r)}function ie(e,t,n){let r=t[t.length-1];if(b(r))r.items[e]=n;else if(_(r))e===`key`?r.key=n:r.value=n;else if(h(r))r.contents=n;else{let e=m(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var ae={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},oe=e=>e.replace(/[!,[\]{}]/g,e=>ae[e]),se=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+oe(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&x(e.contents)){let t={};T(e.contents,(e,n)=>{x(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
|
|
2
2
|
`)}};se.defaultYaml={explicit:!1,version:`1.2`},se.defaultTags={"!!":`tag:yaml.org,2002:`};function ce(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function le(e){let t=new Set;return T(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ue(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function de(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=le(e);let a=ue(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(v(t.node)||b(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function fe(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=fe(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=fe(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=fe(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=fe(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function E(e,t,n){if(Array.isArray(e))return e.map((e,t)=>E(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!S(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var pe=class{constructor(e){Object.defineProperty(this,p,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!h(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=E(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?fe(i,{"":o},``,o):o}},me=class extends pe{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],T(e,{Node:(e,t)=>{(m(t)||S(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(E(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=he(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(ce(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function he(e,t,n){if(m(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(b(t)){let r=0;for(let i of t.items){let t=he(e,i,n);t>r&&(r=t)}return r}if(_(t)){let r=he(e,t.key,n),i=he(e,t.value,n);return Math.max(r,i)}return 1}var ge=e=>!e||typeof e!=`function`&&typeof e!=`object`,D=class extends pe{constructor(e){super(d),this.value=e}toJSON(e,t){return t?.keep?this.value:E(this.value,e,t)}toString(){return String(this.value)}};D.BLOCK_FOLDED=`BLOCK_FOLDED`,D.BLOCK_LITERAL=`BLOCK_LITERAL`,D.PLAIN=`PLAIN`,D.QUOTE_DOUBLE=`QUOTE_DOUBLE`,D.QUOTE_SINGLE=`QUOTE_SINGLE`;var _e=`tag:yaml.org,2002:`;function ve(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function ye(e,t,n){if(h(e)&&(e=e.contents),x(e))return e;if(_(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new me(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=_e+t.slice(2));let u=ve(e,t,o.tags);if(!u){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new D(e);return c&&(c.node=t),t}u=e instanceof Map?o[l]:Symbol.iterator in Object(e)?o[f]:o[l]}a&&(a(u),delete n.onTagObj);let d=u?.createNode?u.createNode(n.schema,e,n):typeof u?.nodeClass?.from==`function`?u.nodeClass.from(n.schema,e,n):new D(e);return t?d.tag=t:u.default||(d.tag=u.tag),c&&(c.node=d),d}function be(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return ye(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var xe=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Se=class extends pe{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>x(t)||_(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xe(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(b(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,be(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(b(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&v(i)?i.value:i:b(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!_(t))return!1;let n=t.value;return n==null||e&&v(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return b(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(b(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,be(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Ce=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function O(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var k=(e,t,n)=>e.endsWith(`
|
|
3
3
|
`)?O(n,t):n.includes(`
|
|
4
4
|
`)?`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DIGvaVgJ.js","./BxTFtVqu.js","./yxd8jSz3.js","./Cq5C893B.js","./C6Btt2Xs.js","./DtbnBenW.js","./D_aBVMvK.js","./Bbt0DTmZ.js","./K_3X9lyC.js","./
|
|
2
|
-
import{$ as e,A as t,C as n,N as r,W as i,_t as a,ct as o,et as s,i as c,p as l,pt as u,st as d,tt as f,vt as p,yt as m,z as h}from"./Iqr2CudW.js";import{t as g}from"./CRzLMJPS.js";import"./xihTtKlq.js";import{D as _,F as v,L as y,P as ee,i as te,k as ne}from"./Uo6irDQW.js";import{A as re,B as ie,C as ae,D as b,F as oe,J as se,M as x,O as ce,Q as le,S as ue,Y as de,_ as fe,a as S,b as pe,bt as me,c as he,d as ge,g as _e,gt as ve,ht as ye,i as be,j as xe,k as Se,lt as Ce,mt as we,o as Te,p as C,s as Ee,vt as De,yt as Oe}from"./BxTFtVqu.js";import{t as ke}from"./yxd8jSz3.js";var Ae={opencode:`OpenCode`,"claude-code":`Claude Code`,pi:`Pi`};function je(e){let t=e?.startsWith(`agent:`)?e.slice(6):e?.includes(`:`)?``:e??``;return t?Ae[t]??t:``}var Me={type:`string`};({...Me}),{...Me},{...Me},{...Me},{...Me};var Ne={type:`string`};({...Ne}),{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne};var Pe=`The change is written at once, under your name: the person sees your words marked in the note, and can undo it from the browser. Use this, never edit or write, for any note of the knowledge base.`;`${Pe}`,`${Pe}`;function Fe(e,t){let n=e.trim().replace(/^<|>$/g,``).split(`#`,1)[0].split(`?`,1)[0];try{n=decodeURIComponent(n)}catch{}if(n.startsWith(`code:`)){let e=ne(n);return e&&_(e.path)===`image`?{path:e.path,from:`code`}:null}if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||_(n)!==`image`)return null;let r=t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``,i=[];for(let e of(n.startsWith(`/`)?n:`${r}/${n}`).split(`/`))if(e&&e!==`.`){if(e===`..`){if(!i.length)return null;i.pop()}else i.push(e)}return i.length?{path:i.join(`/`),from:`notes`}:null}var Ie=new Map;function Le(e,t){if(`fileUrl`in e)return e.fileUrl(t.path,t.from);let n=`${t.from}:${t.path}`,r=Ie.get(n);return r||Ie.set(n,r=e.file(t.path,t.from).then(e=>e?URL.createObjectURL(new Blob([e.bytes],{type:e.type})):null,()=>null)),r}var Re=e=>e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/\.(png|jpe?g|gif|webp|svg|avif)$/,``).replace(/[^a-z0-9._-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^[-.]+|[-.]+$/g,``);function ze(e=new Date){let t=e=>String(e).padStart(2,`0`);return`pasted-${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}`}async function Be(e){if(!globalThis.crypto?.subtle)return y(e);let t=await crypto.subtle.digest(`SHA-256`,e);return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Ve=e=>e.kind===`passage`?`passage:${e.id}:${e.text}`:`${e.kind}:${e.id}`,He=new class{#e=f([]);get parts(){return h(this.#e)}set parts(e){s(this.#e,e)}#t=f(``);get fresh(){return h(this.#t)}set fresh(e){s(this.#t,e,!0)}#n=f(null);get carrying(){return h(this.#n)}set carrying(e){s(this.#n,e)}has(e,t){return this.parts.some(n=>n.kind===e&&n.id===t)}add(e){return!this.parts.some(t=>Ve(t)===Ve(e))&&(this.parts=[...this.parts,e],this.fresh=Ve(e),te.focus!==`iso`&&te.unseen++,!0)}remove(e){this.parts=this.parts.filter(t=>Ve(t)!==Ve(e))}toggle(e){return this.parts.some(t=>Ve(t)===Ve(e))?(this.remove(e),!1):(this.add(e),!0)}clear(){this.parts=[]}get sent(){return this.parts}keyOf=Ve},Ue=[`low`,`mid`,`max`],We=(e,t,n)=>{try{let r=JSON.parse(localStorage.getItem(e)??`null`);return n(r)?r:t}catch{return t}},Ge=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},Ke=new class{#e=f(e(We(`isorite.tier.v2`,`mid`,e=>Ue.includes(e))));get tier(){return h(this.#e)}set tier(e){s(this.#e,e,!0)}#t=f(e(We(`isorite.context`,{},e=>typeof e==`object`&&!!e)));get choices(){return h(this.#t)}set choices(e){s(this.#t,e,!0)}of(e){return this.choices[e]??{}}toggle(e,t){let n=this.of(e),r=n.off??[];this.set(e,{...n,off:r.includes(t)?r.filter(e=>e!==t):[...r,t]})}setLookup(e,t){this.set(e,{...this.of(e),lookup:t})}setTier(e){this.tier=e,Ge(`isorite.tier.v2`,e)}set(e,t){let n={...t.off?.length?{off:t.off}:{},...t.lookup===!1?{lookup:!1}:{}},r={...this.choices};Object.keys(n).length?r[e]=n:delete r[e],this.choices=r,Ge(`isorite.context`,r)}},qe=new class{#e=f(null);get elsewhere(){return h(this.#e)}set elsewhere(e){s(this.#e,e)}#t=f(``);get onAtlas(){return h(this.#t)}set onAtlas(e){s(this.#t,e,!0)}set(e,t){t?this.elsewhere={...t,from:e}:this.elsewhere?.from===e&&(this.elsewhere=null)}};function Je(e){let t=/^#\/n\/([^?#]+)/.exec(e);if(!t)return null;let n=decodeURIComponent(t[1]);return n.endsWith(`/`)?{id:n.slice(0,-1),folder:!0}:{id:n,folder:!1}}var Ye={concept:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`],question:[`M8 1.75L14.25 8L8 14.25L1.75 8Z`,`M8 5.75L10.25 8L8 10.25L5.75 8Z`],problem:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M8.5 2.75L9.75 6.25L8.25 8.5L10 13.25`],folder:[`M4.25 4.25H14.25V12.25L12.25 14.25H1.75V6.75Z`,`M5 1.75H9.5`],image:[`M4 2.75H13.25V10.5L11 12.75H2.75V4Z`,`M4.5 10.5L7 7.5L8.75 9.25L10 8L11.75 10`],artifact:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M2.75 5.75H13.25`,`M4.75 11L7 8.5L8.75 10L11.25 7.5`],data:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M2.75 6.75H13.25`,`M2.75 10H13.25`,`M7.5 6.75V13.25`],document:[`M2.75 1.75H10L13.25 5V14.25H2.75Z`,`M10 1.75V5H13.25`,`M5 8.25H11`,`M5 11H9`],misc:[`M8 1.75L13.5 4.9V11.1L8 14.25L2.5 11.1V4.9Z`,`M2.5 4.9L8 8L13.5 4.9`,`M8 8V14.25`],web:[`M5.5 1.75H10.5L14.25 5.5V10.5L10.5 14.25H5.5L1.75 10.5V5.5Z`,`M1.75 8H14.25`,`M8 1.75V14.25`],code:[`M5.25 4.75L2 8L5.25 11.25`,`M10.75 4.75L14 8L10.75 11.25`,`M9.25 3.25L6.75 12.75`]},Xe={concept:`concept`,question:`question`,problem:`problem`,folder:`folder`,image:`picture`,artifact:`artifact`,data:`data`,document:`document`,misc:`file`,web:`web`,code:`code`},Ze=r(`<path></path>`),w=r(`<svg class="glyph svelte-8tyru2" viewBox="0 0 16 16" aria-hidden="true"></svg>`);function T(e,r){o(r,!0);let a=c(r,`size`,3,12);var s=w();n(s,20,()=>Ye[r.kind],e=>e,(e,n)=>{var r=Ze();i(()=>l(r,`d`,n)),t(e,r)}),u(s),i(()=>{l(s,`width`,a()),l(s,`height`,a())}),t(e,s),d()}var E=a(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.katex=r():n.katex=r()})(typeof self<`u`?self:e,function(){return(function(){var e={};(function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}})(),(function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var t={};e.d(t,{default:function(){return ta}});class n extends Error{constructor(e,t){let r=`KaTeX parse error: `+e,i,a,o=t&&t.loc;if(o&&o.start<=o.end){let e=o.lexer.input;i=o.start,a=o.end,i===e.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;let t=e.slice(i,a).replace(/[^]/g,`$&̲`),n;n=i>15?`…`+e.slice(i-15,i):e.slice(0,i);let s;s=a+15<e.length?e.slice(a,a+15)+`…`:e.slice(a),r+=n+t+s}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,n.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=e}}var r=n;let i=/([A-Z])/g,a=e=>e.replace(i,`-$1`).toLowerCase(),o={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},s=/[&><"']/g,c=e=>String(e).replace(s,e=>o[e]),l=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?l(e.body[0]):e:e.type===`font`?l(e.body):e,u=new Set([`mathord`,`textord`,`atom`]),d=e=>u.has(l(e).type),f=e=>{let t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},p={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function m(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function h(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:m(Array.isArray(e.type)?e.type[0]:e.type)}function g(e,t,n,r){let i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?h(r):a?a(i):i}class _{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(let t of Object.keys(p)){let n=p[t];n&&g(this,t,e,n)}}reportNonstrict(e,t,n){let i=this.strict;if(typeof i==`function`&&(i=i(e,t,n)),i&&i!==`ignore`){if(i===!0||i===`error`)throw new r(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);i===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+i+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){let r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){let t=f(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}}class v{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return y[ee[this.id]]}sub(){return y[te[this.id]]}fracNum(){return y[ne[this.id]]}fracDen(){return y[re[this.id]]}cramp(){return y[ie[this.id]]}text(){return y[ae[this.id]]}isTight(){return this.size>=2}}let y=[new v(0,0,!1),new v(1,0,!0),new v(2,1,!1),new v(3,1,!0),new v(4,2,!1),new v(5,2,!0),new v(6,3,!1),new v(7,3,!0)],ee=[4,5,4,5,6,7,6,7],te=[5,5,5,5,7,7,7,7],ne=[2,3,4,5,6,7,6,7],re=[3,3,5,5,7,7,7,7],ie=[1,1,3,3,5,5,7,7],ae=[0,1,2,3,2,3,2,3];var b={DISPLAY:y[0],TEXT:y[2],SCRIPT:y[4],SCRIPTSCRIPT:y[6]};let oe=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function se(e){for(let t=0;t<oe.length;t++){let n=oe[t];for(let t=0;t<n.blocks.length;t++){let r=n.blocks[t];if(e>=r[0]&&e<=r[1])return n.name}}return null}let x=[];oe.forEach(e=>e.blocks.forEach(e=>x.push(...e)));function ce(e){for(let t=0;t<x.length;t+=2)if(e>=x[t]&&e<=x[t+1])return!0;return!1}let le=e=>e+` `+e,ue=function(e,t){return`M95,`+(622+e+t)+`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DIGvaVgJ.js","./BxTFtVqu.js","./yxd8jSz3.js","./Cq5C893B.js","./C6Btt2Xs.js","./DtbnBenW.js","./D_aBVMvK.js","./Bbt0DTmZ.js","./K_3X9lyC.js","./rq7JUohF.js","./CDAjAYjS.js","./_rHYGvON.js","./94XMxKlw.js","./BBHd0LvJ.js","./Bffqt7tx.js","./BWonG38x.js","./BEHa2uNW.js","./BPW39P52.js","./Ds8Pkiic.js","./CPF5uNy5.js","./DLa7NjNO.js","./DXiLM1-G.js","./CygcOYNo.js","./GwMd3KmG.js","./Cp5ooBfH.js","./Bu8mWwtz.js","./DT2w6KyY.js","./CmExTt6_.js","./-2Meesge.js","./Iqr2CudW.js","./CRzLMJPS.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,C as n,N as r,W as i,_t as a,ct as o,et as s,i as c,p as l,pt as u,st as d,tt as f,vt as p,yt as m,z as h}from"./Iqr2CudW.js";import{t as g}from"./CRzLMJPS.js";import"./xihTtKlq.js";import{D as _,F as v,L as y,P as ee,i as te,k as ne}from"./CxAq1aod.js";import{A as re,B as ie,C as ae,D as b,F as oe,J as se,M as x,O as ce,Q as le,S as ue,Y as de,_ as fe,a as S,b as pe,bt as me,c as he,d as ge,g as _e,gt as ve,ht as ye,i as be,j as xe,k as Se,lt as Ce,mt as we,o as Te,p as C,s as Ee,vt as De,yt as Oe}from"./BxTFtVqu.js";import{t as ke}from"./yxd8jSz3.js";var Ae={opencode:`OpenCode`,"claude-code":`Claude Code`,pi:`Pi`};function je(e){let t=e?.startsWith(`agent:`)?e.slice(6):e?.includes(`:`)?``:e??``;return t?Ae[t]??t:``}var Me={type:`string`};({...Me}),{...Me},{...Me},{...Me},{...Me};var Ne={type:`string`};({...Ne}),{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne},{...Ne};var Pe=`The change is written at once, under your name: the person sees your words marked in the note, and can undo it from the browser. Use this, never edit or write, for any note of the knowledge base.`;`${Pe}`,`${Pe}`;function Fe(e,t){let n=e.trim().replace(/^<|>$/g,``).split(`#`,1)[0].split(`?`,1)[0];try{n=decodeURIComponent(n)}catch{}if(n.startsWith(`code:`)){let e=ne(n);return e&&_(e.path)===`image`?{path:e.path,from:`code`}:null}if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||_(n)!==`image`)return null;let r=t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``,i=[];for(let e of(n.startsWith(`/`)?n:`${r}/${n}`).split(`/`))if(e&&e!==`.`){if(e===`..`){if(!i.length)return null;i.pop()}else i.push(e)}return i.length?{path:i.join(`/`),from:`notes`}:null}var Ie=new Map;function Le(e,t){if(`fileUrl`in e)return e.fileUrl(t.path,t.from);let n=`${t.from}:${t.path}`,r=Ie.get(n);return r||Ie.set(n,r=e.file(t.path,t.from).then(e=>e?URL.createObjectURL(new Blob([e.bytes],{type:e.type})):null,()=>null)),r}var Re=e=>e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/\.(png|jpe?g|gif|webp|svg|avif)$/,``).replace(/[^a-z0-9._-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^[-.]+|[-.]+$/g,``);function ze(e=new Date){let t=e=>String(e).padStart(2,`0`);return`pasted-${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}`}async function Be(e){if(!globalThis.crypto?.subtle)return y(e);let t=await crypto.subtle.digest(`SHA-256`,e);return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Ve=e=>e.kind===`passage`?`passage:${e.id}:${e.text}`:`${e.kind}:${e.id}`,He=new class{#e=f([]);get parts(){return h(this.#e)}set parts(e){s(this.#e,e)}#t=f(``);get fresh(){return h(this.#t)}set fresh(e){s(this.#t,e,!0)}#n=f(null);get carrying(){return h(this.#n)}set carrying(e){s(this.#n,e)}has(e,t){return this.parts.some(n=>n.kind===e&&n.id===t)}add(e){return!this.parts.some(t=>Ve(t)===Ve(e))&&(this.parts=[...this.parts,e],this.fresh=Ve(e),te.focus!==`iso`&&te.unseen++,!0)}remove(e){this.parts=this.parts.filter(t=>Ve(t)!==Ve(e))}toggle(e){return this.parts.some(t=>Ve(t)===Ve(e))?(this.remove(e),!1):(this.add(e),!0)}clear(){this.parts=[]}get sent(){return this.parts}keyOf=Ve},Ue=[`low`,`mid`,`max`],We=(e,t,n)=>{try{let r=JSON.parse(localStorage.getItem(e)??`null`);return n(r)?r:t}catch{return t}},Ge=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},Ke=new class{#e=f(e(We(`isorite.tier.v2`,`mid`,e=>Ue.includes(e))));get tier(){return h(this.#e)}set tier(e){s(this.#e,e,!0)}#t=f(e(We(`isorite.context`,{},e=>typeof e==`object`&&!!e)));get choices(){return h(this.#t)}set choices(e){s(this.#t,e,!0)}of(e){return this.choices[e]??{}}toggle(e,t){let n=this.of(e),r=n.off??[];this.set(e,{...n,off:r.includes(t)?r.filter(e=>e!==t):[...r,t]})}setLookup(e,t){this.set(e,{...this.of(e),lookup:t})}setTier(e){this.tier=e,Ge(`isorite.tier.v2`,e)}set(e,t){let n={...t.off?.length?{off:t.off}:{},...t.lookup===!1?{lookup:!1}:{}},r={...this.choices};Object.keys(n).length?r[e]=n:delete r[e],this.choices=r,Ge(`isorite.context`,r)}},qe=new class{#e=f(null);get elsewhere(){return h(this.#e)}set elsewhere(e){s(this.#e,e)}#t=f(``);get onAtlas(){return h(this.#t)}set onAtlas(e){s(this.#t,e,!0)}set(e,t){t?this.elsewhere={...t,from:e}:this.elsewhere?.from===e&&(this.elsewhere=null)}};function Je(e){let t=/^#\/n\/([^?#]+)/.exec(e);if(!t)return null;let n=decodeURIComponent(t[1]);return n.endsWith(`/`)?{id:n.slice(0,-1),folder:!0}:{id:n,folder:!1}}var Ye={concept:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`],question:[`M8 1.75L14.25 8L8 14.25L1.75 8Z`,`M8 5.75L10.25 8L8 10.25L5.75 8Z`],problem:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M8.5 2.75L9.75 6.25L8.25 8.5L10 13.25`],folder:[`M4.25 4.25H14.25V12.25L12.25 14.25H1.75V6.75Z`,`M5 1.75H9.5`],image:[`M4 2.75H13.25V10.5L11 12.75H2.75V4Z`,`M4.5 10.5L7 7.5L8.75 9.25L10 8L11.75 10`],artifact:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M2.75 5.75H13.25`,`M4.75 11L7 8.5L8.75 10L11.25 7.5`],data:[`M5 2.75H13.25V11L11 13.25H2.75V5Z`,`M2.75 6.75H13.25`,`M2.75 10H13.25`,`M7.5 6.75V13.25`],document:[`M2.75 1.75H10L13.25 5V14.25H2.75Z`,`M10 1.75V5H13.25`,`M5 8.25H11`,`M5 11H9`],misc:[`M8 1.75L13.5 4.9V11.1L8 14.25L2.5 11.1V4.9Z`,`M2.5 4.9L8 8L13.5 4.9`,`M8 8V14.25`],web:[`M5.5 1.75H10.5L14.25 5.5V10.5L10.5 14.25H5.5L1.75 10.5V5.5Z`,`M1.75 8H14.25`,`M8 1.75V14.25`],code:[`M5.25 4.75L2 8L5.25 11.25`,`M10.75 4.75L14 8L10.75 11.25`,`M9.25 3.25L6.75 12.75`]},Xe={concept:`concept`,question:`question`,problem:`problem`,folder:`folder`,image:`picture`,artifact:`artifact`,data:`data`,document:`document`,misc:`file`,web:`web`,code:`code`},Ze=r(`<path></path>`),w=r(`<svg class="glyph svelte-8tyru2" viewBox="0 0 16 16" aria-hidden="true"></svg>`);function T(e,r){o(r,!0);let a=c(r,`size`,3,12);var s=w();n(s,20,()=>Ye[r.kind],e=>e,(e,n)=>{var r=Ze();i(()=>l(r,`d`,n)),t(e,r)}),u(s),i(()=>{l(s,`width`,a()),l(s,`height`,a())}),t(e,s),d()}var E=a(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.katex=r():n.katex=r()})(typeof self<`u`?self:e,function(){return(function(){var e={};(function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}})(),(function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var t={};e.d(t,{default:function(){return ta}});class n extends Error{constructor(e,t){let r=`KaTeX parse error: `+e,i,a,o=t&&t.loc;if(o&&o.start<=o.end){let e=o.lexer.input;i=o.start,a=o.end,i===e.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;let t=e.slice(i,a).replace(/[^]/g,`$&̲`),n;n=i>15?`…`+e.slice(i-15,i):e.slice(0,i);let s;s=a+15<e.length?e.slice(a,a+15)+`…`:e.slice(a),r+=n+t+s}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,n.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=e}}var r=n;let i=/([A-Z])/g,a=e=>e.replace(i,`-$1`).toLowerCase(),o={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},s=/[&><"']/g,c=e=>String(e).replace(s,e=>o[e]),l=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?l(e.body[0]):e:e.type===`font`?l(e.body):e,u=new Set([`mathord`,`textord`,`atom`]),d=e=>u.has(l(e).type),f=e=>{let t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},p={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function m(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function h(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:m(Array.isArray(e.type)?e.type[0]:e.type)}function g(e,t,n,r){let i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?h(r):a?a(i):i}class _{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(let t of Object.keys(p)){let n=p[t];n&&g(this,t,e,n)}}reportNonstrict(e,t,n){let i=this.strict;if(typeof i==`function`&&(i=i(e,t,n)),i&&i!==`ignore`){if(i===!0||i===`error`)throw new r(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);i===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+i+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){let r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){let t=f(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}}class v{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return y[ee[this.id]]}sub(){return y[te[this.id]]}fracNum(){return y[ne[this.id]]}fracDen(){return y[re[this.id]]}cramp(){return y[ie[this.id]]}text(){return y[ae[this.id]]}isTight(){return this.size>=2}}let y=[new v(0,0,!1),new v(1,0,!0),new v(2,1,!1),new v(3,1,!0),new v(4,2,!1),new v(5,2,!0),new v(6,3,!1),new v(7,3,!0)],ee=[4,5,4,5,6,7,6,7],te=[5,5,5,5,7,7,7,7],ne=[2,3,4,5,6,7,6,7],re=[3,3,5,5,7,7,7,7],ie=[1,1,3,3,5,5,7,7],ae=[0,1,2,3,2,3,2,3];var b={DISPLAY:y[0],TEXT:y[2],SCRIPT:y[4],SCRIPTSCRIPT:y[6]};let oe=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function se(e){for(let t=0;t<oe.length;t++){let n=oe[t];for(let t=0;t<n.blocks.length;t++){let r=n.blocks[t];if(e>=r[0]&&e<=r[1])return n.name}}return null}let x=[];oe.forEach(e=>e.blocks.forEach(e=>x.push(...e)));function ce(e){for(let t=0;t<x.length;t+=2)if(e>=x[t]&&e<=x[t+1])return!0;return!1}let le=e=>e+` `+e,ue=function(e,t){return`M95,`+(622+e+t)+`
|
|
3
3
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
4
4
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
5
5
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -519,5 +519,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
519
519
|
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=Ll(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=cl;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+Q[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
520
520
|
`?``:t;else{let e=t.indexOf(`
|
|
521
521
|
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=Nc.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new Oe(this.parser.nodeSet.types[e],gl,gl,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(Pl(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?ul(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=Pl(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Q.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?bl(this.parser.getNodeType(e),t,n,r):new yl(e,t)}get buffer(){return new _l(this.parser.nodeSet)}};function ul(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=ul(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new Oe(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var dl=class e extends De{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new ll(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=pl(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),c=this.inlineParsers.slice(),l=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(fl(n.defineNodes)){i=Object.assign({},i);let e=r.types.slice(),t;for(let r of n.defineNodes){let{name:n,block:a,composite:o,style:s}=typeof r==`string`?{name:r}:r;if(e.some(e=>e.name==n))continue;o&&(i[e.length]=(e,t,n)=>o(t,n,e.value));let c=e.length,l=o?[`Block`,`BlockContext`]:a?c>=Q.ATXHeading1&&c<=Q.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(ve.define({id:c,name:n,props:l&&[[we.group,l]]})),s&&(t||={},Array.isArray(s)||s instanceof ce?t[n]=s:Object.assign(t,s))}r=new ye(e),t&&(r=r.extend(re(t)))}if(fl(n.props)&&(r=r.extend(...n.props)),fl(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(a[t]=o[t]=void 0),n>-1&&(c[n]=void 0)}if(fl(n.parseBlock))for(let e of n.parseBlock){let t=s.indexOf(e.name);if(t>-1)a[t]=e.parse,o[t]=e.leaf;else{let t=e.before?ml(s,e.before):e.after?ml(s,e.after)+1:s.length-1;a.splice(t,0,e.parse),o.splice(t,0,e.leaf),s.splice(t,0,e.name)}e.endLeaf&&u.push(e.endLeaf)}if(fl(n.parseInline))for(let e of n.parseInline){let t=l.indexOf(e.name);if(t>-1)c[t]=e.parse;else{let t=e.before?ml(l,e.before):e.after?ml(l,e.after)+1:l.length-1;c.splice(t,0,e.parse),l.splice(t,0,e.name)}}return n.wrap&&(d=d.concat(n.wrap)),new e(r,a,o,s,u,i,c,l,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new Nl(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function fl(e){return e!=null&&e.length>0}function pl(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=pl(e[0]);if(e.length==1)return t;let n=pl(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||gl).concat(t||gl),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function ml(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var hl=[ve.none];for(let e=1,t;t=Q[e];e++)hl[e]=ve.define({id:e,name:t,props:e>=Q.Escape?[]:[[we.group,e in Lc?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var gl=[],_l=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return Oe.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},vl=class{constructor(e,t,n,r=gl){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new _l(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},yl=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return gl}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function bl(e,t,n,r){return new vl(e,t,n,r)}var xl={resolve:`Emphasis`,mark:`EmphasisMark`},Sl={resolve:`Emphasis`,mark:`EmphasisMark`},Cl={},wl={},Tl=class{constructor(e,t,n,r,i=n-t){this.type=e,this.from=t,this.to=n,this.side=r,this.size=i}},El=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,Dl=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Dl=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var Ol={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(El.charCodeAt(t)==r)return e.append(bl(Q.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(bl(Q.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(bl(Q.InlineCode,n,r+1,[bl(Q.CodeMark,n,n+i),bl(Q.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(bl(Q.Autolink,n,n+1+i[0].length,[bl(Q.LinkMark,n,n+1),bl(Q.URL,n+1,n+i[0].length),bl(Q.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(bl(Q.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(bl(Q.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(bl(Q.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=Dl.test(i),s=Dl.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new Tl(t==95?xl:Sl,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(bl(Q.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(bl(Q.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new Tl(Cl,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new Tl(wl,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof Tl&&(r.type==Cl||r.type==wl)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=kl(e,i,r.type==Cl?Q.Link:Q.Image,r.from,n+1);if(r.type==Cl)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof Tl&&t.type==Cl&&(t.side=0)}return a.to}}return-1}};function kl(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(bl(Q.LinkMark,r,r+(n==Q.Image?2:1))),t.push(bl(Q.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=Al(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=jl(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(bl(Q.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(bl(Q.LinkMark,n,s)))}else if(o==91){let n=Ml(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return bl(n,r,s,t)}function Al(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return bl(Q.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(Rc(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?bl(Q.URL,t+n,i+n):i==e.length&&null}}function jl(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return bl(Q.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function Ml(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return!r&&bl(Q.LinkLabel,t+n,a+1+n);else{if(r&&!Rc(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var Nl=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new Tl(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof Tl&&(t.type==Cl||t.type==wl))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof Tl&&n.type.resolve&&n.side&2))continue;let r=n.type==xl||n.type==Sl,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof Tl&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.size+n.size)%3==0&&(e.size%3||n.size%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof vl&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new Tl(a.type,a.from,l,a.side,a.size):null,(this.parts[t]=r&&n.to!=u?new Tl(n.type,u,n.to,n.side,n.size):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof vl&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof Tl&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof Tl?t:null}skipSpace(e){return zc(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?bl(this.parser.getNodeType(e),t,n,r):new yl(e,t)}};Nl.linkStart=Cl,Nl.imageStart=wl,Nl.emphasisAsterisk=Sl,Nl.emphasisUnderscore=xl;function Pl(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof vl&&(n[r]=new vl(t.type,t.from,t.to,Pl(t.children,[e])))}else n.splice(r++,0,e)}return n}var Fl=[Q.CodeBlock,Q.ListItem,Q.OrderedList,Q.BulletList],Il=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
522
|
-
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(we.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r||t.to-n>e.to){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=Ll(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new Oe(e.parser.nodeSet.types[Q.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(Fl.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function Ll(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var Rl=re({"Blockquote/...":x.quote,HorizontalRule:x.contentSeparator,"ATXHeading1/... SetextHeading1/...":x.heading1,"ATXHeading2/... SetextHeading2/...":x.heading2,"ATXHeading3/...":x.heading3,"ATXHeading4/...":x.heading4,"ATXHeading5/...":x.heading5,"ATXHeading6/...":x.heading6,"Comment CommentBlock":x.comment,Escape:x.escape,Entity:x.character,"Emphasis/...":x.emphasis,"StrongEmphasis/...":x.strong,"Link/... Image/...":x.link,"OrderedList/... BulletList/...":x.list,"BlockQuote/...":x.quote,"InlineCode CodeText":x.monospace,"URL Autolink":x.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":x.processingInstruction,"CodeInfo LinkLabel":x.labelName,LinkTitle:x.string,Paragraph:x.content}),zl=new dl(new ye(hl).extend(Rl),Object.keys(nl).map(e=>nl[e]),Object.keys(nl).map(e=>ol[e]),Object.keys(nl),sl,Lc,Object.keys(Ol).map(e=>Ol[e]),Object.keys(Ol),[]);function Bl(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function Vl(e){let{codeParser:t,htmlParser:n}=e;return{wrap:me((e,r)=>{let i=e.type.id;if(t&&(i==Q.CodeBlock||i==Q.FencedCode)){let n=``;if(i==Q.FencedCode){let t=e.node.getChild(Q.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==Q.CodeText,bracketed:i==Q.FencedCode}}else if(n&&(i==Q.HTMLBlock||i==Q.HTMLTag||i==Q.CommentBlock))return{parser:n,overlay:Bl(e.node,e.from,e.to)};return null})}}var Hl={resolve:`Strikethrough`,mark:`StrikethroughMark`},Ul={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":x.strikethrough}},{name:`StrikethroughMark`,style:x.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=Dl.test(r),c=Dl.test(i);return e.addDelimiter(Hl,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function Wl(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function Gl(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var Kl=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,ql=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&Kl.test(r=t.text.slice(t.pos))){let i=[];Wl(e,n.content,0,i,n.start)==Wl(e,r,0)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];Wl(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},Jl={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":x.heading}},`TableRow`,{name:`TableCell`,style:x.content},{name:`TableDelimiter`,style:x.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return Gl(t.content,0)?new ql:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof ql)||!Gl(t.text,t.basePos))return!1;let r=e.peekLine();return Kl.test(r)&&Wl(e,t.text,t.basePos)==Wl(e,r,t.basePos)},before:`SetextHeading`}]},Yl=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},Xl={defineNodes:[{name:`Task`,block:!0,style:x.list},{name:`TaskMarker`,style:x.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new Yl:null},after:`SetextHeading`}]},Zl=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,Ql=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,$l=/[\w-]+\.[\w-]+($|[/:])/,eu=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tu=/\/[a-zA-Z\d@.]+/gy;function nu(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function ru(e,t){Ql.lastIndex=t;let n=Ql.exec(e);if(!n||$l.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&nu(e,t,r,`)`)>nu(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function iu(e,t){eu.lastIndex=t;let n=eu.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var au=[Jl,Xl,Ul,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;Zl.lastIndex=r;let i=Zl.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=ru(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=iu(e.text,r):(a=iu(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(tu.lastIndex=a,i=tu.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function ou(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),Rc(s))break}return-1}}var su={defineNodes:[{name:`Superscript`,style:x.special(x.content)},{name:`SuperscriptMark`,style:x.processingInstruction}],parseInline:[{name:`Superscript`,parse:ou(94,`Superscript`,`SuperscriptMark`)}]},cu={defineNodes:[{name:`Subscript`,style:x.special(x.content)},{name:`SubscriptMark`,style:x.processingInstruction}],parseInline:[{name:`Subscript`,parse:ou(126,`Subscript`,`SubscriptMark`)}]},lu={defineNodes:[{name:`Emoji`,style:x.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},uu=p({html:()=>mu,htmlCompletionSource:()=>hu}),du=ve.define({id:0,name:`Document`,top:!0}),fu=class extends De{createParse(e,t,n){let r=n[0]?.from??0,i=n[n.length-1]?.to??e.length;return{parsedPos:i,stoppedAt:null,stopAt(){},advance:()=>new Oe(du,[],[],i-r)}}},pu=new be(ge(),new fu,[],`html`);function mu(e){return new Te(pu)}function hu(){return null}var gu=p({commonmarkLanguage:()=>Tu,deleteMarkupBackward:()=>zu,insertNewlineContinueMarkup:()=>Pu,insertNewlineContinueMarkupCommand:()=>Nu,markdown:()=>Hu,markdownKeymap:()=>Bu,markdownLanguage:()=>Eu,pasteURLAsLink:()=>qu}),_u=ge({commentTokens:{block:{open:`<!--`,close:`-->`}}}),vu=new we,yu=zl.configure({props:[_e.add(e=>!e.is(`Block`)||e.is(`Document`)||bu(e)!=null||xu(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),vu.add(bu),pe.add({Document:()=>null}),ae.add({Document:_u})]});function bu(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function xu(e){return e.name==`OrderedList`||e.name==`BulletList`}function Su(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=bu(e.type))!=null&&r<=t)break;n=e}return n.to}var Cu=fe.of((e,t,n)=>{for(let r=b(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(vu);if(e==null)continue;let t=Su(r,e);if(t>n)return{from:n,to:t}}return null});function wu(e){return new be(_u,e,[],`markdown`)}var Tu=wu(yu),Eu=wu(yu.configure([au,cu,su,lu,{props:[_e.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function Du(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):S.matchLanguageName(e,n,!0),t instanceof S)return t.support?t.support.language.parser:Ee.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Ou=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+Au(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function ku(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Ou(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Ou(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Ou(i.parent,s,s+t,a[1],e,n,i))}}return r}function Au(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function ju(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=Au(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function Mu(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(ue)!=` `)return e;let r=Ce(e,4,n),i=``;for(let e=r;e>0;)e>=4?(i+=` `,e-=4):(i+=` `,e--);return i+e.slice(n)}var Nu=(e={})=>({state:t,dispatch:n})=>{let r=b(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Eu.isActiveAt(t,n.from,-1)&&!Eu.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=ku(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&ju(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&ju(e.item,i,r),{range:se.cursor(t+n.length),changes:r}}{let e=Lu(c,t,s);return{range:se.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&ju(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?Ce(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=Mu(p,t),Iu(l.node,t.doc)&&(p=Lu(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:se.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},Pu=Nu();function Fu(e){return e.name==`QuoteMark`||e.name==`ListMark`}function Iu(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Lu(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?Ce(n.text,4,e[t+1].from)-r.length:null,t<i);return Mu(r,t)}function Ru(e,t){let n=e.resolveInner(t,-1),r=t;Fu(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(Fu(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var zu=({state:e,dispatch:t})=>{let n=b(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Eu.isActiveAt(e,t.from)){let t=a.lineAt(i),r=ku(Ru(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:se.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(Ce(t.text,4,n.to)-Ce(t.text,4,n.from));return r==t.from&&(i=Mu(i,e)),{range:se.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:se.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Bu=[{key:`Enter`,run:Pu},{key:`Backspace`,run:zu}],Vu=mu({matchClosingTags:!1});function Hu(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=Tu,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Vu}=e;if(!(i instanceof dl))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,Cu],u;o&&l.push(qu),n instanceof Te?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?Du(t,u):void 0;c.push(Vl({codeParser:d,htmlParser:s.language.parser})),r&&l.push(le.high(ie.of(Bu)));let f=wu(i.configure(c));return a&&l.push(f.data.of({autocomplete:Uu})),new Te(f,l)}function Uu(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=b(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:Gu(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var Wu=null;function Gu(){if(Wu)return Wu;let e=hu(new ke(de.create({extensions:Vu}),0,!0));return Wu=e?e.options:[]}var Ku=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,qu=oe.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!Eu.isActiveAt(t.state,n.from,1)))return!1;let i=b(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||Ku.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}});function $(e){return new Te(he.define(e))}function Ju(e){return g(()=>import(`./DIGvaVgJ.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1,2,3]),import.meta.url)}var Yu=[S.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return g(()=>import(`./C6Btt2Xs.js`).then(e=>e.cpp()),__vite__mapDeps([4,1,3]),import.meta.url)}}),S.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return g(()=>import(`./C6Btt2Xs.js`).then(e=>e.cpp()),__vite__mapDeps([4,1,3]),import.meta.url)}}),S.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return Ju(`Cassandra`)}}),S.of({name:`CSS`,extensions:[`css`],load(){return g(()=>import(`./DtbnBenW.js`).then(e=>e.css()),__vite__mapDeps([5,1,3]),import.meta.url)}}),S.of({name:`Go`,extensions:[`go`],load(){return g(()=>import(`./D_aBVMvK.js`).then(e=>e.go()),__vite__mapDeps([6,1,2,3]),import.meta.url)}}),S.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return g(()=>Promise.resolve().then(()=>uu).then(e=>e.html()),void 0,import.meta.url)}}),S.of({name:`Java`,extensions:[`java`],load(){return g(()=>import(`./Bbt0DTmZ.js`).then(e=>e.java()),__vite__mapDeps([7,1,3]),import.meta.url)}}),S.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript()),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return g(()=>import(`./DDCg82xL.js`).then(e=>e.jinja()),__vite__mapDeps([9,1,3]),import.meta.url)}}),S.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return g(()=>import(`./CDAjAYjS.js`).then(e=>e.json()),__vite__mapDeps([10,1,3]),import.meta.url)}}),S.of({name:`JSX`,extensions:[`jsx`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`LESS`,extensions:[`less`],load(){return g(()=>import(`./_rHYGvON.js`).then(e=>e.less()),__vite__mapDeps([11,1,3,5]),import.meta.url)}}),S.of({name:`Liquid`,extensions:[`liquid`],load(){return g(()=>import(`./CiMp12cC.js`).then(e=>e.liquid()),__vite__mapDeps([12,1,3]),import.meta.url)}}),S.of({name:`MariaDB SQL`,load(){return Ju(`MariaSQL`)}}),S.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return g(()=>Promise.resolve().then(()=>gu).then(e=>e.markdown()),void 0,import.meta.url)}}),S.of({name:`MS SQL`,load(){return Ju(`MSSQL`)}}),S.of({name:`MySQL`,load(){return Ju(`MySQL`)}}),S.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return g(()=>import(`./BK6pLgdi.js`).then(e=>e.php()),__vite__mapDeps([13,1,3]),import.meta.url)}}),S.of({name:`PLSQL`,extensions:[`pls`],load(){return Ju(`PLSQL`)}}),S.of({name:`PostgreSQL`,load(){return Ju(`PostgreSQL`)}}),S.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return g(()=>import(`./Bffqt7tx.js`).then(e=>e.python()),__vite__mapDeps([14,1,2,3]),import.meta.url)}}),S.of({name:`Rust`,extensions:[`rs`],load(){return g(()=>import(`./BWonG38x.js`).then(e=>e.rust()),__vite__mapDeps([15,1,3]),import.meta.url)}}),S.of({name:`Sass`,extensions:[`sass`],load(){return g(()=>import(`./BEHa2uNW.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([16,1,3,5]),import.meta.url)}}),S.of({name:`SCSS`,extensions:[`scss`],load(){return g(()=>import(`./BEHa2uNW.js`).then(e=>e.sass()),__vite__mapDeps([16,1,3,5]),import.meta.url)}}),S.of({name:`SQL`,extensions:[`sql`],load(){return Ju(`StandardSQL`)}}),S.of({name:`SQLite`,load(){return Ju(`SQLite`)}}),S.of({name:`TSX`,extensions:[`tsx`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({jsx:!0,typescript:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return g(()=>import(`./BPW39P52.js`).then(e=>e.wast()),__vite__mapDeps([17,1,3]),import.meta.url)}}),S.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return g(()=>import(`./Ds8Pkiic.js`).then(e=>e.xml()),__vite__mapDeps([18,1,3]),import.meta.url)}}),S.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return g(()=>import(`./CPF5uNy5.js`).then(e=>e.yaml()),__vite__mapDeps([19,1,3]),import.meta.url)}}),S.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return g(()=>import(`./gfMMiTNf.js`).then(e=>$(e.apl)),[],import.meta.url)}}),S.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return g(()=>import(`./C_eisQCp.js`).then(e=>$(e.asciiArmor)),[],import.meta.url)}}),S.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return g(()=>import(`./DCl_8MCW.js`).then(e=>$(e.asn1({}))),[],import.meta.url)}}),S.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return g(()=>import(`./BEn0Cwpx.js`).then(e=>$(e.asterisk)),[],import.meta.url)}}),S.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return g(()=>import(`./D5EjA2JK.js`).then(e=>$(e.brainfuck)),[],import.meta.url)}}),S.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return g(()=>import(`./DHLQUbN7.js`).then(e=>$(e.cobol)),[],import.meta.url)}}),S.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.csharp)),[],import.meta.url)}}),S.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`ClojureScript`,extensions:[`cljs`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return g(()=>import(`./CnaYoQib.js`).then(e=>$(e.gss)),[],import.meta.url)}}),S.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return g(()=>import(`./84nbDH0I.js`).then(e=>$(e.cmake)),[],import.meta.url)}}),S.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return g(()=>import(`./De_zI4J0.js`).then(e=>$(e.coffeeScript)),[],import.meta.url)}}),S.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return g(()=>import(`./DgAKBe0r.js`).then(e=>$(e.commonLisp)),[],import.meta.url)}}),S.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return g(()=>import(`./p9eYesGn.js`).then(e=>$(e.cypher)),[],import.meta.url)}}),S.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return g(()=>import(`./B_1Jd8HM.js`).then(e=>$(e.cython)),[],import.meta.url)}}),S.of({name:`Crystal`,extensions:[`cr`],load(){return g(()=>import(`./Bsdphhtm.js`).then(e=>$(e.crystal)),[],import.meta.url)}}),S.of({name:`D`,extensions:[`d`],load(){return g(()=>import(`./DWkQyNnU.js`).then(e=>$(e.d)),[],import.meta.url)}}),S.of({name:`Dart`,extensions:[`dart`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.dart)),[],import.meta.url)}}),S.of({name:`diff`,extensions:[`diff`,`patch`],load(){return g(()=>import(`./ChtP43wD.js`).then(e=>$(e.diff)),[],import.meta.url)}}),S.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return g(()=>import(`./DLa7NjNO.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([20,21]),import.meta.url)}}),S.of({name:`DTD`,extensions:[`dtd`],load(){return g(()=>import(`./DTF72YNO.js`).then(e=>$(e.dtd)),[],import.meta.url)}}),S.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return g(()=>import(`./S7ucR4pR.js`).then(e=>$(e.dylan)),[],import.meta.url)}}),S.of({name:`EBNF`,load(){return g(()=>import(`./D4c0_ac3.js`).then(e=>$(e.ebnf)),[],import.meta.url)}}),S.of({name:`ECL`,extensions:[`ecl`],load(){return g(()=>import(`./BVIeWmwY.js`).then(e=>$(e.ecl)),[],import.meta.url)}}),S.of({name:`edn`,extensions:[`edn`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`Eiffel`,extensions:[`e`],load(){return g(()=>import(`./BEjRio4Q.js`).then(e=>$(e.eiffel)),[],import.meta.url)}}),S.of({name:`Elm`,extensions:[`elm`],load(){return g(()=>import(`./Cshzl8qu.js`).then(e=>$(e.elm)),[],import.meta.url)}}),S.of({name:`Erlang`,extensions:[`erl`],load(){return g(()=>import(`./BV0c4Hdn.js`).then(e=>$(e.erlang)),[],import.meta.url)}}),S.of({name:`Esper`,load(){return g(()=>import(`./DuQMFDvy.js`).then(e=>$(e.esper)),[],import.meta.url)}}),S.of({name:`Factor`,extensions:[`factor`],load(){return g(()=>import(`./CygcOYNo.js`).then(e=>$(e.factor)),__vite__mapDeps([22,21]),import.meta.url)}}),S.of({name:`FCL`,load(){return g(()=>import(`./ClOhbFR7.js`).then(e=>$(e.fcl)),[],import.meta.url)}}),S.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return g(()=>import(`./D6RzAl64.js`).then(e=>$(e.forth)),[],import.meta.url)}}),S.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return g(()=>import(`./Bt6PBEDR.js`).then(e=>$(e.fortran)),[],import.meta.url)}}),S.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.fSharp)),[],import.meta.url)}}),S.of({name:`Gas`,extensions:[`s`],load(){return g(()=>import(`./BHEdbvp9.js`).then(e=>$(e.gas)),[],import.meta.url)}}),S.of({name:`Gherkin`,extensions:[`feature`],load(){return g(()=>import(`./oBAE_ms0.js`).then(e=>$(e.gherkin)),[],import.meta.url)}}),S.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return g(()=>import(`./CUpZ7dEl.js`).then(e=>$(e.groovy)),[],import.meta.url)}}),S.of({name:`Haskell`,extensions:[`hs`],load(){return g(()=>import(`./BRsoo5mP.js`).then(e=>$(e.haskell)),[],import.meta.url)}}),S.of({name:`Haxe`,extensions:[`hx`],load(){return g(()=>import(`./DjVOVvNP.js`).then(e=>$(e.haxe)),[],import.meta.url)}}),S.of({name:`HXML`,extensions:[`hxml`],load(){return g(()=>import(`./DjVOVvNP.js`).then(e=>$(e.hxml)),[],import.meta.url)}}),S.of({name:`HTTP`,load(){return g(()=>import(`./CLVgA2GD.js`).then(e=>$(e.http)),[],import.meta.url)}}),S.of({name:`IDL`,extensions:[`pro`],load(){return g(()=>import(`./BUZw3wgd.js`).then(e=>$(e.idl)),[],import.meta.url)}}),S.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return g(()=>import(`./Bu8mWwtz.js`).then(e=>$(e.jsonld)),[],import.meta.url)}}),S.of({name:`Julia`,extensions:[`jl`],load(){return g(()=>import(`./CQfgDRfP.js`).then(e=>$(e.julia)),[],import.meta.url)}}),S.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.kotlin)),[],import.meta.url)}}),S.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return g(()=>import(`./BXxG0Yva.js`).then(e=>$(e.liveScript)),[],import.meta.url)}}),S.of({name:`Lua`,extensions:[`lua`],load(){return g(()=>import(`./DPCEkfD_.js`).then(e=>$(e.lua)),[],import.meta.url)}}),S.of({name:`mIRC`,extensions:[`mrc`],load(){return g(()=>import(`./C9zpzAZU.js`).then(e=>$(e.mirc)),[],import.meta.url)}}),S.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return g(()=>import(`./u8YMmbU0.js`).then(e=>$(e.mathematica)),[],import.meta.url)}}),S.of({name:`Modelica`,extensions:[`mo`],load(){return g(()=>import(`./CqHI_q-D.js`).then(e=>$(e.modelica)),[],import.meta.url)}}),S.of({name:`MUMPS`,extensions:[`mps`],load(){return g(()=>import(`./BSzj6Xyz.js`).then(e=>$(e.mumps)),[],import.meta.url)}}),S.of({name:`Mbox`,extensions:[`mbox`],load(){return g(()=>import(`./BEMVcqjs.js`).then(e=>$(e.mbox)),[],import.meta.url)}}),S.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return g(()=>import(`./8H7HVH4w.js`).then(e=>$(e.nginx)),[],import.meta.url)}}),S.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return g(()=>import(`./GwMd3KmG.js`).then(e=>$(e.nsis)),__vite__mapDeps([23,21]),import.meta.url)}}),S.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return g(()=>import(`./CzMBulkp.js`).then(e=>$(e.ntriples)),[],import.meta.url)}}),S.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.objectiveC)),[],import.meta.url)}}),S.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[],import.meta.url)}}),S.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.oCaml)),[],import.meta.url)}}),S.of({name:`Octave`,extensions:[`m`],load(){return g(()=>import(`./D2Q8cUp1.js`).then(e=>$(e.octave)),[],import.meta.url)}}),S.of({name:`Oz`,extensions:[`oz`],load(){return g(()=>import(`./BwTct_5T.js`).then(e=>$(e.oz)),[],import.meta.url)}}),S.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return g(()=>import(`./Dp_KdFgX.js`).then(e=>$(e.pascal)),[],import.meta.url)}}),S.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return g(()=>import(`./BkSkiI9m.js`).then(e=>$(e.perl)),[],import.meta.url)}}),S.of({name:`Pig`,extensions:[`pig`],load(){return g(()=>import(`./AF4Hwhju.js`).then(e=>$(e.pig)),[],import.meta.url)}}),S.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return g(()=>import(`./D8WpQPaX.js`).then(e=>$(e.powerShell)),[],import.meta.url)}}),S.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return g(()=>import(`./C357ku5U.js`).then(e=>$(e.properties)),[],import.meta.url)}}),S.of({name:`ProtoBuf`,extensions:[`proto`],load(){return g(()=>import(`./D1ij_kNL.js`).then(e=>$(e.protobuf)),[],import.meta.url)}}),S.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return g(()=>import(`./Cp5ooBfH.js`).then(e=>$(e.pug)),__vite__mapDeps([24,25]),import.meta.url)}}),S.of({name:`Puppet`,extensions:[`pp`],load(){return g(()=>import(`./BZyAS7I4.js`).then(e=>$(e.puppet)),[],import.meta.url)}}),S.of({name:`Q`,extensions:[`q`],load(){return g(()=>import(`./B9NhS7L_.js`).then(e=>$(e.q)),[],import.meta.url)}}),S.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return g(()=>import(`./CxDmU1I4.js`).then(e=>$(e.r)),[],import.meta.url)}}),S.of({name:`RPM Changes`,load(){return g(()=>import(`./gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[],import.meta.url)}}),S.of({name:`RPM Spec`,extensions:[`spec`],load(){return g(()=>import(`./gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[],import.meta.url)}}),S.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return g(()=>import(`./ChfNwlCY.js`).then(e=>$(e.ruby)),[],import.meta.url)}}),S.of({name:`SAS`,extensions:[`sas`],load(){return g(()=>import(`./C2OyD2Y6.js`).then(e=>$(e.sas)),[],import.meta.url)}}),S.of({name:`Scala`,extensions:[`scala`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.scala)),[],import.meta.url)}}),S.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return g(()=>import(`./D9qYN0V5.js`).then(e=>$(e.scheme)),[],import.meta.url)}}),S.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return g(()=>import(`./DwuoZtxw.js`).then(e=>$(e.shell)),[],import.meta.url)}}),S.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return g(()=>import(`./tLWDfEkZ.js`).then(e=>$(e.sieve)),[],import.meta.url)}}),S.of({name:`Smalltalk`,extensions:[`st`],load(){return g(()=>import(`./BLp5-jwC.js`).then(e=>$(e.smalltalk)),[],import.meta.url)}}),S.of({name:`Solr`,load(){return g(()=>import(`./B78wSQJQ.js`).then(e=>$(e.solr)),[],import.meta.url)}}),S.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.sml)),[],import.meta.url)}}),S.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return g(()=>import(`./Dz-mlCAC.js`).then(e=>$(e.sparql)),[],import.meta.url)}}),S.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return g(()=>import(`./CTIncYxj.js`).then(e=>$(e.spreadsheet)),[],import.meta.url)}}),S.of({name:`Squirrel`,extensions:[`nut`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.squirrel)),[],import.meta.url)}}),S.of({name:`Stylus`,extensions:[`styl`],load(){return g(()=>import(`./BOVgKnng.js`).then(e=>$(e.stylus)),[],import.meta.url)}}),S.of({name:`Swift`,extensions:[`swift`],load(){return g(()=>import(`./DKB6_1j6.js`).then(e=>$(e.swift)),[],import.meta.url)}}),S.of({name:`sTeX`,load(){return g(()=>import(`./DNzd62Q_.js`).then(e=>$(e.stex)),[],import.meta.url)}}),S.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return g(()=>import(`./DNzd62Q_.js`).then(e=>$(e.stex)),[],import.meta.url)}}),S.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return g(()=>import(`./CjI9Y6RI.js`).then(e=>$(e.verilog)),[],import.meta.url)}}),S.of({name:`Tcl`,extensions:[`tcl`],load(){return g(()=>import(`./BGfruO1u.js`).then(e=>$(e.tcl)),[],import.meta.url)}}),S.of({name:`Textile`,extensions:[`textile`],load(){return g(()=>import(`./C4jVoHG1.js`).then(e=>$(e.textile)),[],import.meta.url)}}),S.of({name:`TiddlyWiki`,load(){return g(()=>import(`./VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[],import.meta.url)}}),S.of({name:`Tiki wiki`,load(){return g(()=>import(`./DTszW0OQ.js`).then(e=>$(e.tiki)),[],import.meta.url)}}),S.of({name:`TOML`,extensions:[`toml`],load(){return g(()=>import(`./BPTmHmyx.js`).then(e=>$(e.toml)),[],import.meta.url)}}),S.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return g(()=>import(`./C2dAgh7P.js`).then(e=>$(e.troff)),[],import.meta.url)}}),S.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return g(()=>import(`./PPSTk1ow.js`).then(e=>$(e.ttcn)),[],import.meta.url)}}),S.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return g(()=>import(`./2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[],import.meta.url)}}),S.of({name:`Turtle`,extensions:[`ttl`],load(){return g(()=>import(`./Cx3rYX2g.js`).then(e=>$(e.turtle)),[],import.meta.url)}}),S.of({name:`Web IDL`,extensions:[`webidl`],load(){return g(()=>import(`./D5jiJvOU.js`).then(e=>$(e.webIDL)),[],import.meta.url)}}),S.of({name:`VB.NET`,extensions:[`vb`],load(){return g(()=>import(`./BthdM_4N.js`).then(e=>$(e.vb)),[],import.meta.url)}}),S.of({name:`VBScript`,extensions:[`vbs`],load(){return g(()=>import(`./D9f6rSsU.js`).then(e=>$(e.vbScript)),[],import.meta.url)}}),S.of({name:`Velocity`,extensions:[`vtl`],load(){return g(()=>import(`./CqftRsjg.js`).then(e=>$(e.velocity)),[],import.meta.url)}}),S.of({name:`Verilog`,extensions:[`v`],load(){return g(()=>import(`./CjI9Y6RI.js`).then(e=>$(e.verilog)),[],import.meta.url)}}),S.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return g(()=>import(`./kS471soi.js`).then(e=>$(e.vhdl)),[],import.meta.url)}}),S.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return g(()=>import(`./BKJx4mf9.js`).then(e=>$(e.xQuery)),[],import.meta.url)}}),S.of({name:`Yacas`,extensions:[`ys`],load(){return g(()=>import(`./CXXgtw0p.js`).then(e=>$(e.yacas)),[],import.meta.url)}}),S.of({name:`Z80`,extensions:[`z80`],load(){return g(()=>import(`./Co3PbHdE.js`).then(e=>$(e.z80)),[],import.meta.url)}}),S.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.mscgen)),[],import.meta.url)}}),S.of({name:`Xù`,extensions:[`xu`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.xu)),[],import.meta.url)}}),S.of({name:`MsGenny`,extensions:[`msgenny`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.msgenny)),[],import.meta.url)}}),S.of({name:`Vue`,extensions:[`vue`],load(){return g(()=>import(`./jTXVas70.js`).then(e=>e.vue()),__vite__mapDeps([26,1,3,8,2]),import.meta.url)}}),S.of({name:`Angular Template`,load(){return g(()=>import(`./D4YEq54N.js`).then(e=>e.angular()),__vite__mapDeps([27,1,3,8,2]),import.meta.url)}})],Xu=xe([{tag:x.keyword,class:`tok-k`},{tag:[x.string,x.regexp,x.special(x.string)],class:`tok-s`},{tag:[x.number,x.bool,x.null,x.atom],class:`tok-n`},{tag:[x.typeName,x.className,x.namespace],class:`tok-t`},{tag:x.comment,class:`tok-c`}]),Zu={style:e=>Xu.style(e),scope:e=>e.prop(ae)!==Eu.data};function Qu(e){let t=e.trim().split(/\s/)[0]??``;return t?S.matchLanguageName(Yu,t,!1):null}var $u=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`);function ed(e,t){let n=Qu(t)?.support;if(!n)return null;let r=``,i=C(de.create({doc:e,extensions:[n]}),e.length,500)??n.language.parser.parse(e);return Se(e,i,Zu,(e,t)=>{r+=t?`<span class="${t}">${$u(e)}</span>`:$u(e)},()=>{r+=`
|
|
522
|
+
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(we.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r||t.to-n>e.to){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=Ll(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new Oe(e.parser.nodeSet.types[Q.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(Fl.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function Ll(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var Rl=re({"Blockquote/...":x.quote,HorizontalRule:x.contentSeparator,"ATXHeading1/... SetextHeading1/...":x.heading1,"ATXHeading2/... SetextHeading2/...":x.heading2,"ATXHeading3/...":x.heading3,"ATXHeading4/...":x.heading4,"ATXHeading5/...":x.heading5,"ATXHeading6/...":x.heading6,"Comment CommentBlock":x.comment,Escape:x.escape,Entity:x.character,"Emphasis/...":x.emphasis,"StrongEmphasis/...":x.strong,"Link/... Image/...":x.link,"OrderedList/... BulletList/...":x.list,"BlockQuote/...":x.quote,"InlineCode CodeText":x.monospace,"URL Autolink":x.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":x.processingInstruction,"CodeInfo LinkLabel":x.labelName,LinkTitle:x.string,Paragraph:x.content}),zl=new dl(new ye(hl).extend(Rl),Object.keys(nl).map(e=>nl[e]),Object.keys(nl).map(e=>ol[e]),Object.keys(nl),sl,Lc,Object.keys(Ol).map(e=>Ol[e]),Object.keys(Ol),[]);function Bl(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function Vl(e){let{codeParser:t,htmlParser:n}=e;return{wrap:me((e,r)=>{let i=e.type.id;if(t&&(i==Q.CodeBlock||i==Q.FencedCode)){let n=``;if(i==Q.FencedCode){let t=e.node.getChild(Q.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==Q.CodeText,bracketed:i==Q.FencedCode}}else if(n&&(i==Q.HTMLBlock||i==Q.HTMLTag||i==Q.CommentBlock))return{parser:n,overlay:Bl(e.node,e.from,e.to)};return null})}}var Hl={resolve:`Strikethrough`,mark:`StrikethroughMark`},Ul={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":x.strikethrough}},{name:`StrikethroughMark`,style:x.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=Dl.test(r),c=Dl.test(i);return e.addDelimiter(Hl,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function Wl(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function Gl(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var Kl=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,ql=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&Kl.test(r=t.text.slice(t.pos))){let i=[];Wl(e,n.content,0,i,n.start)==Wl(e,r,0)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];Wl(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},Jl={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":x.heading}},`TableRow`,{name:`TableCell`,style:x.content},{name:`TableDelimiter`,style:x.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return Gl(t.content,0)?new ql:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof ql)||!Gl(t.text,t.basePos))return!1;let r=e.peekLine();return Kl.test(r)&&Wl(e,t.text,t.basePos)==Wl(e,r,t.basePos)},before:`SetextHeading`}]},Yl=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},Xl={defineNodes:[{name:`Task`,block:!0,style:x.list},{name:`TaskMarker`,style:x.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new Yl:null},after:`SetextHeading`}]},Zl=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,Ql=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,$l=/[\w-]+\.[\w-]+($|[/:])/,eu=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tu=/\/[a-zA-Z\d@.]+/gy;function nu(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function ru(e,t){Ql.lastIndex=t;let n=Ql.exec(e);if(!n||$l.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&nu(e,t,r,`)`)>nu(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function iu(e,t){eu.lastIndex=t;let n=eu.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var au=[Jl,Xl,Ul,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;Zl.lastIndex=r;let i=Zl.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=ru(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=iu(e.text,r):(a=iu(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(tu.lastIndex=a,i=tu.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function ou(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),Rc(s))break}return-1}}var su={defineNodes:[{name:`Superscript`,style:x.special(x.content)},{name:`SuperscriptMark`,style:x.processingInstruction}],parseInline:[{name:`Superscript`,parse:ou(94,`Superscript`,`SuperscriptMark`)}]},cu={defineNodes:[{name:`Subscript`,style:x.special(x.content)},{name:`SubscriptMark`,style:x.processingInstruction}],parseInline:[{name:`Subscript`,parse:ou(126,`Subscript`,`SubscriptMark`)}]},lu={defineNodes:[{name:`Emoji`,style:x.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},uu=p({html:()=>mu,htmlCompletionSource:()=>hu}),du=ve.define({id:0,name:`Document`,top:!0}),fu=class extends De{createParse(e,t,n){let r=n[0]?.from??0,i=n[n.length-1]?.to??e.length;return{parsedPos:i,stoppedAt:null,stopAt(){},advance:()=>new Oe(du,[],[],i-r)}}},pu=new be(ge(),new fu,[],`html`);function mu(e){return new Te(pu)}function hu(){return null}var gu=p({commonmarkLanguage:()=>Tu,deleteMarkupBackward:()=>zu,insertNewlineContinueMarkup:()=>Pu,insertNewlineContinueMarkupCommand:()=>Nu,markdown:()=>Hu,markdownKeymap:()=>Bu,markdownLanguage:()=>Eu,pasteURLAsLink:()=>qu}),_u=ge({commentTokens:{block:{open:`<!--`,close:`-->`}}}),vu=new we,yu=zl.configure({props:[_e.add(e=>!e.is(`Block`)||e.is(`Document`)||bu(e)!=null||xu(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),vu.add(bu),pe.add({Document:()=>null}),ae.add({Document:_u})]});function bu(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function xu(e){return e.name==`OrderedList`||e.name==`BulletList`}function Su(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=bu(e.type))!=null&&r<=t)break;n=e}return n.to}var Cu=fe.of((e,t,n)=>{for(let r=b(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(vu);if(e==null)continue;let t=Su(r,e);if(t>n)return{from:n,to:t}}return null});function wu(e){return new be(_u,e,[],`markdown`)}var Tu=wu(yu),Eu=wu(yu.configure([au,cu,su,lu,{props:[_e.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function Du(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):S.matchLanguageName(e,n,!0),t instanceof S)return t.support?t.support.language.parser:Ee.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Ou=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+Au(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function ku(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Ou(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Ou(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Ou(i.parent,s,s+t,a[1],e,n,i))}}return r}function Au(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function ju(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=Au(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function Mu(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(ue)!=` `)return e;let r=Ce(e,4,n),i=``;for(let e=r;e>0;)e>=4?(i+=` `,e-=4):(i+=` `,e--);return i+e.slice(n)}var Nu=(e={})=>({state:t,dispatch:n})=>{let r=b(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Eu.isActiveAt(t,n.from,-1)&&!Eu.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=ku(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&ju(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&ju(e.item,i,r),{range:se.cursor(t+n.length),changes:r}}{let e=Lu(c,t,s);return{range:se.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&ju(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?Ce(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=Mu(p,t),Iu(l.node,t.doc)&&(p=Lu(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:se.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},Pu=Nu();function Fu(e){return e.name==`QuoteMark`||e.name==`ListMark`}function Iu(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Lu(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?Ce(n.text,4,e[t+1].from)-r.length:null,t<i);return Mu(r,t)}function Ru(e,t){let n=e.resolveInner(t,-1),r=t;Fu(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(Fu(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var zu=({state:e,dispatch:t})=>{let n=b(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Eu.isActiveAt(e,t.from)){let t=a.lineAt(i),r=ku(Ru(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:se.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(Ce(t.text,4,n.to)-Ce(t.text,4,n.from));return r==t.from&&(i=Mu(i,e)),{range:se.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:se.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Bu=[{key:`Enter`,run:Pu},{key:`Backspace`,run:zu}],Vu=mu({matchClosingTags:!1});function Hu(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=Tu,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Vu}=e;if(!(i instanceof dl))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,Cu],u;o&&l.push(qu),n instanceof Te?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?Du(t,u):void 0;c.push(Vl({codeParser:d,htmlParser:s.language.parser})),r&&l.push(le.high(ie.of(Bu)));let f=wu(i.configure(c));return a&&l.push(f.data.of({autocomplete:Uu})),new Te(f,l)}function Uu(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=b(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:Gu(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var Wu=null;function Gu(){if(Wu)return Wu;let e=hu(new ke(de.create({extensions:Vu}),0,!0));return Wu=e?e.options:[]}var Ku=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,qu=oe.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!Eu.isActiveAt(t.state,n.from,1)))return!1;let i=b(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||Ku.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}});function $(e){return new Te(he.define(e))}function Ju(e){return g(()=>import(`./DIGvaVgJ.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1,2,3]),import.meta.url)}var Yu=[S.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return g(()=>import(`./C6Btt2Xs.js`).then(e=>e.cpp()),__vite__mapDeps([4,1,3]),import.meta.url)}}),S.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return g(()=>import(`./C6Btt2Xs.js`).then(e=>e.cpp()),__vite__mapDeps([4,1,3]),import.meta.url)}}),S.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return Ju(`Cassandra`)}}),S.of({name:`CSS`,extensions:[`css`],load(){return g(()=>import(`./DtbnBenW.js`).then(e=>e.css()),__vite__mapDeps([5,1,3]),import.meta.url)}}),S.of({name:`Go`,extensions:[`go`],load(){return g(()=>import(`./D_aBVMvK.js`).then(e=>e.go()),__vite__mapDeps([6,1,2,3]),import.meta.url)}}),S.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return g(()=>Promise.resolve().then(()=>uu).then(e=>e.html()),void 0,import.meta.url)}}),S.of({name:`Java`,extensions:[`java`],load(){return g(()=>import(`./Bbt0DTmZ.js`).then(e=>e.java()),__vite__mapDeps([7,1,3]),import.meta.url)}}),S.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript()),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return g(()=>import(`./rq7JUohF.js`).then(e=>e.jinja()),__vite__mapDeps([9,1,3]),import.meta.url)}}),S.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return g(()=>import(`./CDAjAYjS.js`).then(e=>e.json()),__vite__mapDeps([10,1,3]),import.meta.url)}}),S.of({name:`JSX`,extensions:[`jsx`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`LESS`,extensions:[`less`],load(){return g(()=>import(`./_rHYGvON.js`).then(e=>e.less()),__vite__mapDeps([11,1,3,5]),import.meta.url)}}),S.of({name:`Liquid`,extensions:[`liquid`],load(){return g(()=>import(`./94XMxKlw.js`).then(e=>e.liquid()),__vite__mapDeps([12,1,3]),import.meta.url)}}),S.of({name:`MariaDB SQL`,load(){return Ju(`MariaSQL`)}}),S.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return g(()=>Promise.resolve().then(()=>gu).then(e=>e.markdown()),void 0,import.meta.url)}}),S.of({name:`MS SQL`,load(){return Ju(`MSSQL`)}}),S.of({name:`MySQL`,load(){return Ju(`MySQL`)}}),S.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return g(()=>import(`./BBHd0LvJ.js`).then(e=>e.php()),__vite__mapDeps([13,1,3]),import.meta.url)}}),S.of({name:`PLSQL`,extensions:[`pls`],load(){return Ju(`PLSQL`)}}),S.of({name:`PostgreSQL`,load(){return Ju(`PostgreSQL`)}}),S.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return g(()=>import(`./Bffqt7tx.js`).then(e=>e.python()),__vite__mapDeps([14,1,2,3]),import.meta.url)}}),S.of({name:`Rust`,extensions:[`rs`],load(){return g(()=>import(`./BWonG38x.js`).then(e=>e.rust()),__vite__mapDeps([15,1,3]),import.meta.url)}}),S.of({name:`Sass`,extensions:[`sass`],load(){return g(()=>import(`./BEHa2uNW.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([16,1,3,5]),import.meta.url)}}),S.of({name:`SCSS`,extensions:[`scss`],load(){return g(()=>import(`./BEHa2uNW.js`).then(e=>e.sass()),__vite__mapDeps([16,1,3,5]),import.meta.url)}}),S.of({name:`SQL`,extensions:[`sql`],load(){return Ju(`StandardSQL`)}}),S.of({name:`SQLite`,load(){return Ju(`SQLite`)}}),S.of({name:`TSX`,extensions:[`tsx`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({jsx:!0,typescript:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return g(()=>import(`./K_3X9lyC.js`).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,1,2,3]),import.meta.url)}}),S.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return g(()=>import(`./BPW39P52.js`).then(e=>e.wast()),__vite__mapDeps([17,1,3]),import.meta.url)}}),S.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return g(()=>import(`./Ds8Pkiic.js`).then(e=>e.xml()),__vite__mapDeps([18,1,3]),import.meta.url)}}),S.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return g(()=>import(`./CPF5uNy5.js`).then(e=>e.yaml()),__vite__mapDeps([19,1,3]),import.meta.url)}}),S.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return g(()=>import(`./gfMMiTNf.js`).then(e=>$(e.apl)),[],import.meta.url)}}),S.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return g(()=>import(`./C_eisQCp.js`).then(e=>$(e.asciiArmor)),[],import.meta.url)}}),S.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return g(()=>import(`./DCl_8MCW.js`).then(e=>$(e.asn1({}))),[],import.meta.url)}}),S.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return g(()=>import(`./BEn0Cwpx.js`).then(e=>$(e.asterisk)),[],import.meta.url)}}),S.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return g(()=>import(`./D5EjA2JK.js`).then(e=>$(e.brainfuck)),[],import.meta.url)}}),S.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return g(()=>import(`./DHLQUbN7.js`).then(e=>$(e.cobol)),[],import.meta.url)}}),S.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.csharp)),[],import.meta.url)}}),S.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`ClojureScript`,extensions:[`cljs`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return g(()=>import(`./CnaYoQib.js`).then(e=>$(e.gss)),[],import.meta.url)}}),S.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return g(()=>import(`./84nbDH0I.js`).then(e=>$(e.cmake)),[],import.meta.url)}}),S.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return g(()=>import(`./De_zI4J0.js`).then(e=>$(e.coffeeScript)),[],import.meta.url)}}),S.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return g(()=>import(`./DgAKBe0r.js`).then(e=>$(e.commonLisp)),[],import.meta.url)}}),S.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return g(()=>import(`./p9eYesGn.js`).then(e=>$(e.cypher)),[],import.meta.url)}}),S.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return g(()=>import(`./B_1Jd8HM.js`).then(e=>$(e.cython)),[],import.meta.url)}}),S.of({name:`Crystal`,extensions:[`cr`],load(){return g(()=>import(`./Bsdphhtm.js`).then(e=>$(e.crystal)),[],import.meta.url)}}),S.of({name:`D`,extensions:[`d`],load(){return g(()=>import(`./DWkQyNnU.js`).then(e=>$(e.d)),[],import.meta.url)}}),S.of({name:`Dart`,extensions:[`dart`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.dart)),[],import.meta.url)}}),S.of({name:`diff`,extensions:[`diff`,`patch`],load(){return g(()=>import(`./ChtP43wD.js`).then(e=>$(e.diff)),[],import.meta.url)}}),S.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return g(()=>import(`./DLa7NjNO.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([20,21]),import.meta.url)}}),S.of({name:`DTD`,extensions:[`dtd`],load(){return g(()=>import(`./DTF72YNO.js`).then(e=>$(e.dtd)),[],import.meta.url)}}),S.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return g(()=>import(`./S7ucR4pR.js`).then(e=>$(e.dylan)),[],import.meta.url)}}),S.of({name:`EBNF`,load(){return g(()=>import(`./D4c0_ac3.js`).then(e=>$(e.ebnf)),[],import.meta.url)}}),S.of({name:`ECL`,extensions:[`ecl`],load(){return g(()=>import(`./BVIeWmwY.js`).then(e=>$(e.ecl)),[],import.meta.url)}}),S.of({name:`edn`,extensions:[`edn`],load(){return g(()=>import(`./BflJGmDX.js`).then(e=>$(e.clojure)),[],import.meta.url)}}),S.of({name:`Eiffel`,extensions:[`e`],load(){return g(()=>import(`./BEjRio4Q.js`).then(e=>$(e.eiffel)),[],import.meta.url)}}),S.of({name:`Elm`,extensions:[`elm`],load(){return g(()=>import(`./Cshzl8qu.js`).then(e=>$(e.elm)),[],import.meta.url)}}),S.of({name:`Erlang`,extensions:[`erl`],load(){return g(()=>import(`./BV0c4Hdn.js`).then(e=>$(e.erlang)),[],import.meta.url)}}),S.of({name:`Esper`,load(){return g(()=>import(`./DuQMFDvy.js`).then(e=>$(e.esper)),[],import.meta.url)}}),S.of({name:`Factor`,extensions:[`factor`],load(){return g(()=>import(`./CygcOYNo.js`).then(e=>$(e.factor)),__vite__mapDeps([22,21]),import.meta.url)}}),S.of({name:`FCL`,load(){return g(()=>import(`./ClOhbFR7.js`).then(e=>$(e.fcl)),[],import.meta.url)}}),S.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return g(()=>import(`./D6RzAl64.js`).then(e=>$(e.forth)),[],import.meta.url)}}),S.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return g(()=>import(`./Bt6PBEDR.js`).then(e=>$(e.fortran)),[],import.meta.url)}}),S.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.fSharp)),[],import.meta.url)}}),S.of({name:`Gas`,extensions:[`s`],load(){return g(()=>import(`./BHEdbvp9.js`).then(e=>$(e.gas)),[],import.meta.url)}}),S.of({name:`Gherkin`,extensions:[`feature`],load(){return g(()=>import(`./oBAE_ms0.js`).then(e=>$(e.gherkin)),[],import.meta.url)}}),S.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return g(()=>import(`./CUpZ7dEl.js`).then(e=>$(e.groovy)),[],import.meta.url)}}),S.of({name:`Haskell`,extensions:[`hs`],load(){return g(()=>import(`./BRsoo5mP.js`).then(e=>$(e.haskell)),[],import.meta.url)}}),S.of({name:`Haxe`,extensions:[`hx`],load(){return g(()=>import(`./DjVOVvNP.js`).then(e=>$(e.haxe)),[],import.meta.url)}}),S.of({name:`HXML`,extensions:[`hxml`],load(){return g(()=>import(`./DjVOVvNP.js`).then(e=>$(e.hxml)),[],import.meta.url)}}),S.of({name:`HTTP`,load(){return g(()=>import(`./CLVgA2GD.js`).then(e=>$(e.http)),[],import.meta.url)}}),S.of({name:`IDL`,extensions:[`pro`],load(){return g(()=>import(`./BUZw3wgd.js`).then(e=>$(e.idl)),[],import.meta.url)}}),S.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return g(()=>import(`./Bu8mWwtz.js`).then(e=>$(e.jsonld)),[],import.meta.url)}}),S.of({name:`Julia`,extensions:[`jl`],load(){return g(()=>import(`./CQfgDRfP.js`).then(e=>$(e.julia)),[],import.meta.url)}}),S.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.kotlin)),[],import.meta.url)}}),S.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return g(()=>import(`./BXxG0Yva.js`).then(e=>$(e.liveScript)),[],import.meta.url)}}),S.of({name:`Lua`,extensions:[`lua`],load(){return g(()=>import(`./DPCEkfD_.js`).then(e=>$(e.lua)),[],import.meta.url)}}),S.of({name:`mIRC`,extensions:[`mrc`],load(){return g(()=>import(`./C9zpzAZU.js`).then(e=>$(e.mirc)),[],import.meta.url)}}),S.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return g(()=>import(`./u8YMmbU0.js`).then(e=>$(e.mathematica)),[],import.meta.url)}}),S.of({name:`Modelica`,extensions:[`mo`],load(){return g(()=>import(`./CqHI_q-D.js`).then(e=>$(e.modelica)),[],import.meta.url)}}),S.of({name:`MUMPS`,extensions:[`mps`],load(){return g(()=>import(`./BSzj6Xyz.js`).then(e=>$(e.mumps)),[],import.meta.url)}}),S.of({name:`Mbox`,extensions:[`mbox`],load(){return g(()=>import(`./BEMVcqjs.js`).then(e=>$(e.mbox)),[],import.meta.url)}}),S.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return g(()=>import(`./8H7HVH4w.js`).then(e=>$(e.nginx)),[],import.meta.url)}}),S.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return g(()=>import(`./GwMd3KmG.js`).then(e=>$(e.nsis)),__vite__mapDeps([23,21]),import.meta.url)}}),S.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return g(()=>import(`./CzMBulkp.js`).then(e=>$(e.ntriples)),[],import.meta.url)}}),S.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.objectiveC)),[],import.meta.url)}}),S.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[],import.meta.url)}}),S.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.oCaml)),[],import.meta.url)}}),S.of({name:`Octave`,extensions:[`m`],load(){return g(()=>import(`./D2Q8cUp1.js`).then(e=>$(e.octave)),[],import.meta.url)}}),S.of({name:`Oz`,extensions:[`oz`],load(){return g(()=>import(`./BwTct_5T.js`).then(e=>$(e.oz)),[],import.meta.url)}}),S.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return g(()=>import(`./Dp_KdFgX.js`).then(e=>$(e.pascal)),[],import.meta.url)}}),S.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return g(()=>import(`./BkSkiI9m.js`).then(e=>$(e.perl)),[],import.meta.url)}}),S.of({name:`Pig`,extensions:[`pig`],load(){return g(()=>import(`./AF4Hwhju.js`).then(e=>$(e.pig)),[],import.meta.url)}}),S.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return g(()=>import(`./D8WpQPaX.js`).then(e=>$(e.powerShell)),[],import.meta.url)}}),S.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return g(()=>import(`./C357ku5U.js`).then(e=>$(e.properties)),[],import.meta.url)}}),S.of({name:`ProtoBuf`,extensions:[`proto`],load(){return g(()=>import(`./D1ij_kNL.js`).then(e=>$(e.protobuf)),[],import.meta.url)}}),S.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return g(()=>import(`./Cp5ooBfH.js`).then(e=>$(e.pug)),__vite__mapDeps([24,25]),import.meta.url)}}),S.of({name:`Puppet`,extensions:[`pp`],load(){return g(()=>import(`./BZyAS7I4.js`).then(e=>$(e.puppet)),[],import.meta.url)}}),S.of({name:`Q`,extensions:[`q`],load(){return g(()=>import(`./B9NhS7L_.js`).then(e=>$(e.q)),[],import.meta.url)}}),S.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return g(()=>import(`./CxDmU1I4.js`).then(e=>$(e.r)),[],import.meta.url)}}),S.of({name:`RPM Changes`,load(){return g(()=>import(`./gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[],import.meta.url)}}),S.of({name:`RPM Spec`,extensions:[`spec`],load(){return g(()=>import(`./gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[],import.meta.url)}}),S.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return g(()=>import(`./ChfNwlCY.js`).then(e=>$(e.ruby)),[],import.meta.url)}}),S.of({name:`SAS`,extensions:[`sas`],load(){return g(()=>import(`./C2OyD2Y6.js`).then(e=>$(e.sas)),[],import.meta.url)}}),S.of({name:`Scala`,extensions:[`scala`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.scala)),[],import.meta.url)}}),S.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return g(()=>import(`./D9qYN0V5.js`).then(e=>$(e.scheme)),[],import.meta.url)}}),S.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return g(()=>import(`./DwuoZtxw.js`).then(e=>$(e.shell)),[],import.meta.url)}}),S.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return g(()=>import(`./tLWDfEkZ.js`).then(e=>$(e.sieve)),[],import.meta.url)}}),S.of({name:`Smalltalk`,extensions:[`st`],load(){return g(()=>import(`./BLp5-jwC.js`).then(e=>$(e.smalltalk)),[],import.meta.url)}}),S.of({name:`Solr`,load(){return g(()=>import(`./B78wSQJQ.js`).then(e=>$(e.solr)),[],import.meta.url)}}),S.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return g(()=>import(`./B45xgp2S.js`).then(e=>$(e.sml)),[],import.meta.url)}}),S.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return g(()=>import(`./Dz-mlCAC.js`).then(e=>$(e.sparql)),[],import.meta.url)}}),S.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return g(()=>import(`./CTIncYxj.js`).then(e=>$(e.spreadsheet)),[],import.meta.url)}}),S.of({name:`Squirrel`,extensions:[`nut`],load(){return g(()=>import(`./xvONpD0Z.js`).then(e=>$(e.squirrel)),[],import.meta.url)}}),S.of({name:`Stylus`,extensions:[`styl`],load(){return g(()=>import(`./BOVgKnng.js`).then(e=>$(e.stylus)),[],import.meta.url)}}),S.of({name:`Swift`,extensions:[`swift`],load(){return g(()=>import(`./DKB6_1j6.js`).then(e=>$(e.swift)),[],import.meta.url)}}),S.of({name:`sTeX`,load(){return g(()=>import(`./DNzd62Q_.js`).then(e=>$(e.stex)),[],import.meta.url)}}),S.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return g(()=>import(`./DNzd62Q_.js`).then(e=>$(e.stex)),[],import.meta.url)}}),S.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return g(()=>import(`./CjI9Y6RI.js`).then(e=>$(e.verilog)),[],import.meta.url)}}),S.of({name:`Tcl`,extensions:[`tcl`],load(){return g(()=>import(`./BGfruO1u.js`).then(e=>$(e.tcl)),[],import.meta.url)}}),S.of({name:`Textile`,extensions:[`textile`],load(){return g(()=>import(`./C4jVoHG1.js`).then(e=>$(e.textile)),[],import.meta.url)}}),S.of({name:`TiddlyWiki`,load(){return g(()=>import(`./VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[],import.meta.url)}}),S.of({name:`Tiki wiki`,load(){return g(()=>import(`./DTszW0OQ.js`).then(e=>$(e.tiki)),[],import.meta.url)}}),S.of({name:`TOML`,extensions:[`toml`],load(){return g(()=>import(`./BPTmHmyx.js`).then(e=>$(e.toml)),[],import.meta.url)}}),S.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return g(()=>import(`./C2dAgh7P.js`).then(e=>$(e.troff)),[],import.meta.url)}}),S.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return g(()=>import(`./PPSTk1ow.js`).then(e=>$(e.ttcn)),[],import.meta.url)}}),S.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return g(()=>import(`./2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[],import.meta.url)}}),S.of({name:`Turtle`,extensions:[`ttl`],load(){return g(()=>import(`./Cx3rYX2g.js`).then(e=>$(e.turtle)),[],import.meta.url)}}),S.of({name:`Web IDL`,extensions:[`webidl`],load(){return g(()=>import(`./D5jiJvOU.js`).then(e=>$(e.webIDL)),[],import.meta.url)}}),S.of({name:`VB.NET`,extensions:[`vb`],load(){return g(()=>import(`./BthdM_4N.js`).then(e=>$(e.vb)),[],import.meta.url)}}),S.of({name:`VBScript`,extensions:[`vbs`],load(){return g(()=>import(`./D9f6rSsU.js`).then(e=>$(e.vbScript)),[],import.meta.url)}}),S.of({name:`Velocity`,extensions:[`vtl`],load(){return g(()=>import(`./CqftRsjg.js`).then(e=>$(e.velocity)),[],import.meta.url)}}),S.of({name:`Verilog`,extensions:[`v`],load(){return g(()=>import(`./CjI9Y6RI.js`).then(e=>$(e.verilog)),[],import.meta.url)}}),S.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return g(()=>import(`./kS471soi.js`).then(e=>$(e.vhdl)),[],import.meta.url)}}),S.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return g(()=>import(`./BKJx4mf9.js`).then(e=>$(e.xQuery)),[],import.meta.url)}}),S.of({name:`Yacas`,extensions:[`ys`],load(){return g(()=>import(`./CXXgtw0p.js`).then(e=>$(e.yacas)),[],import.meta.url)}}),S.of({name:`Z80`,extensions:[`z80`],load(){return g(()=>import(`./Co3PbHdE.js`).then(e=>$(e.z80)),[],import.meta.url)}}),S.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.mscgen)),[],import.meta.url)}}),S.of({name:`Xù`,extensions:[`xu`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.xu)),[],import.meta.url)}}),S.of({name:`MsGenny`,extensions:[`msgenny`],load(){return g(()=>import(`./qgSLujhx.js`).then(e=>$(e.msgenny)),[],import.meta.url)}}),S.of({name:`Vue`,extensions:[`vue`],load(){return g(()=>import(`./DT2w6KyY.js`).then(e=>e.vue()),__vite__mapDeps([26,1,3,8,2]),import.meta.url)}}),S.of({name:`Angular Template`,load(){return g(()=>import(`./CmExTt6_.js`).then(e=>e.angular()),__vite__mapDeps([27,1,3,8,2]),import.meta.url)}})],Xu=xe([{tag:x.keyword,class:`tok-k`},{tag:[x.string,x.regexp,x.special(x.string)],class:`tok-s`},{tag:[x.number,x.bool,x.null,x.atom],class:`tok-n`},{tag:[x.typeName,x.className,x.namespace],class:`tok-t`},{tag:x.comment,class:`tok-c`}]),Zu={style:e=>Xu.style(e),scope:e=>e.prop(ae)!==Eu.data};function Qu(e){let t=e.trim().split(/\s/)[0]??``;return t?S.matchLanguageName(Yu,t,!1):null}var $u=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`);function ed(e,t){let n=Qu(t)?.support;if(!n)return null;let r=``,i=C(de.create({doc:e,extensions:[n]}),e.length,500)??n.language.parser.parse(e);return Se(e,i,Zu,(e,t)=>{r+=t?`<span class="${t}">${$u(e)}</span>`:$u(e)},()=>{r+=`
|
|
523
523
|
`}),r}async function td(e,t){let n=Qu(t);if(!n)return null;try{await n.load()}catch{return null}return ed(e,t)}function nd(e,t){let n=()=>{for(let t of e.querySelectorAll(`pre > code[class*='language-']:not([data-coloured])`)){let e=/language-(\S+)/.exec(t.className)?.[1]??``,n=t.textContent??``;t.dataset.coloured=``,td(n,e).then(e=>{e!==null&&t.textContent===n&&(t.innerHTML=e)})}};return n(),{update:n}}var rd=new v({html:!1,linkify:!0,typographer:!0}).use(D.default,{engine:es,delimiters:[`dollars`,`brackets`],katexOptions:{throwOnError:!1}});rd.renderer.rules.table_open=()=>`<div class="table-wrap"><table>`,rd.renderer.rules.table_close=()=>`</table></div>`;var id=rd.utils.escapeHtml;rd.renderer.rules.fence=(e,t)=>{let n=e[t],r=n.info.trim().split(/\s/)[0]??``;if(r.toLowerCase()===`mermaid`)return`<div class="diagram"><pre><code>${id(n.content)}</code></pre></div>\n`;let i=(r?ed(n.content.replace(/\n$/,``),r):null)??id(n.content.replace(/\n$/,``)),a=r?`<span class="code-lang">${id(r)}</span>`:``;return`<div class="code-block"><pre><code${r?` class="language-${id(r)}"`:``}>${i}</code></pre>${a}</div>\n`};var ad=rd.renderer.rules.link_open??((e,t,n,r,i)=>i.renderToken(e,t,n));rd.renderer.rules.link_open=(e,t,n,r,i)=>{let a=e[t],o=a.attrGet(`href`)??``,s=/^https?:/i.test(o),c=ee(a.attrGet(`title`));return a.attrSet(`class`,`vein ${s?`web`:c===`requires`?`requires`:c===`see also`?`also`:`uses`}`),s?(a.attrSet(`target`,`_blank`),a.attrSet(`rel`,`noopener`)):o.startsWith(`/`)&&/\.md(#.*)?$/.test(o)&&a.attrSet(`href`,`#/n`+o.replace(/\.md(#.*)?$/,``)),ad(e,t,n,r,i)};function od(e){return Mc.sanitize(rd.render(e||``),{ADD_ATTR:[`target`]})}var sd=null,cd=()=>sd??=g(()=>import(`./-2Meesge.js`).then(e=>e.t),__vite__mapDeps([28,29,30]),import.meta.url);function ld(e,t){let n=es.renderToString(e,{throwOnError:!1,output:`html`}),r=document.createElement(`span`);r.style.cssText=`position:absolute;visibility:hidden;left:-9999px;top:0;white-space:nowrap;font-size:${t}px`,r.innerHTML=n,document.body.append(r);let{width:i,height:a}=r.getBoundingClientRect();return r.remove(),i?{html:n,width:Math.ceil(i),height:Math.ceil(a)}:null}function ud(e){return Mc.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0,html:!0},ADD_TAGS:[`foreignObject`],HTML_INTEGRATION_POINTS:{"annotation-xml":!0,foreignobject:!0},RETURN_DOM_FRAGMENT:!0})}var dd={links:!1,images:!1,autoDirection:!0,zoom:!1,math:ld,sanitize:ud,fontSize:12};async function fd(e,t,n){return(await cd()).mountAsync(e,t,n?{...dd,onError:n}:dd)}async function pd(e,t){let n=await cd();await n.load(n.detectType(t)),e.update(t)}function md(e,t){let n=()=>{for(let t of e.querySelectorAll(`div.diagram:not([data-drawn])`))t.dataset.drawn=``,fd(t,t.textContent??``)};return n(),{update:n}}var hd=`<svg viewBox="0 0 16 16" aria-hidden="true"><rect x="5.5" y="5.5" width="8" height="8"/><path d="M10.5 3.5v-1h-8v8h1"/></svg>`,gd=`<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8.5l3 3 7-7"/></svg>`;function _d(e){for(let t of e.querySelectorAll(`.code-block:not(:has(> .code-copy))`)){let e=document.createElement(`button`);e.type=`button`,e.className=`code-copy`,e.title=`Copy the code`,e.setAttribute(`aria-label`,`Copy the code`),e.innerHTML=hd,e.addEventListener(`click`,()=>{let n=t.querySelector(`code`)?.textContent??``;navigator.clipboard?.writeText(n).then(()=>{e.classList.add(`done`),e.innerHTML=gd,setTimeout(()=>{e.classList.remove(`done`),e.innerHTML=hd},1500)},()=>void 0)}),t.insertBefore(e,t.querySelector(`.code-lang`))}}var vd=e=>typeof e==`object`&&!!e&&`copy`in e&&!!e.copy;function yd(e,t){let n=t=>{nd(e),md(e),vd(t)&&_d(e)};return n(t),{update:e=>n(e)}}var bd=r(`<svg class="logo drawing svelte-1dt0rua" viewBox="-0.4 -6.5 32.4 7"><path pathLength="1" d="M2 0L2 -2L0 -4M2 -2L2 -4L4 -6M5.6 0L6.6 0L7.6 -1L5.6 -3L6.6 -4L7.6 -4M11.2 0L13.2 -2L11.2 -4L9.2 -2ZM14.8 0L14.8 -2L15.8 -3L16.8 -4M14.8 -2L14.8 -4M20.4 0L20.4 -2L18.4 -4M20.4 -2L20.4 -4L22.4 -6M26 0L25 -1L25 -4L24 -4M25 -4L26 -4M25 -4L25 -5M30.6 0L29.6 0L27.6 -2L29.6 -4L31.6 -2L27.6 -2" class="svelte-1dt0rua"></path></svg>`);function xd(e,n){let r=c(n,`width`,3,26),a=c(n,`label`,3,``);var o=bd();i(()=>{l(o,`width`,r()),l(o,`height`,r()*7/32.4),l(o,`role`,a()?`img`:void 0),l(o,`aria-label`,a()||void 0),l(o,`aria-hidden`,a()?void 0:`true`)}),t(e,o)}export{je as C,Re as S,He as _,od as a,Fe as b,Hu as c,es as d,T as f,Ke as g,qe as h,pd as i,Eu as l,Je as m,yd as n,Zu as o,Xe as p,fd as r,Yu as s,xd as t,mu as u,Be as v,Le as x,ze as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Iqr2CudW.js";import{i as e}from"./
|
|
1
|
+
import"./Iqr2CudW.js";import{i as e}from"./9TpKhtgt.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./
|
|
1
|
+
import{u as e}from"./DMzXaGgk.js";import{A as t,M as n,bt as r,o as i,r as a}from"./BxTFtVqu.js";import{i as o,r as s}from"./Cq5C893B.js";import{javascriptLanguage as c}from"./K_3X9lyC.js";var l=s.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:`!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso`,nodeNames:`⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity`,maxTerm:36,nodeProps:[[`isolate`,-3,3,13,17,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new o(`b~RP#q#rU~XP#q#r[~aOT~~`,17,4),new o("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new o(`[~RPwxU~ZOp~~`,11,15),new o(`[~RPrsU~ZOn~~`,11,14),new o("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new o("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),u=c.parser.configure({top:`SingleExpression`}),d=l.configure({props:[t({Text:n.content,Is:n.definitionOperator,AttributeName:n.attributeName,VueAttributeName:n.keyword,Identifier:n.variableName,"AttributeValue ScriptAttributeValue":n.attributeValue,Entity:n.character,"{{ }}":n.brace,"@ :":n.punctuation})]}),f={parser:u},p=d.configure({wrap:r((e,t)=>e.name==`InterpolationContent`?f:null)}),m=d.configure({wrap:r((e,t)=>e.name==`AttributeScript`?f:null),top:`Attribute`}),h={parser:p},g={parser:m},_=e();function v(e){return e.configure({dialect:`selfClosing`,wrap:r(b)},`vue`)}var y=v(_.language);function b(e,t){switch(e.name){case`Attribute`:return/^(@|:|v-)/.test(t.read(e.from,e.from+2))?g:null;case`Text`:return h}return null}function x(e={}){let t=_;if(e.base){if(e.base.language.name!=`html`||!(e.base.language instanceof a))throw RangeError(`The base option must be the result of calling html(...)`);t=e.base}return new i(t.language==_.language?y:v(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:[`{`,`"`]}})])}export{x as vue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./DsQj0LyB.js";import{A as t,D as n,F as r,J as i,M as a,b as o,bt as s,f as c,g as l,o as u,r as d}from"./BxTFtVqu.js";import{i as f,n as p,r as m}from"./Cq5C893B.js";var h=1,g=2,_=3,v=155,y=4,b=156;function x(e){return e>=65&&e<=90||e>=97&&e<=122}var S=new p(e=>{let t=e.pos;for(;;){let{next:n}=e;if(n<0)break;if(n==123){let n=e.peek(1);if(n==123){if(e.pos>t)break;e.acceptToken(h,2);return}if(n==35){if(e.pos>t)break;e.acceptToken(g,2);return}if(n==37){if(e.pos>t)break;let n=2,r=2;for(;;){let t=e.peek(n);if(t==32||t==10)++n;else if(t==35)for(++n;;){let t=e.peek(n);if(t<0||t==10)break;n++}else if(t==45&&r==2)r=++n;else{e.acceptToken(_,r);return}}}}if(e.advance(),n==10)break}e.pos>t&&e.acceptToken(v)});function C(e,t,n){return new p(r=>{let i=r.pos;for(;;){let{next:t}=r;if(t==123&&r.peek(1)==37){let t=2;for(;;t++){let e=r.peek(t);if(e!=32&&e!=10)break}let a=``;for(;;t++){let e=r.peek(t);if(!x(e))break;a+=String.fromCharCode(e)}if(a==e){if(r.pos>i)break;r.acceptToken(n,2);break}}else if(t<0)break;if(r.advance(),t==10)break}r.pos>i&&r.acceptToken(t)})}var w=C(`endraw`,b,y),T={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},E={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},D=m.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO!yOPO'#DnO#XOQO'#DuO#^OPO'#D{O#lOPO'#ESO#zOPO'#E[O$YOPO'#EaO$hOPO'#EfO$vOPO'#EkO%UOPO'#ErO%dOPO'#EwOOOP'#F|'#F|O%rQWO'#E|O&sO#tO'#F]OOOP'#Fq'#FqOOOP'#F_'#F_QVOPOOOOOP-E9^-E9^OOQO'#Ce'#CeO'sQSO,59OO'zQSO'#DWO(RQSO'#DXO(YQ`O'#DZOOQO'#Fr'#FrOvQSO'#CuO(aOPO'#CbOOOP'#Fd'#FdO!kOPO,59}OOOP,59},59}O(oOPO,59}O(}QWO'#E|OOOP,5:Y,5:YO)[OPO,5:YO!yOPO,5:YO)jQWO'#E|OOOQ'#Ff'#FfO)tOQO'#DxO)|OQO,5:aOOOP,5:g,5:gO#^OPO,5:gO*RQWO'#E|OOOP,5:n,5:nO#lOPO,5:nO*YQWO'#E|OOOP,5:v,5:vO#zOPO,5:vO*aQWO'#E|OOOP,5:{,5:{O$YOPO,5:{O*hQWO'#E|OOOP,5;Q,5;QO$hOPO,5;QO*oQWO'#E|OOOP,5;V,5;VO*vOPO,5;VO$vOPO,5;VO+UQWO'#E|OOOP,5;^,5;^O%UOPO,5;^O+`QWO'#E|OOOP,5;c,5;cO%dOPO,5;cO+gQWO'#E|O+nQSO,5;hOvQSO,5:OO+uQSO,5:ZO+zQSO,5:bO+uQSO,5:hO+uQSO,5:oO,PQSO,5:wO,XQpO,5:|O+uQSO,5;RO,^QSO,5;WO,fQSO,5;_OvQSO,5;dOvQSO,5;jOvQSO,5;jOvQSO,5;pOOOO'#Fk'#FkO,nO#tO,5;wOOOP-E9]-E9]O,vQ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%SQ%W#]R&n%WQoSR#`oQ%s$YQ&S$dQ&W$gW&w%s&S&W(qR(q(fQxUR#mxS'P%z%{R'p'PQ'u'VR(c'uQ'y'XQ(e'wT(g'y(eQ'}'^R(j'}Q!uaR$m!u!bcOTVWXYZ[]^dqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kTnSoQgRQ#WhQ#YiQ#[jQ#_lQ$U!eQ$W!fQ$i!pQ$j!qQ$k!rQ$l!sQ$p!xS$q!y)gQ$r!zQ$s!{Q$t!|Q$u!}Q$z#RQ${#SQ$|#TQ$}#UQ%O#VQ%]#eQ%l$OQ&h%PQ&k%UQ&l%VQ&y%tQ'U&UQ'V&VQ'X&XQ'a&bQ'e&dQ'f&gQ'g(yQ'i&xQ'm&}Q'r'TQ'w'WS(R(z)zQ(S({Q(T(|Q(U(}Q(W)PQ(X)QQ(Y)RQ(Z)SQ([)TQ(]'hQ(m(QQ(o(`Q(t)WQ(u(pQ(w(rQ(x(vQ)U)ZQ)V)[Q)X)bQ)Y)cQ)])fQ)^)lQ)_)mQ)`)nQ)a)sQ)d*TQ)e*UQ)o)hQ)p)iQ)q)jQ)r)kQ)t)yQ)u*PQ)v*QQ)w*RQ)x*SQ*V){Q*W)|Q*X)}R*Y*OQ$c!lT$y#O)OR$x!}R#XhR#^jR%|$^R$h!o",nodeNames:`⚠ {{ {# {% {% Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}`,maxTerm:173,nodeProps:[[`closedBy`,1,`}}`,2,`#}`,-2,3,4,`%}`,32,`)`],[`openedBy`,7,`{{`,31,`(`,57,`{%`,140,`{#`],[`group`,-18,9,10,13,14,21,22,25,27,38,41,42,43,44,45,49,50,51,52,`Expression`,-11,53,64,71,77,84,92,97,102,107,114,119,`Statement`]],skippedNodes:[0],repeatNodeCount:13,tokenData:".|~RqXY#YYZ#Y]^#Ypq#Yqr#krs#vuv&nwx&{xy)nyz)sz{)x{|*V|}+|}!O,R!O!P,g!P!Q,o!Q![+h![!],w!^!_,|!_!`-U!`!a,|!c!}-^!}#O.U#P#Q.Z#R#S-^#T#o-^#o#p.`#p#q.e#q#r.j#r#s.w%W;'S-^;'S;:j.O<%lO-^~#_S$d~XY#YYZ#Y]^#Ypq#Y~#nP!_!`#q~#vOb~~#yWOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~$hOe~~$kYOY#vYZ#vZr#vrs%Zs#O#v#O#P$h#P;'S#v;'S;=`&O;=`<%l#v<%lO#v~%`We~OY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~%{P;=`<%l#v~&RXOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x;=`<%l#v<%lO#v~&sP`~#q#r&v~&{O!Z~~'OWOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~'kYOY&{YZ&{Zw&{wx(Zx#O&{#O#P'h#P;'S&{;'S;=`)O;=`<%l&{<%lO&{~(`We~OY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~({P;=`<%l&{~)RXOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x;=`<%l&{<%lO&{~)sOp~~)xOo~~)}P`~z{*Q~*VO`~~*[Qa~!O!P*b!Q![+h~*eP!Q![*h~*mSf~!Q![*h!g!h*y#R#S*h#X#Y*y~*|R{|+V}!O+V!Q![+]~+YP!Q![+]~+bQf~!Q![+]#R#S+]~+mTf~!O!P*b!Q![+h!g!h*y#R#S+h#X#Y*y~,ROt~~,WRa~uv,a!O!P*b!Q![+h~,dP#q#r&v~,lPZ~!Q![*h~,tP`~!P!Q*Q~,|O!P~~-RPb~!_!`#q~-ZPs~!_!`#q!`-iVm`[p!XS$gY!Q![-^!c!}-^#R#S-^#T#o-^%W;'S-^;'S;:j.O<%lO-^!`.RP;=`<%l-^~.ZO$i~~.`O$h~~.eO$n~~.jOl~^.oP$m[#q#r.rQ.wOVQ~.|O_~",tokenizers:[S,w,1,2,3,4,5,new f(`b~RPstU~XP#q#r[~aO$Q~~`,17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:e=>T[e]||-1},{term:55,get:e=>E[e]||-1}],tokenPrec:3602});function O(e,t){return e.split(` `).map(e=>({label:e,type:t}))}var k=O(`abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr`,`function`),A=O(`boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace`,`function`),j=O(`loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller`,`keyword`),M=A.concat(j),N=O(`raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends`,`keyword`);function P(e){let{state:t,pos:r}=e,i=n(t).resolveInner(r,-1).enterUnfinishedNodesBefore(r),a=i.childBefore(r)?.name||i.name;if(i.name==`FilterName`)return{type:`filter`,node:i};if(e.explicit&&(a==`FilterOp`||a==`filter`))return{type:`filter`};if(i.name==`TagName`)return{type:`tag`,node:i};if(e.explicit&&a==`{%`)return{type:`tag`};if(i.name==`PropertyName`&&i.parent.name==`MemberExpression`)return{type:`prop`,node:i,target:i.parent};if(i.name==`.`&&i.parent.name==`MemberExpression`)return{type:`prop`,target:i.parent};if(i.name==`MemberExpression`&&a==`.`)return{type:`prop`,target:i};if(i.name==`VariableName`)return{type:`expr`,from:i.from};if(i.name==`Comment`||i.name==`StringLiteral`||i.name==`NumberLiteral`)return null;let o=e.matchBefore(/[\w\u00c0-\uffff]+$/);return o?{type:`expr`,from:o.from}:e.explicit?{type:`expr`}:null}function F(e,t,n,r){let i=[];for(;;){let n=t.getChild(`Expression`);if(!n)return[];if(n.name==`VariableName`){i.unshift(e.sliceDoc(n.from,n.to));break}if(n.name==`MemberExpression`){let r=n.getChild(`PropertyName`);r&&i.unshift(e.sliceDoc(r.from,r.to)),t=n}else return[]}return r(i,e,n)}function I(e={}){let t=e.tags?e.tags.concat(N):N,n=e.variables?e.variables.concat(M):M,{properties:r}=e;return e=>{let i=P(e);if(!i)return null;let a=i.from??(i.node?i.node.from:e.pos),o;return o=i.type==`filter`?k:i.type==`tag`?t:i.type==`expr`?n:r?F(e.state,i.target,e,r):[],o.length?{options:o,from:a,validFor:/^[\w\u00c0-\uffff]*$/}:null}}var L=r.inputHandler.of((e,t,n,r)=>r!=`%`||t!=n||e.state.doc.sliceString(t-1,n+1)!=`{}`?!1:(e.dispatch(e.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:`%%`},range:i.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:`input.type`}),!0));function R(e){return t=>{let n=e.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)}}var z=d.define({name:`jinja`,parser:D.configure({props:[t({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":a.keyword,"required scoped recursive with without context ignore missing":a.modifier,self:a.self,"loop super":a.standard(a.variableName),"if elif else endif for endfor call endcall":a.controlKeyword,"block endblock set endset macro endmacro import from include":a.definitionKeyword,"Comment/...":a.blockComment,VariableName:a.variableName,Definition:a.definition(a.variableName),PropertyName:a.propertyName,FilterName:a.special(a.variableName),ArithOp:a.arithmeticOperator,AssignOp:a.definitionOperator,"not and or":a.logicOperator,CompareOp:a.compareOperator,"in is":a.operatorKeyword,"FilterOp ConcatOp":a.operator,StringLiteral:a.string,NumberLiteral:a.number,BooleanLiteral:a.bool,"{% %} {# #} {{ }} { }":a.brace,"( )":a.paren,".":a.derefOperator,": , .":a.punctuation}),o.add({Tag:c({closing:`%}`}),"IfStatement ForStatement":R(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:R(/^\s*(\{%-?\s*)?end\w/)}),l.add({"Statement Comment"(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`Tag`&&t.name!=`{#`?null:{from:t.to,to:n.name==`EndTag`||n.name==`#}`?n.from:e.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),B=e();function V(e){return z.configure({wrap:s(t=>t.type.isTop?{parser:e.parser,overlay:e=>e.name==`Text`||e.name==`RawText`}:null)},`jinja`)}var H=V(B.language);function U(e={}){let t=e.base||B,n=t.language==B.language?H:V(t.language);return new u(n,[t.support,n.data.of({autocomplete:I(e)}),t.language.data.of({closeBrackets:{brackets:[`{`]}}),L])}export{U as jinja};
|
|
1
|
+
import{u as e}from"./DMzXaGgk.js";import{A as t,D as n,F as r,J as i,M as a,b as o,bt as s,f as c,g as l,o as u,r as d}from"./BxTFtVqu.js";import{i as f,n as p,r as m}from"./Cq5C893B.js";var h=1,g=2,_=3,v=155,y=4,b=156;function x(e){return e>=65&&e<=90||e>=97&&e<=122}var S=new p(e=>{let t=e.pos;for(;;){let{next:n}=e;if(n<0)break;if(n==123){let n=e.peek(1);if(n==123){if(e.pos>t)break;e.acceptToken(h,2);return}if(n==35){if(e.pos>t)break;e.acceptToken(g,2);return}if(n==37){if(e.pos>t)break;let n=2,r=2;for(;;){let t=e.peek(n);if(t==32||t==10)++n;else if(t==35)for(++n;;){let t=e.peek(n);if(t<0||t==10)break;n++}else if(t==45&&r==2)r=++n;else{e.acceptToken(_,r);return}}}}if(e.advance(),n==10)break}e.pos>t&&e.acceptToken(v)});function C(e,t,n){return new p(r=>{let i=r.pos;for(;;){let{next:t}=r;if(t==123&&r.peek(1)==37){let t=2;for(;;t++){let e=r.peek(t);if(e!=32&&e!=10)break}let a=``;for(;;t++){let e=r.peek(t);if(!x(e))break;a+=String.fromCharCode(e)}if(a==e){if(r.pos>i)break;r.acceptToken(n,2);break}}else if(t<0)break;if(r.advance(),t==10)break}r.pos>i&&r.acceptToken(t)})}var w=C(`endraw`,b,y),T={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},E={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},D=m.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO!yOPO'#DnO#XOQO'#DuO#^OPO'#D{O#lOPO'#ESO#zOPO'#E[O$YOPO'#EaO$hOPO'#EfO$vOPO'#EkO%UOPO'#ErO%dOPO'#EwOOOP'#F|'#F|O%rQWO'#E|O&sO#tO'#F]OOOP'#Fq'#FqOOOP'#F_'#F_QVOPOOOOOP-E9^-E9^OOQO'#Ce'#CeO'sQSO,59OO'zQSO'#DWO(RQSO'#DXO(YQ`O'#DZOOQO'#Fr'#FrOvQSO'#CuO(aOPO'#CbOOOP'#Fd'#FdO!kOPO,59}OOOP,59},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QQ(o(`Q(t)WQ(u(pQ(w(rQ(x(vQ)U)ZQ)V)[Q)X)bQ)Y)cQ)])fQ)^)lQ)_)mQ)`)nQ)a)sQ)d*TQ)e*UQ)o)hQ)p)iQ)q)jQ)r)kQ)t)yQ)u*PQ)v*QQ)w*RQ)x*SQ*V){Q*W)|Q*X)}R*Y*OQ$c!lT$y#O)OR$x!}R#XhR#^jR%|$^R$h!o",nodeNames:`⚠ {{ {# {% {% Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}`,maxTerm:173,nodeProps:[[`closedBy`,1,`}}`,2,`#}`,-2,3,4,`%}`,32,`)`],[`openedBy`,7,`{{`,31,`(`,57,`{%`,140,`{#`],[`group`,-18,9,10,13,14,21,22,25,27,38,41,42,43,44,45,49,50,51,52,`Expression`,-11,53,64,71,77,84,92,97,102,107,114,119,`Statement`]],skippedNodes:[0],repeatNodeCount:13,tokenData:".|~RqXY#YYZ#Y]^#Ypq#Yqr#krs#vuv&nwx&{xy)nyz)sz{)x{|*V|}+|}!O,R!O!P,g!P!Q,o!Q![+h![!],w!^!_,|!_!`-U!`!a,|!c!}-^!}#O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XP#q#r[~aO$Q~~`,17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:e=>T[e]||-1},{term:55,get:e=>E[e]||-1}],tokenPrec:3602});function O(e,t){return e.split(` `).map(e=>({label:e,type:t}))}var k=O(`abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr`,`function`),A=O(`boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace`,`function`),j=O(`loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller`,`keyword`),M=A.concat(j),N=O(`raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends`,`keyword`);function P(e){let{state:t,pos:r}=e,i=n(t).resolveInner(r,-1).enterUnfinishedNodesBefore(r),a=i.childBefore(r)?.name||i.name;if(i.name==`FilterName`)return{type:`filter`,node:i};if(e.explicit&&(a==`FilterOp`||a==`filter`))return{type:`filter`};if(i.name==`TagName`)return{type:`tag`,node:i};if(e.explicit&&a==`{%`)return{type:`tag`};if(i.name==`PropertyName`&&i.parent.name==`MemberExpression`)return{type:`prop`,node:i,target:i.parent};if(i.name==`.`&&i.parent.name==`MemberExpression`)return{type:`prop`,target:i.parent};if(i.name==`MemberExpression`&&a==`.`)return{type:`prop`,target:i};if(i.name==`VariableName`)return{type:`expr`,from:i.from};if(i.name==`Comment`||i.name==`StringLiteral`||i.name==`NumberLiteral`)return null;let o=e.matchBefore(/[\w\u00c0-\uffff]+$/);return o?{type:`expr`,from:o.from}:e.explicit?{type:`expr`}:null}function F(e,t,n,r){let i=[];for(;;){let n=t.getChild(`Expression`);if(!n)return[];if(n.name==`VariableName`){i.unshift(e.sliceDoc(n.from,n.to));break}if(n.name==`MemberExpression`){let r=n.getChild(`PropertyName`);r&&i.unshift(e.sliceDoc(r.from,r.to)),t=n}else return[]}return r(i,e,n)}function I(e={}){let t=e.tags?e.tags.concat(N):N,n=e.variables?e.variables.concat(M):M,{properties:r}=e;return e=>{let i=P(e);if(!i)return null;let a=i.from??(i.node?i.node.from:e.pos),o;return o=i.type==`filter`?k:i.type==`tag`?t:i.type==`expr`?n:r?F(e.state,i.target,e,r):[],o.length?{options:o,from:a,validFor:/^[\w\u00c0-\uffff]*$/}:null}}var L=r.inputHandler.of((e,t,n,r)=>r!=`%`||t!=n||e.state.doc.sliceString(t-1,n+1)!=`{}`?!1:(e.dispatch(e.state.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:`%%`},range:i.cursor(e.from+1)})),{scrollIntoView:!0,userEvent:`input.type`}),!0));function R(e){return t=>{let n=e.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)}}var z=d.define({name:`jinja`,parser:D.configure({props:[t({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":a.keyword,"required scoped recursive with without context ignore missing":a.modifier,self:a.self,"loop super":a.standard(a.variableName),"if elif else endif for endfor call endcall":a.controlKeyword,"block endblock set endset macro endmacro import from include":a.definitionKeyword,"Comment/...":a.blockComment,VariableName:a.variableName,Definition:a.definition(a.variableName),PropertyName:a.propertyName,FilterName:a.special(a.variableName),ArithOp:a.arithmeticOperator,AssignOp:a.definitionOperator,"not and or":a.logicOperator,CompareOp:a.compareOperator,"in is":a.operatorKeyword,"FilterOp ConcatOp":a.operator,StringLiteral:a.string,NumberLiteral:a.number,BooleanLiteral:a.bool,"{% %} {# #} {{ }} { }":a.brace,"( )":a.paren,".":a.derefOperator,": , .":a.punctuation}),o.add({Tag:c({closing:`%}`}),"IfStatement ForStatement":R(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:R(/^\s*(\{%-?\s*)?end\w/)}),l.add({"Statement Comment"(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`Tag`&&t.name!=`{#`?null:{from:t.to,to:n.name==`EndTag`||n.name==`#}`?n.from:e.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),B=e();function V(e){return z.configure({wrap:s(t=>t.type.isTop?{parser:e.parser,overlay:e=>e.name==`Text`||e.name==`RawText`}:null)},`jinja`)}var H=V(B.language);function U(e={}){let t=e.base||B,n=t.language==B.language?H:V(t.language);return new u(n,[t.support,n.data.of({autocomplete:I(e)}),t.language.data.of({closeBrackets:{brackets:[`{`]}}),L])}export{U as jinja};
|