1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7120],{77120:function(t,e,n){n.d(e,{Dv:function(){return q},Gn:function(){return E},K0:function(){return M},KC:function(){return u},Qf:function(){return th},R_:function(){return tp},SS:function(){return P},Um:function(){return tO},a0:function(){return tA},c:function(){return O},e7:function(){return Z},kU:function(){return f},mi:function(){return to},n$:function(){return tS},nF:function(){return tc},nY:function(){return z},qp:function(){return p},qz:function(){return g},ri:function(){return I},tC:function(){return F},uj:function(){return T},vw:function(){return R},x0:function(){return $},y1:function(){return N},ze:function(){return j}});var r,i=n(21649),s=n(1727),o=n(95885),l=n(86253),h=n(37207);let a=new i.md;function f(t){return s.r$.define({combine:t?e=>e.concat(t):void 0})}let u=new i.md;class c{constructor(t,e,n=[],r=""){this.data=t,this.name=r,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return g(this)}}),this.parser=e,this.extension=[A.of(this),s.yy.languageData.of((t,e,n)=>{let r=d(t,e,n),i=r.type.prop(a);if(!i)return[];let s=t.facet(i),o=r.type.prop(u);if(o){let i=r.resolve(e-r.from,n);for(let e of o)if(e.test(i,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(t,e,n=-1){return d(t,e,n).type.prop(a)==this.data}findRegions(t){let e=t.facet(A);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop(a)==this.data){n.push({from:e,to:e+t.length});return}let s=t.prop(i.md.mounted);if(s){if(s.tree.prop(a)==this.data){if(s.overlay)for(let t of s.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(s.overlay){let t=n.length;if(r(s.tree,s.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let s=t.children[n];s instanceof i.mp&&r(s,t.positions[n]+e)}};return r(g(t),0),n}get allowsNesting(){return!0}}function d(t,e,n){let r=t.facet(A),s=g(t).topNode;if(!r||r.allowsNesting)for(let t=s;t;t=t.enter(e,n,i.vj.ExcludeBuffers))t.type.isTop&&(s=t);return s}c.setState=s.Py.define();class p extends c{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=f(t.languageData);return new p(e,t.parser.configure({props:[a.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new p(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function g(t){let e=t.field(c.state,!1);return e?e.tree:i.mp.empty}class m{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let y=null;class x{constructor(t,e,n=[],r,i,s,o,l){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new x(t,e,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=i.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.i9.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=y;y=this;try{return t()}finally{y=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=v(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let e=[];
1if(t.iterChangedRanges((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})),n=i.i9.applyChanges(n,e),r=i.mp.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length)for(let e of(l=[],this.skipped)){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&l.push({from:n,to:r})}}return new x(this.parser,e,n,r,s,o,l,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:n,to:r}=this.skipped[e];n<t.to&&r>t.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends i._b{createParse(e,n,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let e=y;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=o,new i.mp(i.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return y}}function v(t,e,n){return i.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class k{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new k(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=x.create(t.facet(A).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new k(n)}}c.state=s.QQ.define({create:k.init,update(t,e){for(let t of e.effects)if(t.is(c.setState))return t.value;return e.startState.facet(A)!=e.state.facet(A)?k.init(e.state):t.apply(e)}});let w=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(w=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let b="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,S=o.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(c.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(c.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=w(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(c.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!b?Math.max(25,t.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,l=i.context.work(()=>b&&b()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:c.setState.of(new k(i.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,o.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),A=s.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[c.state,S,o.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class I{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}let C=s.r$.define(),O=s.r$.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function N(t){let e=t.facet(O);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function P(t,e){let n="",r=t.tabSize,i=t.facet(O)[0];if(" "==i){for(;e>=r;)n+=" ",e-=r;i=" "}for(let t=0;t<e;t++)n+=i;return n}function M(t,e){var n;for(let n of(t instanceof s.yy&&(t=new E(t)),t.state.facet(C))){let r=n(t,e);if(void 0!==r)return r}let r=g(t.state);return r?(n=t,B(r.resolveInner(e).enterUnfinishedNodesBefore(e),e,n)):null}class E{constructor(t,e={}){this.state=t,this.options=e,this.unit=N(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==t?{text:"",from:t}:(e<0?r<t:r<=t)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.countColumn(n,t-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(i+=s-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return(0,s.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let t=i(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let T=new i.md;function B(t,e,n){for(;t;t=t.parent){let r=function(t){let e=t.type.prop(T);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(i.md.closedBy))){let e=t.lastChild,n=e&&r.indexOf(e.name)>-1;return t=>D(t,!0,1,void 0,n&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?e.from:void 0)}return null==t.parent?_:null}(t);if(r)return r(J.create(n,e,t))}return null}function _(){return 0}
1class J extends E{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.node=n}static create(t,e,n){return new J(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){let t=this.node.parent;return t?B(t,this.pos,this.base):0}}function R({closing:t,align:e=!0,units:n=1}){return r=>D(r,e,n,t)}function D(t,e,n,r,i){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=r&&s.slice(o,o+r.length)==r||i==t.pos+o,h=e?function(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let t=n.to;;){let i=e.childAfter(t);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from<o?n:null;t=i.to}}(t):null;return h?l?t.column(h.from):t.column(h.to):t.baseIndent+(l?0:t.unit*n)}let j=t=>t.baseIndent;function F({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}function z(){return s.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return t;let s=n.sliceString(i.from,r);if(!e.some(t=>t.test(s)))return t;let{state:o}=t,l=-1,h=[];for(let{head:t}of o.selection.ranges){let e=o.doc.lineAt(t);if(e.from==l)continue;l=e.from;let n=M(o,e.from);if(null==n)continue;let r=/^\s*/.exec(e.text)[0],i=P(o,n);r!=i&&h.push({from:e.from,to:e.from+r.length,insert:i})}return h.length?[t,{changes:h,sequential:!0}]:t})}let L=s.r$.define(),$=new i.md;function q(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function W(t,e,n){for(let r of t.facet(L)){let i=r(t,e,n);if(i)return i}return function(t,e,n){let r=g(t);if(r.length<n)return null;let i=r.resolveInner(n,1),s=null;for(let o=i;o;o=o.parent){if(o.to<=n||o.from>n)continue;if(s&&o.from<e)break;let i=o.type.prop($);if(i&&(o.to<r.length-50||r.length==t.doc.length||!function(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}(o))){let r=i(o,t);r&&r.from<=n&&r.from>=e&&r.to>n&&(s=r)}}return s}(t,e,n)}function V(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}let U=s.Py.define({map:V}),Q=s.Py.define({map:V});function G(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(t=>t.from<=n&&t.to>=n)||e.push(t.lineBlockAt(n));return e}let H=s.QQ.define({create:()=>o.p.none,update(t,e){for(let n of(t=t.map(e.changes),e.effects))n.is(U)&&!function(t,e,n){let r=!1;return t.between(e,e,(t,i)=>{t==e&&i==n&&(r=!0)}),r}(t,n.value.from,n.value.to)?t=t.update({add:[tr.range(n.value.from,n.value.to)]}):n.is(Q)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(t,e)=>{t<r&&e>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>o.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");e.push(tr.range(r,i))}return o.p.set(e,!0)}});function K(t,e,n){var r;let i=null;return null===(r=t.field(H,!1))||void 0===r||r.between(e,n,(t,e)=>{(!i||i.from>t)&&(i={from:t,to:e})}),i}function X(t,e){return t.field(H,!1)?e:e.concat(s.Py.appendConfig.of(tn()))}function Y(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return o.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}let Z=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of G(t)){let n=W(t.state,e.from,e.to);if(n)return t.dispatch({effects:X(t.state,[U.of(n),Y(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(H,!1))return!1;let e=[];for(let n of G(t)){let r=K(t.state,n.from,n.to);r&&e.push(Q.of(r),Y(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),s=W(e,i.from,i.to);
1s&&n.push(U.of(s)),r=(s?t.lineBlockAt(s.to):i).to+1}return n.length&&t.dispatch({effects:X(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(H,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(Q.of({from:t,to:e}))}),t.dispatch({effects:n}),!0}}],tt={placeholderDOM:null,placeholderText:"â¦"},te=s.r$.define({combine:t=>(0,s.BO)(t,tt)});function tn(t){let e=[H,tl];return t&&e.push(te.of(t)),e}let tr=o.p.replace({widget:new class extends o.l9{toDOM(t){let{state:e}=t,n=e.facet(te),r=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=K(t.state,n.from,n.to);r&&t.dispatch({effects:Q.of(r)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}}}),ti={openText:"â",closedText:"âº",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ts extends o.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function to(t={}){let e=Object.assign(Object.assign({},ti),t),n=new ts(e,!0),r=new ts(e,!1),i=o.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(A)!=t.state.facet(A)||t.startState.field(H,!1)!=t.state.field(H,!1)||g(t.startState)!=g(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new s.f_;for(let i of t.viewportLineBlocks){let s=K(t.state,i.from,i.to)?r:W(t.state,i.from,i.to)?n:null;s&&e.add(i.from,i.from,s)}return e.finish()}}),{domEventHandlers:l}=e;return[i,(0,o.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(i))||void 0===e?void 0:e.markers)||s.Xs.empty},initialSpacer:()=>new ts(e,!1),domEventHandlers:Object.assign(Object.assign({},l),{click:(t,e,n)=>{if(l.click&&l.click(t,e,n))return!0;let r=K(t.state,e.from,e.to);if(r)return t.dispatch({effects:Q.of(r)}),!0;let i=W(t.state,e.from,e.to);return!!i&&(t.dispatch({effects:U.of(i)}),!0)}})}),tn()]}let tl=o.tk.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 th{constructor(t,e){let n;function r(t){let e=h.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let i="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof c?t=>t.prop(a)==s.data:s?t=>t==s:void 0,this.style=(0,l.QR)(t.map(t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))})),{all:i}).style,this.module=n?new h.V(n):null,this.themeType=e.themeType}static define(t,e){return new th(t,e||{})}}let ta=s.r$.define(),tf=s.r$.define({combine:t=>t.length?[t[0]]:null});function tu(t){let e=t.facet(ta);return e.length?e:t.facet(tf)}function tc(t,e){let n=[td],r;return t instanceof th&&(t.module&&n.push(o.tk.styleModule.of(t.module)),r=t.themeType),(null==e?void 0:e.fallback)?n.push(tf.of(t)):r?n.push(ta.computeN([o.tk.darkTheme],e=>e.facet(o.tk.darkTheme)==("dark"==r)?[t]:[])):n.push(ta.of(t)),n}let td=s.Wl.high(o.lg.fromClass(class{constructor(t){this.markCache=Object.create(null),this.tree=g(t.state),this.decorations=this.buildDeco(t,tu(t.state))}update(t){let e=g(t.state),n=tu(t.state),r=n!=tu(t.startState);e.length<t.view.viewport.to&&!r&&e.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n))}buildDeco(t,e){if(!e||!this.tree.length)return o.p.none;let n=new s.f_;for(let{from:r,to:i}of t.visibleRanges)(0,l.bW)(this.tree,e,(t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=o.p.mark({class:r})))},r,i);return n.finish()}},{decorations:t=>t.decorations})),tp=th.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"}
1,{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),tg=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tm="()[]{}",ty=s.r$.define({combine:t=>(0,s.BO)(t,{afterCursor:!0,brackets:tm,maxScanDistance:1e4,renderMatch:tk})}),tx=o.p.mark({class:"cm-matchingBracket"}),tv=o.p.mark({class:"cm-nonmatchingBracket"});function tk(t){let e=[],n=t.matched?tx:tv;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}let tw=s.QQ.define({create:()=>o.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(ty);for(let t of e.state.selection.ranges){if(!t.empty)continue;let i=tO(e.state,t.head,-1,r)||t.head>0&&tO(e.state,t.head-1,1,r)||r.afterCursor&&(tO(e.state,t.head,1,r)||t.head<e.state.doc.length&&tO(e.state,t.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,e.state)))}return o.p.set(n,!0)},provide:t=>o.tk.decorations.from(t)}),tb=[tw,tg];function tS(t={}){return[ty.of(t),tb]}let tA=new i.md;function tI(t,e,n){let r=t.prop(e<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function tC(t){let e=t.type.prop(tA);return e?e(t.node):t}function tO(t,e,n,r={}){let i=r.maxScanDistance||1e4,s=r.brackets||tm,o=g(t),l=o.resolveInner(e,n);for(let t=l;t;t=t.parent){let r=tI(t.type,n,s);if(r&&t.from<t.to){let i=tC(t);if(i&&(n>0?e>=i.from&&e<i.to:e>i.from&&e<=i.to))return function(t,e,n,r,i,s,o){let l=r.parent,h={from:i.from,to:i.to},a=0,f=null==l?void 0:l.cursor();if(f&&(n<0?f.childBefore(r.from):f.childAfter(r.to)))do if(n<0?f.to<=r.from:f.from>=r.to){if(0==a&&s.indexOf(f.type.name)>-1&&f.from<f.to){let t=tC(f);return{start:h,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(tI(f.type,n,o))a++;else if(tI(f.type,-n,o)){if(0==a){let t=tC(f);return{start:h,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}a--}}while(n<0?f.prevSibling():f.nextSibling());return{start:h,matched:!1}}(0,0,n,t,i,r,s)}}return function(t,e,n,r,i,s,o){let l=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),h=o.indexOf(l);if(h<0||h%2==0!=n>0)return null;let a={from:n<0?e-1:e,to:n>0?e+1:e},f=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let t=0;!f.next().done&&t<=s;){let s=f.value;n<0&&(t+=s.length);let l=e+t*n;for(let t=n>0?0:s.length-1,e=n>0?s.length:-1;t!=e;t+=n){let e=o.indexOf(s[t]);if(!(e<0)&&r.resolveInner(l+t,1).type==i){if(e%2==0==n>0)u++;else{if(1==u)return{start:a,end:{from:l+t,to:l+t+1},matched:e>>1==h>>1};u--}}}n>0&&(t+=s.length)}return f.done?{start:a,matched:!1}:null}(t,e,n,o,l.type,i,s)}let tN=Object.create(null),tP=[i.Jq.none],tM=[],tE=Object.create(null);for(let[t,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"]])tE[t]=function(t,e){let n=null;for(let r of e.split(".")){let e=t[r]||l.pJ[r];e?"function"==typeof e?n?n=e(n):tT(r,`Modifier ${r} used at start of tag`):n?tT(r,`Tag ${r} used as modifier`):n=e:tT(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=e.replace(/ /g,"_"),s=i.Jq.define({id:tP.length,name:r,props:[(0,l.Gv)({[r]:n})]});return tP.push(s),s.id}(tN,e);function tT(t,e){tM.indexOf(t)>-1||(tM.push(t),console.warn(e))}},1727:function(t,e,n){let r;n.d(e,{BO:function(){return tx},D0:function(){return tg},Gz:function(){return tR},IS:function(){return tJ},Py:function(){return ta},QQ:function(){return q},Wl:function(){return U},Xs:function(){return tS},YW:function(){return tf},as:function(){return C},bg:function(){return v},cp:function(){return p},f_:function(){return tA},gc:function(){return A},gm:function(){return x},jT:function(){return _},n0:function(){return I},nZ:function(){return k},q6:function(){return to},r$:function(){return D},uU:function(){return tv},xv:function(){return i},yy:function(){return ty}});class i{lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){let r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),o.from(r,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let n=[];return this.decompose(t,e,n,0),o.from(n,e-t)}eq(t){if(t==this)return!0;
vendor: 4,852 bytes, line 1
1if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),r=new h(this),i=new h(t);for(let t=e,s=e;;){if(r.next(t),i.next(t),t=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(t=1){return new h(this,t)}iterRange(t,e=this.length){return new a(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new f(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new s(t):o.from(s.split(t,[])):i.empty}}class s extends i{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,r){for(let i=0;;i++){let s=this.text[i],o=r+s.length;if((e?n:o)>=t)return new u(r,o,n,s);r=o+1,n++}}decompose(t,e,n,r){let i=t<=0&&e>=this.length?this:new s(l(this.text,[""],t,e),Math.min(e,this.length)-Math.max(0,t));if(1&r){let t=n.pop(),e=l(i.text,t.text.slice(),0,i.length);if(e.length<=32)n.push(new s(e,t.length+i.length));else{let t=e.length>>1;n.push(new s(e.slice(0,t)),new s(e.slice(t)))}}else n.push(i)}replace(t,e,n){if(!(n instanceof s))return super.replace(t,e,n);let r=l(this.text,l(n.text,l(this.text,[""],0,t)),e),i=this.length+n.length-(e-t);return r.length<=32?new s(r,i):o.from(s.split(r,[]),i)}sliceString(t,e=this.length,n="\n"){let r="";for(let i=0,s=0;i<=e&&s<this.text.length;s++){let o=this.text[s],l=i+o.length;i>t&&s&&(r+=n),t<l&&e>i&&(r+=o.slice(Math.max(0,t-i),e-i)),i=l+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],r=-1;for(let i of t)n.push(i),r+=i.length+1,32==n.length&&(e.push(new s(n,r)),n=[],r=-1);return r>-1&&e.push(new s(n,r)),e}}class o extends i{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,r){for(let i=0;;i++){let s=this.children[i],o=r+s.length,l=n+s.lines-1;if((e?l:o)>=t)return s.lineInner(t,e,n,r);r=o+1,n=l+1}}decompose(t,e,n,r){for(let i=0,s=0;s<=e&&i<this.children.length;i++){let o=this.children[i],l=s+o.length;if(t<=l&&e>=s){let i=r&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!i?n.push(o):o.decompose(t-s,e-s,n,i)}s=l+1}}replace(t,e,n){if(n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.length;if(t>=i&&e<=l){let h=s.replace(t-i,e-i,n),a=this.lines-s.lines+h.lines;if(h.lines<a>>4&&h.lines>a>>6){let i=this.children.slice();return i[r]=h,new o(i,this.length-(e-t)+n.length)}return super.replace(i,l,h)}i=l+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){let r="";for(let i=0,s=0;i<this.children.length&&s<=e;i++){let o=this.children[i],l=s+o.length;s>t&&i&&(r+=n),t<l&&e>s&&(r+=o.sliceString(t-s,e-s,n)),s=l+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof o))return 0;let n=0,[r,i,s,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,i+=e){if(r==s||i==l)return n;let o=this.children[r],h=t.children[i];if(o!=h)return n+o.scanIdentical(h,e);n+=o.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new s(n,e)}let r=Math.max(32,n>>5),i=r<<1,l=r>>1,h=[],a=0,f=-1,u=[];function c(){0!=a&&(h.push(1==u.length?u[0]:o.from(u,f)),f=-1,a=u.length=0)}for(let e of t)!function t(e){let n;if(e.lines>i&&e instanceof o)for(let n of e.children)t(n);else e.lines>l&&(a>l||!a)?(c(),h.push(e)):e instanceof s&&a&&(n=u[u.length-1])instanceof s&&e.lines+n.lines<=32?(a+=e.lines,f+=e.length+1,u[u.length-1]=new s(n.text.concat(e.text),n.length+1+e.length)):(a+e.lines>r&&c(),a+=e.lines,f+=e.length+1,u.push(e))}(e);return c(),1==h.length?h[0]:new o(h,e)}}function l(t,e,n=0,r=1e9){for(let i=0,s=0,o=!0;s<t.length&&i<=r;s++){let l=t[s],h=i+l.length;h>=n&&(h>r&&(l=l.slice(0,r-i)),i<n&&(l=l.slice(n-i)),o?(e[e.length-1]+=l,o=!1):e.push(l)),i=h+1}return e}i.empty=new s([""],0);class h{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof s?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,l=r instanceof s?r.text.length:r.children.length;if(o==(e>0?l:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>
10?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof s){let i=r.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,i.length>Math.max(0,t))return this.value=0==t?i:e>0?i.slice(t):i.slice(0,i.length-t),this;t-=i.length}else{let i=r.children[o+(e<0?-1:0)];t>i.length?(t-=i.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(e>0?1:(i instanceof s?i.text.length:i.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class a{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new h(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class f{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:r}=this.inner.next(t);return e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.iter()},h.prototype[Symbol.iterator]=a.prototype[Symbol.iterator]=f.prototype[Symbol.iterator]=function(){return this});class u{constructor(t,e,n,r){this.from=t,this.to=e,this.number=n,this.text=r}get length(){return this.to-this.from}}let c="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;t<c.length;t++)c[t]+=c[t-1];function d(t){return t>=127462&&t<=127487}function p(t,e,n=!0,r=!0){return(n?g:function(t,e,n){for(;e>0;){let r=g(t,e-2,n);if(r<e)return r;e--}return 0})(t,e,r)}function g(t,e,n){if(e==t.length)return e;e&&m(t.charCodeAt(e))&&y(t.charCodeAt(e-1))&&e--;let r=x(t,e);for(e+=k(r);e<t.length;){let i=x(t,e);if(8205==r||8205==i||n&&function(t){for(let e=1;e<c.length;e+=2)if(c[e]>
1t)return c[e-1]<=t;return!1}(i))e+=k(i),r=i;else if(d(i)){let n=0,r=e-2;for(;r>=0&&d(x(t,r));)n++,r-=2;if(n%2==0)break;e+=2}else break}return e}function m(t){return t>=56320&&t<57344}function y(t){return t>=55296&&t<56320}function x(t,e){let n=t.charCodeAt(e);if(!y(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return m(r)?(n-55296<<10)+(r-56320)+65536:n}function v(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function k(t){return t<65536?1:2}let w=/\r\n?|\n/;var b,S,A=((b=A||(A={}))[b.Simple=0]="Simple",b[b.TrackDel=1]="TrackDel",b[b.TrackBefore=2]="TrackBefore",b[b.TrackAfter=3]="TrackAfter",b);class I{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e+1];t+=n<0?this.sections[e]:n}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,n=0,r=0;e<this.sections.length;){let i=this.sections[e++],s=this.sections[e++];s<0?(t(n,r,i),r+=i):r+=s,n+=i}}iterChangedRanges(t,e=!1){P(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new I(t)}composeDesc(t){return this.empty?t:t.empty?this:E(this,t)}mapDesc(t,e=!1){return t.empty?this:M(this,t,e)}mapPos(t,e=-1,n=A.Simple){let r=0,i=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],l=this.sections[s++],h=r+o;if(l<0){if(h>t)return i+(t-r);i+=o}else{if(n!=A.Simple&&h>=t&&(n==A.TrackDel&&r<t&&h>t||n==A.TrackBefore&&r<t||n==A.TrackAfter&&h>t))return null;if(h>t||h==t&&e<0&&!o)return t==r||e<0?i:i+l;i+=l}r=h}if(t>r)throw RangeError(`Position ${t} is out of range for changeset of length ${r}`);return i}touchesRange(t,e=t){for(let n=0,r=0;n<this.sections.length&&r<=e;){let i=this.sections[n++],s=this.sections[n++],o=r+i;if(s>=0&&r<=e&&o>=t)return!(r<t)||!(o>e)||"cover";r=o}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];t+=(t?" ":"")+n+(r>=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new I(t)}static create(t){return new I(t)}}class C extends I{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return P(this,(e,n,r,i,s)=>t=t.replace(r,r+(n-e),s),!1),t}mapDesc(t,e=!1){return M(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let r=0,s=0;r<e.length;r+=2){let o=e[r],l=e[r+1];if(l>=0){e[r]=l,e[r+1]=o;let h=r>>1;for(;n.length<h;)n.push(i.empty);n.push(o?t.slice(s,s+o):i.empty)}s+=o}return new C(e,n)}compose(t){return this.empty?t:t.empty?this:E(this,t,!0)}map(t,e=!1){return t.empty?this:M(this,t,e,!0)}iterChanges(t,e=!1){P(this,t,e)}get desc(){return I.create(this.sections)}filter(t){let e=[],n=[],r=[],i=new T(this);t:for(let s=0,o=0;;){let l=s==t.length?1e9:t[s++];for(;o<l||o==l&&0==i.len;){if(i.done)break t;let t=Math.min(i.len,l-o);O(r,t,-1);let s=-1==i.ins?-1:0==i.off?i.ins:0;O(e,t,s),s>0&&N(n,e,i.text),i.forward(t),o+=t}let h=t[s++];for(;o<h;){if(i.done)break t;let t=Math.min(i.len,h-o);O(e,t,-1),O(r,t,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(t),o+=t}}return{changes:new C(e,n),filtered:I.create(r)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e],r=this.sections[e+1];r<0?t.push(n):0==r?t.push([n]):t.push([n].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,n){let r=[],s=[],o=0,l=null;function h(t=!1){if(!t&&!r.length)return;o<e&&O(r,e-o,-1);let n=new C(r,s);l=l?l.compose(n.map(l)):n,r=[],s=[],o=0}return!function t(a){if(Array.isArray(a))for(let e of a)t(e);else if(a instanceof C){if(a.length!=e)throw RangeError(`Mismatched change set length (got ${a.length}, expected ${e})`);h(),l=l?l.compose(a.map(l)):a}else{let{from:t,to:l=t,insert:f}=a;if(t>l||t<0||l>e)throw RangeError(`Invalid change range ${t} to ${l} (in doc of length ${e})`);let u=f?"string"==typeof f?i.of(f.split(n||w)):f:i.empty,c=u.length;if(t==l&&0==c)return;t<o&&h(),t>o&&O(r,t-o,-1),O(r,l-t,c),N(s,r,u),o=l}}(t),h(!l),l}static empty(t){return new C(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let r=0;r<t.length;r++){let s=t[r];
1if("number"==typeof s)e.push(s,-1);else if(!Array.isArray(s)||"number"!=typeof s[0]||s.some((t,e)=>e&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)e.push(s[0],0);else{for(;n.length<r;)n.push(i.empty);n[r]=i.of(s.slice(1)),e.push(s[0],n[r].length)}}return new C(e,n)}static createSet(t,e){return new C(t,e)}}function O(t,e,n,r=!1){if(0==e&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function N(t,e,n){if(0==n.length)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(i.empty);t.push(n)}}function P(t,e,n){let r=t.inserted;for(let s=0,o=0,l=0;l<t.sections.length;){let h=t.sections[l++],a=t.sections[l++];if(a<0)s+=h,o+=h;else{let f=s,u=o,c=i.empty;for(;f+=h,u+=a,a&&r&&(c=c.append(r[l-2>>1])),!n&&l!=t.sections.length&&!(t.sections[l+1]<0);)h=t.sections[l++],a=t.sections[l++];e(s,f,o,u,c),s=f,o=u}}}function M(t,e,n,r=!1){let i=[],s=r?[]:null,o=new T(t),l=new T(e);for(let t=-1;;)if(-1==o.ins&&-1==l.ins){let t=Math.min(o.len,l.len);O(i,t,-1),o.forward(t),l.forward(t)}else if(l.ins>=0&&(o.ins<0||t==o.i||0==o.off&&(l.len<o.len||l.len==o.len&&!n))){let e=l.len;for(O(i,l.ins,-1);e;){let n=Math.min(o.len,e);o.ins>=0&&t<o.i&&o.len<=n&&(O(i,0,o.ins),s&&N(s,i,o.text),t=o.i),o.forward(n),e-=n}l.next()}else if(o.ins>=0){let e=0,n=o.len;for(;n;)if(-1==l.ins){let t=Math.min(n,l.len);e+=t,n-=t,l.forward(t)}else if(0==l.ins&&l.len<n)n-=l.len,l.next();else break;O(i,e,t<o.i?o.ins:0),s&&t<o.i&&N(s,i,o.text),t=o.i,o.forward(o.len-n)}else if(o.done&&l.done)return s?C.createSet(i,s):I.create(i);else throw Error("Mismatched change set lengths")}function E(t,e,n=!1){let r=[],i=n?[]:null,s=new T(t),o=new T(e);for(let t=!1;;){if(s.done&&o.done)return i?C.createSet(r,i):I.create(r);if(0==s.ins)O(r,s.len,0,t),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw Error("Mismatched change set lengths");{let e=Math.min(s.len2,o.len),n=r.length;if(-1==s.ins){let n=-1==o.ins?-1:o.off?0:o.ins;O(r,e,n,t),i&&n&&N(i,r,o.text)}else -1==o.ins?(O(r,s.off?0:s.len,e,t),i&&N(i,r,s.textBit(e))):(O(r,s.off?0:s.len,o.off?0:o.ins,t),i&&!o.off&&N(i,r,o.text));t=(s.ins>e||o.ins>=0&&o.len>e)&&(t||r.length>n),s.forward2(e),o.forward(e)}}else O(r,0,o.ins,t),i&&N(i,r,o.text),o.next()}}class T{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?i.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?i.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class B{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let t=3&this.flags;return 3==t?null:t}get goalColumn(){let t=this.flags>>5;return 33554431==t?void 0:t}map(t,e=-1){let n,r;return this.empty?n=r=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new B(n,r,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return _.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return _.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return _.range(t.anchor,t.head)}static create(t,e,n){return new B(t,e,n)}}class _{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:_.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;e<this.ranges.length;e++)if(!this.ranges[e].eq(t.ranges[e]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new _([this.main],0)}addRange(t,e=!0){return _.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let n=this.ranges.slice();return n[e]=t,_.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new _(t.ranges.map(t=>B.fromJSON(t)),t.main)}static single(t,e=t){return new _([_.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<t.length;r++){let i=t[r];
1if(i.empty?i.from<=n:i.from<n)return _.normalized(t.slice(),e);n=i.to}return new _(t,e)}static cursor(t,e=0,n,r){return B.create(t,t,(0==e?0:e<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}static range(t,e,n,r){let i=(null!=n?n:33554431)<<5|(null==r?3:Math.min(2,r));return e<t?B.create(e,t,24|i):B.create(t,e,(e>t?4:0)|i)}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let n=1;n<t.length;n++){let r=t[n],i=t[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let s=i.from,o=Math.max(r.to,i.to);n<=e&&e--,t.splice(--n,2,r.anchor>r.head?_.range(o,s):_.range(s,o))}}return new _(t,e)}}function J(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let R=0;class D{constructor(t,e,n,r,i){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=r,this.id=R++,this.default=t([]),this.extensions="function"==typeof i?i(this):i}static define(t={}){return new D(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:j),!!t.static,t.enables)}of(t){return new F([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new F(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new F(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function j(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class F{constructor(t,e,n,r){this.dependencies=t,this.facet=e,this.type=n,this.value=r,this.id=R++}dynamicSlot(t){var e;let n=this.value,r=this.facet.compareInput,i=this.id,s=t[i]>>1,o=2==this.type,l=!1,h=!1,a=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?h=!0:((null!==(e=t[n.id])&&void 0!==e?e:1)&1)==0&&a.push(t[n.id]);return{create:t=>(t.values[s]=n(t),1),update(t,e){if(l&&e.docChanged||h&&(e.docChanged||e.selection)||L(t,a)){let e=n(t);
vendor: 8,141 bytes, line 1
1if(o?!z(e,t.values[s],r):!r(e,t.values[s]))return t.values[s]=e,1}return 0},reconfigure:(t,e)=>{let l,h=e.config.address[i];if(null!=h){let i=Y(e,h);if(this.dependencies.every(n=>n instanceof D?e.facet(n)===t.facet(n):!(n instanceof q)||e.field(n,!1)==t.field(n,!1))||(o?z(l=n(t),i,r):r(l=n(t),i)))return t.values[s]=i,0}else l=n(t);return t.values[s]=l,1}}}}function z(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function L(t,e){let n=!1;for(let r of e)1&X(t,r)&&(n=!0);return n}let $=D.define({static:!0});class q{constructor(t,e,n,r,i){this.id=t,this.createF=e,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let e=new q(R++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet($).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let r=t.values[e],i=this.updateF(r,n);return this.compareF(r,i)?0:(t.values[e]=i,1)},reconfigure:(t,n)=>null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,$.of({field:this,create:t})]}get extension(){return this}}let W={lowest:4,low:3,default:2,high:1,highest:0};function V(t){return e=>new Q(e,t)}let U={highest:V(W.highest),high:V(W.high),default:V(W.default),low:V(W.low),lowest:V(W.lowest)};class Q{constructor(t,e){this.inner=t,this.prec=e}}class G{of(t){return new H(this,t)}reconfigure(t){return G.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class H{constructor(t,e){this.compartment=t,this.inner=e}}class K{constructor(t,e,n,r,i,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,n){let r,i,s=[],o=Object.create(null),l=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function t(n,s){let o=i.get(n);if(null!=o){if(o<=s)return;let t=r[o].indexOf(n);t>-1&&r[o].splice(t,1),n instanceof H&&l.delete(n.compartment)}if(i.set(n,s),Array.isArray(n))for(let e of n)t(e,s);else if(n instanceof H){if(l.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=e.get(n.compartment)||n.inner;l.set(n.compartment,r),t(r,s)}else if(n instanceof Q)t(n.inner,n.prec);else if(n instanceof q)r[s].push(n),n.provides&&t(n.provides,s);else if(n instanceof F)r[s].push(n),n.facet.extensions&&t(n.facet.extensions,W.default);else{let e=n.extension;if(!e)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(e,s)}}(t,W.default),r.reduce((t,e)=>t.concat(e))))n instanceof q?s.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let h=Object.create(null),a=[],f=[];for(let t of s)h[t.id]=f.length<<1,f.push(e=>t.slot(e));let u=null==n?void 0:n.config.facets;for(let t in o){let e=o[t],r=e[0].facet,i=u&&u[t]||[];if(e.every(t=>0==t.type)){if(h[r.id]=a.length<<1|1,j(i,e))a.push(n.facet(r));else{let t=r.combine(e.map(t=>t.value));a.push(n&&r.compare(t,n.facet(r))?n.facet(r):t)}}else{for(let t of e)0==t.type?(h[t.id]=a.length<<1|1,a.push(t.value)):(h[t.id]=f.length<<1,f.push(e=>t.dynamicSlot(e)));h[r.id]=f.length<<1,f.push(t=>(function(t,e,n){let r=n.map(e=>t[e.id]),i=n.map(t=>t.type),s=r.filter(t=>!(1&t)),o=t[e.id]>>1;function l(t){let n=[];for(let e=0;e<r.length;e++){let s=Y(t,r[e]);if(2==i[e])for(let t of s)n.push(t);else n.push(s)}return e.combine(n)}return{create(t){for(let e of r)X(t,e);return t.values[o]=l(t),1},update(t,n){if(!L(t,s))return 0;let r=l(t);return e.compare(r,t.values[o])?0:(t.values[o]=r,1)},reconfigure(t,i){let s=L(t,r),h=i.config.facets[e.id],a=i.facet(e);if(h&&!s&&j(n,h))return t.values[o]=a,0;let f=l(t);return e.compare(f,a)?(t.values[o]=a,0):(t.values[o]=f,1)}}})(t,r,e))}}let c=f.map(t=>t(h));return new K(t,l,c,h,a,o)}}function X(t,e){if(1&e)return 2;let n=e>>1,r=t.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function Y(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let Z=D.define(),tt=D.define({combine:t=>t.some(t=>t),static:!0}),te=D.define({combine:t=>t.length?t[0]:void 0,static:!0}),tn=D.define(),tr=D.define(),ti=D.define(),ts=D.define({combine:t=>!!t.length&&t[0]});class to{constructor(t,e){this.type=t,this.value=e}static define(){return new tl}}class tl{of(t){return new to(this,t)}}class th{constructor(t){this.map=t}of(t){return new ta(this,t)}}class ta{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new ta(this.type,e)}is(t){return this.type==t}static define(t={}){return new th(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let r of t){let t=r.map(e);t&&n.push(t)}return n}}ta.reconfigure=ta.define(),ta.appendConfig=ta.define();class tf{constructor(t,e,n,r,i,s){this.startState=t,this.changes=e,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,n&&J(n,e.newLength),i.some(t=>t.type==tf.time)||(this.annotations=i.concat(tf.time.of(Date.now())))}static create(t,e,n,r,i,s){return new tf(t,e,n,r,i,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(tf.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function tu(t,e,n){var r;let i,s,o;return n?(i=e.changes,s=C.empty(e.changes.length),o=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(s):null===(r=t.selection)||void 0===r?void 0:r.map(i),effects:ta.mapEffects(t.effects,i).concat(ta.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function tc(t,e,n){let r=e.selection,i=tp(e.annotations);return e.userEvent&&(i=i.concat(tf.userEvent.of(e.userEvent))),{changes:e.changes instanceof C?e.changes:C.of(e.changes||[],n,t.facet(te)),selection:r&&(r instanceof _?r:_.single(r.anchor,r.head)),effects:tp(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}tf.time=to.define(),tf.userEvent=to.define(),tf.addToHistory=to.define(),tf.remote=to.define();let td=[];function tp(t){return null==t?td:Array.isArray(t)?t:[t]}var tg=((S=tg||(tg={}))[S.Word=0]="Word",S[S.Space=1]="Space",S[S.Other=2]="Other",S);let tm=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}class ty{constructor(t,e,n,r,i,s){this.config=t,this.doc=e,this.selection=n,this.values=r,this.status=t.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let t=0;t<this.config.dynamicSlots.length;t++)X(this,t<<1);this.computeSlot=null}field(t,e=!0){let n=this.config.address[t.id];if(null==n){if(e)throw RangeError("Field is not present in this state");return}return X(this,n),Y(this,n)}update(...t){return function t(e,n,r){let i=tc(e,n.length?n[0]:{},e.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let t=1;t<n.length;t++){!1===n[t].filter&&(r=!1);let s=!!n[t].sequential;i=tu(i,tc(e,n[t],s?i.changes.newLength:e.doc.length),s)}let s=tf.create(e,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);
vendor: 5,452 bytes, line 1
1return function(t){let e=t.startState,n=e.facet(ti),r=t;for(let i=n.length-1;i>=0;i--){let s=n[i](t);s&&Object.keys(s).length&&(r=tu(r,tc(e,s,t.changes.newLength),!0))}return r==t?t:tf.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(e){let n=e.startState,r=!0;for(let t of n.facet(tn)){let n=t(e);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(t,e){let n=[];for(let r=0,i=0;;){let s,o;if(r<t.length&&(i==e.length||e[i]>=t[r]))s=t[r++],o=t[r++];else{if(!(i<e.length))return n;s=e[i++],o=e[i++]}!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}(r,n))}if(!0!==r){let t,i;if(!1===r)i=e.changes.invertedDesc,t=C.empty(n.doc.length);else{let n=e.changes.filter(r);t=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}e=tf.create(n,t,e.selection&&e.selection.map(i),ta.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let i=n.facet(tr);for(let r=i.length-1;r>=0;r--){let s=i[r](e);e=s instanceof tf?s:Array.isArray(s)&&1==s.length&&s[0]instanceof tf?s[0]:t(n,tp(s),!1)}return e}(s):s)}(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(G.reconfigure)?(n&&(i=new Map,n.compartments.forEach((t,e)=>i.set(e,t)),n=null),i.set(e.value.compartment,e.value.extension)):e.is(ta.reconfigure)?(n=null,r=e.value):e.is(ta.appendConfig)&&(n=null,r=tp(r).concat(e.value));n?e=t.startState.values.slice():(n=K.resolve(r,i,this),e=new ty(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values),new ty(n,t.newDoc,t.newSelection,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:_.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),r=this.changes(n.changes),i=[n.range],s=tp(n.effects);for(let n=1;n<e.ranges.length;n++){let o=t(e.ranges[n]),l=this.changes(o.changes),h=l.map(r);for(let t=0;t<n;t++)i[t]=i[t].map(h);let a=r.mapDesc(l,!0);i.push(o.range.map(a)),r=r.compose(h),s=ta.mapEffects(s,h).concat(ta.mapEffects(tp(o.effects),a))}return{changes:r,selection:_.create(i,e.mainIndex),effects:s}}changes(t=[]){return t instanceof C?t:C.of(t,this.doc.length,this.facet(ty.lineSeparator))}toText(t){return i.of(t.split(this.facet(ty.lineSeparator)||w))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(X(this,e),Y(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let r=t[n];r instanceof q&&null!=this.config.address[r.id]&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}static fromJSON(t,e={},n){if(!t||"string"!=typeof t.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(t,e)){let i=n[e],s=t[e];r.push(i.init(t=>i.spec.fromJSON(s,t)))}}return ty.create({doc:t.doc,selection:_.fromJSON(t.selection),extensions:e.extensions?r.concat([e.extensions]):r})}static create(t={}){let e=K.resolve(t.extensions||[],new Map),n=t.doc instanceof i?t.doc:i.of((t.doc||"").split(e.staticFacet(ty.lineSeparator)||w)),r=t.selection?t.selection instanceof _?t.selection:_.single(t.selection.anchor,t.selection.head):_.single(0);return J(r,n.length),e.staticFacet(tt)||(r=r.asSingle()),new ty(e,n,r,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(ty.tabSize)}get lineBreak(){return this.facet(ty.lineSeparator)||"\n"}get readOnly(){return this.facet(ts)}phrase(t,...e){for(let e of this.facet(ty.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>e.length?t:e[r-1]})),t}languageDataAt(t,e,n=-1){let r=[];for(let i of this.facet(Z))for(let s of i(this,e,n))Object.prototype.hasOwnProperty.call(s,t)&&r.push(s[t]);return r}charCategorizer(t){var e;return e=this.languageDataAt("wordChars",t).join(""),t=>{if(!/\S/.test(t))return tg.Space;if(function(t){if(r)return r.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||tm.test(n)))return!0}return!1}(t))return tg.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return tg.Word;return tg.Other}}wordAt(t){let{text:e,from:n,length:r}=this.doc.lineAt(t),i=this.charCategorizer(t),s=t-n,o=t-n;for(;s>0;){let t=p(e,s,!1);if(i(e.slice(t,s))!=tg.Word)break;s=t}for(;o<r;){let t=p(e,o);if(i(e.slice(o,t))!=tg.Word)break;o=t}return s==o?null:_.range(s+n,o+n)}}function tx(t,e,n={}){let r={};for(let e of t)for(let t of Object.keys(e)){let i=e[t],s=r[t];if(void 0===s)r[t]=i;else if(s===i||void 0===i);else if(Object.hasOwnProperty.call(n,t))r[t]=n[t](s,i);else throw Error("Config merge conflict for field "+t)}for(let t in e)void 0===r[t]&&(r[t]=e[t]);return r}ty.allowMultipleSelections=tt,ty.tabSize=D.define({combine:t=>t.length?t[0]:4}),ty.lineSeparator=te,ty.readOnly=ts,ty.phrases=D.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(n=>t[n]==e[n])}}),ty.languageData=Z,ty.changeFilter=tn,ty.transactionFilter=tr,ty.transactionExtender=ti,G.reconfigure=ta.define();class tv{eq(t){return this==t}range(t,e=t){return tk.create(t,e,this)}}tv.prototype.startSide=tv.prototype.endSide=0,tv.prototype.point=!1,tv.prototype.mapM
vendor: 9,035 bytes, line 1
1ode=A.TrackDel;class tk{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tk(t,e,n)}}function tw(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tb{constructor(t,e,n,r){this.from=t,this.to=e,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,r=0){let i=n?this.to:this.from;for(let s=r,o=i.length;;){if(s==o)return s;let r=s+o>>1,l=i[r]-t||(n?this.value[r].endSide:this.value[r].startSide)-e;if(r==s)return l>=0?s:o;l>=0?o=r:s=r+1}}between(t,e,n,r){for(let i=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,i);i<s;i++)if(!1===r(this.from[i]+t,this.to[i]+t,this.value[i]))return!1}map(t,e){let n=[],r=[],i=[],s=-1,o=-1;for(let l=0;l<this.value.length;l++){let h=this.value[l],a=this.from[l]+t,f=this.to[l]+t,u,c;if(a==f){let t=e.mapPos(a,h.startSide,h.mapMode);if(null==t||(u=c=t,h.startSide!=h.endSide&&(c=e.mapPos(a,h.endSide))<u))continue}else if((u=e.mapPos(a,h.startSide))>(c=e.mapPos(f,h.endSide))||u==c&&h.startSide>0&&h.endSide<=0)continue;0>(c-u||h.endSide-h.startSide)||(s<0&&(s=u),h.point&&(o=Math.max(o,c-u)),n.push(h),r.push(u-s),i.push(c-s))}return{mapped:n.length?new tb(r,i,n,o):null,pos:s}}}class tS{constructor(t,e,n,r){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=r}static create(t,e,n,r){return new tS(t,e,n,r)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=t,s=t.filter;if(0==e.length&&!s)return this;if(n&&(e=e.slice().sort(tw)),this.isEmpty)return e.length?tS.of(e):this;let o=new tC(this,null,-1).goto(0),l=0,h=[],a=new tA;for(;o.value||l<e.length;)if(l<e.length&&(o.from-e[l].from||o.startSide-e[l].value.startSide)>=0){let t=e[l++];a.addInner(t.from,t.to,t.value)||h.push(t)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(l==e.length||this.chunkEnd(o.chunkIndex)<e[l].from)&&(!s||r>this.chunkEnd(o.chunkIndex)||i<this.chunkPos[o.chunkIndex])&&a.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||r>o.to||i<o.from||s(o.from,o.to,o.value))&&!a.addInner(o.from,o.to,o.value)&&h.push(tk.create(o.from,o.to,o.value)),o.next());return a.finishInner(this.nextLayer.isEmpty&&!h.length?tS.empty:this.nextLayer.update({add:h,filter:s,filterFrom:r,filterTo:i}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i],l=t.touchesRange(s,s+o.length);if(!1===l)r=Math.max(r,o.maxPoint),e.push(o),n.push(t.mapPos(s));else if(!0===l){let{mapped:i,pos:l}=o.map(s,t);i&&(r=Math.max(r,i.maxPoint),e.push(i),n.push(l))}}let i=this.nextLayer.map(t);return 0==e.length?i:new tS(n,e,i||tS.empty,r)}between(t,e,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],s=this.chunk[r];if(e>=i&&t<=i+s.length&&!1===s.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tO.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tO.from(t).goto(e)}static compare(t,e,n,r,i=-1){let s=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i),o=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i),l=tI(s,o,n),h=new tP(s,l,i),a=new tP(o,l,i);n.iterGaps((t,e,n)=>tM(h,t,a,e,n,r)),n.empty&&0==n.length&&tM(h,0,a,0,0,r)}static eq(t,e,n=0,r){null==r&&(r=999999999);let i=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(i.length!=s.length)return!1;if(!i.length)return!0;let o=tI(i,s),l=new tP(i,o,0).goto(n),h=new tP(s,o,0).goto(n);for(;;){if(l.to!=h.to||!tE(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>r)return!0;l.next(),h.next()}}static spans(t,e,n,r,i=-1){let s=new tP(t,null,i).goto(e),o=e,l=s.openStart;for(;;){let t=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),i=s.pointFrom<e?n.length+1:Math.min(n.length,l);r.point(o,t,s.point,n,i,s.pointRank),l=Math.min(s.openEnd(t),n.length)}else t>o&&(r.span(o,t,s.active,l),l=s.openEnd(t));if(s.to>n)return l+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(t,e=!1){let n=new tA;for(let r of t instanceof tk?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(tw(e,r)>0)return t.slice().sort(tw);e=r}return t}(t):t)n.add(r.from,r.to,r.value);return n.finish()}}tS.empty=new tS([],[],null,-1),tS.empty.nextLayer=tS.empty;class tA{finishChunk(t){this.chunks.push(new tb(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new tA)).add(t,e,n)}addInner(t,e,n){let r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(tS.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=tS.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tI(t,e,n){let r=new Map;for(let e of t)for(let t=0;t<e.chunk.length;t++)e.chunk[t].maxPoint<=0&&r.set(e.chunk[t],e.chunkPos[t]);let i=new Set;for(let t of e)for(let e=0;e<t.chunk.length;e++){let s=r.get(t.chunk[e]);null==s||(n?n.mapPos(s):s)!=t.chunkPos[e]||(null==n?void 0:n.touchesRange(s,s+t.chunk[e].length))||i.add(t.chunk[e])}return i}class tC{constructor(t,e,n,r=0){this.layer=t,this.skip=e,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,n){for(;this.chunkIndex<this.layer.chunk.length;){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(t,e){0>(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class tO{constructor(t){this.heap=t}static from(t,e=null,n=-1){let r=[];for(let i=0;i<t.length;i++)for(let s=t[i];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&r.push(new tC(s,e,n,i));return 1==r.length?r[0]:new tO(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)tN(this.heap,t);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)tN(this.heap,t);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tN(this.heap,0)}}}function tN(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];
1if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),0>n.compare(i))break;t[r]=n,t[e]=i,e=r}}class tP{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tO.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tT(this.active,t),tT(this.activeTo,t),tT(this.activeRank,t),this.minActive=t_(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:r,rank:i}=this.cursor;for(;e<this.activeRank.length&&this.activeRank[e]<=i;)e++;tB(this.active,e,n),tB(this.activeTo,e,r),tB(this.activeRank,e,i),t&&tB(t,e,this.cursor.from),this.minActive=t_(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&tT(n,r)}else if(this.cursor.value){if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(n),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let e=n.length-1;e>=0&&n[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tM(t,e,n,r,i,s){t.goto(e),n.goto(r);let o=r+i,l=r,h=r-e;for(;;){let e=t.to+h-n.to||t.endSide-n.endSide,r=e<0?t.to+h:n.to,i=Math.min(r,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&tE(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(l,i,t.point,n.point):i>l&&!tE(t.active,n.active)&&s.compareRange(l,i,t.active,n.active),r>o)break;l=r,e<=0&&t.next(),e>=0&&n.next()}}function tE(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function tT(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function tB(t,e,n){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=n}function t_(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)0>(e[i]-r||t[i].endSide-t[n].endSide)&&(n=i,r=e[i]);return n}function tJ(t,e,n=t.length){let r=0;for(let i=0;i<n;)9==t.charCodeAt(i)?(r+=e-r%e,i++):(r++,i=p(t,i));return r}function tR(t,e,n,r){for(let r=0,i=0;;){if(i>=e)return r;if(r==t.length)break;i+=9==t.charCodeAt(r)?n-i%n:1,r=p(t,r)}return!0===r?-1:t.length}},21649:function(t,e,n){var r,i;n.d(e,{FE:function(){return J},Jq:function(){return u},L3:function(){return s},Lj:function(){return c},_b:function(){return B},hr:function(){return E},i9:function(){return T},md:function(){return h},mp:function(){return g},vj:function(){return r}});let s=1024,o=0;class l{constructor(t,e){this.from=t,this.to=e}}class h{constructor(t={}){this.id=o++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=u.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}h.closedBy=new h({deserialize:t=>t.split(" ")}),h.openedBy=new h({deserialize:t=>t.split(" ")}),h.group=new h({deserialize:t=>t.split(" ")}
1),h.contextHash=new h({perNode:!0}),h.lookAhead=new h({perNode:!0}),h.mounted=new h({perNode:!0});class a{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}}let f=Object.create(null);class u{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):f,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),r=new u(t.name||"",e,t.id,n);if(t.props){for(let n of t.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(h.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(h.group),r=-1;r<(n?n.length:0);r++){let i=e[r<0?t.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);t&&(r||(r=Object.assign({},n.props)),r[t[0].id]=t[1])}e.push(r?new u(n.name,r,n.id,n.flags):n)}return new c(e)}}let d=new WeakMap,p=new WeakMap;(i=r||(r={}))[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays";class g{constructor(t,e,n,r,i){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[t,e]of(this.props=Object.create(null),i))this.props["number"==typeof t?t:t.id]=e}toString(){let t=this.prop(h.mounted);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new C(this.topNode,t)}cursorAt(t,e=0,n=0){let r=d.get(this)||this.topNode,i=new C(r);return i.moveTo(t,e),d.set(this,i._tree),i}get topNode(){return new w(this,0,0,null)}resolve(t,e=0){let n=k(d.get(this)||this.topNode,t,e,!1);return d.set(this,n),n}resolveInner(t,e=0){let n=k(p.get(this)||this.topNode,t,e,!0);return p.set(this,n),n}iterate(t){let{enter:e,leave:n,from:i=0,to:s=this.length}=t,o=t.mode||0,l=(o&r.IncludeAnonymous)>0;for(let t=this.cursor(o|r.IncludeAnonymous);;){let r=!1;if(t.from<=s&&t.to>=i&&(!l&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;r=!0}for(;r&&n&&(l||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;r=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:M(u.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new g(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new g(u.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=s,reused:o=[],minRepeatType:l=r.types.length}=t,a=Array.isArray(n)?new m(n,n.length):n,f=r.types,u=0,c=0;function d(t,e,n,i,s,o,l,h){let a=[],f=[];for(;t.length>i;)a.push(t.pop()),f.push(e.pop()+n-s);t.push(p(r.types[l],a,f,o-s,h-o)),e.push(s-n)}function p(t,e,n,r,i=0,s){if(u){let t=[h.contextHash,u];s=s?[t].concat(s):[t]}if(i>25){let t=[h.lookAhead,i];s=s?[t].concat(s):[t]}return new g(t,e,n,r,s)}let x=[],v=[];for(;a.pos>0;)!function t(e,n,s,m,x){let{id:v,start:k,end:w,size:b}=a,S=c;for(;b<0;){if(a.next(),-1==b){let t=o[v];s.push(t),m.push(k-e);return}if(-3==b){u=v;return}if(-4==b){c=v;return}throw RangeError(`Unrecognized record size: ${b}`)}let A=f[v],I,C,O=k-e;if(w-k<=i&&(C=function(t,e){let n=a.fork(),r=0,s=0,o=0,h=n.end-i,f={size:0,start:0,skip:0};e:for(let i=n.pos-t;n.pos>i;){let t=n.size;if(n.id==e&&t>=0){f.size=r,f.start=s,f.skip=o,o+=4,r+=4,n.next();continue}let a=n.pos-t;if(t<0||a<i||n.start<h)break;let u=n.id>=l?4:0,c=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3==n.size)u+=4;else break e}else n.id>=l&&(u+=4);n.next()}s=c,r+=t,o+=u}return(e<0||r==t)&&(f.size=r,f.start=s,f.skip=o),f.size>4?f:void 0}(a.pos-n,x))){let t=new Uint16Array(C.size-C.skip),n=a.pos-C.size,i=t.length;for(;a.pos>n;)i=function t(e,n,r){let{id:i,start:s,end:o,size:h}=a;if(a.next(),h>=0&&i<l){let l=r;if(h>4){let i=a.pos-(h-4);for(;a.pos>i;)r=t(e,n,r)}n[--r]=l,n[--r]=o-e,n[--r]=s-e,n[--r]=i}else -3==h?u=i:-4==h&&(c=i);return r}(C.start,t,i);I=new y(t,w-C.start,r),O=C.start-e}else{let e=a.pos-b;a.next();let n=[],r=[],s=v>=l?v:-1,o=0,f=w;for(;a.pos>e;)s>=0&&a.id==s&&a.size>=0?(a.end<=f-i&&(d(n,r,k,o,a.end,f,s,S),o=n.length,f=a.end),a.next()):t(k,e,n,r,s);if(s>=0&&o>0&&o<n.length&&d(n,r,k,o,k,f,s,S),n.reverse(),r.reverse(),s>-1&&o>0){let t=function(t){return(e,n,r)=>{let i=0,s=e.length-1,o,l;if(s>=0&&(o=e[s])instanceof g){if(!s&&o.type==t&&o.length==r)return o;(l=o.prop(h.lookAhead))&&(i=n[s]+o.length+l)}return p(t,e,n,r,i)}}(A);I=M(A,n,r,0,n.length,0,w-k,t,t)}else I=p(A,n,r,w-k,S-w)}s.push(I),m.push(O)}(t.start||0,t.bufferStart||0,x,v,-1);let k=null!==(e=t.length)&&void 0!==e?e:x.length?v[0]+x[0].length:0;return new g(f[t.topID],x.reverse(),v.reverse(),k)}(t)}}g.empty=new g(u.none,[],[],0);class m{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class y{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return u.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],i=r.name;
1if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(t+=4))return i;let s=[];for(;t<n;)s.push(this.childString(t)),t=this.buffer[t+3];return i+"("+s.join(",")+")"}findChild(t,e,n,r,i){let{buffer:s}=this,o=-1;for(let l=t;l!=e&&(!x(i,r,s[l+1],s[l+2])||(o=l,!(n>0)));l=s[l+3]);return o}slice(t,e,n){let r=this.buffer,i=new Uint16Array(e-t),s=0;for(let o=t,l=0;o<e;){i[l++]=r[o++],i[l++]=r[o++]-n;let e=i[l++]=r[o++]-n;i[l++]=r[o++]-t,s=Math.max(s,e)}return new y(i,s,this.set)}}function x(t,e,n,r){switch(t){case -2:return n<e;case -1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function v(t,e){let n=t.childBefore(e);for(;n;){let e=n.lastChild;if(!e||e.to!=n.to)break;e.type.isError&&e.from==e.to?(t=n,n=e.prevSibling):n=e}return t}function k(t,e,n,i){for(var s;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!i&&t instanceof w&&t.index<0?null:t.parent;if(!e)return t;t=e}let o=i?0:r.IgnoreOverlays;if(i)for(let r=t,i=r.parent;i;i=(r=i).parent)r instanceof w&&r.index<0&&(null===(s=i.enter(e,n,o))||void 0===s?void 0:s.from)!=r.from&&(t=i);for(;;){let r=t.enter(e,n,o);if(!r)return t;t=r}}class w{constructor(t,e,n,r){this._tree=t,this.from=e,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,n,i,s=0){for(let o=this;;){for(let{children:l,positions:a}=o._tree,f=e>0?l.length:-1;t!=f;t+=e){let f=l[t],u=a[t]+o.from;if(x(i,n,u,u+f.length)){if(f instanceof y){if(s&r.ExcludeBuffers)continue;let l=f.findChild(0,f.buffer.length,e,n-u,i);if(l>-1)return new I(new A(o,f,t,u),null,l)}else if(s&r.IncludeAnonymous||!f.type.isAnonymous||O(f)){let l;if(!(s&r.IgnoreMounts)&&f.props&&(l=f.prop(h.mounted))&&!l.overlay)return new w(l.tree,u,t,o);let a=new w(f,u,t,o);return s&r.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?f.children.length-1:0,e,n,i)}}}if(s&r.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+e:e<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let i;if(!(n&r.IgnoreOverlays)&&(i=this._tree.prop(h.mounted))&&i.overlay){let n=t-this.from;for(let{from:t,to:r}of i.overlay)if((e>0?t<=n:t<n)&&(e<0?r>=n:r>n))return new w(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(t=0){return new C(this,t)}get tree(){return this._tree}toTree(){return this._tree}resolve(t,e=0){return k(this,t,e,!1)}resolveInner(t,e=0){return k(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}getChild(t,e=null,n=null){let r=b(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return b(this,t,e,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(t){return S(this,t)}}function b(t,e,n,r){let i=t.cursor(),s=[];if(!i.firstChild())return s;if(null!=n){for(;!i.type.is(n);)if(!i.nextSibling())return s}for(;;){if(null!=r&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return null==r?s:[]}}function S(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class A{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class I{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new I(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}
1enter(t,e,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new I(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new I(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new I(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}cursor(t=0){return new C(this,t)}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let s=n.buffer[this.index+1];t.push(n.slice(r,i,s)),e.push(0)}return new g(this.type,t,e,this.to-this.from)}resolve(t,e=0){return k(this,t,e,!1)}resolveInner(t,e=0){return k(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}toString(){return this.context.buffer.childString(this.index)}getChild(t,e=null,n=null){let r=b(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return b(this,t,e,n)}get node(){return this}matchContext(t){return S(this,t)}}class C{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof w)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;
vendor: 4,517 bytes, line 1
1for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof w?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(i.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=i)}else({index:e,_parent:n}=this._tree);for(;n;{index:e,_parent:n}=n)if(e>-1)for(let i=e+t,s=t<0?-1:n._tree.children.length;i!=s;i+=t){let t=n._tree.children[i];if(this.mode&r.IncludeAnonymous||t instanceof y||!t.type.isAnonymous||O(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let s=t;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,n=i+1;break e}r=this.stack[--i]}for(let t=n;t<this.stack.length;t++)e=new I(this.buffer,e,this.stack[t]);return this.bufferNode=new I(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&e&&e(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return S(this.node,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return S(this.node,t,r);let s=n[e.buffer[this.stack[i]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}}function O(t){return t.children.some(t=>t instanceof y||!t.type.isAnonymous||O(t))}let N=new WeakMap;function P(t,e){if(!t.isAnonymous||e instanceof y||e.type!=t)return 1;let n=N.get(e);if(null==n){for(let r of(n=1,e.children)){if(r.type!=t||!(r instanceof g)){n=1;break}n+=P(t,r)}N.set(e,n)}return n}function M(t,e,n,r,i,s,o,l,h){let a=0;for(let n=r;n<i;n++)a+=P(t,e[n]);let f=Math.ceil(1.5*a/8),u=[],c=[];return!function e(n,r,i,o,l){for(let a=i;a<o;){let i=a,d=r[a],p=P(t,n[a]);for(a++;a<o;a++){let e=P(t,n[a]);if(p+e>=f)break;p+=e}if(a==i+1){if(p>f){let t=n[i];e(t.children,t.positions,0,t.children.length,r[i]+l);continue}u.push(n[i])}else{let e=r[a-1]+n[a-1].length-d;
vendor: 2,217 bytes, line 1
1u.push(M(t,n,r,i,a,d,e,null,h))}c.push(d+l-s)}}(e,n,r,i,0),(l||h)(u,c,o)}class E{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let r=this.map.get(t);r||this.map.set(t,r=new Map),r.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof I?this.setBuffer(t.context.buffer,t.index,e):t instanceof w&&this.map.set(t.tree,e)}get(t){return t instanceof I?this.getBuffer(t.context.buffer,t.index):t instanceof w?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class T{constructor(t,e,n,r,i=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new T(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&r.push(n);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],i=1,s=t.length?t[0]:null;for(let o=0,l=0,h=0;;o++){let a=o<e.length?e[o]:null,f=a?a.fromA:1e9;if(f-l>=n)for(;s&&s.from<f;){let e=s;if(l>=e.from||f<=e.to||h){let t=Math.max(e.from,l)-h,n=Math.min(e.to,f)-h;e=t>=n?null:new T(t,n,e.tree,e.offset+h,o>0,!!a)}if(e&&r.push(e),s.to>f)break;s=i<t.length?t[i++]:null}if(!a)break;l=a.toA,h=a.toA-a.toB}return r}}class B{startParse(t,e,n){return"string"==typeof t&&(t=new _(t)),n=n?n.length?n.map(t=>new l(t.from,t.to)):[new l(0,0)]:[new l(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class _{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function J(t){return(e,n,r,i)=>new F(e,t,n,r,i)}class R{constructor(t,e,n,r,i){if(this.parser=t,this.parse=e,this.overlay=n,this.target=r,this.ranges=i,!i.length||i.some(t=>t.from>=t.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}}class D{constructor(t,e,n,r,i,s,o){this.parser=t,this.predicate=e,this.mounts=n,this.index=r,this.start=i,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}
1let j=new h({perNode:!0});class F{constructor(t,e,n,r,i){this.nest=e,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new g(t.type,t.children,t.positions,t.length,t.propValues.concat([[j,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[h.mounted.id]=new a(e,t.overlay,t.parser),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].ranges[0].from<t&&(t=Math.min(t,this.inner[e].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].parse.stopAt(t)}startInner(){let t=new $(this.fragments),e=null,n=null,i=new C(new w(this.baseTree,this.ranges[0].from,0,null),r.IncludeAnonymous|r.IgnoreMounts);e:for(let r,s;null==this.stoppedAt||i.from<this.stoppedAt;){let o=!0,h;if(t.hasNode(i)){if(e){let t=e.mounts.find(t=>t.frag.from<=i.from&&t.frag.to>=i.to&&t.mount.overlay);if(t)for(let n of t.mount.overlay){let r=n.from+t.pos,s=n.to+t.pos;r>=i.from&&s<=i.to&&!e.ranges.some(t=>t.from<s&&t.to>r)&&e.ranges.push({from:r,to:s})}}o=!1}else if(n&&(s=function(t,e,n){for(let r of t){if(r.from>=n)break;if(r.to>e)return r.from<=e&&r.to>=n?2:1}return 0}(n.ranges,i.from,i.to)))o=2!=s;else if(!i.type.isAnonymous&&i.from<i.to&&(r=this.nest(i,this.input))){i.tree||function(t){let{node:e}=t,n=0;do t.parent(),n++;while(!t.tree);let r=0,i=t.tree,s=0;for(;!((s=i.positions[r]+t.from)<=e.from)||!(s+i.children[r].length>=e.to);r++);let o=i.children[r],l=o.buffer;i.children[r]=function t(n,r,i,h,a){let f=n;for(;l[f+2]+s<=e.from;)f=l[f+3];let u=[],c=[];z(o,n,f,u,c,h);let d=l[f+1],p=l[f+2],m=d+s==e.from&&p+s==e.to&&l[f]==e.type.id;return u.push(m?e.toTree():t(f+4,l[f+3],o.set.types[l[f]],d,p-d)),c.push(d-h),z(o,l[f+3],r,u,c,h),new g(i,u,c,a)}(0,l.length,u.none,0,o.length);for(let r=0;r<=n;r++)t.childAfter(e.from)}(i);let s=t.findMounts(i.from,r.parser);if("function"==typeof r.overlay)e=new D(r.parser,r.overlay,s,this.inner.length,i.from,i.tree,e);else{let t=q(this.ranges,r.overlay||[new l(i.from,i.to)]);t.length&&this.inner.push(new R(r.parser,r.parser.startParse(this.input,W(s,t),t),r.overlay?r.overlay.map(t=>new l(t.from-i.from,t.to-i.from)):null,i.tree,t)),r.overlay?t.length&&(n={ranges:t,depth:0,prev:n}):o=!1}}else e&&(h=e.predicate(i))&&(!0===h&&(h=new l(i.from,i.to)),h.from<h.to&&e.ranges.push(h));if(o&&i.firstChild())e&&e.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(e&&!--e.depth){let t=q(this.ranges,e.ranges);t.length&&this.inner.splice(e.index,0,new R(e.parser,e.parser.startParse(this.input,W(e.mounts,t),t),e.ranges.map(t=>new l(t.from-e.start,t.to-e.start)),e.target,t)),e=e.prev}!n||--n.depth||(n=n.prev)}}}}function z(t,e,n,r,i,s){if(e<n){let o=t.buffer[e+1];r.push(t.slice(e,n,o)),i.push(o-s)}}class L{constructor(t,e){this.offset=e,this.done=!1,this.cursor=t.cursor(r.IncludeAnonymous|r.IgnoreMounts)}moveTo(t){let{cursor:e}=this,n=t-this.offset;for(;!this.done&&e.from<n;)e.to>=t&&e.enter(n,1,r.IgnoreOverlays|r.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(e.children.length&&0==e.positions[0]&&e.children[0]instanceof g)e=e.children[0];else break}return!1}}class ${constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(j))&&void 0!==e?e:n.to,this.inner=new L(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(j))&&void 0!==t?t:e.to,this.inner=new L(e.tree,-e.offset)}}findMounts(t,e){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let i=null===(n=t.tree)||void 0===n?void 0:n.prop(h.mounted);if(i&&i.parser==e)for(let e=this.fragI;e<this.fragments.length;e++){let n=this.fragments[e];if(n.from>=t.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:t.from-n.offset,mount:i})}}}return r}}function q(t,e){let n=null,r=e;for(let i=1,s=0;i<t.length;i++){let o=t[i-1].to,h=t[i].from;for(;s<r.length;s++){let t=r[s];if(t.from>=h)break;!(t.to<=o)&&(n||(r=n=e.slice()),t.from<o?(n[s]=new l(t.from,o),t.to>h&&n.splice(s+1,0,new l(h,t.to))):t.to>h?n[s--]=new l(h,t.to):n.splice(s--,1))}}return r}function W(t,e){let n=[];for(let{pos:r,mount:i,frag:s}of t){let t=r+(i.overlay?i.overlay[0].from:0),o=t+i.tree.length,h=Math.max(s.from,t),a=Math.min(s.to,o);if(i.overlay){let o=function(t,e,n,r){let i=0,s=0,o=!1,h=!1,a=-1e9,f=[];for(;;){let u=i==t.length?1e9:o?t[i].to:t[i].from,c=s==e.length?1e9:h?e[s].to:e[s].from;if(o!=h){let t=Math.max(a,n),e=Math.min(u,c,r);t<e&&f.push(new l(t,e))}if(1e9==(a=Math.min(u,c)))break;u==a&&(o?(o=!1,i++):o=!0),c==a&&(h?(h=!1,s++):h=!0)}return f}(e,i.overlay.map(t=>new l(t.from+r,t.to+r)),h,a);for(let e=0,r=h;;e++){let l=e==o.length,h=l?a:o[e].from;if(h>r&&n.push(new T(r,h,i.tree,-t,s.from>=r||s.openStart,s.to<=h||s.openEnd)),l)break;r=o[e].to}}else n.push(new T(h,a,i.tree,-t,s.from>=t||s.openStart,s.to<=o||s.openEnd))}return n}},86253:function(t,e,n){n.d(e,{Gv:function(){return h},QR:function(){return u},bW:function(){return c},pJ:function(){return P}});var r=n(21649);let i=0;class s{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=i++}static define(t){if(null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let e=new s([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new l;return e=>e.modified.indexOf(t)>-1?e:l.get(e.base||e,e.modified.concat(t).sort((t,e)=>t.id-e.id))}}let o=0;class l{constructor(){this.instances=[],this.id=o++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{var r;return n.base==t&&(r=n.modified,e.length==r.length&&e.every((t,e)=>t==r[e]))});if(n)return n;let r=[],i=new s(r,t,e);for(let t of e)t.instances.push(i);let o=function(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of o)r.push(l.get(e,t));return i}}function h(t){let e=Object.create(null);for(let n in t){let r=t[n];for(let t of(Array.isArray(r)||(r=[r]),n.split(" ")))if(t){let n=[],i=2,s=t;
1for(let e=0;;){if("..."==s&&e>0&&e+3==t.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!r)throw RangeError("Invalid path: "+t);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(e+=r[0].length)==t.length)break;let o=t[e++];if(e==t.length&&"!"==o){i=0;break}if("/"!=o)throw RangeError("Invalid path: "+t);s=t.slice(e)}let o=n.length-1,l=n[o];if(!l)throw RangeError("Invalid path: "+t);let h=new f(r,i,o>0?n.slice(0,o):null);e[l]=h.sort(e[l])}}return a.add(e)}let a=new r.md;class f{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function u(t,e){let n=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)n[t.id]=e.class;else n[e.tag.id]=e.class;let{scope:r,all:i=null}=e||{};return{style:t=>{let e=i;for(let r of t)for(let t of r.set){let r=n[t.id];if(r){e=e?e+" "+r:r;break}}return e},scope:r}}function c(t,e,n,r=0,i=t.length){let s=new d(r,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),r,i,"",s.highlighters),s.flush(i)}f.empty=new f([],2,null);class d{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,i,s){let{type:o,from:l,to:h}=t;if(l>=n||h<=e)return;o.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(o)));let u=i,c=function(t){let e=t.type.prop(a);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||f.empty,d=function(t,e){let n=null;for(let r of t){let t=r.style(e);t&&(n=n?n+" "+t:t)}return n}(s,c.tags);if(d&&(u&&(u+=" "),u+=d,1==c.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(e,l),u),c.opaque)return;let p=t.tree&&t.tree.prop(r.md.mounted);if(p&&p.overlay){let r=t.node.enter(p.overlay[0].from+l,1),o=this.highlighters.filter(t=>!t.scope||t.scope(p.tree.type)),a=t.firstChild();for(let f=0,c=l;;f++){let d=f<p.overlay.length?p.overlay[f]:null,g=d?d.from+l:h,m=Math.max(e,c),y=Math.min(n,g);
1if(m<y&&a)for(;t.from<y&&(this.highlightRange(t,m,y,i,s),this.startSpan(Math.min(y,t.to),u),!(t.to>=g)&&t.nextSibling()););if(!d||g>n)break;(c=d.to+l)>e&&(this.highlightRange(r.cursor(),Math.max(e,d.from+l),Math.min(n,c),"",o),this.startSpan(Math.min(n,c),u))}a&&t.parent()}else if(t.firstChild()){p&&(i="");do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,i,s),this.startSpan(Math.min(n,t.to),u)}while(t.nextSibling());t.parent()}}}let p=s.define,g=p(),m=p(),y=p(m),x=p(m),v=p(),k=p(v),w=p(v),b=p(),S=p(b),A=p(),I=p(),C=p(),O=p(C),N=p(),P={comment:g,lineComment:p(g),blockComment:p(g),docComment:p(g),name:m,variableName:p(m),typeName:y,tagName:p(y),propertyName:x,attributeName:p(x),className:p(m),labelName:p(m),namespace:p(m),macroName:p(m),literal:v,string:k,docString:p(k),character:p(k),attributeValue:p(k),number:w,integer:p(w),float:p(w),bool:p(v),regexp:p(v),escape:p(v),color:p(v),url:p(v),keyword:A,self:p(A),null:p(A),atom:p(A),unit:p(A),modifier:p(A),operatorKeyword:p(A),controlKeyword:p(A),definitionKeyword:p(A),moduleKeyword:p(A),operator:I,derefOperator:p(I),arithmeticOperator:p(I),logicOperator:p(I),bitwiseOperator:p(I),compareOperator:p(I),updateOperator:p(I),definitionOperator:p(I),typeOperator:p(I),controlOperator:p(I),punctuation:C,separator:p(C),bracket:O,angleBracket:p(O),squareBracket:p(O),paren:p(O),brace:p(O),content:b,heading:S,heading1:p(S),heading2:p(S),heading3:p(S),heading4:p(S),heading5:p(S),heading6:p(S),contentSeparator:p(b),list:p(b),quote:p(b),emphasis:p(b),strong:p(b),link:p(b),monospace:p(b),strikethrough:p(b),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:N,documentMeta:p(N),annotation:p(N),processingInstruction:p(N),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};u([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},37207:function(t,e,n){n.d(e,{V:function(){return o}});let r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let e in t)!function t(e,i,s,o){let l=[],h=/^@(\w+)\b/.exec(e[0]),a=h&&"keyframes"==h[1];if(h&&null==i)return s.push(e[0]+";");for(let n in i){let o=i[n];if(/&/.test(n))t(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),o,s);else if(o&&"object"==typeof o){if(!h)throw RangeError("The value of a property ("+n+") should be a primitive value.");t(r(n),o,l,a)}else null!=o&&l.push(n.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+o+";")}(l.length||a)&&s.push((!n||h||o?e:e.map(n)).join(", ")+" {"+l.join(" ")+"}")}(r(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=s[r]||1;return s[r]=t+1,"ͼ"+t.toString(36)}
1static mount(t,e){(t[i]||new h(t)).mount(Array.isArray(e)?e:[e])}}let l=null;class h{constructor(t){if(!t.head&&t.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(l)return t.adoptedStyleSheets=[l.sheet].concat(t.adoptedStyleSheets),t[i]=l;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),l=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[i]=this}mount(t){let e=this.sheet,n=0,r=0;for(let i=0;i<t.length;i++){let s=t[i],o=this.modules.indexOf(s);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),e)for(let t=0;t<s.rules.length;t++)e.insertRule(s.rules[t],n++)}else{for(;r<o;)n+=this.modules[r++].rules.length;n+=s.rules.length,r++}}if(!e){let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t}}}}}]); 2//# sourceMappingURL=7120.aa604357a2e68b22.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.