CoreFiles by mySites.guru
codemirror-language.min.js5 lines, 37,309 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
0f45c3a5d909907090e2c55126384683
sha1
53161dcdb2a2f3d80c614bf1c54bce193457500d
sha256
291d11481eb4093e0f310d9328eab575bad6eb0c15ddfb39f7394b2b55ec30ae
import{NodeType as U,NodeProp as w,IterMode as ot,Tree as k,TreeFragment as H,Parser as we,NodeSet as at}from"@lezer/common";import{Facet as v,EditorState as B,StateEffect as V,StateField as K,countColumn as ht,RangeSet as Se,combineConfig as ve,RangeSetBuilder as xe,Prec as ft}from"@codemirror/state";import{ViewPlugin as Z,logException as ut,EditorView as x,Decoration as S,WidgetType as Te,gutter as ct,GutterMarker as dt}from"@codemirror/view";import{tags as c,styleTags as pt,tagHighlighter as gt,highlightTree as mt}from"@lezer/highlight";const Q="\u037C",Pe=typeof Symbol>"u"?"__"+Q:Symbol.for(Q),X=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ae{constructor(e,t){this.rules=[];let{finish:r}=t||{};function i(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function s(l,a,o,f){let h=[],u=/^@(\w+)\b/.exec(l[0]),p=u&&u[1]=="keyframes";if(u&&a==null)return o.push(l[0]+";");for(let d in a){let g=a[d];if(/&/.test(d))s(d.split(/,\s*/).map(y=>l.map(M=>y.replace(/&/,M))).reduce((y,M)=>y.concat(M)),g,o);else if(g&&typeof g=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");s(i(d),g,h,p)}else g!=null&&h.push(d.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+g+";")}(h.length||p)&&o.push((r&&!u&&!f?l.map(r):l).join(", ")+" {"+h.join(" ")+"}")}for(let l in e)s(i(l),e[l],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=Ce[Pe]||1;return Ce[Pe]=e+1,Q+e.toString(36)}static mount(e,t,r){let i=e[X],s=r&&r.nonce;i?s&&i.setNonce(s):i=new kt(e,s),i.mount(Array.isArray(t)?t:[t])}}let Ie=new Map;class kt{constructor(e,t){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let s=Ie.get(r);if(s)return e.adoptedStyleSheets=[s.sheet,...e.adoptedStyleSheets],e[X]=s;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Ie.set(r,this)}else{this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let s=e.head||e;s.insertBefore(this.styleTag,s.firstChild)}this.modules=[],e[X]=this}mount(e){let t=this.sheet,r=0,i=0;for(let s=0;s<e.length;s++){let l=e[s],a=this.modules.indexOf(l);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),a==-1){if(this.modules.splice(i++,0,l),t)for(let o=0;o<l.rules.length;o++)t.insertRule(l.rules[o],r++)}else{for(;i<a;)r+=this.modules[i++].rules.length;r+=l.rules.length,i++}}if(!t){let s="";for(let l=0;l<this.modules.length;l++)s+=this.modules[l].getRules()+`
`;this.styleTag.textContent=s}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Y;const C=new w;function ee(n){return v.define({combine:n?e=>e.concat(n):void 0})}const De=new w;class m{constructor(e,t,r=[],i=""){this.data=e,this.name=i,B.prototype.hasOwnProperty("tree")||Object.defineProperty(B.prototype,"tree",{get(){return b(this)}}),this.parser=t,this.extension=[T.of(this),B.languageData.of((s,l,a)=>{let o=Oe(s,l,a),f=o.type.prop(C);if(!f)return[];let h=s.facet(f),u=o.type.prop(De);if(u){let p=o.resolve(l-o.from,a);for(let d of u)if(d.test(p,s)){let g=s.facet(d.facet);return d.type=="replace"?g:g.concat(h)}}return h})].concat(r)}isActiveAt(e,t,r=-1){return Oe(e,t,r).type.prop(C)==this.data}findRegions(e){let t=e.facet(T);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],i=(s,l)=>{if(s.prop(C)==this.data){r.push({from:l,to:l+s.length});return}let a=s.prop(w.mounted);if(a){if(a.tree.prop(C)==this.data){if(a.overlay)for(let o of a.overlay)r.push({from:o.from+l,to:o.to+l});else r.push({from:l,to:l+s.length});return}else if(a.overlay){let o=r.length;if(i(a.tree,a.overlay[0].from+l),r.length>o)return}}for(let o=0;o<s.children.length;o++){let f=s.children[o];f instanceof k&&i(f,s.positions[o]+l)}};return i(b(e),0),r}get allowsNesting(){return!0}}m.setState=V.define();function Oe(n,e,t){let r=n.facet(T),i=b(n).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(e,t,ot.ExcludeBuffers))s.type.isTop&&(i=s);return i}class G extends m{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=ee(e.languageData);return new G(t,e.parser.configure({props:[C.add(r=>r.isTop?t:void 0)]}),e.name)}configure(e,t){return new G(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function b(n){let e=n.field(m.state,!1);return e?e.tree:k.empty}function Ne(n,e,t=50){var r;let i=(r=n.field(m.state,!1))===null||r===void 0?void 0:r.context;if(!i)return null;let s=i.viewport;i.updateViewport({from:0,to:e});let l=i.isDone(e)||i.work(t,e)?i.tree:null;return i.updateViewport(s),l}function bt(n,e=n.doc.length){var t;return((t=n.field(m.state,!1))===null||t===void 0?void 0:t.context.isDone(e))||!1}function yt(n,e=n.viewport.to,t=100){let r=Ne(n.state,e,t);return r!=b(n.state)&&n.dispatch({}),!!r}function wt(n){var e;return((e=n.plugin(Fe))===null||e===void 0?void 0:e.isWorking())||!1}class Me{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let E=null;class I{constructor(e,t,r=[],i,s,l,a,o){this.parser=e,this.state=t,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=l,this.skipped=a,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new I(e,t,[],k.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Me(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=k.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(H.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(H.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=E;E=this;try{return e()}finally{E=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Be(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:i,treeLen:s,viewport:l,skipped:a}=this;if(this.takeTree(),!e.empty){let o=[];if(e.iterChangedRanges((f,h,u,p)=>o.push({fromA:f,toA:h,fromB:u,toB:p})),r=H.applyChanges(r,o),i=k.empty,s=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){a=[];for(let f of this.skipped){let h=e.mapPos(f.from,1),u=e.mapPos(f.to,-1);h<u&&a.push({from:h,to:u})}}}return new I(this.parser,t,r,i,s,l,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<e.to&&s>e.from&&(this.fragments=Be(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends we{createParse(t,r,i){let s=i[0].from,l=i[i.length-1].to;return{parsedPos:s,advance(){let o=E;if(o){for(let f of i)o.tempSkipped.push(f);e&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,e]):e)}return this.parsedPos=l,new k(U.none,[],[],l-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return E}}function Be(n,e,t){return H.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class N{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new N(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=I.create(e.facet(T).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new N(r)}}m.state=K.define({create:N.init,update(n,e){for(let t of e.effects)if(t.is(m.setState))return t.value;return e.startState.facet(T)!=e.state.facet(T)?N.init(e.state):n.apply(e)}});let Ee=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Ee=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const te=typeof navigator<"u"&&(!((Y=navigator.scheduling)===null||Y===void 0)&&Y.isInputPending)?()=>navigator.scheduling.isInputPending():null,Fe=Z.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(m.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(m.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Ee(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,s=r.field(m.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let l=Date.now()+Math.min(this.chunkBudget,100,e&&!te?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<i&&r.doc.length>i+1e3,o=s.context.work(()=>te&&te()||Date.now()>l,i+(a?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:m.setState.of(new N(s.context))})),this.chunkBudget>0&&!(o&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>ut(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),T=v.define({combine(n){return n.length?n[0]:null},enables:n=>[m.state,Fe,x.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class St{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class be{constructor(e,t,r,i,s,l=void 0){this.name=e,this.alias=t,this.extensions=r,this.filename=i,this.loadFunc=s,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new be(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let r=/\.([^.]+)$/.exec(t);if(r){for(let i of e)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(e,t,r=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(s=>s==t))return i;if(r)for(let i of e)for(let s of i.alias){let l=t.indexOf(s);if(l>-1&&(s.length>2||!/\w/.test(t[l-1])&&!/\w/.test(t[l+s.length])))return i}return null}}const ne=v.define(),re=v.define({combine:n=>{if(!n.length)return"  ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function F(n){let e=n.facet(re);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function ie(n,e){let t="",r=n.tabSize,i=n.facet(re)[0];if(i=="	"){for(;e>=r;)t+="	",e-=r;i=" "}for(let s=0;s<e;s++)t+=i;return t}function se(n,e){n instanceof B&&(n=new $(n));for(let r of n.state.facet(ne)){let i=r(n,e);if(i!==void 0)return i}let t=b(n.state);return t.length>=e?xt(n,t,e):null}function vt(n,e,t){let r=Object.create(null),i=new $(n,{overrideIndentation:l=>{var a;return(a=r[l])!==null&&a!==void 0?a:-1}}),s=[];for(let l=e;l<=t;){let a=n.doc.lineAt(l);l=a.to+1;let o=se(i,a.from);if(o==null)continue;/\S/.test(a.text)||(o=0);let f=/^\s*/.exec(a.text)[0],h=ie(n,o);f!=h&&(r[a.from]=o,s.push({from:a.from,to:a.from+f.length,insert:h}))}return n.changes(s)}class ${constructor(e,t={}){this.state=e,this.options=t,this.unit=F(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,t);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,t=1){let{text:r,from:i}=this.lineAt(e,t),s=this.countColumn(r,e-i),l=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return l>-1&&(s+=l-this.countColumn(r,r.search(/\S|$/))),s}countColumn(e,t=e.length){return ht(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let l=s(i);if(l>-1)return l}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Le=new w;function xt(n,e,t){return Re(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,n)}function Tt(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Pt(n){let e=n.type.prop(Le);if(e)return e;let t=n.firstChild,r;if(t&&(r=t.type.prop(w.closedBy))){let i=n.lastChild,s=i&&r.indexOf(i.name)>-1;return l=>je(l,!0,1,void 0,s&&!Tt(l)?i.from:void 0)}return n.parent==null?Ct:null}function Re(n,e,t){for(;n;n=n.parent){let r=Pt(n);if(r)return r(_.create(t,e,n))}return null}function Ct(){return 0}class _ extends ${constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.node=r}static create(e,t,r){return new _(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(At(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?Re(e,this.pos,this.base):0}}function At(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function It(n){let e=n.node,t=e.childAfter(e.from),r=e.lastChild;if(!t)return null;let i=n.options.simulateBreak,s=n.state.doc.lineAt(t.from),l=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=t.to;;){let o=e.childAfter(a);if(!o||o==r)return null;if(!o.type.isSkipped)return o.from<l?t:null;a=o.to}}function Dt({closing:n,align:e=!0,units:t=1}){return r=>je(r,e,t,n)}function je(n,e,t,r,i){let s=n.textAfter,l=s.match(/^\s*/)[0].length,a=r&&s.slice(l,l+r.length)==r||i==n.pos+l,o=e?It(n):null;return o?a?n.column(o.from):n.column(o.to):n.baseIndent+(a?0:n.unit*t)}const Ot=n=>n.baseIndent;function Nt({except:n,units:e=1}={}){return t=>{let r=n&&n.test(t.textAfter);return t.baseIndent+(r?0:e*t.unit)}}const Mt=200;function Bt(){return B.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:r}=n.newSelection.main,i=t.lineAt(r);if(r>i.from+Mt)return n;let s=t.sliceString(i.from,r);if(!e.some(f=>f.test(s)))return n;let{state:l}=n,a=-1,o=[];for(let{head:f}of l.selection.ranges){let h=l.doc.lineAt(f);if(h.from==a)continue;a=h.from;let u=se(l,h.from);if(u==null)continue;let p=/^\s*/.exec(h.text)[0],d=ie(l,u);p!=d&&o.push({from:h.from,to:h.from+p.length,insert:d})}return o.length?[n,{changes:o,sequential:!0}]:n})}const We=v.define(),Ue=new w;function Et(n){let e=n.firstChild,t=n.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?n.to:t.from}:null}function Ft(n,e,t){let r=b(n);if(r.length<t)return null;let i=r.resolveInner(t,1),s=null;for(let l=i;l;l=l.parent){if(l.to<=t||l.from>t)continue;if(s&&l.from<e)break;let a=l.type.prop(Ue);if(a&&(l.to<r.length-50||r.length==n.doc.length||!Lt(l))){let o=a(l,n);o&&o.from<=t&&o.from>=e&&o.to>t&&(s=o)}}return s}function Lt(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function D(n,e,t){for(let r of n.facet(We)){let i=r(n,e,t);if(i)return i}return Ft(n,e,t)}function He(n,e){let t=e.mapPos(n.from,1),r=e.mapPos(n.to,-1);return t>=r?void 0:{from:t,to:r}}const O=V.define({map:He}),A=V.define({map:He});function le(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(r=>r.from<=t&&r.to>=t)||e.push(n.lineBlockAt(t));return e}const P=K.define({create(){return S.none},update(n,e){n=n.map(e.changes);for(let t of e.effects)if(t.is(O)&&!jt(n,t.value.from,t.value.to)){let{preparePlaceholder:r}=e.state.facet(ae),i=r?S.replace({widget:new $t(r(e.state,t.value))}):_e;n=n.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(A)&&(n=n.update({filter:(r,i)=>t.value.from!=r||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:r}=e.selection.main;n.between(r,r,(i,s)=>{i<r&&s>r&&(t=!0)}),t&&(n=n.update({filterFrom:r,filterTo:r,filter:(i,s)=>s<=r||i>=r}))}return n},provide:n=>x.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(r,i)=>{t.push(r,i)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let r=n[t++],i=n[t++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(_e.range(r,i))}return S.set(e,!0)}});function Rt(n){return n.field(P,!1)||Se.empty}function L(n,e,t){var r;let i=null;return(r=n.field(P,!1))===null||r===void 0||r.between(e,t,(s,l)=>{(!i||i.from>s)&&(i={from:s,to:l})}),i}function jt(n,e,t){let r=!1;return n.between(e,e,(i,s)=>{i==e&&s==t&&(r=!0)}),r}function oe(n,e){return n.field(P,!1)?e:e.concat(V.appendConfig.of(he()))}const Ve=n=>{for(let e of le(n)){let t=D(n.state,e.from,e.to);if(t)return n.dispatch({effects:oe(n.state,[O.of(t),q(n,t)])}),!0}return!1},$e=n=>{if(!n.state.field(P,!1))return!1;let e=[];for(let t of le(n)){let r=L(n.state,t.from,t.to);r&&e.push(A.of(r),q(n,r,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function q(n,e,t=!0){let r=n.state.doc.lineAt(e.from).number,i=n.state.doc.lineAt(e.to).number;return x.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${r} ${n.state.phrase("to")} ${i}.`)}const qe=n=>{let{state:e}=n,t=[];for(let r=0;r<e.doc.length;){let i=n.lineBlockAt(r),s=D(e,i.from,i.to);s&&t.push(O.of(s)),r=(s?n.lineBlockAt(s.to):i).to+1}return t.length&&n.dispatch({effects:oe(n.state,t)}),!!t.length},ze=n=>{let e=n.state.field(P,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(r,i)=>{t.push(A.of({from:r,to:i}))}),n.dispatch({effects:t}),!0};function Wt(n,e){for(let t=e;;){let r=D(n.state,t.from,t.to);if(r&&r.to>e.from)return r;if(!t.from)return null;t=n.lineBlockAt(t.from-1)}}const Ut=n=>{let e=[];for(let t of le(n)){let r=L(n.state,t.from,t.to);if(r)e.push(A.of(r),q(n,r,!1));else{let i=Wt(n,t);i&&e.push(O.of(i),q(n,i))}}return e.length>0&&n.dispatch({effects:oe(n.state,e)}),!!e.length},Ht=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ve},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:$e},{key:"Ctrl-Alt-[",run:qe},{key:"Ctrl-Alt-]",run:ze}],Vt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},ae=v.define({combine(n){return ve(n,Vt)}});function he(n){let e=[P,Gt];return n&&e.push(ae.of(n)),e}function Ge(n,e){let{state:t}=n,r=t.facet(ae),i=l=>{let a=n.lineBlockAt(n.posAtDOM(l.target)),o=L(n.state,a.from,a.to);o&&n.dispatch({effects:A.of(o)}),l.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(n,i,e);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",t.phrase("folded code")),s.title=t.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const _e=S.replace({widget:new class extends Te{toDOM(n){return Ge(n,null)}}});class $t extends Te{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ge(e,this.value)}}const qt={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class fe extends dt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function zt(n={}){let e=Object.assign(Object.assign({},qt),n),t=new fe(e,!0),r=new fe(e,!1),i=Z.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(T)!=l.state.facet(T)||l.startState.field(P,!1)!=l.state.field(P,!1)||b(l.startState)!=b(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let a=new xe;for(let o of l.viewportLineBlocks){let f=L(l.state,o.from,o.to)?r:D(l.state,o.from,o.to)?t:null;f&&a.add(o.from,o.from,f)}return a.finish()}}),{domEventHandlers:s}=e;return[i,ct({class:"cm-foldGutter",markers(l){var a;return((a=l.plugin(i))===null||a===void 0?void 0:a.markers)||Se.empty},initialSpacer(){return new fe(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(l,a,o)=>{if(s.click&&s.click(l,a,o))return!0;let f=L(l.state,a.from,a.to);if(f)return l.dispatch({effects:A.of(f)}),!0;let h=D(l.state,a.from,a.to);return h?(l.dispatch({effects:O.of(h)}),!0):!1}})}),he()]}const Gt=x.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class W{constructor(e,t){this.specs=e;let r;function i(a){let o=Ae.newName();return(r||(r=Object.create(null)))["."+o]=a,o}const s=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,l=t.scope;this.scope=l instanceof m?a=>a.prop(C)==l.data:l?a=>a==l:void 0,this.style=gt(e.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Ae(r):null,this.themeType=t.themeType}static define(e,t){return new W(e,t||{})}}const ue=v.define(),Je=v.define({combine(n){return n.length?[n[0]]:null}});function z(n){let e=n.facet(ue);return e.length?e:n.facet(Je)}function _t(n,e){let t=[Zt],r;return n instanceof W&&(n.module&&t.push(x.styleModule.of(n.module)),r=n.themeType),e?.fallback?t.push(Je.of(n)):r?t.push(ue.computeN([x.darkTheme],i=>i.facet(x.darkTheme)==(r=="dark")?[n]:[])):t.push(ue.of(n)),t}function Jt(n,e,t){let r=z(n),i=null;if(r){for(let s of r)if(!s.scope||t&&s.scope(t)){let l=s.style(e);l&&(i=i?i+" "+l:l)}}return i}class Kt{constructor(e){this.markCache=Object.create(null),this.tree=b(e.state),this.decorations=this.buildDeco(e,z(e.state))}update(e){let t=b(e.state),r=z(e.state),i=r!=z(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r))}buildDeco(e,t){if(!t||!this.tree.length)return S.none;let r=new xe;for(let{from:i,to:s}of e.visibleRanges)mt(this.tree,t,(l,a,o)=>{r.add(l,a,this.markCache[o]||(this.markCache[o]=S.mark({class:o})))},i,s);return r.finish()}}const Zt=ft.high(Z.fromClass(Kt,{decorations:n=>n.decorations})),Qt=W.define([{tag:c.meta,color:"#404740"},{tag:c.link,textDecoration:"underline"},{tag:c.heading,textDecoration:"underline",fontWeight:"bold"},{tag:c.emphasis,fontStyle:"italic"},{tag:c.strong,fontWeight:"bold"},{tag:c.strikethrough,textDecoration:"line-through"},{tag:c.keyword,color:"#708"},{tag:[c.atom,c.bool,c.url,c.contentSeparator,c.labelName],color:"#219"},{tag:[c.literal,c.inserted],color:"#164"},{tag:[c.string,c.deleted],color:"#a11"},{tag:[c.regexp,c.escape,c.special(c.string)],color:"#e40"},{tag:c.definition(c.variableName),color:"#00f"},{tag:c.local(c.variableName),color:"#30a"},{tag:[c.typeName,c.namespace],color:"#085"},{tag:c.className,color:"#167"},{tag:[c.special(c.variableName),c.macroName],color:"#256"},{tag:c.definition(c.propertyName),color:"#00c"},{tag:c.comment,color:"#940"},{tag:c.invalid,color:"#f00"}]),Xt=x.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ke=1e4,Ze="()[]{}",Qe=v.define({combine(n){return ve(n,{afterCursor:!0,brackets:Ze,maxScanDistance:Ke,renderMatch:tn})}}),Yt=S.mark({class:"cm-matchingBracket"}),en=S.mark({class:"cm-nonmatchingBracket"});function tn(n){let e=[],t=n.matched?Yt:en;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const nn=K.define({create(){return S.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],r=e.state.facet(Qe);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=R(e.state,i.head,-1,r)||i.head>0&&R(e.state,i.head-1,1,r)||r.afterCursor&&(R(e.state,i.head,1,r)||i.head<e.state.doc.length&&R(e.state,i.head+1,-1,r));s&&(t=t.concat(r.renderMatch(s,e.state)))}return S.set(t,!0)},provide:n=>x.decorations.from(n)}),rn=[nn,Xt];function sn(n={}){return[Qe.of(n),rn]}const Xe=new w;function ce(n,e,t){let r=n.prop(e<0?w.openedBy:w.closedBy);if(r)return r;if(n.name.length==1){let i=t.indexOf(n.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function de(n){let e=n.type.prop(Xe);return e?e(n.node):n}function R(n,e,t,r={}){let i=r.maxScanDistance||Ke,s=r.brackets||Ze,l=b(n),a=l.resolveInner(e,t);for(let o=a;o;o=o.parent){let f=ce(o.type,t,s);if(f&&o.from<o.to){let h=de(o);if(h&&(t>0?e>=h.from&&e<h.to:e>h.from&&e<=h.to))return ln(n,e,t,o,h,f,s)}}return on(n,e,t,l,a.type,i,s)}function ln(n,e,t,r,i,s,l){let a=r.parent,o={from:i.from,to:i.to},f=0,h=a?.cursor();if(h&&(t<0?h.childBefore(r.from):h.childAfter(r.to)))do if(t<0?h.to<=r.from:h.from>=r.to){if(f==0&&s.indexOf(h.type.name)>-1&&h.from<h.to){let u=de(h);return{start:o,end:u?{from:u.from,to:u.to}:void 0,matched:!0}}else if(ce(h.type,t,l))f++;else if(ce(h.type,-t,l)){if(f==0){let u=de(h);return{start:o,end:u&&u.from<u.to?{from:u.from,to:u.to}:void 0,matched:!1}}f--}}while(t<0?h.prevSibling():h.nextSibling());return{start:o,matched:!1}}function on(n,e,t,r,i,s,l){let a=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),o=l.indexOf(a);if(o<0||o%2==0!=t>0)return null;let f={from:t<0?e-1:e,to:t>0?e+1:e},h=n.doc.iterRange(e,t>0?n.doc.length:0),u=0;for(let p=0;!h.next().done&&p<=s;){let d=h.value;t<0&&(p+=d.length);let g=e+p*t;for(let y=t>0?0:d.length-1,M=t>0?d.length:-1;y!=M;y+=t){let J=l.indexOf(d[y]);if(!(J<0||r.resolveInner(g+y,1).type!=i))if(J%2==0==t>0)u++;else{if(u==1)return{start:f,end:{from:g+y,to:g+y+1},matched:J>>1==o>>1};u--}}t>0&&(p+=d.length)}return h.done?{start:f,matched:!1}:null}function Ye(n,e,t,r=0,i=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let s=i;for(let l=r;l<e;l++)n.charCodeAt(l)==9?s+=t-s%t:s++;return s}class pe{constructor(e,t,r,i){this.string=e,this.tabSize=t,this.indentUnit=r,this.overrideIndent=i,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e instanceof RegExp?e.test(t):e(t)),r)return++this.pos,t}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:Ye(this.string,null,this.tabSize)}match(e,t,r){if(typeof e=="string"){let i=l=>r?l.toLowerCase():l,s=this.string.substr(this.pos,e.length);return i(s)==i(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}}function an(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||hn,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||me}}function hn(n){if(typeof n!="object")return n;let e={};for(let t in n){let r=n[t];e[t]=r instanceof Array?r.slice():r}return e}const et=new WeakMap;class ye extends m{constructor(e){let t=ee(e.languageData),r=an(e),i,s=new class extends we{createParse(l,a,o){return new un(i,l,a,o)}};super(t,s,[ne.of((l,a)=>this.getIndent(l,a))],e.name),this.topNode=pn(t),i=this,this.streamParser=r,this.stateAfter=new w({perNode:!0}),this.tokenTable=e.tokenTable?new st(r.tokenTable):dn}static define(e){return new ye(e)}getIndent(e,t){let r=b(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let s,{overrideIndentation:l}=e.options;l&&(s=et.get(e.state),s!=null&&s<t-1e4&&(s=void 0));let a=ge(this,r,0,i.from,s??t),o,f;if(a?(f=a.state,o=a.pos+1):(f=this.streamParser.startState(e.unit),o=0),t-o>1e4)return null;for(;o<t;){let u=e.state.doc.lineAt(o),p=Math.min(t,u.to);if(u.length){let d=l?l(u.from):-1,g=new pe(u.text,e.state.tabSize,e.unit,d<0?void 0:d);for(;g.pos<p-u.from;)nt(this.streamParser.token,g,f)}else this.streamParser.blankLine(f,e.unit);if(p==t)break;o=u.to+1}let h=e.lineAt(t);return l&&s==null&&et.set(e.state,h.from),this.streamParser.indent(f,/^\s*(.*)/.exec(h.text)[1],e)}get allowsNesting(){return!1}}function ge(n,e,t,r,i){let s=t>=r&&t+e.length<=i&&e.prop(n.stateAfter);if(s)return{state:n.streamParser.copyState(s),pos:t+e.length};for(let l=e.children.length-1;l>=0;l--){let a=e.children[l],o=t+e.positions[l],f=a instanceof k&&o<i&&ge(n,a,o,r,i);if(f)return f}return null}function tt(n,e,t,r,i){if(i&&t<=0&&r>=e.length)return e;!i&&e.type==n.topNode&&(i=!0);for(let s=e.children.length-1;s>=0;s--){let l=e.positions[s],a=e.children[s],o;if(l<r&&a instanceof k){if(!(o=tt(n,a,t-l,r-l,i)))break;return i?new k(e.type,e.children.slice(0,s).concat(o),e.positions.slice(0,s+1),l+o.length):o}}return null}function fn(n,e,t,r){for(let i of e){let s=i.from+(i.openStart?25:0),l=i.to-(i.openEnd?25:0),a=s<=t&&l>t&&ge(n,i.tree,0-i.offset,t,l),o;if(a&&(o=tt(n,i.tree,t+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:o}}return{state:n.streamParser.startState(r?F(r):4),tree:k.empty}}class un{constructor(e,t,r,i){this.lang=e,this.input=t,this.fragments=r,this.ranges=i,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=i[i.length-1].to;let s=I.get(),l=i[0].from,{state:a,tree:o}=fn(e,r,l,s?.state);this.state=a,this.parsedPos=this.chunkStart=l+o.length;for(let f=0;f<o.children.length;f++)this.chunks.push(o.children[f]),this.chunkPos.push(o.positions[f]);s&&this.parsedPos<s.viewport.from-1e5&&(this.state=this.lang.streamParser.startState(F(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let e=I.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),r=Math.min(t,this.chunkStart+2048);for(e&&(r=Math.min(r,e.viewport.to));this.parsedPos<r;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==`
`&&(t="");else{let r=t.indexOf(`
`);r>-1&&(t=t.slice(0,r))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),r=e+t.length;for(let i=this.rangeIndex;;){let s=this.ranges[i].to;if(s>=r||(t=t.slice(0,s-(r-t.length)),i++,i==this.ranges.length))break;let l=this.ranges[i].from,a=this.lineAfter(l);t+=a,r=l+a.length}return{line:t,end:r}}skipGapsTo(e,t,r){for(;;){let i=this.ranges[this.rangeIndex].to,s=e+t;if(r>0?i>s:i>=s)break;let l=this.ranges[++this.rangeIndex].from;t+=l-i}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,r,i,s){if(this.ranges.length>1){s=this.skipGapsTo(t,s,1),t+=s;let l=this.chunk.length;s=this.skipGapsTo(r,s,-1),r+=s,i+=this.chunk.length-l}return this.chunk.push(e,t,r,i),s}parseLine(e){let{line:t,end:r}=this.nextLine(),i=0,{streamParser:s}=this.lang,l=new pe(t,e?e.state.tabSize:4,e?F(e.state):2);if(l.eol())s.blankLine(this.state,l.indentUnit);else for(;!l.eol();){let a=nt(s.token,l,this.state);if(a&&(i=this.emitToken(this.lang.tokenTable.resolve(a),this.parsedPos+l.start,this.parsedPos+l.pos,4,i)),l.start>1e4)break}this.parsedPos=r,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=k.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:cn,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new k(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new k(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function nt(n,e,t){e.start=e.pos;for(let r=0;r<10;r++){let i=n(e,t);if(e.pos>e.start)return i}throw new Error("Stream parser failed to advance stream.")}const me=Object.create(null),j=[U.none],cn=new at(j),rt=[],it=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])it[n]=lt(me,e);class st{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),it)}resolve(e){return e?this.table[e]||(this.table[e]=lt(this.extra,e)):0}}const dn=new st(me);function ke(n,e){rt.indexOf(n)>-1||(rt.push(n),console.warn(e))}function lt(n,e){let t=null;for(let s of e.split(".")){let l=n[s]||c[s];l?typeof l=="function"?t?t=l(t):ke(s,`Modifier ${s} used at start of tag`):t?ke(s,`Tag ${s} used as modifier`):t=l:ke(s,`Unknown highlighting tag ${s}`)}if(!t)return 0;let r=e.replace(/ /g,"_"),i=U.define({id:j.length,name:r,props:[pt({[r]:t})]});return j.push(i),i.id}function pn(n){let e=U.define({id:j.length,name:"Document",props:[C.add(()=>n)],top:!0});return j.push(e),e}export{Me as DocInput,W as HighlightStyle,$ as IndentContext,G as LRLanguage,m as Language,be as LanguageDescription,St as LanguageSupport,I as ParseContext,ye as StreamLanguage,pe as StringStream,_ as TreeIndentContext,sn as bracketMatching,Xe as bracketMatchingHandle,he as codeFolding,Nt as continuedIndent,Qt as defaultHighlightStyle,ee as defineLanguageFacet,Dt as delimitedIndent,Ne as ensureSyntaxTree,Ot as flatIndent,qe as foldAll,Ve as foldCode,O as foldEffect,zt as foldGutter,Et as foldInside,Ht as foldKeymap,Ue as foldNodeProp,We as foldService,P as foldState,D as foldable,Rt as foldedRanges,yt as forceParsing,F as getIndentUnit,se as getIndentation,Jt as highlightingFor,Le as indentNodeProp,Bt as indentOnInput,vt as indentRange,ne as indentService,ie as indentString,re as indentUnit,T as language,C as languageDataProp,R as matchBrackets,De as sublanguageProp,_t as syntaxHighlighting,wt as syntaxParserRunning,b as syntaxTree,bt as syntaxTreeAvailable,Ut as toggleFold,ze as unfoldAll,$e as unfoldCode,A as unfoldEffect};

The same content is in 12 releases, Joomla 5.0.1-rc1 to 5.1.0-alpha4. See them all, or every version of this file.